:root {
  color-scheme: light;
  --bg: #FFFDF7;
  --surface: #ffffff;
  --surface-alt: #F7F3E8;
  --text: #1C1A14;
  --muted: #5C574A;
  --subtle: #7A7566;
  --primary: #FFC700;
  --primary-hover: #E6B200;
  --ink: #1C1A14;
  --gold: #FFC700;
  --gold-soft: #FFF3C2;
  --gold-wash: #FFF9E0;
  --border: #E8E0C8;
  --focus: #1C1A14;
  --card-shadow: 0 1px 2px rgba(28, 26, 20, 0.06), 0 1px 3px rgba(28, 26, 20, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--primary-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img { width: 38px; height: 38px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); }
.nav-link-strong { color: var(--ink); font-weight: 700; }

.page-main { padding: 44px 0 56px; }
.hero {
  max-width: 920px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--text); }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

/* The hero's h1 is the app's own name, not a slogan — it has to read as the
   product identity because Google's verifier matches the consent-screen app
   name against this heading. Sized down from the display h1 so the CSPC line
   above it still leads. */
.app-name { font-size: clamp(28px, 4vw, 40px); }

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.access-note {
  max-width: 720px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--gold);
  color: var(--muted);
  font-size: 14px;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button {
  min-height: 44px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--ink); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.button.secondary:hover { background: var(--gold-wash); border-color: var(--gold); color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.card, .about, .policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.card { padding: 20px; }
.card h2, .about h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
.card p, .about p { margin: 0; color: var(--muted); }
.about { max-width: 920px; margin-top: 16px; padding: 22px; }
.about p + p, .about h2 + p { margin-top: 12px; }
.about h2 { margin-top: 22px; }
.about h2:first-child { margin-top: 0; }
.link-list { margin: 12px 0; padding-left: 22px; }
.link-list li { margin: 7px 0; color: var(--muted); }

.policy-main { max-width: 840px; padding: 32px 0 52px; }
.policy-card { padding: clamp(22px, 4vw, 36px); }
.policy-card h1 { font-size: clamp(30px, 4vw, 38px); }
.policy-card h2 { margin: 28px 0 8px; font-size: 20px; line-height: 1.35; }
.policy-card p { margin: 10px 0; }
.policy-card ul { padding-left: 22px; }
.policy-card li { margin: 7px 0; }

/* Scopes table. Google's data-handling reviewers look for the exact permission
   names, so they get their own block rather than being buried in prose. */
.data-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table caption {
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 13px;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.data-table th { background: var(--surface-alt); font-size: 13px; }
.data-table code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-alt);
  font-size: 12px;
  word-break: break-all;
}
.updated {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.callout { padding: 14px 16px; background: var(--gold-wash); border-left: 4px solid var(--gold); border-radius: 8px; }

.site-footer {
  padding: 18px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 13px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 720px) {
  .page-main { padding: 24px 0 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; }
  .policy-main { padding: 20px 0 36px; }
  /* Horizontal scroll on a two-column table is worse than stacking it, and
     stacking keeps every cell inside the viewport on a phone. */
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { display: block; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; }
  .data-table td { display: block; border: 0; border-top: 1px solid var(--border); }
  .data-table tr > td:first-child { border-top: 0; background: var(--surface-alt); font-weight: 700; }
}

@media (max-width: 720px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; }
  .nav-links { gap: 4px 16px; }
}

@media (max-width: 480px) {
  .wrap { width: min(calc(100% - 28px), 1160px); }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .footer-inner { flex-direction: column; }
}

/* ── Home page ───────────────────────────────────────────────────────────────
   Presentation only: the words and links on the page are what Google's consent-screen
   review reads, so the layout can change but none of that content may be dropped. */

.nav-link-strong {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--primary);
  text-decoration: none;
}
.nav-link-strong:hover { background: var(--primary-hover); text-decoration: none; }

.home-hero {
  padding: clamp(36px, 6vw, 72px) 0;
  background: var(--gold-soft);
  border-bottom: 1px solid var(--gold);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.home-hero h1 {
  max-width: none;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.home-hero .app-name { font-size: inherit; }
.home-hero .lead { max-width: 58ch; margin-top: 20px; }
.home-hero .access-note { max-width: 58ch; }

.home-shot { margin: 0; min-width: 0; }
.home-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 22px 44px -24px rgba(28, 26, 20, 0.5), var(--card-shadow);
}
.home-shot figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.home-body { display: grid; gap: 32px; padding: 48px 0 60px; }

.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--ink);
}
.feature h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.home-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.info-card:first-child { background: var(--gold-wash); border-color: var(--gold); }
.info-card h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.info-card p { margin: 0; color: var(--muted); }
.info-card p + p { margin-top: 12px; }

.home-more h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; }
.link-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.link-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.link-tile strong { font-size: 17px; }
.link-tile strong::after { content: " \2192"; }
.link-tile span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.link-tile:hover { background: var(--gold-wash); border-color: var(--gold); }
.contact { max-width: 72ch; margin: 18px 0 0; color: var(--muted); }

@media (max-width: 960px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .home-features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .home-info, .link-tiles { grid-template-columns: minmax(0, 1fr); }
  .home-body { padding: 32px 0 44px; }
  .nav-link-strong { padding: 6px 14px; }
}

/* ── Privacy Policy / Terms of Service ───────────────────────────────────────
   Same language as the home page: a gold title band, then a card per section with the gold top
   edge, and an "On this page" list beside them. The text of the two documents is unchanged. */

.doc-hero {
  padding: clamp(32px, 5vw, 60px) 0;
  background: var(--gold-soft);
  border-bottom: 1px solid var(--gold);
}
.doc-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.doc-hero .updated { margin: 16px 0 0; border: 1px solid var(--gold); background: var(--surface); }
.doc-intro { max-width: 74ch; margin-top: 20px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.doc-intro p { margin: 0 0 12px; }
.doc-intro p:last-child { margin-bottom: 0; }

.doc-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 36px 0 64px;
}

.doc-toc {
  position: sticky;
  top: 88px;
  padding: 18px 18px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.toc-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-toc ol { margin: 0; padding: 0; list-style: none; }
.doc-toc li a {
  display: block;
  margin: 0 -8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.doc-toc li a:hover { background: var(--gold-wash); color: var(--ink); }

.doc-sections { display: grid; gap: 16px; min-width: 0; }
.doc-section {
  scroll-margin-top: 92px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.doc-section:first-child { background: var(--gold-wash); border-color: var(--gold); }
.doc-section h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.doc-section p { margin: 10px 0; color: var(--muted); }
.doc-section ul { margin: 10px 0; padding-left: 22px; }
.doc-section li { margin: 8px 0; color: var(--muted); }
.doc-section strong { color: var(--text); }
.doc-section > :last-child { margin-bottom: 0; }
.doc-section .callout { background: var(--gold-soft); }
.doc-section .callout p { margin: 0; color: var(--text); }

@media (max-width: 960px) {
  .doc-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 24px; }
  .doc-toc { position: static; }
  .doc-toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-toc li a {
    margin: 0;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-alt);
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .doc-section { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
