/* Cubby marketing site — tokens mirror src/constants/theme.ts (light palette) so this stays
   visually consistent with the real app without importing anything from it. Update by hand;
   this site is deployed on its own and isn't meant to move in lockstep with the app. */

:root {
  --bg: #f5f2fa;
  --stage: #ece6f4;
  --surface: #ffffff;
  --surface-alt: #eee9f5;
  --ink: #211a33;
  --ink-soft: #6b6480;
  --ink-faint: #9992ad;
  --border: #e1daf0;

  --honey: #e0a542;
  --honey-ink: #8a5a16;
  --honey-soft: #f7e6c4;
  --dusk: #6b5a9e;
  --dusk-ink: #4b3d77;
  --dusk-soft: #e6e1f5;
  --sage: #7fae8d;
  --sage-ink: #3f6f4f;
  --sage-soft: #dcecdf;
  --coral: #e08064;
  --coral-ink: #a1452b;
  --coral-soft: #f8ddd2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 11px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dusk);
  margin: 0 0 0.75em;
}

.center { text-align: center; }
.hero-actions.center { justify-content: center; }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 242, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark { font-size: 1.4rem; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}

.btn-small { padding: 9px 18px; font-size: 0.9rem; border-radius: var(--radius-sm); }

.btn-primary {
  background: var(--dusk);
  color: #ffffff;
}
.btn-primary:hover { background: var(--dusk-ink); }

.btn-ghost {
  background: var(--surface-alt);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--border); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 1.75em 0 0.75em;
}

.hero-fineprint {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Hero */

.hero { padding: 72px 0 40px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.center.lede { margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* Phone mockup */

.hero-art { display: flex; justify-content: center; }

.phone {
  width: 300px;
  background: #1c1730;
  border-radius: 42px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(33, 26, 51, 0.35);
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #1c1730;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  top: 4px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 30px;
  padding: 18px 16px 22px;
  min-height: 480px;
}

.screen-greeting {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
}

.screen-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2px 0 16px;
}

.hero-card {
  background: linear-gradient(135deg, var(--dusk), var(--dusk-ink));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}

.hero-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin: 0 0 6px;
}

.hero-card-time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0 0 6px;
}

.hero-card-sub {
  font-size: 0.78rem;
  opacity: 0.9;
  margin: 0 0 12px;
  line-height: 1.4;
}

.hero-card-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
}
.hero-card-bar span {
  display: block;
  width: 28%;
  height: 100%;
  background: var(--honey);
}

.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.tile {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tile-sm { padding: 10px 14px; flex-direction: row; align-items: center; gap: 8px; }

.tile-icon { font-size: 1.3rem; }
.tile-sm .tile-icon { font-size: 1rem; }

.tile-label { font-weight: 700; font-size: 0.92rem; }
.tile-sub { font-size: 0.72rem; color: var(--ink-faint); }

/* Features */

.features { padding: 64px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* Day Ring — same three-nested-arcs technique (stroke-dasharray on a rotated circle) as the
   real app's DayRingIcon, with the same illustrative ring colours/fractions, so this reads as a
   preview of the actual feature rather than generic decoration. */

.rhythm { padding: 64px 0; }

.rhythm-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .rhythm-inner { grid-template-columns: 1fr; }
  .rhythm-art { order: -1; }
}

.rhythm-art { display: flex; justify-content: center; }

.day-ring { filter: drop-shadow(0 20px 40px rgba(33, 26, 51, 0.18)); }

.ring { fill: none; stroke-linecap: round; }
.ring-dusk { stroke: var(--dusk); stroke-width: 8; }
.ring-honey { stroke: var(--honey); stroke-width: 7; }
.ring-sage { stroke: var(--sage); stroke-width: 6; }

/* Insights */

.insights { padding: 64px 0; background: var(--stage); }

.insights-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .insights-inner { grid-template-columns: 1fr; }
  .insights-art { order: -1; }
}

.chart-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 20px 40px -24px rgba(33, 26, 51, 0.25);
}

.chart-title { font-weight: 700; margin: 0; }
.chart-sub { font-size: 0.85rem; color: var(--ink-faint); margin: 2px 0 20px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
}

.bar {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-alt);
}

.check-list {
  margin: 1.25em 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage-ink);
  background: var(--sage-soft);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About */

.about { padding: 72px 0; }

.about-inner { max-width: 720px; margin: 0 auto; }

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 60ch;
  margin: 1.5em auto 0;
}

/* CTA */

.cta {
  padding: 72px 0 88px;
  text-align: center;
}

.cta-inner { max-width: 560px; margin: 0 auto; }
.cta .lede { margin: 0 auto; }

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer .brand { gap: 6px; }
.footer .brand-name { font-size: 1rem; }

.footer-fine {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
