/* ReflectQ landing.
   Palette and type come from the app's own Sereni tokens
   (reflectq/lib/designTokens.ts) so the site and the product look like one
   thing — light botanical green by day, the same file's NIGHT set after dark. */
:root {
  --bg: #f5f7f5;
  --paper: #f7faf8;
  --card: #ffffff;
  --ink: #1b241e;
  --ink2: #566b60;
  --line: #e7ece8;
  --accent: #2e5a3d;
  --accent-2: #3f7350;
  --accent-soft: #f0f4f1;
  --on-accent: #ffffff;
  --gold: #b98a3e;
  --gold-soft: #f4ecd9;
  --hero-a: #2e5a3d;
  --hero-b: #356344;
  --hero-c: #3f7350;
  --sh-sm: 0 1px 2px rgba(27,36,30,.05), 0 6px 16px rgba(27,36,30,.05);
  --sh-md: 0 10px 34px rgba(27,36,30,.09);
  --sh-lg: 0 28px 80px rgba(27,36,30,.16);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #101712;
    --paper: #141c16;
    --card: #1a231c;
    --ink: #e6ece7;
    --ink2: #93a79a;
    --line: #26332a;
    --accent: #7fb08d;
    --accent-2: #7fb08d;
    --accent-soft: #1d2a20;
    --on-accent: #0e1a11;
    --gold: #d8b36a;
    --gold-soft: #241f12;
    --hero-a: #1e3226;
    --hero-b: #22392b;
    --hero-c: #274231;
    --sh-sm: 0 1px 2px rgba(0,0,0,.4);
    --sh-md: 0 10px 34px rgba(0,0,0,.45);
    --sh-lg: 0 28px 80px rgba(0,0,0,.55);
  }
}
:root[data-theme='dark'] {
  --bg: #101712; --paper: #141c16; --card: #1a231c;
  --ink: #e6ece7; --ink2: #93a79a; --line: #26332a;
  --accent: #7fb08d; --accent-2: #7fb08d; --accent-soft: #1d2a20;
  --on-accent: #0e1a11; --gold: #d8b36a; --gold-soft: #241f12;
  --hero-a: #1e3226; --hero-b: #22392b; --hero-c: #274231;
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh-md: 0 10px 34px rgba(0,0,0,.45);
  --sh-lg: 0 28px 80px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is what keeps an image from obeying a width/height attribute
   pair that does not match its real aspect ratio. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 70px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: var(--sh-sm); }
.brand span { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand .q { color: var(--accent); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
/* :not(.btn) matters — a bare `.nav-links > a` selector outranks `.btn-primary`
   on specificity and was repainting the download button's label muted grey. */
.nav-links > a:not(.btn) { color: var(--ink2); font-size: 15px; font-weight: 600; }
.nav-links > a:not(.btn):hover { color: var(--ink); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink2);
  display: grid; place-items: center; font-size: 16px;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 880px) { .hide-sm { display: none !important; } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); padding: 12px 22px; text-align: left; }
.btn-outline:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-outline small { display: block; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink2); font-weight: 800; }
.btn-outline b { display: block; font-size: 16px; font-weight: 800; }
.btn-light { background: var(--card); color: var(--accent); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn:active { transform: translateY(0); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 74px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -240px -20% auto -20%; height: 700px; pointer-events: none;
  background:
    radial-gradient(36% 52% at 24% 40%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(32% 46% at 76% 26%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 38px; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 17px 7px 8px; border-radius: 999px; margin-bottom: 24px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  font-size: 13px; font-weight: 700; color: var(--ink2);
}
.badge img { width: 26px; height: auto; }

h1 { font-size: clamp(36px, 5.3vw, 62px); line-height: 1.07; margin: 0 0 20px; font-weight: 800; letter-spacing: -.038em; }
.grad {
  background: linear-gradient(112deg, var(--accent), var(--accent-2) 52%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--ink2); font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 30px; max-width: 45ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--ink2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .45; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.mascot-stage { position: relative; display: grid; place-items: center; padding: 30px; }
/* Organic blob behind the mascot — the shape drifts slowly so the hero has a
   little life without anything moving fast enough to distract. */
.mascot-stage::before {
  content: ''; position: absolute; width: min(430px, 78vw); aspect-ratio: 1; z-index: 0;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, var(--hero-a), var(--hero-c));
  opacity: .13; animation: morph 18s ease-in-out infinite;
}
.mascot-stage::after {
  content: ''; position: absolute; width: min(330px, 62vw); aspect-ratio: 1; z-index: 0;
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 30%, transparent), transparent 72%);
  opacity: .5;
}
.hero-art .mascot {
  position: relative; z-index: 1; width: min(300px, 62vw); height: auto;
  filter: drop-shadow(0 26px 44px rgba(27,36,30,.24));
  animation: floatY 6.5s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; transform: rotate(0) }
  50% { border-radius: 58% 42% 44% 56% / 44% 58% 42% 56%; transform: rotate(9deg) }
}

/* ---------------- referral banner ---------------- */
.ref-banner {
  display: flex; align-items: center; gap: 13px;
  margin: 0 0 24px; padding: 14px 18px; border-radius: 18px;
  background: linear-gradient(100deg, var(--accent-soft), color-mix(in srgb, var(--gold-soft) 65%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: 14.5px;
}
.ref-banner img { width: 38px; height: auto; flex: 0 0 auto; }
.ref-banner .code { font-weight: 800; letter-spacing: .1em; color: var(--accent); }
/* display:flex outranks the UA stylesheet's [hidden] rule; without this the
   invite banner showed on every ordinary visit reading "Kode —". */
.ref-banner[hidden] { display: none; }

/* ---------------- sections ---------------- */
section { position: relative; padding: 92px 0; }
.head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); font-weight: 800; margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3.7vw, 44px); line-height: 1.12; margin: 0 0 14px; font-weight: 800; letter-spacing: -.03em; }
.em { color: var(--accent); }
.head p { color: var(--ink2); margin: 0; font-size: 17.5px; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1040px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .g3, .g5 { grid-template-columns: 1fr; } }

.pcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 32px 30px; box-shadow: var(--sh-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.pcard h3 { font-size: 19px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.012em; }
.pcard p { color: var(--ink2); margin: 0; font-size: 15.8px; }
.pcard .ico {
  width: 56px; height: 56px; border-radius: 17px; margin-bottom: 20px;
  display: grid; place-items: center; font-size: 25px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.pcard .ico img { width: 34px; height: auto; }

/* ---------------- steps ---------------- */
.steps-band { background: var(--paper); border-block: 1px solid var(--line); }
/* A rail rather than five columns: the store creative carries its own headline,
   which is unreadable once each card is squeezed to a fifth of the page. */
.step-rail {
  display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 26px;
  scroll-snap-type: x mandatory;
}
.step-rail .step { flex: 0 0 auto; width: 250px; scroll-snap-align: center; }
.step { text-align: center; }
.step .shot {
  position: relative; margin: 0 auto 20px; max-width: 250px;
  border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-md); transition: transform .35s ease;
}
.step:hover .shot { transform: translateY(-6px); }
.step .shot img { width: 100%; height: auto; }
.step .n {
  position: absolute; top: 12px; left: 12px; width: 40px; height: 40px;
  border-radius: 13px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.step h4 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.step p { color: var(--ink2); font-size: 14.2px; margin: 0; padding: 0 4px; }

/* ---------------- personas ---------------- */
.persona { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.persona .ph { position: relative; height: 220px; overflow: hidden; }
.persona .ph img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .7s ease; }
.persona:hover .ph img { transform: scale(1.05); }
.persona .body { padding: 26px 28px 30px; }
.persona h4 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.persona p { color: var(--ink2); margin: 0; font-size: 15.5px; }

/* ---------------- features ---------------- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: 1fr; gap: 40px; } }
.feat { display: flex; gap: 20px; margin-bottom: 32px; }
.feat .ico {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 17px;
  display: grid; place-items: center; font-size: 24px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.feat .ico img { width: 34px; height: auto; }
.feat h4 { font-size: 18px; font-weight: 800; margin: 0 0 5px; }
.feat p { color: var(--ink2); margin: 0; font-size: 15.8px; }

.demo .shell { padding: 30px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-md); }
.verse { padding: 26px; border-radius: 20px; margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); }
.verse .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.verse .label { color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.verse blockquote { font-size: 20px; line-height: 1.5; margin: 0 0 16px; font-weight: 600; letter-spacing: -.015em; }
.verse .ref { text-align: right; color: var(--gold); font-weight: 800; font-size: 13.5px; }
.ai-note { padding: 24px; border-radius: 20px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.ai-note .label { color: var(--ink2); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.ai-note p { color: var(--ink2); margin: 0; font-size: 15.5px; }

/* ---------------- founder ---------------- */
.founder-band {
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b) 46%, var(--hero-c));
  border-radius: 30px; padding: 58px 46px; color: #fff; text-align: center;
  box-shadow: var(--sh-lg); position: relative; overflow: hidden;
}
.founder-band::after {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent 70%);
}
.founder-band .photo {
  width: 128px; height: 128px; margin: 0 auto 26px; border-radius: 26px; overflow: hidden;
  border: 3px solid rgba(255,255,255,.3); position: relative; z-index: 1;
}
.founder-band .photo img { width: 100%; height: 100% !important; object-fit: cover; }
.founder-band blockquote {
  position: relative; z-index: 1; font-size: clamp(19px, 2.4vw, 28px); line-height: 1.42;
  margin: 0 auto 26px; max-width: 780px; font-weight: 600; letter-spacing: -.018em;
}
.founder-band .hl { color: #ffd89a; }
.founder-band .name { font-size: 18px; font-weight: 800; margin: 0; position: relative; z-index: 1; }
.founder-band .role { color: rgba(255,255,255,.72); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 5px 0 0; position: relative; z-index: 1; }

/* ---------------- final ---------------- */
.final { text-align: center; }
.final .box { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 56px 32px; box-shadow: var(--sh-sm); }
.final .box img { width: 92px; height: auto; margin: 0 auto 20px; }
.final p { color: var(--ink2); max-width: 50ch; margin: 0 auto 28px; font-size: 17px; }

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 36px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }
.foot-about p { color: var(--ink2); max-width: 40ch; margin: 18px 0 0; font-size: 15.5px; }
footer h6 { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
footer ul a { color: var(--ink2); font-size: 15.5px; }
footer ul a:hover { color: var(--accent); }
.copyright { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--ink2); font-size: 14px; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s } .d2 { transition-delay: .16s } .d3 { transition-delay: .24s } .d4 { transition-delay: .32s }

@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}
