/* Good Take — site v3 (docs/site-v3.md)
   The Basecamp treatment: a near-white ground with a faint lavender cast,
   slate ink, one blue for every link and button, a yellow highlighter on the
   phrases that matter, plain type, and no decoration the copy doesn't earn. */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ground: #faf8fc;
  --ink: #2c3a45;
  --muted: #5f6b75;
  --faint: #8a949c;
  --blue: #2f6fe0;
  --blue-ink: #1f55b8;
  --hl: #ffe27a;
  --amber: #ffc53d;
  --amber-ink: #946200;
  --gold: #f2b01e;
  --rule: rgba(44, 58, 69, 0.14);
  --card: #ffffff;
  --card-border: rgba(44, 58, 69, 0.12);
  --shade: #f1eef6;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
mark { background: var(--hl); color: inherit; padding: 0 0.15em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 6px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { background: var(--blue-ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-quiet:hover { background: rgba(47, 111, 224, 0.08); color: var(--blue-ink); }
.btn-big { padding: 14px 22px; font-size: 17px; border-radius: 8px; }

/* The App Store button keeps Apple's black-badge shape, the one thing on the
   page that is not blue: people know it on sight. */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 8px 16px 8px 12px; border-radius: 9px; line-height: 1.05;
}
.store-badge:hover { color: #fff; background: #1c1c1e; }
.store-badge .apple { width: 24px; height: 24px; fill: #fff; flex: none; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.9; }
.store-badge strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.big { padding: 12px 22px 12px 16px; border-radius: 12px; }
.store-badge.big .apple { width: 30px; height: 30px; }
.store-badge.big strong { font-size: 24px; }

/* ---------- Header ---------- */

header.site { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; }
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.wordmark em { font-style: normal; color: var(--amber-ink); }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
nav.main a:hover { color: var(--blue); text-decoration: underline; }
nav.main .btn { color: #fff; text-decoration: none; }

/* ---------- Hero: the table of contents beside the product ---------- */

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: stretch; padding: 40px 0 72px; }
.hero .left { display: flex; flex-direction: column; justify-content: space-between; min-height: 620px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 16px; }
.toc a { font-weight: 600; }
.toc span { color: var(--muted); }
.hero h1 { font-size: 46px; max-width: 560px; margin-top: 56px; }
.hero h1 mark { padding: 0 0.12em; }
.hero .cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .cta .fine { width: 100%; font-size: 14px; color: var(--muted); }
.product {
  background: var(--shade); border: 1px solid var(--card-border); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 36px 24px 24px;
}
.product .note { max-width: 320px; font-size: 14px; color: var(--muted); line-height: 1.4; text-align: center; }

/* Phone frame and its video, kept from v2: the real app, playing. */
.phone {
  width: 250px;
  aspect-ratio: 1206 / 2622;
  background: linear-gradient(100deg, #8f939c, #2b2e36 28%, #3a3d46 50%, #23252c 72%, #868a93);
  border-radius: 46px;
  padding: 8px;
  box-shadow: 0 24px 50px rgba(44, 58, 69, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.phone .screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #0c0c0c; }
.phone .screen img, .phone .screen video { width: 100%; height: 100%; object-fit: cover; }
.phone .screen video.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.phone .screen video.slide.on { opacity: 1; }
.phone.large { width: 300px; }
.phone.tilt-r2 { transform: rotate(6deg); }

/* ---------- Sections ---------- */

section { padding: 72px 0; border-top: 1px solid var(--rule); }
section.plain { border-top: 0; }
.section-title { font-size: 34px; max-width: 760px; }
.section-title + .section-sub { margin-top: 12px; font-size: 19px; color: var(--muted); max-width: 680px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* Testimonials with stars: the phrase that matters, highlighted. */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 36px; }
.quote .stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-size: 16.5px; line-height: 1.5; }
.quote .who { margin-top: 12px; font-size: 14px; color: var(--muted); }
.quote .who strong { color: var(--ink); font-weight: 600; }

/* The letter. */
.letter { max-width: 720px; }
.letter h2 { font-size: 34px; margin-bottom: 26px; }
.letter p { margin-top: 18px; font-size: 18px; line-height: 1.6; }
.letter .sig { margin-top: 30px; }
.letter .sig strong { display: block; font-size: 18px; }
.letter .sig span { color: var(--muted); font-size: 15px; }

/* Who it is for: a row of plain pills. */
.people { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.people span { border: 1px solid var(--card-border); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 500; }

/* Big numbers: facts, not vanity. */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.number strong { display: block; font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.number span { display: block; margin-top: 10px; font-size: 16px; color: var(--muted); }

/* Privacy in the service voice: text left, the facts right. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split .section-title { font-size: 34px; }
.split .lede { margin-top: 18px; font-size: 18px; line-height: 1.6; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16.5px; line-height: 1.5; }
.checks li::before { content: "✓"; color: var(--blue); font-weight: 700; font-size: 18px; line-height: 1.3; }
.checks strong { font-weight: 600; }

/* See it work: the carousel, as a plain list beside the phone. */
.show { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-top: 36px; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(44, 58, 69, 0.22); cursor: pointer; }
.dots button.on { background: var(--blue); }
.feature-list { display: grid; gap: 4px; }
.feature-card {
  display: block; width: 100%; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 0; border-left: 3px solid transparent; cursor: pointer;
  padding: 14px 18px; border-radius: 0 10px 10px 0;
}
.feature-card:hover { background: rgba(47, 111, 224, 0.05); }
.feature-card.active { border-left-color: var(--blue); background: var(--card); box-shadow: 0 1px 0 var(--card-border), 0 -1px 0 var(--card-border), 1px 0 0 var(--card-border); }
.feature-card h3 { font-size: 19px; }
.feature-card p { margin-top: 6px; font-size: 16px; color: var(--muted); line-height: 1.5; }
.feature-card.active p { color: var(--ink); }

/* New feature. */
.new-feature { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: center; }
.new-feature h2 { font-size: 38px; }
.new-feature .note { margin-top: 18px; font-size: 18px; line-height: 1.6; max-width: 520px; }
.new-feature .phone.large { width: 250px; }

/* And there's more: an em-dash list. */
.more { list-style: none; margin: 30px 0 0; padding: 0; columns: 2; column-gap: 56px; }
.more li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16.5px; }
.more li strong { font-weight: 600; }
.more li span { color: var(--muted); }

/* FAQ: plain rows. */
.faq { margin-top: 30px; max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; font-weight: 500; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.faq-more { margin-top: 26px; }

/* Download. */
.download { text-align: center; padding: 88px 0; }
.download h2 { font-size: 44px; }
.download .fine { margin-top: 14px; font-size: 17px; color: var(--muted); }
.download .cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid var(--rule); padding: 44px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid .tag { margin-top: 12px; color: var(--muted); max-width: 300px; }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }

/* ---------- Doc pages (support, feedback, privacy, terms) ---------- */

main.doc { max-width: 760px; margin: 0 auto; padding: 24px 28px 80px; }
.doc h1 { font-size: 40px; margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 16px; margin-bottom: 30px; }
.doc h2 { font-size: 24px; margin-top: 40px; margin-bottom: 10px; }
.doc h3 { font-size: 19px; margin-top: 26px; margin-bottom: 8px; }
.doc p { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 24px; font-size: 17px; line-height: 1.6; }
.doc li { margin-top: 6px; }
.doc strong { font-weight: 600; }
.doc .callout { margin-top: 24px; background: rgba(255, 226, 122, 0.45); border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; padding: 16px 18px; }
.doc .callout p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero .left { min-height: 0; }
  .hero h1 { margin-top: 36px; font-size: 40px; }
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .split, .show, .new-feature { grid-template-columns: 1fr; gap: 36px; }
  .more { columns: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  header.site { flex-wrap: wrap; gap: 12px; }
  nav.main { gap: 14px; width: 100%; justify-content: space-between; }
  nav.main a:not(.btn) { font-size: 14px; }
  .hero { padding: 20px 0 48px; }
  .hero h1 { font-size: 34px; }
  .toc { font-size: 15px; }
  .product { padding: 24px 16px; }
  .phone { width: 220px; }
  .phone.large { width: 240px; }
  .phone.tilt-r2 { transform: none; }
  section { padding: 52px 0; }
  .section-title, .letter h2, .split .section-title { font-size: 28px; }
  .number strong { font-size: 44px; }
  .numbers { gap: 22px; }
  .new-feature h2 { font-size: 30px; }
  .download h2 { font-size: 32px; }
  .foot-grid { grid-template-columns: 1fr; }
  main.doc { padding: 12px 20px 60px; }
  .doc h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone .screen video.slide { transition: none; }
}

/* ---------- Comparison and guide pages (scripts/build-site-pages.py) ---------- */

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 16px; -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 12px; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.cmp thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--rule); }
.cmp tbody th { font-weight: 600; width: 24%; color: var(--ink); }
.cmp tbody td:nth-child(2) { background: rgba(255, 226, 122, 0.22); }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.choose h3 { font-size: 19px; margin-bottom: 8px; }
.choose ul { margin: 0; padding-left: 20px; font-size: 16.5px; line-height: 1.55; }
.choose li { margin-top: 6px; }
.hub { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 17px; }
.hub li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hub li span { color: var(--muted); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.cta-row .fine { font-size: 14px; color: var(--muted); }
.doc .fine { margin-top: 28px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .choose { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Phone-width header: brand and a sandwich, the menu on demand ---------- */

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; margin-right: -10px;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 160ms ease, opacity 160ms ease; }
header.site.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site.open .menu-toggle span:nth-child(2) { opacity: 0; }
header.site.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 640px) {
  header.site { flex-wrap: wrap; gap: 0; padding: 14px 0; }
  .menu-toggle { display: flex; }
  nav.main { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 10px; border-top: 1px solid var(--rule); }
  header.site.open nav.main { display: flex; }
  .toc { display: none; }
  .hero .left { min-height: 0; }
  .hero h1 { margin-top: 8px; }
  nav.main a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  nav.main .btn { margin: 14px 0 4px; align-self: flex-start; }
}

/* Home-page section links live in the sandwich on phones only. */
nav.main .m-only { display: none; }
@media (max-width: 640px) { nav.main .m-only { display: block; } }
/* Guides gets a desktop nav slot on the home page too. */
