/* ── Landing page token overrides (emerald + terracotta + warm cream) ─ */
/* main.css ships the old cobalt/coral scheme; re-point for the landing page only */

:root {
  --bg:        oklch(0.952 0.022 95);
  --surface:   oklch(0.992 0.006 95);
  --surface-2: oklch(0.978 0.012 95);
  --line:      oklch(0.89 0.016 95);
  --line-2:    oklch(0.85 0.016 95);
  --ink:       oklch(0.24 0.02 155);
  --body:      oklch(0.44 0.02 150);
  --muted:     oklch(0.56 0.02 90);
  --faint:     oklch(0.62 0.016 95);

  --brand:      oklch(0.47 0.11 162);
  --brand-ink:  oklch(0.39 0.10 162);
  --brand-soft: oklch(0.66 0.12 162);
  --brand-bg:   oklch(0.95 0.03 162);
  --brand-bg-2: oklch(0.90 0.05 162);

  --coral:      oklch(0.60 0.16 42);
  --coral-ink:  oklch(0.50 0.155 40);
  --coral-bg:   oklch(0.95 0.04 42);
  --coral-bg-2: oklch(0.92 0.07 42);
}

/* ── Base ──────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ── Landing nav (.nav) — marketing navbar for logged-out users ─────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.975 0.014 95);
  border-bottom: 1.5px solid oklch(0.88 0.02 95);
}

.nav__in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 18px;
}

/* ── Brand lockup (navbar + footer) ──────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand__toad {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.brand__toad svg { display: block; width: 100%; height: 100%; }

.brand__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: oklch(0.26 0.02 80);
  letter-spacing: -0.015em;
  line-height: 1;
}

.brand__desc {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral-ink);
  line-height: 1;
}

.brand--lg { gap: 13px; }
.brand--lg .brand__toad { width: 44px; height: 44px; }
.brand--lg .brand__name { font-size: 25px; }
.brand--lg .brand__desc { font-size: 10.5px; letter-spacing: 0.26em; }

/* ── Nav links + CTA ─────────────────────────────────────────────── */

.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 13px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav__link:hover { background: var(--brand-bg); color: var(--brand-ink); }

.nav__spacer { flex: 1; }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav__cta .btn {
  height: 38px;
  padding: 0 15px;
  font-size: 14px;
  min-width: 0;
}

.nav__login { display: none; }

@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__spacer { display: none; }
  .nav__login { display: inline-flex; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 56px 0 36px;
}

@media (min-width: 720px) { .hero { padding: 76px 0 44px; } }

/* hero brand masthead */
.hero__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.hero__brand .toad {
  width: 78px;
  height: 78px;
  display: block;
  filter: drop-shadow(0 6px 16px color-mix(in oklch, var(--brand) 28%, transparent));
}

.hero__brand .toad svg { display: block; width: 100%; height: 100%; }

.hero__brand .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 7.5vw, 44px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.hero__brand .desc {
  font-family: var(--font-body);
  font-size: clamp(11px, 2.6vw, 13px);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--coral-ink);
  white-space: nowrap;
}

.hero__h {
  font-family: var(--font-head);
  font-size: clamp(34px, 8.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin: 0 auto 18px;
  color: var(--ink);
}

.hero__sub {
  font-size: clamp(16px, 4.2vw, 20px);
  color: var(--muted);
  max-width: 40ch;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 20px;
}
.hero__cta .btn { width: 100%; }

@media (min-width: 720px) {
  .hero__cta { flex-direction: row; justify-content: center; max-width: none; }
  .hero__cta .btn { width: auto; min-width: 168px; }
}

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto;
}

.note__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-bg);
  flex-shrink: 0;
}

/* ── Stage section ───────────────────────────────────────────────── */

.stage-sec { padding: 48px 0 56px; }

.stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 552px;
}

.stage__pad {
  width: 100%;
  max-width: 880px;
  height: 552px;
  position: relative;
}

/* ── Phone mockup ────────────────────────────────────────────────── */

.phone {
  width: 320px;
  background: #0e0d0b;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 24px 60px -18px rgba(30,24,12,.4), 0 6px 18px rgba(30,24,12,.12);
  position: relative;
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0e0d0b;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone__screen {
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  height: 528px;
  display: flex;
  flex-direction: column;
}

/* Desktop card hidden on mobile; phone in normal flow */
.deskcard { display: none; }

@media (min-width: 860px) {
  .deskcard { display: block; position: absolute; right: 0; top: 28px; width: 560px; }
  .phone { position: absolute; left: 8px; bottom: 0; z-index: 2; }
}

@media (min-width: 1040px) {
  .deskcard { right: 10px; width: 600px; }
}

/* Status bar */
.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 4px;
  flex-shrink: 0;
}

.ph-status__time { font-size: 12px; font-weight: 600; color: var(--ink); }
.ph-status__icons { display: flex; align-items: center; gap: 5px; }

/* Calendar top bar */
.mc-top {
  height: 50px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mc-top__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--ink); }

.mc-nav { display: flex; gap: 6px; }
.mc-nav button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line-2);
  background: white;
  font-size: 15px;
  color: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
}

/* Grid host */
.mc-gridhost {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

/* Month grid (authored at 402px, scaled to 300px phone width) */
.mc-grid {
  width: 402px;
  transform: scale(0.746);
  transform-origin: top center;
  flex-shrink: 0;
}

.mc-grid__header {
  padding: 8px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-grid__month {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.mc-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: oklch(0.92 0.008 75);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
}

.mc-seg__item { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.mc-seg__item--active { background: var(--brand); color: #fff; }

.mc-wk {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 6px 16px 4px;
}

.mc-wk__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}
.mc-wk__label--we { color: oklch(0.55 0.10 30); }

.mc-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  justify-items: center;
  padding: 0 16px;
}

/* Tab bar */
.mc-tabs {
  background: white;
  border-top: 1px solid var(--line);
  padding: 7px 0 11px;
  display: flex;
  justify-content: space-around;
  flex-shrink: 0;
}

.mc-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
}

.mc-tab svg { display: block; }
.mc-tab__label { font-size: 10px; font-weight: 600; }
.mc-tab--active { color: var(--brand); }

/* ── Cell (phone grid + step icons) ─────────────────────────────── */

.cell {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  padding: 4px 5px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  box-sizing: border-box;
  flex-shrink: 0;
}

.cell.h2 { background: color-mix(in oklch, var(--green-bg-2) 30%, white); }
.cell.h3 { background: color-mix(in oklch, var(--green-bg-2) 52%, white); }
.cell.h4 { background: color-mix(in oklch, var(--green-bg-2) 74%, white); }
.cell.h5 { background: color-mix(in oklch, var(--green-bg-2) 92%, white); }
.cell.today { border: 2px solid var(--brand); background: var(--brand-bg); }
.cell.faded { opacity: 0.4; }

.cell__num {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.cell.today .cell__num { color: var(--brand); }
.cell.dim .cell__num { color: var(--muted); }
.cell.faded .cell__num { color: var(--muted); }

/* Top-right container: bars and/or star side by side */
.cell__tr {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.cell__bars { display: flex; align-items: flex-start; gap: 2px; }
.cell__bar { width: 4px; height: 10px; border-radius: 2px; }
.cell__bar--live { background: var(--green); }
.cell__bar--plan { background: var(--amber); }

.cell__star { display: flex; align-items: center; }
.cell__star svg { width: 11px; height: 11px; fill: var(--green-ink); }

/* Tick chip (bottom-left) */
.cell__tick {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cell__tick svg {
  width: 8px;
  height: 8px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Friends count (bottom-right) */
.cell__cnt {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.cell__cnt.hot { color: var(--green-ink); }

/* ── Desktop calendar card ───────────────────────────────────────── */

.deskcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dc__bar {
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dc__dot--r { background: oklch(0.72 0.16 25); }
.dc__dot--a { background: oklch(0.82 0.13 85); }
.dc__dot--g { background: oklch(0.74 0.14 145); }

.dc__head {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.dc__navb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line-2);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--body);
  cursor: default;
  flex-shrink: 0;
  padding: 0;
}

.dc__head-text { flex: 1; }
.dc__head-title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.015em;
}
.dc__head-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
}

.dc__body { padding: 0 20px 22px; }

.dc__wk {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 10px 0 6px;
}
.dc__wk__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}
.dc__wk__label--we { color: oklch(0.50 0.10 30); }

.dc__rows { display: flex; flex-direction: column; gap: 8px; }
.dc__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }

/* Desktop cell */
.dcell {
  height: 84px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.dcell.h2 { background: color-mix(in oklch, var(--green-bg-2) 30%, white); }
.dcell.h3 { background: color-mix(in oklch, var(--green-bg-2) 52%, white); }
.dcell.h4 { background: color-mix(in oklch, var(--green-bg-2) 74%, white); }
.dcell.h5 { background: color-mix(in oklch, var(--green-bg-2) 92%, white); }
.dcell.today { border: 2px solid var(--brand); background: var(--brand-bg); }
.dcell.dim { opacity: 0.5; }
.dcell.empty { border: 1px dashed var(--line); opacity: 0.5; background: transparent; }

.dcell .num {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.dcell.today .num { color: var(--brand); }
.dcell.dim .num { color: var(--muted); }

/* Top-right for desktop cells */
.dcell .tr {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.dcell .bars { display: flex; align-items: flex-start; gap: 2px; }
.dcell .bar { width: 4px; height: 11px; border-radius: 2px; }
.dcell .bar.live { background: var(--green); }
.dcell .bar.plan { background: var(--amber); }

.dcell .dstar { display: flex; align-items: center; }
.dcell .dstar svg { width: 12px; height: 12px; fill: var(--green-ink); }

.dcell .tick {
  position: absolute;
  bottom: 7px;
  left: 7px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dcell .tick svg {
  width: 9px;
  height: 9px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dcell .cnt {
  position: absolute;
  bottom: 7px;
  right: 7px;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.dcell .cnt.hot { color: var(--green-ink); }

/* ── How it works ────────────────────────────────────────────────── */

.sec { padding: 64px 0; }

.seclabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-bottom: 14px;
}

.sec__h {
  font-family: var(--font-head);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  max-width: 18ch;
  margin: 0 auto 36px;
  color: var(--ink);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 720px) { .steps { flex-direction: row; } }

.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
}

.step__ic { margin-bottom: 16px; }
.step__n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.step__t { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step__b { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ── Who it's for ────────────────────────────────────────────────── */

.who { padding: 0 0 64px; display: flex; justify-content: center; }

.who__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  max-width: 760px;
  width: 100%;
}

.who__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.who__body {
  font-family: var(--font-head);
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.who__body .muted {
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 400;
}

/* ── Closing CTA ─────────────────────────────────────────────────── */

.band {
  padding: 64px 0;
  text-align: center;
}

.band__h {
  font-family: var(--font-head);
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}

.band__sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.band__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}
.band__cta .btn { width: 100%; }

@media (min-width: 720px) {
  .band__cta { flex-direction: row; justify-content: center; max-width: none; }
  .band__cta .btn { width: auto; min-width: 168px; }
}

/* ── Footer ──────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 40px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.foot__slogan { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--ink); }
.foot__contact { font-size: 14px; color: var(--muted); }
.foot__contact a { color: var(--brand-ink); text-decoration: none; }
.foot__contact a:hover { text-decoration: underline; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__credit { font-size: 12px; color: var(--faint); }
