/* FRYZE OPTI — site. Same tokens as the app (Arctic Day / Arctic Night), no frameworks. */

@font-face { font-family: "Onest"; src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

:root, [data-theme="day"] {
  color-scheme: light;
  --bg: #cfe4f6;
  --glass: rgb(244 249 253 / 0.70);
  --glass-strong: rgb(247 251 254 / 0.88);
  --glass-line: rgb(255 255 255 / 0.78);
  --ink: #0d2135;
  --ink-2: #3a536c;
  --ink-3: #5f7790;
  --ink-inverse: #f4f9fd;
  --ice: #1b74c4;
  --ice-strong: #0f5ea6;
  --ice-soft: rgb(27 116 196 / 0.11);
  --ok: #13795c;
  --divider: rgb(13 33 53 / 0.09);
  --scrim: linear-gradient(180deg, rgb(225 238 250 / 0.15) 0%, rgb(225 238 250 / 0.55) 70%, var(--bg) 100%);
  --hero-scrim: linear-gradient(90deg, rgb(230 241 251 / 0.75) 0%, rgb(230 241 251 / 0.35) 45%, transparent 75%);
  --shadow: 0 1px 0 0 rgb(255 255 255 / 0.65) inset, 0 22px 48px -26px rgb(18 58 98 / 0.40);
  --shot-shadow: 0 40px 90px -40px rgb(16 56 104 / 0.55);
}
[data-theme="night"] {
  color-scheme: dark;
  --bg: #050d1d;
  --glass: rgb(10 22 44 / 0.62);
  --glass-strong: rgb(9 19 39 / 0.84);
  --glass-line: rgb(176 210 245 / 0.15);
  --ink: #e7f0fa;
  --ink-2: #a9bed5;
  --ink-3: #7f98b4;
  --ink-inverse: #061226;
  --ice: #8ec9ff;
  --ice-strong: #b9ddff;
  --ice-soft: rgb(142 201 255 / 0.13);
  --ok: #5fd0a8;
  --divider: rgb(200 225 255 / 0.10);
  --scrim: linear-gradient(180deg, rgb(3 9 22 / 0.10) 0%, rgb(3 9 22 / 0.55) 70%, var(--bg) 100%);
  --hero-scrim: linear-gradient(90deg, rgb(3 9 22 / 0.70) 0%, rgb(3 9 22 / 0.30) 45%, transparent 75%);
  --shadow: 0 1px 0 0 rgb(190 225 255 / 0.08) inset, 0 26px 52px -26px rgb(0 0 0 / 0.70);
  --shot-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.85);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 "Onest", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background-color .6s ease, color .6s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Unbounded", "Onest", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ───── Background: the app's painted scene, fixed, crossfading with the theme ───── */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease-in-out; }
.sky .night { opacity: 0; }
[data-theme="night"] .sky .night { opacity: 1; }
[data-theme="night"] .sky .day { opacity: 0; }
.sky::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───── Glass ───── */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

/* ───── Header ───── */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.top .bar { display: flex; align-items: center; gap: 20px; padding: 10px 12px 10px 18px; border-radius: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 "Unbounded", sans-serif; letter-spacing: .04em; }
.logo img { width: 28px; height: 28px; }
.logo span { font-weight: 400; opacity: .85; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--ice-soft); color: var(--ink); }
.theme-btn { border: 1px solid var(--glass-line); background: transparent; color: var(--ink-2); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { background: var(--ice-soft); color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; }
[data-theme="day"] .i-sun, [data-theme="night"] .i-moon { display: none; }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px; font: 600 16px/1 "Onest", sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--ice); color: var(--ink-inverse); box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 14px 30px -14px rgb(16 80 150 / .7); }
.btn-primary:hover { background: var(--ice-strong); }
.btn-ghost { background: var(--glass-strong); color: var(--ink); border-color: var(--glass-line); }
.btn-ghost:hover { background: var(--ice-soft); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }

/* ───── Hero ───── */
.hero { position: relative; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -120px 0 0; background: var(--hero-scrim); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-line); font-size: 14px; color: var(--ink-2); }
.eyebrow b { color: var(--ink); font-weight: 600; }
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); line-height: 1.04; margin-top: 18px; max-width: 13ch; }
.hero .lead { margin-top: 20px; max-width: 560px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ───── Showcase ───── */
.showcase { margin-top: 56px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.tabs button { border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink-2); font: 500 14px/1 "Onest", sans-serif; padding: 10px 14px; border-radius: 11px; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabs button[aria-selected="true"] { background: var(--ice); color: var(--ink-inverse); border-color: transparent; }
.frame { position: relative; border-radius: 20px; padding: 8px; aspect-ratio: 1600 / 1000; }
.frame img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 14px; object-fit: cover; opacity: 0; transition: opacity .5s ease; box-shadow: var(--shot-shadow); }
.frame img.on { opacity: 1; }
.caption { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* ───── Sections ───── */
section { padding: 72px 0; }
.head { max-width: 680px; margin-bottom: 36px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; }
.feature .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ice-soft); color: var(--ice); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-top: 18px; line-height: 1.25; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center; }
.feature.wide img { border-radius: 14px; box-shadow: var(--shot-shadow); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); font: 600 14px/1 "Unbounded", sans-serif; color: var(--ice); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ice-soft); }
.step h3 { font-size: 16px; margin-top: 14px; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }

.honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.honest .col { padding: 26px; }
.honest h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.honest ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.honest li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.honest li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.honest .no li svg { color: var(--ink-3); }

/* ───── Pricing ───── */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin-inline: auto; }
.plan { padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.max { border-color: color-mix(in srgb, var(--ice) 55%, transparent); }
.plan .badge { position: absolute; top: 22px; right: 22px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--ice); color: var(--ink-inverse); }
.plan h3 { font-size: 24px; }
.plan .for { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.price { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 600 44px/1 "Unbounded", sans-serif; letter-spacing: -0.02em; }
.price span { color: var(--ink-2); }
.renew { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); background: var(--ice-soft); padding: 7px 12px; border-radius: 10px; width: fit-content; }
.renew b { font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ice); }
.plan li.plus { color: var(--ink); font-weight: 500; }
.plan .btn { width: 100%; }
.price-notes { max-width: 900px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-notes div { padding: 16px 18px; font-size: 14px; color: var(--ink-2); }
.price-notes b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ───── FAQ ───── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 "Onest", sans-serif; color: var(--ice); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }

/* ───── CTA / footer ───── */
.cta { padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); }
.cta p { margin-top: 8px; color: var(--ink-2); }
footer { padding: 40px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }

/* ───── Simple pages (renew, upgrade, account, support) ───── */
.page { padding: 64px 0 40px; }
.page .card { max-width: 720px; margin-inline: auto; padding: 36px; }
.page h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; }
.page .card > p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.page .list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.page .list li { padding: 16px 18px; border-radius: 14px; background: var(--ice-soft); font-size: 15.5px; }
.page .list b { display: block; margin-bottom: 2px; }
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ───── Dialog (purchase not connected yet) ───── */
dialog { border: none; padding: 0; background: transparent; color: var(--ink); max-width: min(460px, calc(100% - 32px)); }
dialog::backdrop { background: rgb(3 9 22 / 0.45); backdrop-filter: blur(4px); }
dialog .glass { padding: 28px; background: var(--glass-strong); }
dialog h3 { font-size: 20px; }
dialog p { margin-top: 10px; color: var(--ink-2); }
dialog .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ───── Reveal on scroll (only when motion is welcome) ───── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ───── Responsive ───── */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top .bar { justify-content: space-between; }
  .hero { padding: 40px 0 32px; }
  section { padding: 52px 0; }
  .features, .honest, .plans, .steps { grid-template-columns: minmax(0, 1fr); }
  .feature.wide { grid-column: auto; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .plan, .page .card { padding: 24px; }
  .frame { padding: 5px; border-radius: 14px; }
  .frame img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 10px; }
  .btn { width: 100%; }
  .hero .actions .btn { width: auto; flex: 1 1 200px; }
}
.honest-gap { margin-top: 16px; }
.head p, .hero .lead, .hero .meta { text-shadow: 0 1px 14px var(--bg); }
@media (max-width: 720px) {
  .top .bar { gap: 10px; padding: 8px 8px 8px 14px; }
  .top .btn { width: auto; }
  .theme-btn { margin-left: auto; }
  .logo { font-size: 15px; }
}

/* ───── Download ───── */
.download { padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; }
.download h2 { font-size: clamp(26px, 3.6vw, 36px); }
.dl-lead { margin-top: 12px; color: var(--ink-2); max-width: 460px; }
.dl-btn { margin-top: 22px; height: 56px; padding: 0 28px; font-size: 17px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; }
.dl-meta dt { font-size: 13px; color: var(--ink-3); }
.dl-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: dl; align-content: start; }
.dl-steps li { position: relative; padding: 14px 16px 14px 54px; border-radius: 14px; background: var(--ice-soft); font-size: 14.5px; color: var(--ink-2); }
.dl-steps li::before { counter-increment: dl; content: counter(dl); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ice); color: var(--ink-inverse); font: 600 13px/1 "Unbounded", sans-serif; }
.dl-steps b { display: block; color: var(--ink); margin-bottom: 2px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .download { grid-template-columns: minmax(0, 1fr); padding: 26px; } }
@media (max-width: 720px) { .cta-actions { width: 100%; } .cta-actions .btn { flex: 1 1 140px; } }
