/* WinType landing and privacy pages (WinType Plan 4 Task 5, laid out as WinHours' page: clean, one idea a
   section, nothing that moves by itself). Plain CSS, no build step. Light and dark follow the system. The only
   transitions answer a hover, a press or the page scrolling. The /wintype/* CSP allows no inline style, so every
   size is a class here. The accent is the owner's #FC6C85; text in the accent uses darker or lighter cuts of it
   that pass contrast (the app's own accent-text). Fonts are the app's own: Inter and JetBrains Mono. */

@font-face { font-family: "Inter WT Display"; src: url(fonts/Inter-Display-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter WT"; src: url(fonts/Inter-Text-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter WT"; src: url(fonts/Inter-Text-600.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono WT"; src: url(fonts/JetBrainsMono-600.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #fbf6f7;
  --paper: #ffffff;
  --ink: #1c1c1e;
  --muted: #5c5c63;
  --faint: #6a6a71;
  --rule: #ece3e5;
  --accent: #c8355a;
  --accent-hover: #b02c4f;
  --accent-ink: #ffffff;
  --accent-soft: #ffedf0;
  --mark: #fc6c85;
  --key: #ffffff;
  --key-edge: #d9cdd0;
  --focus: #c8355a;
  --shadow: 0 1px 2px rgb(28 28 30 / 0.05), 0 18px 44px rgb(60 20 32 / 0.10);
  --sec-y: clamp(48px, 7.5svh, 84px);
  --hero-top: clamp(28px, 5svh, 64px);
  --hero-bottom: clamp(36px, 6svh, 76px);
  --display: "Inter WT Display", "Segoe UI", system-ui, sans-serif;
  --body: "Inter WT", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono WT", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #16181a;
    --paper: #1f2224;
    --ink: #f2f2f3;
    --muted: #a9adb2;
    --faint: #8f949a;
    --rule: #2b2f32;
    --accent: #fc6c85;
    --accent-hover: #ff8499;
    --accent-ink: #2a0f16;
    --accent-soft: #3a2228;
    --key: #2c3034;
    --key-edge: #1a1c1f;
    --focus: #ff94a8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.45), 0 18px 44px rgb(0 0 0 / 0.40);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 86px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; border-radius: 8px; background: var(--paper); color: var(--ink); z-index: 20; }
.skip:focus { top: 12px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 599px) { .wrap { padding-inline: 16px; } }
.center-text { text-align: center; }

/* ---- the top bar ---- */
/* Part of the page at the top, and a floating bar once the page scrolls (as on WinHours' page). app.js sets
   data-floating from the sentinel; the bar eases into place, without movement under reduced motion. */
body { padding-top: 64px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; pointer-events: none; }
.top-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  pointer-events: auto; border: 1px solid transparent; border-radius: 0; background-color: transparent;
  transition-property: max-width, padding, transform, border-radius, background-color, border-color, box-shadow, backdrop-filter;
  transition-duration: 250ms; transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
.top[data-floating] .top-row {
  max-width: min(860px, calc(100% - 24px)); padding-inline: 18px 10px; border-radius: 16px; transform: translateY(10px);
  background-color: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-color: var(--rule); box-shadow: 0 12px 32px -20px rgb(0 0 0 / 0.35);
}
@media (max-width: 599px) { .top[data-floating] .top-row { max-width: calc(100% - 16px); padding-inline: 14px 8px; } }
@media (prefers-reduced-motion: reduce) {
  .top-row { transition-property: background-color, border-color, box-shadow; transition-duration: 150ms; }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px var(--display); letter-spacing: -0.01em; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; color: var(--mark); flex: none; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-link { color: var(--muted); text-decoration: none; font-size: 15px; padding-block: 10px; }
.top-link:hover { color: var(--ink); }
@media (max-width: 699px) { .top-link { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: 600 16px var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
/* A computer gets the file; a phone gets the link to send to its PC (app.js sets data-os). */
.share { display: none; }
:root[data-os="mobile"] .dl { display: none; }
:root[data-os="mobile"] .share { display: inline-flex; }
:root[data-os="mobile"] .top-get { display: none; }

/* ---- the hero ---- */
.hero { padding-block: var(--hero-top) var(--hero-bottom); display: grid; gap: 20px; }
.eyebrow { font: 600 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(40px, min(5.6vw, 8.2svh), 72px); line-height: 1.04; font-weight: 700; }
/* Two lines on a computer, the second one the promise; a phone wraps them as it must. */
.hero h1 .line { display: block; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.fine { font-size: 14px; color: var(--faint); }
.fine a { color: var(--muted); }
.dl-status:empty { display: none; }
@media (max-width: 599px) {
  .hero { padding-block: 32px 48px; gap: 18px; }
  .lede { font-size: 17px; }
  .cta .btn { width: 100%; }
}

/* Three made-up snippets: what you type, and what it becomes. Still: nothing types itself. */
.codes { margin-top: 26px; display: grid; gap: 14px; }
.code-list { list-style: none; padding: 8px 0; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.code-list li { display: grid; grid-template-columns: 74px 92px 28px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 14px 22px; }
.code-list li + li { border-top: 1px solid var(--rule); }
.you { font-size: 13px; color: var(--faint); }
.code { display: inline-block; justify-self: start; padding: 4px 9px 5px; border-radius: 7px; background: var(--key); border: 1px solid var(--key-edge);
  box-shadow: 0 2px 0 var(--key-edge); font: 600 15px/1.2 var(--mono); color: var(--ink); }
.code.small { padding: 1px 6px 2px; font-size: 13px; box-shadow: 0 1px 0 var(--key-edge); }
.arrow { color: var(--accent); font-size: 18px; text-align: center; }
.becomes { font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .code-list li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "you code" "becomes becomes"; gap: 8px 12px; padding: 14px 16px; }
  .you { grid-area: you; }
  .code-list .code { grid-area: code; }
  .arrow { display: none; }
  .becomes { grid-area: becomes; font-size: 16px; }
}

/* ---- the bands ---- */
.band { padding-block: var(--sec-y); border-top: 1px solid var(--rule); }
.band h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; font-weight: 700; }
.band h3 { font: 600 17px/1.4 var(--body); margin-bottom: 4px; }
@media (max-width: 599px) { .band { padding-block: 52px; } }

.center { display: grid; justify-items: center; text-align: center; gap: 18px; }
.sub { font-size: 17px; color: var(--muted); max-width: 58ch; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); }
/* The popup whole, never wider than it is drawn (760 by 480) or taller than a laptop screen leaves. */
.popup-shot { margin-top: 12px; width: 100%; max-width: min(760px, calc((100svh - 300px) * 760 / 480)); min-width: min(100%, 520px); }
.popup-shot img { width: 100%; }

/* A feature row: its facts beside the window, the window as large as the row allows so its words can be read. */
.wrap.split { max-width: 1240px; }
.split { display: grid; grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr); }
.split.flip .facts { order: 2; }
.facts { display: grid; gap: 26px; max-width: 420px; }
.fact p { color: var(--muted); }
/* A window whole (1240 by 820), never taller than a laptop screen leaves under the bar. */
.window-shot { width: 100%; max-width: calc((100svh - 140px) * 1240 / 820); justify-self: center; }
.window-shot img { width: 100%; }
@media (max-width: 899px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .facts { order: 0; }
  .window-shot { max-width: 100%; }
}
@media (max-width: 599px) { .sub { font-size: 16px; } .shot img { border-radius: 9px; } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.trio .fact { padding: 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); }
.trio p { font-size: 15px; }
.more { margin-top: 32px; }
.more a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 859px) { .trio { grid-template-columns: 1fr; gap: 16px; } }

.big-mark { width: 56px; height: 56px; color: var(--mark); }
.center-cta { justify-content: center; }
@media (max-width: 599px) { .center-cta { width: 100%; } }

/* ---- the footer ---- */
.foot { border-top: 1px solid var(--rule); padding-block: 24px 36px; color: var(--faint); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot a { color: var(--muted); text-underline-offset: 3px; }
.foot-row a:not(.slint) { display: inline-flex; align-items: center; min-height: 44px; }
/* Slint's royalty-free licence asks for its badge where the app is offered. */
.slint { display: inline-flex; min-height: 44px; align-items: center; }
.slint img { width: 106px; height: 48px; }

/* ---- the privacy page ---- */
.doc { padding-block: 48px 80px; }
.doc-wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.04; font-weight: 700; }
.doc .summary { font-size: 19px; color: var(--muted); margin-top: 14px; }
.doc h2 { font-size: 25px; line-height: 1.2; font-weight: 700; margin-top: 44px; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin-top: 12px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc code { font: 600 14px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.doc .updated { margin-top: 40px; font-size: 14px; color: var(--faint); }
@media (max-width: 599px) { .doc { padding-block: 32px 56px; } }
