/* Public pages: download, Chromebook guide, privacy, sign-in, the fallback home.
   The design system of www.veritenza.com: ivory and paper, ink, teal, brass;
   Cormorant Garamond for headings, Inter for text. Fonts are served from
   /static/fonts (no outside requests). Text colours are kept at 4.5:1 or more:
   --muted and --brass-ink are a step darker than the website's for that. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-500.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }

:root {
  --ivory: #F6F4EF; --paper: #FBFAF7; --ink: #14211F; --ink-2: #3D4A47; --muted: #5F6A67;
  --teal: #0B5D53; --teal-2: #0E7466; --teal-soft: rgba(11, 93, 83, 0.08); --night: #0D1D1A;
  --brass: #A8875A; --brass-ink: #84663A; --line: rgba(20, 33, 31, 0.12); --line-dark: rgba(246, 244, 239, 0.14);
  --bad: #A23B2A;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px; --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-2); }
::selection { background: var(--teal); color: var(--ivory); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.error { color: var(--bad); }
code { font: 0.86em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(20, 33, 31, 0.05); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-ink);
           display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.lede, .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; }

/* Header, as on www.veritenza.com */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 239, 0.9); border-bottom: 1px solid var(--line);
             -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { width: 30px; height: 30px; }
.logo span { font: 500 28px/1 var(--serif); letter-spacing: 0.01em; }
.site-head nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.site-head nav a { color: var(--ink-2); }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }
.site-head nav a[aria-current] { box-shadow: 0 1px 0 var(--brass); }
.site-head nav .btn { padding: 11px 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
       font: 500 15px/1.2 var(--sans); letter-spacing: 0.01em; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
       transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary, .site-head nav .btn.primary { background: var(--teal); color: var(--ivory); }
.btn.primary:hover { background: var(--teal-2); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn.google:hover { background: #f8f9fa; color: #1f1f1f; }
.btn.disabled { background: transparent; color: var(--muted); border-color: var(--line); border-style: dashed; cursor: not-allowed; }
.btn.disabled:hover { transform: none; }
.btn.small { padding: 7px 14px; font-size: 13px; }

.site-main { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 0 0 120px; }

/* Footer, as on www.veritenza.com */
.site-foot { background: var(--night); color: rgba(246, 244, 239, 0.72); padding: 56px 0 44px; font-size: 14px; }
.site-foot a { color: rgba(246, 244, 239, 0.72); }
.site-foot a:hover { color: var(--ivory); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot > * { min-width: 0; }
.foot .logo, .foot .logo:hover { color: var(--ivory); }
.foot p { margin: 16px 0 0; max-width: 300px; }
.foot h2 { margin: 0 0 14px; font: 600 12px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.foot nav a { display: block; padding: 4px 0; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.site-foot :focus-visible { outline-color: var(--ivory); }

/* Page heroes */
.dl-hero { padding: 88px 0 56px; }
.dl-hero h1, .prose h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; margin: 0 0 22px; }
.dl-hero .sub { margin: 0; }

/* Fallback home (shown at / when WEBSITE_URL is not set) */
.hero { padding: 96px 0 80px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 86px); line-height: 0.98; margin: 0 0 28px; max-width: 900px; }
.hero .sub { margin: 0 0 40px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 112px; }
.features article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.features h2 { font-size: 28px; margin: 22px 0 10px; }
.features p { color: var(--ink-2); margin: 0; }
.f-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.how { margin: 0 0 112px; }
.how > h2, .trust h2 { font-size: clamp(36px, 4.4vw, 56px); margin: 0 0 40px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.how li { display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 0 0; }
.how li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.how li > span { font: italic 500 24px/1 var(--serif); color: var(--brass-ink); }
.how h3 { margin: 0 0 8px; font-size: 28px; }
.how p { margin: 0; color: var(--ink-2); }
.trust { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; background: var(--night); color: var(--ivory); border-radius: 20px; padding: 64px; }
.trust p { color: rgba(246, 244, 239, 0.78); }
.trust a { color: #7CC8B9; }
.trust ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.trust li { padding: 18px 0; border-bottom: 1px solid var(--line-dark); display: flex; gap: 14px; align-items: baseline; }
.trust li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--brass); transform: translateY(-2px); }

/* Download */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl-grid > * { min-width: 0; }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; background: var(--paper);
           border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
           transition: border-color .2s ease, box-shadow .2s ease; }
.dl-card:hover { border-color: var(--teal); }
.dl-card h2 { font-size: 26px; line-height: 1.15; margin: 4px 0 0; }
.dl-card .muted { margin: 0 0 12px; font-size: 14px; flex: 1; }
.dl-card .btn { margin-top: auto; }
.dl-card .fine { margin: 2px 0 0; min-height: 2.9em; overflow-wrap: anywhere; }
.dl-os { color: var(--teal); }
.dl-os svg { width: 30px; height: 30px; fill: currentColor; display: block; }
.dl-flag { display: inline-block; visibility: hidden; align-self: flex-start; font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory); background: var(--teal); padding: 6px 10px; border-radius: 999px; }
.dl-card.recommended { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.dl-card.recommended .dl-flag { visibility: visible; }
.dl-grid:not(.has-pick) .dl-flag { display: none; }
.dl-card:not(.recommended) .btn.primary { background: transparent; color: var(--ink); border-color: var(--line); }
.dl-card:not(.recommended) .btn.primary:hover { border-color: var(--ink); }
.dl-check { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 56px; }
.dl-hero + .steps-grid { margin-top: 0; }
.steps-grid + .steps-grid { margin-top: 20px; }
.steps-grid > * { min-width: 0; }
.steps-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.steps-grid h2 { font-size: 30px; line-height: 1.15; margin: 0 0 16px; }
.steps-grid ol { margin: 0; padding-left: 28px; color: var(--ink-2); }
.steps-grid li { margin: 10px 0; padding-left: 4px; }
.steps-grid li::marker { font: italic 500 19px var(--serif); color: var(--brass-ink); }
.steps-grid li b { color: var(--ink); font-weight: 600; }
.steps-grid .eyebrow { margin-bottom: 14px; }
.steps-grid .muted { margin-top: 0; }
.steps-grid .fine { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.dl-note { color: var(--muted); font-size: 14px; margin-top: 32px; max-width: 760px; }
.dl-note a, .fine a { border-bottom: 1px solid rgba(11, 93, 83, 0.3); }

/* Chromebook guide (/download/chromebook) */
.copy-field { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; margin: 10px 0; }
.copy-field span { font-size: 13px; color: var(--muted); }
.copy-field code { overflow-wrap: anywhere; padding: 6px 8px; }

/* Privacy and simple pages */
.prose { max-width: 760px; padding-top: 88px; }
.prose h2 { font-size: 32px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 8px 0; }
.prose ul ul { margin-top: 8px; }
.prose b { color: var(--ink); font-weight: 600; }
.prose .hint { color: var(--muted); font-size: 14px; }
.prose a { border-bottom: 1px solid rgba(11, 93, 83, 0.3); }
.centered { text-align: center; padding: 96px 0 40px; max-width: 580px; margin: 0 auto; }
.centered h1 { font-size: clamp(40px, 5vw, 56px); margin: 0 0 16px; }
.centered .sub { margin: 0 auto 28px; }
.centered .eyebrow { justify-content: center; }
.login-icon { margin: 0 auto 28px; display: block; }
.dev-login { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dev-login input { height: 46px; padding: 0 18px; width: 300px; max-width: 100%; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.dev-login input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.big-check, .big-x { width: 72px; height: 72px; margin: 0 auto 24px; }
.big-check circle { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.5; }
.big-check path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.big-x circle { fill: rgba(162, 59, 42, 0.07); stroke: var(--bad); stroke-width: 1.5; }
.big-x path { fill: none; stroke: var(--bad); stroke-width: 3; stroke-linecap: round; }

@media (max-width: 1020px) {
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .features, .how ol { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .trust { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body.site { font-size: 15px; }
  .wrap, .site-main { width: calc(100% - 32px); }
  .menu-toggle { display: block; }
  .site-head nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
                   padding: 8px 16px 20px; background: var(--ivory); border-bottom: 1px solid var(--line); }
  .site-head nav.open { display: flex; }
  .site-head nav a { padding: 12px 0; width: 100%; }
  .site-head nav a[aria-current] { box-shadow: none; color: var(--teal); }
  .site-head nav .btn { margin-top: 8px; width: auto; padding: 11px 20px; }
  .dl-hero, .prose { padding-top: 56px; }
  .dl-hero { padding-bottom: 40px; }
  .hero { padding: 56px 0; }
  .dl-grid, .steps-grid { grid-template-columns: 1fr; }
  .dl-card:not(.recommended) .dl-flag { display: none; }
  .dl-card .fine { min-height: 0; }
  .steps-grid article, .features article { padding: 26px 22px; }
  .trust { padding: 28px 22px; }
  .foot { grid-template-columns: 1fr; }
  .copy-field { grid-template-columns: 1fr auto; }
  .copy-field span { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:hover { transform: none; } }
