/* Nokta — getnokta.app
   One stylesheet. Identity from the app: its ground, its gold, its lilac,
   Nunito Sans. Dark first because the Map is; light is the same page in
   daylight. Nothing here is a framework. */

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ground: #07080e;
  --ground-2: #0d0f17;
  --surface: #14171f;
  --surface-2: #1a1e29;
  --line: rgba(242, 240, 235, 0.10);
  --line-2: rgba(242, 240, 235, 0.16);
  --ink: #f2f0eb;
  --ink-2: #b9b6ae;
  --ink-3: #7e7c76;
  --gold: #ffc857;
  --gold-ink: #ffd987;
  --lilac: #a98cff;
  --lilac-2: #8276c7;
  --path: #8e99ff;
  --phone-edge: rgba(242, 240, 235, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --max: 1140px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --ground: #f8f6f3;
  --ground-2: #f1eee9;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --line: rgba(26, 28, 35, 0.10);
  --line-2: rgba(26, 28, 35, 0.16);
  --ink: #1a1c23;
  --ink-2: #4d505a;
  --ink-3: #8a8c94;
  --gold: #d08f0e;
  --gold-ink: #b77a05;
  --lilac: #7757dc;
  --lilac-2: #6355aa;
  --path: #4a57c7;
  --phone-edge: rgba(26, 28, 35, 0.12);
  --shadow: 0 30px 70px rgba(54, 45, 67, 0.22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 7vw, 84px); overflow-wrap: anywhere; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--ground) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-link { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-spacer { flex: 1; }
.theme-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; width: 64px; height: 32px; padding: 0; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); cursor: pointer; font: inherit; font-size: 13px; }
.theme-toggle span { display: grid; place-items: center; height: 100%; position: relative; z-index: 1; transition: color .2s ease; }
.theme-toggle .toggle-dot { position: absolute; z-index: 0; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
html[data-theme="light"] .theme-toggle .toggle-dot { transform: translateX(32px); }
html[data-theme="dark"] .theme-toggle span:first-child, html[data-theme="light"] .theme-toggle span:last-child { color: #1a1400; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; white-space: nowrap; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.button:active { transform: scale(.98); }
.button.primary { background: var(--gold); color: #1a1400; }
.button.primary:hover { background: var(--gold-ink); }
.button.ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.button.ghost:hover { background: var(--surface); }
.nav-cta { height: 38px; padding: 0 16px; font-size: 14px; }
.text-link { color: var(--gold); font-weight: 700; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.lede { color: var(--ink-2); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 60ch; }
.quiet-meta { color: var(--ink-3); font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-field svg { width: 100%; height: 100%; }
.hero-field circle { fill: var(--lilac); }
.hero { padding: 96px 0 56px; text-align: center; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero h1 span { display: block; color: var(--gold); }
.hero .lede { margin-top: 22px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.showcase { padding: 8px 0 64px; }
.fan { position: relative; height: clamp(420px, 60vw, 760px); max-width: 980px; margin: 0 auto; }
.fan .phone { position: absolute; top: 0; left: 50%; width: min(340px, 42%); transform: translateX(-50%); }
.fan .phone.centre { z-index: 3; }
.fan .phone.side { z-index: 1; top: 8%; width: min(300px, 36%); opacity: .92; }
.fan .phone.left { transform: translateX(-50%) translateX(-78%) rotate(-7deg); }
.fan .phone.right { transform: translateX(-50%) translateX(78%) rotate(7deg); }
.showcase { overflow: hidden; }
.showcase-caption { max-width: 46ch; margin: 28px auto 0; text-align: center; color: var(--ink-2); font-size: 17px; }
.row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row .phone { width: min(300px, 80%); justify-self: center; }
.row.flip .phone { order: -1; }
.row h2 { font-size: clamp(26px, 3vw, 36px); max-width: 18ch; }
.row p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.row .eyebrow + h2 { margin-top: 0; }

/* ---------- phone frame ---------- */
.phone { position: relative; border-radius: 12.5% / 5.8%; overflow: hidden; border: 1px solid var(--phone-edge); box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 390 / 844; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.small { border-radius: 11% / 5.1%; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tint { background: var(--ground-2); }
.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.story article { display: flex; flex-direction: column; gap: 18px; }
.story .phone { width: 100%; }
.story h3 { display: flex; align-items: baseline; gap: 12px; }
.story h3 span { color: var(--gold); font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.story p { color: var(--ink-2); }

.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.views figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.views figcaption strong { display: block; font-size: 18px; }
.views figcaption span { color: var(--ink-2); font-size: 15px; }
.views figure.wide { grid-column: span 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split { grid-template-columns: 1fr; }
.split ul { margin-top: 22px; display: grid; gap: 10px; }
.split li { position: relative; padding-left: 30px; color: var(--ink-2); }
.split li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23ffc857' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme="light"] .split li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23d08f0e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.plus { border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent); }
.plan-kicker { color: var(--ink-3); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.plan h3 { font-size: 28px; }
.plan .price { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.plan .price strong { font-size: 30px; letter-spacing: -0.02em; }
.plan .price span { color: var(--ink-3); font-size: 14px; }
.plan ul { display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 30px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23ffc857' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .9; }
html[data-theme="light"] .plan li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23d08f0e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .plus-mark { height: 30px; width: auto; max-width: none; align-self: flex-start; }
.plan-note { color: var(--ink-3); font-size: 14px; margin-top: 18px; max-width: 70ch; }

/* ---------- trust / faq ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.trust article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.trust p { color: var(--ink-2); margin-top: 12px; }
.trust .text-link { display: inline-block; margin-top: 18px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; 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(--gold); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* ---------- cta band ---------- */
.cta { padding: 96px 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--lilac) 18%, transparent), transparent 70%); }
.cta h2 { max-width: 20ch; margin: 0 auto; }
.cta p { color: var(--ink-2); margin: 16px auto 0; max-width: 50ch; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tagline { margin-top: 22px; color: var(--ink-3); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- sub pages ---------- */
.page-main { padding-bottom: 40px; }
.page-hero { padding: 72px 0 40px; }
.page-hero .lede { margin-top: 18px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.content-section { padding: 40px 0; }
.content-section.alt { background: var(--ground-2); }
.content-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.prose h2, .prose h3 { margin-top: 26px; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; }
.prose p, .prose li { color: var(--ink-2); margin-top: 10px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--gold); }
.support-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.support-card p { color: var(--ink-2); }
.support-card .button { align-self: flex-start; margin-top: 8px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--ink-2); }
.gold { color: var(--gold); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; color: var(--ink-3); font-size: 14px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.footer-grid a, .footer-grid span { display: block; color: var(--ink-2); margin-top: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-about img { height: 22px; width: auto; }
.footer-about p { margin-top: 14px; max-width: 34ch; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--ink-3); font-size: 14px; }
.footer-row a { color: var(--ink-2); }
.footer-row a:hover { color: var(--ink); }
.footer-row span:first-child { margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .plans, .trust, .faq-grid, .content-grid, .support-options { grid-template-columns: 1fr; }
  .story, .views { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fan .phone.side { display: none; }
  .fan { height: auto; }
  .fan .phone.centre { position: relative; left: auto; transform: none; margin: 0 auto; width: min(320px, 84%); }
  .row { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .phone { order: 0; }
  .row .phone { width: min(280px, 80%); }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .story, .views { grid-template-columns: 1fr; }
  .story .phone, .views .phone { width: min(300px, 100%); margin: 0 auto; }
  .section { padding: 64px 0; }
  .plan { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
