/* App page: the app's own look (aurora glow, brand gradient, heavy tight
   headlines) around the shared legal styles in legal.css. */

:root {
  --bar-h: 3.5rem;
  --max: 64rem;
  --violet: #7c5cff;
  --pink: #ff4d9d;
  --orange: #ffb547;
  --brand: linear-gradient(90deg, var(--violet), var(--pink), var(--orange));
  --sing: #d6246e;
  --glow: 0.16;
  --art-shadow: 0 28px 70px -34px rgb(60 30 140 / 0.45);
  scroll-padding-top: var(--bar-h);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sing: #ffd36e;
    --glow: 0.3;
    --art-shadow: 0 32px 90px -30px rgb(124 92 255 / 0.55);
  }
}

body.product { overflow-x: clip; }
.product main { padding: 0; }

/* Every band runs full width; its content keeps to --max. */
.product main > section,
.bar-in,
.foot-in {
  --pad: max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -100vw;
  top: 0.6rem;
  z-index: 30;
  padding: 0.55rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.skip:focus { left: 1rem; }

/* Header bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-id {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.app-id:hover { color: var(--text); }
.app-id img { flex: none; border-radius: 0.5rem; }
.app-id span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bar-nav { display: flex; gap: 0.15rem; flex: none; }
.bar-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.bar-nav a:hover { color: var(--text); background: var(--chip); }

@media (max-width: 40rem) {
  .wide-only { display: none; }
}


/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: 3rem 3.5rem;
}

/* The app's aurora: violet top left, pink right, orange low. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  background:
    radial-gradient(42rem 24rem at 12% 8%, rgb(124 92 255 / var(--glow)), transparent 70%),
    radial-gradient(36rem 22rem at 92% 22%, rgb(255 77 157 / calc(var(--glow) * 0.7)), transparent 70%),
    radial-gradient(40rem 20rem at 50% 100%, rgb(255 181 71 / calc(var(--glow) * 0.5)), transparent 70%);
}

.product h1 {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.h1-name { display: block; }
/* Read as "Name: what it does"; the line break replaces the colon on screen. */
.h1-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h1-line {
  display: block;
  max-width: 26ch;
  margin-top: 0.7rem;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-mid);
}

.lede {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Read like a karaoke caption once: each word lights up, then settles. */
.lede .w { animation: sing 0.55s ease-out both; }
.lede .w:nth-child(1) { animation-delay: 0.30s; }
.lede .w:nth-child(2) { animation-delay: 0.42s; }
.lede .w:nth-child(3) { animation-delay: 0.54s; }
.lede .w:nth-child(4) { animation-delay: 0.66s; }
.lede .w:nth-child(5) { animation-delay: 0.78s; }
.lede .w:nth-child(6) { animation-delay: 0.90s; }
.lede .w:nth-child(7) { animation-delay: 1.02s; }
.lede .w:nth-child(8) { animation-delay: 1.14s; }
.lede .w:nth-child(9) { animation-delay: 1.26s; }
.lede .w:nth-child(10) { animation-delay: 1.38s; }
.lede .w:nth-child(11) { animation-delay: 1.50s; }
.lede .w:nth-child(12) { animation-delay: 1.62s; }
.lede .w:nth-child(13) { animation-delay: 1.74s; }
.lede .w:nth-child(14) { animation-delay: 1.86s; }
.lede .w:nth-child(15) { animation-delay: 1.98s; }
.lede .w:nth-child(16) { animation-delay: 2.10s; }
.lede .w:nth-child(17) { animation-delay: 2.22s; }
.lede .w:nth-child(18) { animation-delay: 2.34s; }
.lede .w:nth-child(19) { animation-delay: 2.46s; }
.lede .w:nth-child(20) { animation-delay: 2.58s; }

@keyframes sing {
  0% { color: var(--text-low); }
  40% { color: var(--sing); }
  100% { color: var(--text); }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Google's badge PNG carries its own transparent padding. */
.get { margin: 1.1rem 0 0 -10px; }
.play { display: inline-block; border-radius: 10px; }
.play img { display: block; width: 166px; height: 64px; }

.art { margin: 2.25rem 0 0; }
.art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(0.9rem, 2.2vw, 1.5rem);
  box-shadow: var(--art-shadow), 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent);
}

/* Section rhythm */
.how, .screens, .features, .uses, .langs, .private, .faq, .cta { padding-block: 3rem; }

.product main > section > h2,
.private-in > h2,
.cta-in > h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* Three steps: a real sequence, so they are numbered. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin: 0;
  padding: 1.3rem 1.25rem 1.2rem 3.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.2rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}
.steps h3 { margin: 0.15rem 0 0.35rem; font-size: 1.08rem; color: var(--text); }
.steps p { margin: 0; }

/* Screenshots scroll sideways, edge to edge on phones. */
.shots {
  display: flex;
  gap: 1rem;
  margin: 0 calc(var(--pad) * -1);
  padding: 0.25rem var(--pad) 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
  list-style: none;
}
.shots li { flex: none; width: min(62vw, 15rem); margin: 0; scroll-snap-align: start; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.shots:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Features read like a spec sheet: one tiled block, not loose cards. */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--line);
}
.feature-list article { padding: 1.5rem 1.5rem 0.75rem; background: var(--surface); }
.feature-list h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  color: var(--text);
}
.feature-list h3::before {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 0.3rem;
  border-radius: 1rem;
  background: var(--brand);
}
.feature-list ul { padding-left: 1.15rem; }
.feature-list li::marker { color: var(--accent); }

.features .intro { max-width: 70ch; margin: -0.4rem 0 1.5rem; font-size: 1.05rem; }

/* Who it is for: a plain list, each line led by its audience. */
.use-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 0.9rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.use-list li { margin: 0; padding-left: 1rem; border-left: 3px solid; border-image: var(--brand) 1; }

/* Every language the speech engine knows, in columns. */
.langs > p { max-width: 70ch; }
.lang-list {
  columns: 4 9rem;
  column-gap: 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.lang-list li { margin: 0 0 0.3rem; color: var(--text-mid); break-inside: avoid; }

/* Questions and answers: short, direct, always visible. */
.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 0 2.5rem;
}
.qa { padding: 1.1rem 0 0.4rem; border-top: 1px solid var(--line); }
.qa h3 { margin: 0 0 0.45rem; font-size: 1.08rem; color: var(--text); }
.qa p { margin: 0 0 0.6rem; }

/* Closing call to action */
.cta-in {
  padding: clamp(1.6rem, 5vw, 2.75rem);
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(28rem 14rem at 15% 0%, rgb(124 92 255 / calc(var(--glow) * 0.7)), transparent 70%),
    radial-gradient(28rem 14rem at 90% 100%, rgb(255 77 157 / calc(var(--glow) * 0.5)), transparent 70%),
    var(--surface);
}
.product main .cta-in > h2 { margin-bottom: 0.5rem; }
.cta-in > p { margin: 0 auto; max-width: 46ch; }
.cta-in .get { max-width: none; margin: 1.1rem 0 0; display: flex; justify-content: center; }

/* Apps hub */
.hub-intro { max-width: 60ch; margin: 1rem 0 0; font-size: 1.15rem; color: var(--text-mid); }
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0 0 3rem;
  list-style: none;
}
.app-cards > li {
  margin: 0;
  padding: 1.25rem 1.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}
.app-card { display: flex; gap: 1rem; align-items: center; color: var(--text); text-decoration: none; }
.app-card:hover { color: var(--text); }
.app-card img { flex: none; border-radius: 1rem; }
.app-card-name { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.app-card-line { display: block; margin-top: 0.2rem; color: var(--text-mid); font-size: 0.95rem; line-height: 1.4; }
.app-cards .get { margin: 0.75rem 0 0 -10px; }

/* Privacy band */
.private-in {
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    radial-gradient(30rem 14rem at 100% 0%, rgb(124 92 255 / calc(var(--glow) * 0.6)), transparent 70%),
    var(--surface);
}
.private-in ul { display: grid; gap: 0.5rem; padding-left: 1.15rem; }
.private-in li::marker { color: var(--accent); }
.private-in > p:last-child { margin-bottom: 0; font-weight: 600; }

/* Legal documents */
.legal { padding-block: 2rem 1rem; }
.legal-head p { margin: 0 0 1rem; color: var(--text-mid); }
.legal nav.tabs {
  top: var(--bar-h);
  margin: 0 calc(var(--pad) * -1);
  padding-inline: var(--pad);
}
/* An address ending in #privacy or #terms lands below the sticky tabs. */
.legal section.panel { margin-top: 1.25rem; scroll-margin-top: 3.75rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { padding-block: 2rem 3rem; color: var(--text-low); font-size: 0.9rem; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}
.foot-links li { margin: 0; }

/* Privacy promise in the hero, only on pages whose app.json sets "hero_privacy". */
.hero-private {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  padding: 1rem 1.2rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 1rem;
  background:
    radial-gradient(24rem 10rem at 0% 0%, rgb(124 92 255 / calc(var(--glow) * 0.8)), transparent 70%),
    var(--surface);
}
.hero-private h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
/* A check mark in a brand disc; the empty alt text keeps screen readers from reading it. */
.hero-private h2::before {
  content: "✓";
  content: "✓" / "";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
}
.hero-private p { margin: 0; color: var(--text); }
.hero-private p + p { margin-top: 0.4rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .lede .w { animation: none; }
}

@media print {
  .bar, .skip, .hero, .how, .screens, .features, .uses, .langs, .private, .faq, .cta, .foot-links { display: none !important; }
  .legal nav.tabs { display: none; }
}
