/* Google-style product page: clean surfaces, Google Sans, pill buttons, tonal chips. Light and dark. */

:root {
  --bg: #ffffff;
  --surface: #f0f4f9;
  --surface-2: #e9eef6;
  --text: #1f1f1f;
  --text-2: #444746;
  --text-3: #5e5e5e;
  --outline: #c4c7c5;
  --primary: #0b57d0;
  --on-primary: #ffffff;
  --primary-hover: #0a4fbd;
  --tonal: #d3e3fd;
  --on-tonal: #041e49;
  --link: #0b57d0;
  --hero-wash: radial-gradient(60% 70% at 50% 0%, #e3ecff 0%, rgba(227, 236, 255, 0) 70%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131314;
    --surface: #1e1f20;
    --surface-2: #282a2c;
    --text: #e3e3e3;
    --text-2: #c4c7c5;
    --text-3: #a8abaa;
    --outline: #444746;
    --primary: #a8c7fa;
    --on-primary: #062e6f;
    --primary-hover: #bcd4fb;
    --tonal: #004a77;
    --on-tonal: #c2e7ff;
    --link: #a8c7fa;
    --hero-wash: radial-gradient(60% 70% at 50% 0%, #0a1f4d 0%, rgba(10, 31, 77, 0) 70%);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 4px 8px 3px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131314;
  --surface: #1e1f20;
  --surface-2: #282a2c;
  --text: #e3e3e3;
  --text-2: #c4c7c5;
  --text-3: #a8abaa;
  --outline: #444746;
  --primary: #a8c7fa;
  --on-primary: #062e6f;
  --primary-hover: #bcd4fb;
  --tonal: #004a77;
  --on-tonal: #c2e7ff;
  --link: #a8c7fa;
  --hero-wash: radial-gradient(60% 70% at 50% 0%, #0a1f4d 0%, rgba(10, 31, 77, 0) 70%);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 4px 8px 3px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

/* Each icon variant shows only in its own theme. */
.icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-light { display: none; }
  :root:not([data-theme="light"]) .icon-dark { display: block; }
}
:root[data-theme="dark"] .icon-light { display: none; }
:root[data-theme="dark"] .icon-dark { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hero-wash) top center / 100% 900px no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.5 "Google Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--link); }

/* Top app bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
}
.links { display: flex; gap: 4px; margin-right: 8px; }
.links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.links a:hover { background: var(--surface); color: var(--text); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.button svg { width: 22px; height: 22px; fill: currentColor; }
.button.filled { background: var(--primary); color: var(--on-primary); }
.button.filled:hover { background: var(--primary-hover); box-shadow: var(--shadow); }
.button.tonal { background: var(--tonal); color: var(--on-tonal); }
.button.tonal:hover { box-shadow: var(--shadow); }
.button.small { height: 40px; padding: 0 20px; font-size: 15px; }
.button.large { height: 56px; padding: 0 32px 0 26px; font-size: 18px; }
.button:focus-visible, .theme-toggle:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 88px;
  text-align: center;
}
.hero-icon img { width: 132px; height: 132px; margin: 0 auto; }
h1 {
  max-width: 820px;
  margin: 28px auto 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.lede { max-width: 620px; margin: 0 auto; color: var(--text-2); font-size: clamp(17px, 2vw, 20px); }
.cta { margin-top: 40px; }
.fine { margin: 14px 0 0; color: var(--text-3); font-size: 14px; }
.other { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.other a { font-weight: 500; text-decoration: none; }
.other a:hover { text-decoration: underline; }
.version { min-height: 1.5em; margin: 20px 0 0; color: var(--text-3); font-size: 13px; }

/* Sections */
section h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sub { max-width: 640px; margin: 0 auto; text-align: center; color: var(--text-2); font-size: 17px; }

.features { padding: 56px 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.grid article { padding: 28px; border-radius: 28px; background: var(--surface); }
.chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--tonal);
  color: var(--on-tonal);
}
.chip svg { width: 24px; height: 24px; fill: currentColor; }
.grid h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.grid p { margin: 0; color: var(--text-2); }

.help { padding: 56px 0 96px; }
.faq { max-width: 760px; margin: 40px auto 0; border-top: 1px solid var(--outline); }
.faq details { border-bottom: 1px solid var(--outline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq ol, .faq ul { margin: 0 0 24px; padding-left: 24px; color: var(--text-2); }
.faq li { margin: 8px 0; }
.faq b { color: var(--text); font-weight: 500; }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px max(24px, calc((100vw - 1072px) / 2));
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Small pages: "not found", "coming soon". */
.notice main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}
.notice img { width: 96px; height: 96px; }
.notice h1 { font-size: clamp(28px, 5vw, 40px); }
.notice p { max-width: 480px; color: var(--text-2); }
.notice .button { height: 48px; padding: 0 24px; margin-top: 8px; }

@media (max-width: 640px) {
  .bar { padding: 0 16px; }
  .links { display: none; }
  main { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .button.large { width: 100%; }
  .grid article { padding: 24px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .faq summary::after { transition: none; }
}
