/* Prewind marketing site — shared styles. Dependency-free, no build step. */

:root {
  --bg: #f8f9fb;
  --fg: #12161c;
  --muted: #5b6572;
  --accent: #045df9;
  --accent-soft: rgba(4, 93, 249, 0.09);
  --accent-soft-strong: rgba(4, 93, 249, 0.16);
  --line: #e3e7ec;
  --glow: rgba(4, 93, 249, 0.13);
  --ring: rgba(18, 22, 28, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d12;
    --fg: #edf0f4;
    --muted: #8a95a3;
    --accent: #4d8dff;
    --accent-soft: rgba(77, 141, 255, 0.14);
    --accent-soft-strong: rgba(77, 141, 255, 0.22);
    --line: #202832;
    --glow: rgba(77, 141, 255, 0.2);
    --ring: rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible,
.app-store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--accent-soft-strong); color: var(--fg); }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header — present on every page so there is always a way home. */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 18px; width: auto; }
@media (prefers-color-scheme: dark) {
  .wordmark img { filter: invert(1); }
}
.wordmark:hover { color: var(--accent); }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-header nav a:hover { color: var(--fg); }
.site-header nav a[aria-current="page"] { color: var(--accent); }

/* Page body */
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.75rem 1.25rem 5rem;
}
main h1:first-child { margin-top: 0; }
h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
h2 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
h2:first-of-type { margin-top: 2.25rem; }
p { margin: 0 0 1rem; }
main :last-child { margin-bottom: 0; }

.meta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin: 0 0 1.75rem;
}

.callout {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.15rem;
  margin: 0 0 2.25rem;
}

dl { margin: 0; }
dl > div,
dt {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
dt:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
dt { font-weight: 650; color: var(--fg); }
dd { margin: 0.4rem 0 0; color: var(--muted); }

ul { padding-left: 1.2rem; }
ul li { margin-bottom: 0.5rem; }
ul li:last-child { margin-bottom: 0; }

/* Home hero — the logo floats directly on the page background with no
   card, panel, or fill behind it. A soft radial glow sits beneath it for
   a touch of depth; everything else stays flat and calm. */
main.home { max-width: 66rem; padding-top: 4.5rem; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
  padding-bottom: 1rem;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  left: 50%;
  width: 44rem;
  height: 30rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}

.brand-mark {
  display: block;
  margin: 0 0 1.75rem;
}
.brand-mark img {
  display: block;
  height: clamp(92px, 17vw, 138px);
  width: auto;
  max-width: 88vw;
  margin: 0 auto;
}

p.lede {
  max-width: 30rem;
  margin: 0 auto 2.25rem;
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--muted);
}

/* App Store badge. Not live yet — href is a placeholder (see the HTML
   comment beside it); the caption makes that state visible instead of
   presenting a working-looking dead link. */
.store-cta { margin: 0.25rem 0 0; }
.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px var(--ring);
}
.app-store-badge img {
  display: block;
  height: 52px;
  width: auto;
}
.store-caption {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}

/* Feature row — three short, calm highlights beneath the primary CTA. */
.features { max-width: 52rem; margin: 4.5rem auto 0; }
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  main.home { padding-top: 3.25rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
  .features { margin-top: 3.5rem; }
}

/* Footer — present on every page, same links as the header nav plus the
   copyright line. */
.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--accent); }
.site-footer .sep { color: var(--line); }

/* Language picker — sits in the footer beside Privacy/Support, styled to
   read as another quiet footer link rather than a form control. Native
   <select> chrome is left alone (no appearance:none) so it stays
   accessible and legible in every browser; color-scheme lets the browser
   pick a matching popup palette for the open dropdown in dark mode. */
.site-footer select.lang-select {
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color-scheme: light dark;
}
.site-footer select.lang-select:hover { color: var(--accent); }
.site-footer select.lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Translation notice — bottom of a localized privacy page, pointing back
   at the governing English version. Mirrors the dl/meta border-top rhythm
   already used elsewhere on the page. */
.translation-note {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.translation-note a { color: var(--muted); text-decoration: underline; }
.translation-note a:hover { color: var(--accent); }
