/*
 * ADA Development — the company site.
 *
 * Mobile first: every rule below is written for a phone, and the media queries
 * at the end of each block only add room. Most visitors arrive from a link in a
 * Facebook group, on a phone.
 *
 * Two palettes live here and must not mix:
 *   --ada-*  the company's own brand: warm paper, ink, indigo, an amber spark.
 *   --gm-*   Grassroots Mgmt.'s colours, lifted from the app's theme.ts (the
 *            dark scheme's #0A0A0A and #2BE38A) and its icon's pitch green.
 *            Used only where the product is being shown.
 *
 * `/style.css` is the older stylesheet and is still used by /confirmed and
 * /team-sheet, which the app opens. It is left alone on purpose.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  --ada-paper: #f7f5f0;
  --ada-paper-2: #eeebe3;
  --ada-card: #ffffff;
  --ada-ink: #16141f;
  --ada-ink-2: #545066;
  --ada-line: #dbd7cc;
  --ada-brand: #3b2fc9;
  --ada-brand-hover: #2f24ad;
  --ada-on-brand: #ffffff;
  --ada-spark: #ff8a3d;
  --ada-focus: #3b2fc9;

  --gm-black: #0a0a0a;
  --gm-surface: #161618;
  --gm-sunken: #101014;
  --gm-line: #2a2a2f;
  --gm-text: #fafafa;
  --gm-text-2: #a1a1a8;
  --gm-green: #2be38a;
  --gm-on-green: #06170f;
  --gm-pitch: #1d4426;
  --gm-pitch-deep: #0d2215;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: 1rem;
  --wrap: 72rem;
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --header-h: 4rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ada-paper: #0f0e15;
    --ada-paper-2: #17161f;
    --ada-card: #1d1c27;
    --ada-ink: #f3f1ea;
    --ada-ink-2: #b4b0c2;
    --ada-line: #2e2c3a;
    --ada-brand: #aaa3ff;
    --ada-brand-hover: #c4bfff;
    --ada-on-brand: #15112e;
    --ada-focus: #aaa3ff;
    color-scheme: dark;
  }
}

/* The Grassroots Mgmt. page is dark whatever the device says, because the app's
   own screenshots are; the company frame follows it so the header and footer
   do not glare above and below a black page. */
:root[data-theme='dark'] {
  --ada-paper: #0f0e15;
  --ada-paper-2: #17161f;
  --ada-card: #1d1c27;
  --ada-ink: #f3f1ea;
  --ada-ink-2: #b4b0c2;
  --ada-line: #2e2c3a;
  --ada-brand: #aaa3ff;
  --ada-brand-hover: #c4bfff;
  --ada-on-brand: #15112e;
  --ada-focus: #aaa3ff;
  color-scheme: dark;
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ada-paper);
  color: var(--ada-ink);
  font: 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 9vw, 4.25rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 6vw, 2.9rem); font-weight: 720; }
h3 { font-size: clamp(1.35rem, 4.5vw, 1.85rem); font-weight: 680; }
p { margin: 0 0 1rem; }
a { color: var(--ada-brand); text-underline-offset: 0.18em; }
a:hover { color: var(--ada-brand-hover); }

:focus-visible {
  outline: 3px solid var(--ada-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--ada-brand);
  color: var(--ada-on-brand);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--ada-on-brand); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ada-ink-2);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.1rem, 3.6vw, 1.3rem);
  color: var(--ada-ink-2);
  max-width: 38rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--ada-brand); color: var(--ada-on-brand); }
.button--primary:hover { background: var(--ada-brand-hover); color: var(--ada-on-brand); }
.button--ghost { border-color: var(--ada-line); color: var(--ada-ink); }
.button--ghost:hover { border-color: var(--ada-ink); color: var(--ada-ink); }
.button--green { background: var(--gm-green); color: var(--gm-on-green); }
.button--green:hover { background: #5ff0aa; color: var(--gm-on-green); }
.button .arrow { transition: transform 0.2s; }
.button:hover .arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ada-paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ada-line) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ada-ink);
  text-decoration: none;
  font-family: var(--font-display);
  line-height: 1;
}
.brand:hover { color: var(--ada-ink); }
.brand__mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand__name { font-size: 1.2rem; font-weight: 780; letter-spacing: -0.01em; }
.brand__name span { font-weight: 480; color: var(--ada-ink-2); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ada-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ada-ink);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--ada-ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--ada-paper-2); color: var(--ada-ink); }
.site-nav a[aria-current='page'] { background: var(--ada-ink); color: var(--ada-paper); }

/* With JavaScript, a phone gets a menu button; without it the three links
   simply wrap under the logo, which is still usable. */
@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ada-paper);
    border-bottom: 1px solid var(--ada-line);
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.35);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .js .site-nav a { display: flex; font-size: 1.15rem; padding: 0.75rem 1rem; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: 0.5rem; }
}

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

.section { padding-block: clamp(3.5rem, 10vw, 7rem); }
.section--sunk { background: var(--ada-paper-2); }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 6vw, 3.5rem); }
.section__head--centre { margin-inline: auto; text-align: center; }
.section__head--centre .lede { margin-inline: auto; }

/* ---------- Home: hero ---------- */

.ada-hero { position: relative; padding-block: clamp(3rem, 12vw, 7.5rem) clamp(2.5rem, 8vw, 5rem); overflow: hidden; }
.ada-hero h1 { max-width: 15ch; }
.ada-hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--ada-spark) 55%, transparent) 62%);
}
.ada-hero__glow {
  position: absolute;
  top: -12rem;
  right: -14rem;
  width: 38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ada-brand) 22%, transparent), transparent);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Home: the Grassroots Mgmt. banner ---------- */

.gm-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem) 0;
  color: var(--gm-text);
  background:
    radial-gradient(120% 90% at 85% 10%, #2f6a3a 0%, transparent 55%),
    linear-gradient(160deg, var(--gm-pitch) 0%, var(--gm-pitch-deep) 70%);
  box-shadow: 0 40px 80px -40px rgb(13 34 21 / 0.7);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gm-banner:hover { transform: translateY(-3px); box-shadow: 0 50px 90px -40px rgb(13 34 21 / 0.8); }
.gm-banner:focus-within { outline: 3px solid var(--gm-green); outline-offset: 4px; }
/* Pitch markings, drawn rather than shipped as an image. */
.gm-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background:
    radial-gradient(circle at 70% 50%, transparent 5.9rem, #fff 5.9rem, #fff calc(5.9rem + 2px), transparent calc(5.9rem + 2px)),
    linear-gradient(90deg, transparent calc(70% - 1px), #fff calc(70% - 1px), #fff calc(70% + 1px), transparent calc(70% + 1px)),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.25) 0 4.5rem, transparent 4.5rem 9rem);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 95%);
  mask-image: linear-gradient(180deg, #000, transparent 95%);
}
.gm-banner__copy { position: relative; z-index: 1; }
.gm-banner__app { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.gm-banner__app img { width: 3.5rem; height: 3.5rem; border-radius: 22%; box-shadow: 0 8px 20px rgb(0 0 0 / 0.35); }
.gm-banner .eyebrow { color: var(--gm-green); margin: 0; }
.gm-banner h2 { color: #fff; font-size: clamp(2.2rem, 8vw, 3.6rem); }
.gm-banner__pitch { font-family: var(--font-display); font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 560; line-height: 1.3; color: #fff; max-width: 26ch; }
.gm-banner__detail { color: rgb(255 255 255 / 0.8); max-width: 34rem; }
.gm-banner .stores { margin-top: 1.25rem; position: relative; z-index: 3; }
/* Pills that are not links let a tap fall through to the card's own link. */
.gm-banner .store--soon { pointer-events: none; }
/* The whole card is the link: the button's hit area is stretched over it, so
   there is one link for a screen reader rather than two to the same page. */
.gm-banner__cta::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.gm-banner__cta:focus-visible { outline: none; }
.gm-banner__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: clamp(17rem, 72vw, 22rem);
  overflow: hidden;
}
.gm-banner__visual .phone { width: min(16rem, 64vw); align-self: flex-start; }

@media (min-width: 56rem) {
  .gm-banner { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-bottom: 0; }
  .gm-banner__copy { padding-bottom: 3.5rem; }
  .gm-banner__visual { height: 100%; min-height: 30rem; align-self: stretch; }
  .gm-banner__visual .phone { width: 17.5rem; margin-top: 3rem; transform: rotate(4deg); }
  .gm-banner:hover .gm-banner__visual .phone { transform: rotate(2deg) translateY(-6px); }
  .gm-banner__visual .phone { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
}

/* ---------- Home: how we work ---------- */

.pillars { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.pillar { background: var(--ada-card); border-radius: var(--radius); padding: 1.5rem; }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--ada-brand) 14%, transparent);
  color: var(--ada-brand);
  margin-bottom: 1rem;
}
.pillar__icon svg { width: 1.4rem; height: 1.4rem; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pillar p { color: var(--ada-ink-2); margin: 0; }
@media (min-width: 48rem) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- Contact ---------- */

.contact-card {
  display: grid;
  gap: 1.5rem;
  background: var(--ada-ink);
  color: var(--ada-paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 6vw, 3.5rem);
}
.contact-card h2 { color: inherit; }
.contact-card p { color: color-mix(in srgb, var(--ada-paper) 78%, transparent); margin: 0; }
.contact-card .button--primary { background: var(--ada-paper); color: var(--ada-ink); }
.contact-card .button--primary:hover { background: color-mix(in srgb, var(--ada-paper) 85%, var(--ada-brand)); color: var(--ada-ink); }
@media (min-width: 48rem) {
  .contact-card { grid-template-columns: 1fr auto; align-items: center; }
}

.email-big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5.5vw, 2.2rem);
  font-weight: 650;
  word-break: break-word;
}

.doc--wide { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.contact-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.contact-list li { background: var(--ada-card); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.contact-list h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.contact-list p { margin: 0; color: var(--ada-ink-2); }
@media (min-width: 48rem) { .contact-list { grid-template-columns: repeat(3, 1fr); } }

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

.site-footer {
  background: var(--ada-paper-2);
  color: var(--ada-ink-2);
  font-size: 0.95rem;
  padding-block: 3rem 2rem;
  margin-top: 0;
}
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer .brand { margin-bottom: 0.75rem; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ada-ink-2);
  margin: 0 0 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer a { color: var(--ada-ink); text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: var(--ada-brand); text-decoration: underline; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--ada-line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
}
.site-footer__base p { margin: 0; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Phone mockup ---------- */

/* Sized by its parent's width; everything inside is in container units so the
   bezel, the corner and the island stay in proportion at any size. The island
   is drawn over the screenshot's own empty status-bar gap. */
.phone {
  --bezel: 3.2cqw;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 19rem;
  padding: 3.2%;
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(145deg, #3a3a42, #121215 40%, #1d1d22);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.12),
    0 2px 0 rgb(255 255 255 / 0.04),
    0 40px 60px -30px rgb(0 0 0 / 0.65),
    0 20px 30px -20px rgb(0 0 0 / 0.45);
}
.phone::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: calc(var(--bezel) + 2.6cqw);
  left: 50%;
  width: 27cqw;
  height: 7.8cqw;
  translate: -50% 0;
  background: #000;
  border-radius: 999px;
}
.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  object-position: top;
  border-radius: 12.5cqw;
  background: var(--gm-black);
}

/* ---------- Grassroots Mgmt. page ---------- */

.gm-page { background: var(--gm-black); color: var(--gm-text); }
.gm-page .lede { color: var(--gm-text-2); }
.gm-page .eyebrow { color: var(--gm-green); }
.gm-page main a:not(.button):not(.store) { color: var(--gm-green); }
.gm-page :focus-visible { outline-color: var(--gm-green); }

.gm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 9vw, 6rem) 0;
  background:
    radial-gradient(90% 60% at 80% 0%, rgb(43 227 138 / 0.18), transparent 60%),
    linear-gradient(180deg, var(--gm-pitch-deep) 0%, var(--gm-black) 100%);
}
.gm-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.gm-hero__icon { width: 4.5rem; height: 4.5rem; border-radius: 22%; box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); margin-bottom: 1.25rem; }
.gm-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.gm-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.6vw, 1.85rem);
  font-weight: 560;
  line-height: 1.25;
  color: var(--gm-green);
  max-width: 24ch;
  margin-bottom: 1.25rem;
}
.gm-hero__price { margin-top: 1rem; font-size: 0.95rem; color: var(--gm-text-2); }
.gm-hero__visual {
  display: flex;
  justify-content: center;
  height: clamp(22rem, 105vw, 34rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}
.gm-hero__visual .phone { width: min(18rem, 72vw); align-self: flex-start; }
@media (min-width: 56rem) {
  .gm-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .gm-hero__copy { padding-bottom: 5rem; }
  .gm-hero__visual { height: 36rem; }
  .gm-hero__visual .phone { width: 19rem; transform: rotate(-3deg); margin-top: 1.5rem; }
}

/* Features: the phone and the words alternate sides on a wide screen and
   stack, phone second, on a narrow one. */
.features { display: grid; gap: clamp(4rem, 14vw, 8rem); }
.feature { display: grid; gap: 2rem; align-items: center; }
.feature__visual { display: flex; justify-content: center; }
.feature__visual .phone { width: min(16.5rem, 70vw); --tilt: -3deg; transform: rotate(var(--tilt)); }
.feature:nth-child(even) .feature__visual .phone { --tilt: 3deg; }
.feature__visual::before {
  content: '';
  position: absolute;
  width: min(22rem, 85vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(43 227 138 / 0.16), transparent);
  z-index: -1;
}
.feature__visual { position: relative; isolation: isolate; }
.feature__num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: rgb(43 227 138 / 0.12);
  color: var(--gm-green);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.feature h3 { color: #fff; font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
.feature p { color: var(--gm-text-2); }
.feature .feature__kicker { color: var(--gm-text); font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; letter-spacing: 0.02em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--gm-text-2); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--gm-green);
  border-bottom: 2.5px solid var(--gm-green);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--gm-text); font-weight: 600; }
/* On a phone the screenshot shows its top two-thirds and fades out, so six
   features do not cost six full-height phones of scrolling. */
@media (max-width: 55.99rem) {
  .feature__visual {
    height: clamp(21rem, 102vw, 30rem);
    align-items: flex-start;
    padding-top: 1rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
}
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature:nth-child(odd) .feature__visual { order: 2; }
  .feature__copy { max-width: 32rem; }
  .feature__visual .phone { width: 17.5rem; }
}

.gm-section { padding-block: clamp(4rem, 12vw, 7.5rem); }
.gm-section--surface { background: var(--gm-sunken); }
.gm-page h2 { color: #fff; }

/* Pricing */
.price-card {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--gm-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 6vw, 2.75rem);
  box-shadow: 0 0 0 1px var(--gm-line), 0 40px 80px -40px rgb(43 227 138 / 0.25);
}
.price-card__badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  background: var(--gm-green);
  color: var(--gm-on-green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.price-card__name { text-align: center; color: var(--gm-text-2); font-weight: 600; margin-bottom: 0.25rem; }
.price-card__amount { text-align: center; margin: 0 0 1.75rem; }
.price-card__amount strong { display: block; font-family: var(--font-display); font-size: clamp(3rem, 14vw, 4.25rem); line-height: 1; color: #fff; letter-spacing: -0.03em; }
.price-card__amount span { color: var(--gm-text-2); }
.price-card .ticks { margin-bottom: 1.75rem; }
.price-card__small { font-size: 0.88rem; color: var(--gm-text-2); margin: 1.25rem 0 0; text-align: center; }

/* Story */
.story {
  max-width: 46rem;
  margin-inline: auto;
  background: linear-gradient(160deg, var(--gm-pitch) 0%, var(--gm-pitch-deep) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 6vw, 3.25rem);
}
.story h2 { margin-bottom: 1.25rem; }
.story p { color: rgb(255 255 255 / 0.86); font-size: 1.1rem; }
.story__sign { font-family: var(--font-display); font-weight: 600; color: #fff !important; margin: 1.5rem 0 0; }
.placeholder { outline: 2px dashed rgb(255 255 255 / 0.35); outline-offset: 4px; border-radius: 4px; }

/* FAQ */
.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--gm-surface); border-radius: var(--radius); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 650;
  color: #fff;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--gm-green);
  border-bottom: 2px solid var(--gm-green);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq summary:hover { background: rgb(255 255 255 / 0.03); }
.faq__body { padding: 0 1.25rem 1.25rem; color: var(--gm-text-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* Final call to action */
.gm-final { text-align: center; }
.gm-final .lede { margin-inline: auto; }
.gm-final .gm-hero__icon { margin-inline: auto; display: block; }
.gm-final .stores { justify-content: center; margin-top: 1.75rem; }
.gm-final__links { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.gm-final__links a { display: inline-block; padding-block: 0.4rem; font-weight: 600; }

/* ---------- Store badges ---------- */

/* Coming soon: our own neutral pill — Apple's and Google's badges may only
   link to a live listing. Live: the official artwork, untouched. Both are
   generated by scripts/build-site.mjs from scripts/site-config.mjs. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.store { display: inline-flex; align-items: center; text-decoration: none; }
.store--soon {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.4rem 1.1rem;
  border-radius: 0.65rem;
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
  line-height: 1.15;
}
.store--soon small { font-size: 0.72rem; color: rgb(255 255 255 / 0.75); letter-spacing: 0.02em; }
.store--soon strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.store--live img { display: block; height: 3.1rem; width: auto; }
.store--live img.store__google { height: 4.55rem; margin: -0.72rem -0.6rem; }
.stores__note { flex-basis: 100%; margin: 0.25rem 0 0; font-size: 0.9rem; color: inherit; opacity: 0.8; }

/* ---------- Long-form documents (terms, privacy, support) ---------- */

.doc { max-width: 46rem; padding-block: clamp(2.5rem, 8vw, 4.5rem); }
.doc h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.doc .lede { margin-bottom: 0.5rem; }
.doc section { margin-top: 2.25rem; }
.doc h2 { font-size: clamp(1.35rem, 4.5vw, 1.6rem); margin: 0 0 0.6rem; }
.doc h3 { font-size: 1.12rem; margin: 1.6rem 0 0.4rem; }
.doc p { margin: 0 0 0.85rem; }
.doc ul { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.doc li { margin: 0 0 0.4rem; }
.doc .updated { color: var(--ada-ink-2); font-size: 0.95rem; }
.doc .scroller { overflow-x: auto; margin: 0 0 1rem; }
.doc table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--ada-line); }
.doc th { color: var(--ada-ink-2); font-weight: 650; }
.doc code { font-size: 0.92em; }
.doc .foot { color: var(--ada-ink-2); font-size: 0.95rem; margin: 3rem 0 0; }

.hub-links { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.hub-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  background: var(--ada-card);
  border: 1px solid var(--ada-line);
  color: var(--ada-ink);
  font-weight: 650;
  text-decoration: none;
}
.hub-links a:hover { border-color: var(--ada-brand); color: var(--ada-brand); }

/* ---------- Scroll animations ---------- */

/* Only with JavaScript (which reveals them) and only where nobody has asked
   for less motion. Everyone else simply sees the content. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    translate: 0 2rem;
    transition: opacity 0.7s ease, translate 0.8s cubic-bezier(.2,.7,.2,1);
  }
  .js .reveal.is-visible { opacity: 1; translate: 0 0; }

  .js .feature__visual .phone {
    transform: rotate(calc(var(--tilt) * 2.5)) scale(0.94);
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
  }
  .js .feature.is-visible .feature__visual .phone { transform: rotate(var(--tilt)); }

  /* Parallax where the browser can drive it from the scroll position itself,
     with no script running per frame. Elsewhere the phones simply sit still. */
  @supports (animation-timeline: view()) {
    .parallax {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    @keyframes drift {
      from { translate: 0 2.5rem; }
      to { translate: 0 -2.5rem; }
    }
  }
}
