/* Polar Static site. Palette and type follow docs/Polar_Static_Brand_Concept_RU.pdf §05:
   near-black void, slate, ice and iridescence used sparingly; a strict grotesque whose
   wide uppercase is reserved for the name. The app itself uses SF Pro; the owner chose
   Archivo for the site (2026-10-26). */

/* Archivo (SIL OFL 1.1, fonts/OFL.txt), served from this site so no visitor data goes to Google. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --void: #07090c;
  --slate: #232c35;
  --slate-line: #1a2128;
  --ice: #bcd6e2;
  --iris: #c4b8d6;
  --bone: #eeefea;
  --mist: #8a96a1;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 66ch;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--ice) 45%, transparent); text-underline-offset: 0.2em; }
a:hover { color: var(--ice); }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -40px;
  background: var(--bone); color: var(--void); padding: 6px 10px; z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- Wordmark ---------- */

.wordmark {
  font-variation-settings: "wdth" 125;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.site-header--solid { position: static; border-bottom: 1px solid var(--slate-line); }

.site-header .home {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-size: 0.95rem;
}
.site-header .home img { width: 30px; height: 30px; border-radius: 8px; }

.site-nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--mist); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; touch-action: pan-y; cursor: crosshair;
}

.hero::before {
  /* Volumetric light behind the matter, so the void reads as depth, not flat black. */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(42% 46% at 62% 44%, color-mix(in srgb, #2b5f86 34%, transparent), transparent 70%),
    radial-gradient(30% 32% at 70% 60%, color-mix(in srgb, var(--iris) 9%, transparent), transparent 70%);
}

.hero-copy {
  padding: 0 var(--gutter) clamp(40px, 9vh, 96px);
  max-width: 1400px;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }

.hero h1 {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-size: clamp(3.2rem, 13.5vw, 13rem);
  color: var(--bone);
  text-shadow: 0 0 60px rgba(7, 9, 12, 0.6);
}

.hero .lede {
  margin: 0 0 32px;
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--bone);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button svg { width: 18px; height: 18px; flex: none; }

.button--primary { background: var(--bone); color: var(--void); }
.button--primary:hover { background: var(--ice); color: var(--void); }
/* Until the App Store link exists (launch 2026-10-27): the same pill, not a link. */
.button--soon, .button--soon:hover { background: var(--bone); cursor: default; }

.button--ghost { border-color: color-mix(in srgb, var(--ice) 35%, transparent); color: var(--bone); background: rgba(7, 9, 12, 0.35); }
.button--ghost:hover { border-color: var(--ice); color: var(--ice); }
.button--ghost[aria-pressed="true"] { border-color: var(--ice); color: var(--ice); }

.listen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); transition: background-color 160ms ease, box-shadow 160ms ease; }
[aria-pressed="true"] .listen-dot { background: var(--ice); box-shadow: 0 0 10px var(--ice); }

.hero .fineprint { margin: 14px 0 0; font-size: 0.85rem; color: var(--mist); min-height: 1.4em; }

/* ---------- Sections ---------- */

main { display: block; }

.section {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  max-width: 1400px; margin: 0 auto;
}

.section-head { max-width: 30ch; margin-bottom: clamp(40px, 7vh, 72px); }
.section-head h2 { margin: 0 0 16px; }
.section-head p { margin: 0; color: var(--mist); max-width: 46ch; }

h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  font-variation-settings: "wdth" 112;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem; font-weight: 600;
  font-variation-settings: "wdth" 108;
  line-height: 1.2; margin: 0 0 8px;
}

/* Modes: term on the left, description on the right, like the brand book. */
.modes { margin: 0; border-top: 1px solid var(--slate); }
.modes > div {
  display: grid; grid-template-columns: minmax(140px, 1fr) 2.2fr; gap: 12px 40px;
  padding: 28px 0; border-bottom: 1px solid var(--slate);
}
.modes dt { font-size: 1.35rem; font-weight: 600; font-variation-settings: "wdth" 108; color: var(--ice); }
.modes dd { margin: 0; max-width: 52ch; font-size: 1.15rem; color: var(--bone); }

/* Families: large real renders, alternating sides. */
.families { display: grid; gap: clamp(56px, 10vh, 120px); }
.family { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.family:nth-child(even) { grid-template-columns: 1fr 1.7fr; }
.family:nth-child(even) figure { order: 2; }
.family figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--slate-line); aspect-ratio: 1400 / 660; }
.family figure img { width: 100%; height: 100%; object-fit: cover; }
.family h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-variation-settings: "wdth" 118; font-weight: 500; }
.family p { margin: 0 0 14px; color: var(--mist); max-width: 36ch; }
.scene-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }
.scene-list li { color: var(--bone); }
.scene-list .free { color: var(--ice); }
.scene-list .free::after { content: " free"; color: var(--mist); font-size: 0.8em; }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--slate); }
.devices > div { padding: 28px 28px 8px 0; }
.devices > div + div { padding-left: 28px; border-left: 1px solid var(--slate); }
.devices p { margin: 0; color: var(--mist); max-width: 34ch; }
.extras { margin: 40px 0 0; color: var(--mist); max-width: 60ch; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.price-list { margin: 0; border-top: 1px solid var(--slate); }
.price-list > div {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px;
  padding: 22px 0; border-bottom: 1px solid var(--slate);
}
.price-list dt { font-size: 1.2rem; font-weight: 600; font-variation-settings: "wdth" 108; }
.price-list .price { grid-column: 2; grid-row: 1; font-size: 1.2rem; font-variant-numeric: tabular-nums; color: var(--ice); margin: 0; }
.price-list .what { grid-column: 1 / -1; margin: 0; color: var(--mist); }
.pricing .note { margin: 20px 0 0; font-size: 0.9rem; color: var(--mist); }

/* ---------- Page (contact, legal) ---------- */

.page {
  padding: clamp(48px, 10vh, 112px) var(--gutter) clamp(80px, 12vh, 140px);
  max-width: 1200px; margin: 0 auto;
}
.page-title {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}
.page-intro { margin: 0 0 clamp(40px, 7vh, 72px); max-width: 52ch; font-size: 1.2rem; color: var(--mist); }

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: 32px; font-size: 0.9rem; }
.toc p { margin: 0 0 10px; color: var(--mist); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--mist); }
.toc a:hover { color: var(--bone); }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-variation-settings: "wdth" 108; font-weight: 600; margin: 56px 0 14px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--bone) 88%, var(--mist)); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--bone); font-weight: 600; }

.meta { margin: 0 0 40px; font-size: 0.9rem; color: var(--mist); }

.callout {
  margin: 24px 0; padding: 18px 20px;
  border-left: 2px solid var(--ice);
  background: color-mix(in srgb, var(--slate) 45%, transparent);
  border-radius: 0 6px 6px 0;
}
.callout p { margin: 0; }

/* Owner-to-fill values in this mockup. */
.todo {
  color: var(--iris);
  text-decoration: underline dashed color-mix(in srgb, var(--iris) 60%, transparent);
  text-underline-offset: 0.25em;
}

.draft-note {
  margin: 0 0 40px; padding: 12px 16px; font-size: 0.9rem;
  border: 1px dashed color-mix(in srgb, var(--iris) 50%, transparent); border-radius: 6px; color: var(--iris);
  max-width: var(--measure);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.mail {
  display: inline-block; margin: 0 0 18px;
  font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 500; font-variation-settings: "wdth" 100;
  text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ice) 45%, transparent);
  overflow-wrap: anywhere;
}
.mail:hover { border-color: var(--ice); }
.contact-grid .hint { color: var(--mist); max-width: 40ch; margin: 0 0 12px; }

.faq h2 { font-size: 1.5rem; font-variation-settings: "wdth" 108; font-weight: 600; margin: 0 0 16px; }
.faq details { border-top: 1px solid var(--slate); }
.faq details:last-child { border-bottom: 1px solid var(--slate); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 500; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--mist); border-bottom: 1.5px solid var(--mist);
  transform: rotate(45deg); transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--mist); max-width: 56ch; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--slate-line);
  padding: 40px var(--gutter) 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end;
  font-size: 0.9rem; color: var(--mist);
}
.site-footer .wordmark { font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--bone); margin: 0 0 12px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { text-decoration: none; color: var(--bone); }
.site-footer nav a:hover { color: var(--ice); }
.site-footer .legalese { grid-column: 1 / -1; font-size: 0.8rem; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .family, .family:nth-child(even) { grid-template-columns: 1fr; }
  .family:nth-child(even) figure { order: 0; }
  .devices { grid-template-columns: 1fr; }
  .devices > div, .devices > div + div { padding: 24px 0; border-left: 0; }
  .devices > div + div { border-top: 1px solid var(--slate); }
  .pricing, .contact-grid, .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .modes > div { grid-template-columns: 1fr; padding: 22px 0; }
}

@media (max-width: 560px) {
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .site-header .home span { display: none; }
  .site-footer { grid-template-columns: 1fr; }
  .hero .lede { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
