/* Lindale: every page's layout, built from the values in tokens.css.
   One stylesheet for nine pages, so the header and the footer cannot drift
   apart and a spacing change happens once. Colours come from the tokens; there
   are no new hex values below.

   Order: the base, the chrome that every page wears, the furniture the content
   pages share, then the few blocks that belong to one page, then the screens.
   Anything keyed on `.page-<slug>` is that page's alone. */

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

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  /* Every page sets its own reading width; this is the widest. */
  --wrap-max: 1120px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: var(--heading-track);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* The width and height attributes on an image reserve its space while it
   loads. Without height:auto the height attribute also wins over the CSS
   width and the picture comes out stretched. */
img { max-width: 100%; height: auto; }

a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-800); }

.dark a { color: var(--brand-gold); }
.dark a:hover { color: var(--brand-gold-bright); }

/* One visible focus ring for the whole site, on both grounds. */
:focus-visible {
  outline: 2px solid var(--color-accent-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible { outline-color: var(--brand-gold); }

.skiplink {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 700;
  transition: top .18s ease;
}
.skiplink:focus { top: 16px; color: var(--brand-navy); }

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

/* Jumping to a section should not land it under the sticky header. */
html { scroll-behavior: smooth; }
#top, #what, #sources, #note, #own { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Per-page reading widths. A page of prose wants a narrower column than a
   page of cards, and the header stays 1120 wide on all of them. */
.page-support { --wrap-max: 960px; }
.page-faq { --wrap-max: 900px; }
.page-privacy, .page-legal { --wrap-max: 820px; }

/* ── The header ────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--brand-pine);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 40px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brandmark { width: 32px; height: 32px; border-radius: 9px; display: block; }
.brandname { font-family: var(--font-heading); font-size: 20px; color: var(--brand-cream); }

.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
/* The page you are on is named in cream rather than gold, and says so to a
   screen reader through aria-current. */
.navlinks a[aria-current="page"] { color: var(--brand-cream); }

/* ── The footer ────────────────────────────────────────────────────────── */

.sitefooter {
  background: var(--brand-navy);
  color: var(--brand-sage);
  padding: 40px 0;
  margin-top: 74px;
}
.sitefooter .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; display: block; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── The dark hero band the content pages open with ────────────────────── */

.hero {
  background: linear-gradient(168deg, var(--brand-pine) 0%, var(--brand-pine-deep) 52%, var(--brand-navy) 100%);
  padding: 52px 0 60px;
}
.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.hero h1 {
  font-size: clamp(2.125rem, 6.2vw, 3.5rem);
  line-height: 1.06;
  color: var(--brand-cream);
  margin: 16px 0 20px;
  max-width: 24ch;
}
.hero-lede {
  margin: 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--brand-sage);
  max-width: 54ch;
}
.hero-meta { margin: 24px 0 0; font-size: 15px; color: var(--brand-dim); }
.hero-date { margin: 0; font-size: 15px; color: var(--brand-dim); }
.herobtns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* A page of prose wants a smaller opening than a page of cards. */
.page-faq .hero h1, .page-support .hero h1 { font-size: clamp(2rem, 5.8vw, 3.25rem); }
.page-privacy .hero h1, .page-legal .hero h1 { font-size: clamp(1.875rem, 5.4vw, 2.875rem); max-width: none; }

/* ── Furniture the content pages share ─────────────────────────────────── */

.sec { padding-top: 66px; }
.sec > h2 { font-size: clamp(1.75rem, 3.6vw, 2.25rem); margin-bottom: 12px; }

.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-neutral-800);
  max-width: 62ch;
}

.grid2, .grid3 { display: grid; gap: 20px; margin-top: 26px; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }

.box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.box h3 { font-size: 23px; margin-bottom: 7px; }
.box p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--color-neutral-800); }

/* A pine-tinted box, for the Apple Music half of a pair. */
.box-pine { background: var(--color-accent-2-100); }
.box-pine h3, .box-pine p { color: var(--color-accent-2-900); }

.plainlist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16.5px;
  color: var(--color-neutral-800);
}
.plainlist li { display: flex; gap: 12px; align-items: baseline; }
.plainlist li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--color-accent-2-500);
}

.aside { margin: 18px 0 0; font-size: 16px; color: var(--color-neutral-700); max-width: 62ch; }

.nextrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.nextlink {
  background: var(--color-surface);
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 15.5px;
}
.nextlink:hover { background: var(--color-accent-200); }

.goldbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(48deg, var(--brand-gold), var(--brand-ember));
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: filter .15s ease, transform .15s ease;
}
.dark a.goldbtn, a.goldbtn, a.goldbtn:hover { color: var(--brand-navy); }
.goldbtn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.goldbtn:active { filter: brightness(0.95); transform: translateY(0); }

.ghostbtn {
  background: color-mix(in srgb, var(--brand-cream) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-sage) 30%, transparent);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
}
.dark a.ghostbtn { color: var(--brand-cream); }
.dark a.ghostbtn:hover { color: var(--brand-cream); background: color-mix(in srgb, var(--brand-cream) 14%, transparent); }

.callout {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.callout h2 { font-size: clamp(1.625rem, 3vw, 2rem); margin-bottom: 10px; }
.callout p { margin: 20px 0 0; font-size: 16.5px; color: var(--color-neutral-800); }

/* The same block in pine, for the ones that close a feature page. */
.callout-pine { background: var(--color-accent-2-100); }
.callout-pine h2, .callout-pine h3, .callout-pine p, .callout-pine .plainlist { color: var(--color-accent-2-900); }
.callout-pine .lede { color: var(--color-accent-2-900); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.page-faq .sec > h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 18px; color: var(--color-accent-2-700); }

.qa { border-top: 1px solid var(--color-divider); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 4px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--color-accent-700); }
.qa summary::after {
  content: "+";
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-accent-700);
  line-height: 1;
}
.qa[open] summary::after { content: "–"; }
.qa[open] summary { color: var(--color-accent-800); }
.qa p { margin: 0 0 18px; padding-right: 44px; font-size: 16.5px; line-height: 1.65; color: var(--color-neutral-800); }

/* ── Support ───────────────────────────────────────────────────────────── */

.page-support .sec { padding-top: 60px; }
.page-support .sec > h2 { font-size: clamp(1.625rem, 3.2vw, 2rem); }

.fix { border-top: 1px solid var(--color-divider); padding: 20px 0 4px; }
.fix h3 { font-size: 21px; margin-bottom: 6px; }
.fix p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: var(--color-neutral-800); max-width: 70ch; }

/* ── The two documents ─────────────────────────────────────────────────── */

.page-privacy .hero, .page-legal .hero { padding: 50px 0 52px; }

.doc { padding-top: 52px; }
.doc h2 { font-size: clamp(1.375rem, 2.6vw, 1.625rem); margin: 44px 0 12px; }
.doc p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: var(--color-neutral-800); }
.doc ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.doc li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.7; color: var(--color-neutral-800); }
.doc li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--color-accent-2-500);
  margin-top: 10px;
}
.lead { background: var(--color-surface); border-radius: var(--radius-lg); padding: 26px 30px; }
.lead p { margin: 0; font-size: 17.5px; line-height: 1.65; }

/* ── The home page ─────────────────────────────────────────────────────── */

.page-index { --wrap-max: 1120px; }

/* The header grows a little on the home page and shrinks back once you scroll,
   which site.js signals with html[data-scrolled]. */
.page-index .topbar { transition: background .25s ease, box-shadow .25s ease; }
.page-index .topbar-in { padding: 18px 40px; transition: padding .25s ease; }
.page-index .brandmark { width: 40px; height: 40px; border-radius: 11px; transition: width .25s ease, height .25s ease; }
.page-index .brandname { font-size: 23px; transition: font-size .25s ease; }
html[data-scrolled="1"] .page-index .topbar {
  background: color-mix(in srgb, var(--brand-navy) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--brand-navy) 35%, transparent);
}
html[data-scrolled="1"] .page-index .topbar-in { padding: 9px 40px; }
html[data-scrolled="1"] .page-index .brandmark { width: 30px; height: 30px; border-radius: 9px; }
html[data-scrolled="1"] .page-index .brandname { font-size: 19px; }

.homehero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, var(--brand-pine) 0%, var(--brand-pine-deep) 46%, var(--brand-navy) 100%);
  padding: 56px 0 72px;
}
/* The warm bloom in the top corner, behind everything. */
.homehero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -140px;
  top: -240px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent-2-800) 70%, transparent), transparent 70%);
}
.homehero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}
.homehero-copy { display: flex; flex-direction: column; gap: 24px; }
.badge {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-gold);
  border: 1px solid color-mix(in srgb, var(--brand-gold) 45%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
}
.homehero h1 {
  font-size: clamp(2.5rem, 7.4vw, 4.25rem);
  line-height: 1.05;
  color: var(--brand-cream);
}
.homehero-lede {
  margin: 0;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  color: var(--brand-sage);
  max-width: 36ch;
}
.homehero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* The device words under the button, and the mock each one shows. */
.devrow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.devchip {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-sage);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color .18s ease;
}
.devchip:hover { color: var(--brand-gold); }
.devchip[aria-pressed="true"] { color: var(--brand-cream); }
.devsep { color: var(--brand-dim); font-size: 15px; }
.devfree { font-size: 15px; color: var(--brand-dim); }

/* The mocks below are drawn at fixed pixel sizes, so the stage clips rather
   than letting them widen the page on a phone. */
.devstage { position: relative; display: grid; place-items: center; min-height: 300px; max-width: 100%; overflow: hidden; }
.devmock {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.devmock[data-current] { opacity: 1; transform: none; }
.devshot {
  width: 264px;
  border-radius: 30px;
  box-shadow: 0 26px 60px color-mix(in srgb, var(--brand-navy) 55%, transparent);
  display: block;
}
.mockwin {
  background: linear-gradient(165deg, var(--brand-pine), var(--brand-navy));
  border: 5px solid var(--brand-navy);
  box-shadow: 0 22px 50px color-mix(in srgb, var(--brand-navy) 55%, transparent);
  overflow: hidden;
}
.mocknav { font-size: 9.5px; font-weight: 600; color: var(--brand-dim); padding: 5px 7px; border-radius: 999px; }
.mocknav-on { color: var(--brand-navy); background: var(--brand-gold); }
.cov { display: block; aspect-ratio: 1; border-radius: 5px; opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  .devmock, .topbar, .topbar-in, .brandmark, .brandname, .goldbtn, .devchip, .srclink { transition: none; }
  .goldbtn:hover, .srclink:hover { transform: none; }
}

/* The three cards: a tan one, a pine one and a gold one, all off the icon. */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trio > div { border-radius: var(--radius-lg); padding: 30px; }
.trio h3 { font-size: 27px; margin-bottom: 8px; }
.trio p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.trio-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-tan { background: var(--color-surface); }
.card-tan .trio-icon { background: var(--color-bg); }
.card-tan h3 a { color: var(--color-text); }
.card-tan p { color: var(--color-neutral-800); }
.card-pine { background: var(--color-accent-2-200); }
.card-pine .trio-icon { background: var(--color-accent-2-100); }
.card-pine h3 a, .card-pine p { color: var(--color-accent-2-900); }
.card-gold { background: var(--color-accent-300); }
.card-gold .trio-icon { background: var(--color-accent-200); }
.card-gold h3 a, .card-gold p { color: var(--color-accent-900); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 46px;
}
.split h2 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); margin-bottom: 14px; }
.split > div > p { margin: 0 0 26px; font-size: 17.5px; line-height: 1.6; color: var(--color-neutral-800); }
.shots { display: flex; gap: 18px; justify-content: center; }
.shots img { width: 236px; border-radius: 26px; box-shadow: var(--shadow-md); display: block; }
.shots img + img { margin-top: 34px; }

.srclink {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--color-bg);
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.srclink:hover { background: var(--color-accent-200); transform: translateX(3px); }
.srclink:active { background: var(--color-accent-300); }
.srclink span + span { font-weight: 500; font-size: 14.5px; color: var(--color-neutral-700); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.pillars h3 { font-size: 26px; margin-bottom: 8px; }
.pillars p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--color-neutral-700); }

.note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--color-accent-2-100);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
}
.note h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; color: var(--color-accent-2-900); }
.note p { margin: 0; font-size: 17px; color: var(--color-accent-2-900); }

.naming {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-neutral-700);
  max-width: 66ch;
}
.naming strong { color: var(--color-neutral-900); }

/* ── Screens ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .wrap, .topbar-in { padding-left: 22px; padding-right: 22px; }
  /* minmax(0, 1fr) rather than 1fr: a column of fixed-width artwork otherwise
     refuses to shrink below its own content and widens the page. */
  .grid2, .grid3, .trio, .pillars, .split, .homehero-in { grid-template-columns: minmax(0, 1fr); }
  .split { padding: 32px 26px; gap: 32px; }
  .shots img { width: min(236px, calc(50% - 9px)); }
  .shots img + img { margin-top: 0; }
}

/* Below this the five links no longer fit beside the wordmark, so the header
   becomes two short rows rather than one row that runs off the screen. */
@media (max-width: 720px) {
  .topbar-in,
  .page-index .topbar-in,
  html[data-scrolled="1"] .page-index .topbar-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 22px;
  }
  /* Tight enough that the five links stay on one line at 375px wide. Below
     that they wrap, which is the right thing to do rather than shrink further. */
  .navlinks { gap: 14px; font-size: 14px; flex-wrap: wrap; }
  .page-index .brandmark,
  html[data-scrolled="1"] .page-index .brandmark { width: 32px; height: 32px; border-radius: 9px; }
  .page-index .brandname,
  html[data-scrolled="1"] .page-index .brandname { font-size: 20px; }

  .homehero { padding: 40px 0 48px; }
  .homehero-in { gap: 34px; }
  .devstage { min-height: 0; }
  .mockwin { transform: scale(0.8); }
  .hero { padding: 40px 0 46px; }
  .sec, .page-support .sec { padding-top: 48px; }
  .trio > div { padding: 24px; }
  .note { padding: 28px 26px; }
  .callout { padding: 28px 24px; }
  .sitefooter { margin-top: 56px; }
  .sitefooter .wrap { justify-content: flex-start; }
}
