/* Marketing pages (index, home, teams). Same tokens as style.css, which the
   invite page still uses on its own. */
:root {
  --ink: #0F211D;
  --ink-2: #16302A;
  --ink-line: #2A4A42;
  --ink-text: #F3F6F4;
  --ink-text-2: #C7D9D3;
  --ink-text-3: #8FAAA2;
  --teal: #29A398;
  --teal-deep: #0E5C57;
  --teal-bright: #7BDCCF;
  --paper: #F6F5F0;
  --paper-2: #E7EFEA;
  --card: #FFFFFF;
  --text: #14231F;
  --text-2: #3E4A45;
  --text-3: #55625A;
  --line: #DAD5C8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
a:hover { color: var(--ink); }

.serif { font-family: 'Fraunces', Georgia, serif; }
.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.dark { background: var(--ink); color: var(--ink-text); }
.dark a { color: var(--ink-text-2); }
.dark .mono { color: var(--teal-bright); }
section { padding: 96px 0; }

/* Header */
.site-header { background: var(--ink); border-bottom: 1px solid #1E3A33; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 24px; color: var(--ink-text); }
.brand-sub { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-bright); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-text-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink-text); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer;
  min-height: 48px;
}
.btn-primary { background: var(--teal); color: var(--ink) !important; }
.btn-primary:hover { background: var(--teal-bright); }
.btn-light { background: var(--ink-text); color: var(--ink) !important; }
.btn-ghost { border: 1px solid #3A5A52; color: var(--ink-text) !important; }
.btn-sm { padding: 10px 16px; font-size: 15px; min-height: 44px; }

/* Hero */
.hero { padding: 96px 0 104px; }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 72px; line-height: 1.04; margin: 0; color: var(--ink-text); letter-spacing: -0.5px; }
.hero .lede { font-size: 21px; line-height: 1.55; color: var(--ink-text-2); margin: 24px 0 0; max-width: 620px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.fine { font-size: 14px; color: var(--ink-text-3); margin: 16px 0 0; }

/* Phone frame around real screenshots */
.phone {
  width: 290px; border-radius: 44px; padding: 10px;
  background: #0A1714; border: 1px solid #2A4A42;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone { position: relative; }
.phone img { border-radius: 34px; width: 100%; height: auto; display: block; }
/* The iPhone's Dynamic Island, so the screens read as a real iPhone */
.phone::after { content: ""; position: absolute; top: 3.2%; left: 50%; transform: translateX(-50%); width: 29%; height: 2.6%; border-radius: 999px; background: #000; }
.phone-sm { width: 240px; border-radius: 38px; padding: 8px; }
.phone-sm img { border-radius: 30px; }

/* Product fork on the front door */
.fork { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 64px auto 0; }
.path {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 20px; padding: 36px;
  color: var(--ink-text) !important; transition: border-color .15s; text-align: left;
}
.path:hover { border-color: var(--teal-bright); }
.path h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 30px; margin: 0; }
.path p { margin: 0; color: var(--ink-text-2); font-size: 16px; }
.path .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--teal-bright); }

/* "No more" rows: one easy thing, one screenshot */
.nomore { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.nomore:first-of-type { border-top: 0; }
.nomore.flip { grid-template-columns: auto minmax(0, 1fr); }
.nomore.flip .copy { order: 2; }
.nomore h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 40px; line-height: 1.12; margin: 0 0 14px; }
.nomore p { font-size: 18px; color: var(--text-2); margin: 0; max-width: 480px; }
.nomore .phone { background: var(--ink); }

h2.section { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 44px; line-height: 1.12; margin: 0 0 14px; }
p.section-sub { font-size: 19px; color: var(--text-3); margin: 0 0 48px; max-width: 640px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card h3 { font-size: 18px; font-weight: 600; margin: 14px 0 6px; }
.card p { font-size: 15px; color: var(--text-3); margin: 0; }
.card svg { color: var(--teal-deep); }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.dark .card p { color: var(--ink-text-2); }
.dark .card svg { color: var(--teal-bright); }

.band { background: var(--paper-2); }
.quote { font-family: 'Fraunces', Georgia, serif; font-size: 34px; line-height: 1.3; margin: 0; max-width: 880px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.plan.best { border: 2px solid var(--teal-deep); }
.plan h3 { font-size: 18px; font-weight: 600; margin: 0; }
.plan .who { font-size: 15px; color: var(--text-3); margin: 0; }
.price { font-family: 'Fraunces', Georgia, serif; font-size: 44px; margin: 4px 0; }
.price span { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-3); }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-deep); }
.tag { align-self: flex-start; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--paper-2); color: var(--teal-deep); padding: 4px 10px; border-radius: 999px; }

.callout { border: 1px solid var(--line); border-radius: 16px; padding: 24px 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.callout p { margin: 0; color: var(--text-3); font-size: 16px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--ink-text-3); padding: 64px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { color: var(--ink-text); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.foot a { display: block; color: var(--ink-text-2); text-decoration: none; margin-bottom: 10px; }
.foot a:hover { color: var(--ink-text); }
.copyright { border-top: 1px solid #1E3A33; margin-top: 48px; padding-top: 24px; font-size: 13px; }

@media (max-width: 880px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .nav { display: none; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 46px; }
  .hero .lede { font-size: 18px; }
  .hero-split, .fork, .grid3, .grid2, .plans { grid-template-columns: minmax(0, 1fr); }
  .hero-split .phone { margin: 0 auto; }
  .nomore, .nomore.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0; }
  .nomore.flip .copy { order: 0; }
  .nomore .phone { margin: 0 auto; }
  .nomore h3 { font-size: 32px; }
  h2.section { font-size: 34px; }
  .quote { font-size: 26px; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
  .path { padding: 28px; }
  .brand-sub { display: none; }
}

/* Front page hero: two phones, the second peeking out behind the first */
.btn-text { align-self: center; color: var(--ink-text-2); font-weight: 500; font-size: 16px; text-decoration: none; padding: 8px 4px; }
.btn-text:hover { color: var(--ink-text); }
.phones { position: relative; width: min(100%, 400px); justify-self: center; aspect-ratio: 1 / 1.22; }
.phones .phone { position: absolute; margin: 0; }
.phones .phone-front { left: 0; top: 0; width: 66%; z-index: 2; }
.phones .phone-back { right: 0; top: 11%; width: 62%; z-index: 1; transform: rotate(5deg); opacity: .92; }
.hero { overflow: hidden; }
.closing { text-align: center; }
.closing .actions { justify-content: center; }
@media (max-width: 760px) {
  .phones { width: min(100%, 340px); }
}

/* The Hub: an iPad frame around a real screenshot */
.tablet { width: min(100%, 900px); margin: 0 auto 48px; padding: 14px; border-radius: 34px; background: #0A1714; border: 1px solid #2A4A42; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); }
.tablet img { display: block; width: 100%; height: auto; border-radius: 22px; }

.hub-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-more { text-align: center; margin: 28px 0 0; font-weight: 600; }
@media (max-width: 880px) {
  .hub-points { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hub-points .card { padding: 16px; }
  .hub-points .card h3 { font-size: 16px; margin: 0 0 4px; }
  .hub-points .card p { font-size: 14px; }
  .tablet { margin-bottom: 28px; padding: 8px; border-radius: 22px; }
  .tablet img { border-radius: 14px; }
}

/* Home page: light sections stay cream; dark green is kept for the header, hero, Home+, closing and footer */
#hub + .band { background: var(--paper); border-top: 0; }

/* The Hub and "Why we built" are full-width white bands, so each stands apart from the cream sections around it */
#hub, #story { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#hub .card { background: var(--paper); }

/* ===================================================================
   Aurora and Sage theme: the same look as the app (2026-11-12).
   Dark sections = Aurora (teal and indigo glow on near-black glass),
   light sections = Sage (soft green wash with frosted white glass).
   Everything below only changes colour, glass and glow, not layout.
   =================================================================== */
:root {
  --aurora-ground: #06100E;
  --aurora-teal: 46, 230, 200;
  --sage: #EAF0E8;
  --sage-deep: #15634F;
}

body {
  background:
    radial-gradient(1000px 700px at 0% 0%, rgba(150, 208, 178, 0.85), transparent 65%),
    radial-gradient(900px 700px at 100% 100%, rgba(176, 214, 196, 0.8), transparent 62%),
    linear-gradient(180deg, #E2EEE4, #EAF0E8);
  background-attachment: fixed;
}
.band { background: linear-gradient(180deg, rgba(150, 208, 178, 0.3), rgba(226, 238, 228, 0.55)); }

/* Aurora ground for dark sections */
.dark {
  background:
    radial-gradient(1100px 640px at 4% -14%, rgba(32, 139, 130, 0.95), transparent 64%),
    radial-gradient(900px 600px at 100% -8%, rgba(68, 88, 119, 0.95), transparent 62%),
    var(--aurora-ground);
}
.site-footer { background: var(--aurora-ground); }
.copyright, .site-header { border-color: rgba(255, 255, 255, 0.1); }

/* Frosted header */
.site-header { background: rgba(6, 16, 14, 0.9); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }

/* Glass cards: light = frosted white, dark = frosted smoke */
.card, .plan, .callout, .topic-list li, .still, .art-text .note {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 32px rgba(21, 99, 79, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
}
.plan.best { border: 1px solid rgba(21, 99, 79, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(21, 99, 79, 0.25), 0 14px 36px rgba(21, 99, 79, 0.14); }
.dark .card, .path {
  background: rgba(54, 64, 62, 0.47);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.28);
}
.path:hover { border-color: rgba(var(--aurora-teal), 0.75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 28px rgba(var(--aurora-teal), 0.22); }
.tile:hover { border-color: rgba(21, 99, 79, 0.55); }
.tag { background: rgba(21, 99, 79, 0.12); color: var(--sage-deep); }

/* Glass buttons: tinted glass, bright rim, soft glow (like the app's action buttons) */
.btn { transition: background .15s, box-shadow .15s, transform .1s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: rgba(var(--aurora-teal), 0.2); border: 1px solid rgba(var(--aurora-teal), 0.85);
  color: #2EE6C8 !important; box-shadow: 0 0 20px rgba(var(--aurora-teal), 0.32);
}
.btn-primary:hover { background: rgba(var(--aurora-teal), 0.3); box-shadow: 0 0 28px rgba(var(--aurora-teal), 0.5); }
.btn-light {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink-text) !important; box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.24); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); }
/* On light (Sage) sections the same buttons use the deep green */
section:not(.dark) .btn-primary, .plan .btn-primary {
  background: rgba(21, 99, 79, 0.14); border-color: rgba(21, 99, 79, 0.6); color: var(--sage-deep) !important; box-shadow: none;
}
section:not(.dark) .btn-primary:hover, .plan .btn-primary:hover { background: rgba(21, 99, 79, 0.24); }

/* Screens float in the glow */
.dark .phone, .dark .shot { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 90px rgba(var(--aurora-teal), 0.14); }
.nomore .phone { background: #0A1714; }

/* Search box in the help hero */
.search input { background: rgba(54, 64, 62, 0.47); border-color: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* No blur support: solid tints that still read well */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .plan, .callout, .topic-list li, .still, .art-text .note { background: #F4F8F3; }
  .dark .card, .path { background: #16302A; }
  .site-header { background: #06100E; }
}
/* Fixed backgrounds stutter on phones, so they scroll with the page there */
@media (max-width: 880px) { body { background-attachment: scroll; } }

/* Pricing: yearly first with a monthly toggle (glass, like the app's segmented bars) */
.billing-toggle { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 28px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 999px; background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.billing-toggle button { font: inherit; font-size: 15px; font-weight: 500; color: var(--text-2); background: none; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: rgba(21, 99, 79, 0.16); border-color: rgba(21, 99, 79, 0.6); color: var(--sage-deep); font-weight: 600; }
.save-pill { font-size: 12px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.price { white-space: nowrap; }
.price > span { font-family: inherit; font-size: inherit; color: inherit; }
.price-note { font-size: 15px; color: var(--text-3); margin: 0 0 4px; min-height: 2.8em; }
.plans[data-period="yearly"] .p-monthly, .plans[data-period="monthly"] .p-yearly { display: none; }

/* Features page */
.feat-group { margin-top: 64px; }
.feat-group:first-child { margin-top: 0; }
.feat-group h2.section { margin-bottom: 24px; }
