/* Kopā — apps.brando.pro/kopa
   Same vocabulary as the app (docs/design/TOKENS.md): Plus Jakarta Sans,
   cream ground, ink text, orange pill buttons, surface cards, chips. */

:root {
  --bg: #FFF8EF;
  --surface: #FFFDF9;
  --ink: #12303F;
  --muted: #5F7684;
  --line: rgba(18, 48, 63, 0.14);
  --accent: #F2991F;
  --accent-hov: #DE8812;
  --accent-soft: #FDEBCF;
  --chip: #F2E9DB;
  --onaccent: #3A2408;
  --sky: #5E9E5A;
  --shadow: 0 1px 2px rgba(18, 48, 63, 0.05), 0 10px 28px rgba(18, 48, 63, 0.08);

  --t-science: #DCEEF8; --ti-science: #2C4A5C;
  --t-indoor: #FCE8C8; --ti-indoor: #5C4318;
  --t-arts: #FFE2C9; --ti-arts: #7A4415;
  --t-outdoor: #DFEFD2; --ti-outdoor: #3D5230;
  --t-cooking: #EAE2F7; --ti-cooking: #473A66;
  --t-talk: #D9F0E9; --ti-talk: #2A5C50;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; }
h2 { font-size: clamp(28px, 2.8vw, 36px); }
h3 { font-size: 20px; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 18px; color: var(--muted); max-width: 40em; }

/* ——— nav ——— */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 239, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav nav .btn { padding: 10px 18px; min-height: 40px; }
@media (max-width: 640px) { .nav nav a.hide-sm { display: none; } .nav nav { gap: 16px; } }

/* ——— buttons & chips ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background .15s ease, transform .15s ease, border-color .15s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--onaccent); }
.btn-primary:hover { background: var(--accent-hov); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.soon { opacity: .6; cursor: default; }
.btn.soon:hover { background: var(--accent); }
.btn.store { text-align: left; padding: 10px 20px 10px 16px; }
.btn.store span { line-height: 1.1; }
.btn.store small { display: block; font-size: 10px; font-weight: 600; opacity: .75; letter-spacing: .03em; margin-bottom: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--chip); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.chip { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--chip); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--onaccent); }

/* ——— cards ——— */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card p { font-size: 15px; color: var(--muted); }
.phone { border-radius: 34px; background: var(--ink); padding: 8px; box-shadow: var(--shadow); }
.phone img { border-radius: 27px; }

/* ——— hero ——— */
.hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.hero-visual::before { content: ""; position: absolute; inset: 40px; border-radius: 22px; background: var(--accent-soft); }
.hero-visual .phone { position: relative; width: min(320px, 70%); }
.hero-visual .float { position: absolute; left: 0; bottom: 60px; width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.hero-visual .float b { font-size: 14px; font-weight: 800; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { padding: 0; }
  .hero-visual::before { inset: 24px 0 0 0; border-radius: 22px 22px 0 0; }
  .hero-visual .phone { width: 240px; margin-top: 52px; margin-bottom: -60px; }
  .hero-visual .float { display: none; }
  .hero { overflow: hidden; }
}

/* ——— sections ——— */
section.block { border-top: 1px solid var(--line); }
section.block .wrap { padding: clamp(48px, 6vw, 80px) 0; display: flex; flex-direction: column; gap: 32px; }
.head { display: flex; flex-direction: column; gap: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps .num { width: 36px; height: 36px; border-radius: 999px; background: var(--accent-soft); color: var(--onaccent); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.steps .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat { border-radius: 16px; padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .15s ease; }
.cat:hover { transform: translateY(-2px); }
.cat .n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.cat b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.cat span { font-size: 13px; font-weight: 500; opacity: .8; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.filters .icons { display: flex; gap: 10px; color: var(--muted); }
.filters .icons svg, .card > svg { width: 20px; height: 20px; }
.filters .shot { display: flex; justify-content: center; }
.filters .shot .phone { width: 220px; }
@media (max-width: 960px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.promises ul { list-style: none; margin: 0; padding: 0; }
.promises li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.promises li:first-child { border-top: 0; padding-top: 0; }
.promises .ic { width: 44px; height: 44px; border-radius: 999px; background: var(--chip); color: var(--muted); display: grid; place-items: center; flex: none; }
.promises .ic svg { width: 20px; height: 20px; }
.promises b { display: block; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.promises p { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; gap: 24px; } }

.download { margin: 0 auto clamp(48px, 6vw, 80px); width: min(var(--wrap), calc(100% - 40px)); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.download img { width: 72px; height: 72px; }
.download .stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.download .langs { color: var(--muted); font-size: 14px; }

/* ——— footer ——— */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a:hover { color: var(--ink); }

/* ——— documents ——— */
.doc { padding: clamp(40px, 6vw, 80px) 0; }
.doc .wrap { width: min(760px, calc(100% - 40px)); }
.doc .eyebrow { margin-bottom: 12px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc .tldr { font-size: 17px; color: var(--ink); background: var(--accent-soft); border-radius: 16px; padding: 18px 22px; margin-bottom: 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-hov); text-decoration: underline; text-underline-offset: 3px; }
.doc a.btn { color: var(--onaccent); text-decoration: none; }
.doc code { font-size: .9em; background: var(--chip); padding: 2px 6px; border-radius: 6px; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 20px; margin: 20px 0; font-size: 15px; color: var(--muted); }
.doc .lede { font-size: 17px; }

.faq { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 0 24px; margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 16px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 28px; height: 28px; flex: none; border-radius: 999px; background: var(--chip) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F7684' stroke-width='2.2' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>") center/14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--muted); font-size: 15px; }
