/* Pozitiv website. Same "Sunrise" colors as the app; dark at night.
   Layout: one centered column (max 1080px); the hero pairs the pitch with
   a live chat demo, then plain sections stack below. */
@font-face { font-family: "Nunito"; src: url("fonts/nunito-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #FFF7EF;
  --surface: #FFFFFF;
  --ink: #2B1A12;
  --muted: #6E513F;
  --line: #F2DCCB;
  --accent: #C2410C;
  --accent-ink: #9A3412;
  --accent-soft: #FFE3D3;
  --sun: #FDBA74;
  --ok: #15803D;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16100C; --surface: #221914; --ink: #F7ECE3; --muted: #C4AD9D;
    --line: #35281F; --accent: #E2622A; --accent-ink: #FDBA74; --accent-soft: #3F2417;
    --sun: #FDBA74; --ok: #4ADE80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16100C; --surface: #221914; --ink: #F7ECE3; --muted: #C4AD9D;
  --line: #35281F; --accent: #E2622A; --accent-ink: #FDBA74; --accent-soft: #3F2417;
  --sun: #FDBA74; --ok: #4ADE80; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font);
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.top { padding-block: 22px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.3px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 36px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-weight: 800; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02;
  letter-spacing: -1.5px; margin: 0 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { color: #fff; filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--sun); filter: none; }
.note { font-size: 14px; color: var(--muted); }

/* Live demo: the signature moment */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 18px; display: grid; gap: 14px;
  box-shadow: 0 30px 60px -30px rgba(124, 45, 18, .35);
}
.demo-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #FDE68A; color: #2B1A12; display: grid; place-items: center; font-weight: 800; }
.demo-head b { display: block; font-size: 16px; line-height: 1.2; }
.demo-head small { color: var(--ok); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.thread { display: grid; gap: 10px; padding: 6px 2px; }
.bubble {
  max-width: 85%; padding: 11px 15px 9px; border-radius: 20px 20px 20px 6px;
  background: var(--bg); border: 1px solid var(--line); justify-self: start;
}
.bubble.mine { justify-self: end; border-radius: 20px 20px 6px 20px; background: var(--accent); border-color: var(--accent); color: #fff; }
.bubble .text { min-height: 1.5em; overflow-wrap: anywhere; }
.bubble .text.disguised { font-style: italic; }
.bubble .text.code { font-family: var(--mono); font-style: normal; font-size: 15px; letter-spacing: .5px; }
.bubble .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; opacity: .85; }
.bubble.revealed:not(.mine) { border: 2px solid var(--sun); }
.lock {
  border: 0; background: var(--accent-soft); color: var(--accent-ink); font: 800 12px var(--font);
  padding: 4px 10px; border-radius: 99px; cursor: pointer; min-height: 28px;
  display: inline-flex; align-items: center; gap: 5px;
}
.bubble.mine .lock { background: rgba(255,255,255,.2); color: #fff; }
.styles { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 4px 2px; border-top: 1px solid var(--line); align-items: center; }
.styles span { font-size: 13px; color: var(--muted); font-weight: 700; margin-right: 4px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 700 13px var(--font); border-radius: 99px; padding: 5px 12px; cursor: pointer; min-height: 34px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Sections */
section { padding-block: 64px; border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.8px; font-weight: 800; margin: 0 0 14px; text-wrap: balance; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(s); width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center;
}
.steps h3, .facts h3 { margin: 0; font-size: 19px; font-weight: 800; }
.steps p, .facts p { margin: 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.facts > div { padding-block: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }

.get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.platform h3 { margin: 0; font-size: 20px; font-weight: 800; }
.platform p { margin: 0; color: var(--muted); font-size: 15px; }
.status { justify-self: start; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 10px; background: var(--accent-soft); color: var(--accent-ink); }

.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 64ch; }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Privacy policy page */
.doc { max-width: 720px; padding-block: 24px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -1px; margin: 12px 0 6px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.3px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc .effective { color: var(--muted); margin: 0 0 24px; }
.doc a { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps, .get { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .bubble .text { transition: opacity .25s ease; }
  .bubble .text.flip { opacity: 0; }
}

/* "Coming soon" page shown until launch */
.soon { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding-block: 48px; }
.soon img { border-radius: 22px; }
.soon h1 { font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -1px; margin: 8px 0 0; text-wrap: balance; }
.soon h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.soon p { margin: 0; color: var(--muted); font-size: 18px; max-width: 36ch; }
.soon .note { font-size: 14px; margin-top: 10px; }

/* ---------- Our story (manga) ---------- */
.story { padding-bottom: 40px; }
.story h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 4px 0 8px; letter-spacing: -0.5px; }
.manga { display: grid; gap: 28px; margin-top: 28px; max-width: 760px; }
.panel { position: relative; margin: 0; }
.panel-frame { position: relative; }
.finale-lead {
  margin: 0 0 12px; font-weight: 800; font-size: clamp(22px, 3vw, 28px); line-height: 1.25;
  color: var(--accent-ink); letter-spacing: -0.2px;
}
.panel-art { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 0 var(--line); }
.panel-no {
  position: absolute; top: -12px; left: -12px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 16px;
}
.panel figcaption {
  margin-top: 12px; padding: 14px 18px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 4px;
  font-size: 18px; line-height: 1.5; box-shadow: 4px 4px 0 var(--ink);
}
.panel.finale .panel-no { background: var(--accent); color: #fff; }
.panel.finale figcaption { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); font-size: 20px; }
.panel.finale figcaption strong { color: var(--accent); letter-spacing: 1px; }
.story-end { margin: 40px 0 0; max-width: 760px; text-align: center; }
.story-end p { font-size: 19px; margin: 0 0 16px; }
@media (min-width: 900px) {
  .manga { grid-template-columns: 1fr 1fr; max-width: none; gap: 36px 28px; }
  /* The last panel gets the whole width: the big finale. */
  .panel.finale { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 760px; margin-top: 12px; }
  .panel.finale .finale-lead { text-align: center; }
  .story-end { max-width: none; }
}
@media (max-width: 480px) {
  .panel-no { top: -8px; left: -6px; width: 30px; height: 30px; font-size: 14px; }
  .panel figcaption { font-size: 17px; padding: 12px 14px; }
}
/* Home page teaser */
.teaser { display: grid; gap: 24px; align-items: center; }
.teaser .thumb { display: block; transition: transform .15s ease; }
.teaser .thumb:hover { transform: translateY(-2px); }
.teaser .thumb svg { display: block; width: 100%; height: auto; filter: drop-shadow(6px 6px 0 var(--accent)); }
@media (min-width: 800px) { .teaser { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ---------- Download page ---------- */
.dl { padding-bottom: 56px; }
.dl h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 4px 0 8px; letter-spacing: -0.5px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.dl-card.recommended { border: 2px solid var(--accent); }
.dl-card h2 { margin: 0; font-size: 22px; font-weight: 800; }
.dl-card > p { margin: 0; color: var(--muted); font-size: 15px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dl-buttons .btn { padding: 10px 18px; font-size: 15px; }
.dl-card details { border-top: 1px solid var(--line); padding-top: 10px; font-size: 15px; }
.dl-card summary { cursor: pointer; font-weight: 800; color: var(--accent-ink); }
.dl-card ol { padding-left: 20px; margin: 8px 0; }
.dl-card details p { margin: 8px 0 0; }
.dl code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); color: var(--ink); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.dl-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; margin-top: 40px; }
.dl-notes h3, .dl-soon h3 { margin: 0 0 4px; font-size: 18px; }
.dl-notes p, .dl-soon p { margin: 0 0 16px; color: var(--muted); }
.dl-soon { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 860px) { .dl-grid, .dl-notes { grid-template-columns: 1fr; } }
/* Download link on the platform card */
.platform .btn { justify-self: start; margin-top: 6px; padding: 9px 18px; font-size: 15px; }
.platform.ready { border: 2px solid var(--accent); }
.status.ok { background: var(--accent); color: #fff; }
