/* ============================================================
   YouX — homepage (1:1 rebuild of Home page V3 reference)
   ============================================================ */

/* ── SELF-HOSTED FONTS (latin subset + čšžČŠŽ) ── */
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/Caveat-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/Caveat-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--violet); color: #fff; }

/* ── TOKENS ── */
:root {
  --sans: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --script: 'Caveat', cursive;

  --bg:          #F3F5F8;
  --panel:       #ECEFF2;
  --ink:         #191A23;
  --gray:        #6B6C77;
  --gray-faint:  #9A9BA6;
  --line:        rgba(25,26,35,.10);

  --violet:      #5D3AA9;
  --violet-ink:  #4A2D87;
  --violet-lite: #AE92EC;
  --violet-soft: #ECE7F7;
  --violet-tint: #F4F0FB;

  --orange:      #F9A040;
  --green:       #2FA84F;
  --green-soft:  #E4F6EA;
  --green-ok:    #6EC08D;
  --teal:        #2BA891;
  --teal-soft:   #DFF4F0;
  --red:         #E85363;

  --dark:        #141C26;

  --maxw:        1192px;
  --r:           26px;
  --r-lg:        34px;
  --ease:        cubic-bezier(.4,0,.2,1);
  --x-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.7 2.7 9.3 9.3M9.3 2.7 2.7 9.3' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── SHARED ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.eyebrow { font-size: 15px; color: var(--gray-faint); font-weight: 500; }
.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
.sub { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--gray); letter-spacing: -.01em; }
.pp { color: var(--violet); }
.sec-head { max-width: 880px; margin: 0 auto 54px; text-align: center; }
.sec-head .eyebrow { display: block; margin-bottom: 12px; }
.sec-head .sub { margin: 18px auto 0; max-width: 640px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 100px; transition: transform .18s var(--ease), background .18s, box-shadow .2s, color .18s; white-space: nowrap; }
.btn .ar { transition: transform .22s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn-purple { background: var(--violet); color: #fff; }
.btn-purple:hover { background: var(--violet-ink); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(93,58,169,.7); }
.btn-soft { background: var(--violet-soft); color: var(--violet); }
.btn-soft:hover { background: #E1D9F1; transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #0c0d14; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 100; padding: 0 24px; }
.nav-in { max-width: calc(var(--maxw) - 48px); margin: 0 auto; background: #fff; border-radius: 0 0 20px 20px;
  padding: 16px 26px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0,0,0,.25); }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; width: 64px; height: auto; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 14px; color: var(--ink); font-weight: 500; transition: color .18s; }
.nav-link:hover { color: var(--violet); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; max-width: calc(var(--maxw) - 48px); margin: 8px auto 0; background: #fff; border-radius: 18px; padding: 12px; flex-direction: column; gap: 6px; box-shadow: 0 14px 34px -18px rgba(0,0,0,.3); }
.nav-mobile.open { display: flex; }
.nav-mobile a:not(.btn) { padding: 12px 14px; font-size: 15px; font-weight: 500; border-radius: 10px; }
.nav-mobile a:not(.btn):hover { background: var(--bg); }
.nav-mobile .btn { margin-top: 4px; }

/* ── HERO ── */
.hero { text-align: center; padding: 80px 0 40px; }
.hero-in { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 600; letter-spacing: -.025em; line-height: 1.14; color: var(--ink); }
.hero .hero-sub { margin: 22px auto 30px; max-width: 640px; }
.hero .hero-sub.sub { font-size: 14px; }

/* ── TRUSTED BY ── */
.trusted { padding: 30px 0 70px; }
.trusted .lbl { text-align: center; font-size: 14px; color: var(--gray-faint); margin-bottom: 34px; }
.logo-grid { max-width: 1040px; margin: 0 auto; padding: 40px 24px; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%);
  border-radius: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px 30px; align-items: center; justify-items: center; }
.logo-grid img { max-height: 30px; max-width: 112px; width: auto; height: auto; object-fit: contain; }

/* ── SCORE SECTION ── */
.score-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.gauge-block { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.gauge { position: relative; width: 320px; height: 320px; }
.gauge-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gauge-prog { transition: stroke .4s var(--ease); }
.gauge-face { position: absolute; inset: 48px; background: #fff; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 22px 55px -32px rgba(0,0,0,.32); }
.gauge-num { font-size: 46px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.gauge-num .gv { color: var(--orange); transition: color .4s var(--ease); }
.gauge-num small { font-family: var(--mono); font-size: 16px; color: var(--gray-faint); font-weight: 500; }
.gauge-title { font-size: 20px; font-weight: 600; margin-top: 6px; }
.gauge-crit { font-family: var(--mono); font-size: 12px; color: var(--gray); margin-top: 12px; }
.gauge-crit b { color: var(--red); font-weight: 500; }
.gauge-crit b.ok { color: var(--green-ok); }
.gauge-crit.crit-b { display: none; color: var(--ink); }
.gauge.fixed .crit-a { display: none; }
.gauge.fixed .crit-b { display: block; }
.gauge-toggle { margin-top: 10px; width: 40px; height: 22px; border-radius: 100px; background: var(--red); position: relative; cursor: pointer; transition: background .3s var(--ease); }
.gauge-toggle::after { content: "✕"; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--red); font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: transform .3s var(--ease), color .3s; }
.gauge.fixed .gauge-toggle { background: var(--green-ok); }
.gauge.fixed .gauge-toggle::after { content: "✓"; color: var(--green-ok); transform: translateX(18px); }

/* score calc panel */
.calc-panel { margin-top: -120px; padding: 170px 34px 64px; background: var(--panel); border-radius: var(--r-lg); }
.calc-panel .calc-title { text-align: center; font-weight: 600; font-size: 17px; margin-bottom: 30px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.calc-grid.row2 { grid-template-columns: repeat(2, 1fr); max-width: 630px; margin-top: 20px; }
.calc-card { background: #fff; border-radius: 18px; padding: 22px; }
.calc-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.mini-ring { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink);
  background: conic-gradient(var(--rc) 0 var(--rp), #e6e7ee var(--rp) 100%); position: relative; }
.mini-ring::after { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.mini-ring span { position: relative; z-index: 1; }
.calc-q { font-family: var(--mono); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.calc-d { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--gray); }
.calc-d b { color: var(--ink); font-weight: 500; }
.calc-d .r { color: var(--red); font-weight: 500; }
.calc-d .o { color: var(--orange); font-weight: 500; }
.calc-d .g { color: var(--green-ok); font-weight: 500; }

/* download report */
.dl { text-align: center; margin-top: 60px; margin-bottom: -100px; position: relative; z-index: 2; }
.dl-title { font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.15; }
.dl-title .pp { display: inline; }
.dl-row { position: relative; display: flex; justify-content: center; margin-top: 28px; }
.dl-note { position: absolute; top: 2px; right: calc(50% + 168px); text-align: right;
  font-family: var(--script); font-size: 26px; color: var(--violet); line-height: 1.05; transform: rotate(-6deg); }
.dl-note img { position: absolute; right: -46px; bottom: -50px; width: 54px; height: auto; }
.dl-card { background: var(--violet-tint); border: 1px solid var(--violet-soft); border-radius: 16px; padding: 18px 20px; width: 276px; text-align: left; }
.dl-card .fn { font-family: var(--mono); font-size: 13px; font-weight: 500; text-align: center; margin-bottom: 14px; color: var(--ink); }
.dl-card .dl-inner { position: relative; height: 46px; }
.dl-card .btn { position: absolute; left: 0; top: 0; height: 46px; width: calc(100% - 56px); justify-content: flex-start; padding-left: 20px; }
.dl-card img { position: absolute; right: -6px; bottom: -12px; width: 88px; height: auto; pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }

/* ── DISCOVER + ROI ── */
.discover { background: var(--panel); border-radius: var(--r-lg); padding: 74px 24px; text-align: center; margin-bottom: 16px; }
.discover .h2 { max-width: 780px; margin: 0 auto; }
.discover .sub { margin: 20px auto 0; max-width: 640px; }
.roi-group { background: var(--panel); border-radius: var(--r-lg); }
.roi { text-align: center; padding: 80px 24px 60px; }
.roi .h2 { max-width: 720px; margin: 0 auto; }
.roi .sub { margin: 18px auto 0; max-width: 620px; }
.roi-visual { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 44px 0 20px; flex-wrap: wrap; }
.roi-circle { width: 260px; height: 260px; flex-shrink: 0; border-radius: 50%; background: #fff; box-shadow: 0 30px 60px -34px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.roi-circle .d1 { color: var(--violet); margin-right: 8px; }
.roi-arrow { width: 90px; height: 24px; flex-shrink: 0; }
.roi-dots { width: 280px; height: 280px; flex-shrink: 0; background-position: 0 0;
  background-image:
    radial-gradient(circle, var(--violet) 2px, transparent 2.2px),
    radial-gradient(circle, #fff 10px, transparent 10.5px);
  background-size: 28px 28px; }
.roi-note { font-family: var(--mono); font-size: 11px; color: var(--gray-faint); }

/* testimonial band */
.quote-band { background: var(--dark); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 54px 48px; }
.quote-band p { font-size: clamp(19px, 2.1vw, 24px); font-weight: 400; line-height: 1.5; color: #fff; letter-spacing: -.01em; max-width: 900px; }
.quote-band p b { font-weight: 600; }
.quote-author { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.quote-author img { width: 46px; height: 46px; border-radius: 50%; }
.quote-author .qn { font-size: 14px; font-weight: 500; color: #fff; }
.quote-author .qr { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.55); }
.quote-author .qr .pp { color: #b9a6ff; }

/* ── PROCESS ── */
.proc-head { text-align: center; margin-bottom: 44px; }
.proc-head .h2 { max-width: 490px; margin: 0 auto; }
.proc { position: relative; max-width: 1000px; margin: 0 auto; height: 626px; }
.proc-panel { position: absolute; left: 0; right: 0; top: 58px; height: 494px;
  background: var(--panel); border-radius: var(--r-lg); z-index: 0; }

.pcard { position: absolute; width: 281px; background: #fff; border-radius: 22px; z-index: 2;
  padding: 30px 24px 28px; box-shadow: 0 24px 50px -34px rgba(20,28,38,.35); }
.pcard.p1 { left: 53px;  top: 0; }
.pcard.p2 { left: 362px; top: 154px; }
.pcard.p3 { left: 667px; top: 310px; padding: 0; }

.pbadge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; line-height: 1; white-space: nowrap;
  padding: 8px 14px; border-radius: 100px; border: 1px solid; }
.pbadge.teal   { background: var(--teal-soft); color: var(--teal); border-color: #B9E6DE; }
.pbadge.orange { background: #FDEBD2; color: #D08A2C; border-color: #F7D6A8; }
.pbadge.violet { background: var(--violet-soft); color: var(--violet); border-color: #D9CEF0; }

.pcard-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.picon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.picon img { width: 28px; height: 28px; }
.picon.teal   { background: var(--teal-soft); }
.picon.orange { background: #FDEBD2; }
.picon.violet { background: var(--violet-soft); }
.pcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.pcard p { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--gray); }
.pcard .btn { margin-top: 20px; }

/* card 3: white body + violet download footer */
.pcard-body { padding: 30px 24px 26px; }
.pcard-dl { background: var(--violet-tint); border-radius: 0 0 22px 22px; padding: 16px 20px 20px; }
.pcard-dl .fn { font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-align: center; margin-bottom: 12px; color: var(--ink); }
.pcard-dl .dl-inner { position: relative; height: 42px; }
.pcard-dl .btn { position: absolute; left: 0; top: 0; margin-top: 0; height: 42px; width: calc(100% - 44px);
  justify-content: flex-start; padding-left: 18px; }
.pcard-dl img { position: absolute; right: -8px; bottom: -10px; width: 82px; height: auto; pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }

.proc-arrow { position: absolute; z-index: 1; width: 146px; height: 84px; }
.proc-arrow.a1 { left: 364px; top: 42px; }
.proc-arrow.a2 { left: 671px; top: 199px; }

/* ── CASE STUDIES ── */
.cases { display: flex; flex-direction: column; gap: 26px; margin-top: 10px; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: #fff;
  border-radius: var(--r-lg); padding: 22px; align-items: stretch; }
.case-body { padding: 32px 30px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.case.rev .case-body { order: 2; }
.case-logo { height: 34px; width: auto; margin-bottom: 24px; }
.case-body h3 { font-size: clamp(20px, 1.85vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 20px; }
.case-body .sub { font-size: 12.5px; line-height: 1.75; }
.case-body .sub p + p { margin-top: 15px; }
.case-body .btn { margin-top: 24px; }
.case-media { background: var(--panel); border-radius: 22px; display: flex; align-items: center; justify-content: center;
  padding: 34px; position: relative; overflow: hidden; }
.case-media img { max-width: 100%; max-height: 430px; width: auto; object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(20,28,38,.18)); }

/* Astra AI card — dark logo chip, dark media, "coming soon" label */
.case-logo-chip { display: inline-flex; align-items: center; background: var(--dark);
  border-radius: 9px; padding: 8px 13px; margin-bottom: 24px; }
.case-logo-chip img { height: 18px; width: auto; }
.case-media.dark { background: #1A1A1A url('img/astra-bg.svg') center / cover no-repeat; }
.case-media.dark img { filter: none; }
.case-soon { display: flex; align-items: center; gap: 9px; margin-top: 26px;
  font-family: var(--mono); font-size: 12.5px; color: var(--gray-faint); }
.case-soon svg { width: 15px; height: 15px; flex-shrink: 0; }

/* testimonial — bleeds to the case card's right + bottom edge */
.case-quote { background: var(--dark); align-self: stretch;
  margin: 56px -52px -52px -40px; padding: 30px 40px 32px;
  border-radius: 28px 0 var(--r-lg) 28px; }
.case-quote .cq-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.case-quote .cq-head img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.case-quote .qn { font-family: var(--mono); font-size: 14px; font-weight: 500; color: #fff; }
.case-quote .qr { font-family: var(--mono); font-size: 12.5px; color: #A78BE8; margin-top: 4px; }
.case-quote p { font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: rgba(255,255,255,.78); }

/* ── PRICING ── */
.price-head { text-align: center; margin-bottom: 60px; }
.price-area { position: relative; max-width: 873px; margin: 0 auto; }
.price-backdrop { position: absolute; left: -48px; right: -48px; top: 57px; height: 370px;
  background: var(--panel); border-radius: var(--r-lg); z-index: 0; }
.price-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 27px; align-items: start; }

.pcol { position: relative; border-radius: 22px; display: flex; flex-direction: column; }

.pcol.dark  { background: #171E29; color: #fff; }
.pcol.light { background: #fff; }

.ptag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 11px; line-height: 1; white-space: nowrap;
  padding: 8px 14px; border-radius: 100px; background: var(--green-soft); color: var(--green); border: 1px solid #BEE7CD; }

.pcol-head { border-radius: 22px 22px 0 0; padding: 42px 24px 26px; text-align: center; }
.pcol-name { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.pcol.dark  .pcol-name { color: #8E70E4; }
.pcol.light .pcol-name { color: var(--violet); }
.pcol-desc { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; margin-top: 14px; }
.pcol.dark  .pcol-desc { color: #fff; font-weight: 500; }
.pcol.light .pcol-desc { color: var(--gray); }

.pprice { text-align: center; padding: 24px 20px; font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.pcol.dark  .pprice { background: rgba(255,255,255,.09); color: #fff; }
.pcol.light .pprice { background: var(--bg); color: var(--ink); }

.pfeats { border-radius: 0 0 22px 22px; padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.pfeat { display: flex; gap: 12px; align-items: flex-start; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.pcol.dark  .pfeat { color: rgba(255,255,255,.80); }
.pcol.light .pfeat { color: var(--gray); }
.pfeat.hl { background: #F0EBFA; margin: -28px -24px 0; padding: 22px 24px; color: var(--ink); }
.pfeat .ck { flex-shrink: 0; width: 13px; margin-top: 3px; }
.pfeat .ft { flex: 1; min-width: 0; }
.pcol.dark  .pfeat .ck { color: #8E70E4; }
.pcol.light .pfeat .ck { color: var(--violet); }
.pfeat b { font-weight: 500; color: inherit; }
.pfeats .btn { margin-top: auto; width: 100%; }

/* ── FAQ ── */
.faq-panel { background: #fff; border-radius: var(--r-lg); padding: 12px 40px; max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0;
  text-align: left; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); }
.faq-ic { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
.faq-ic::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ic::after { top: 0; left: 7px; width: 2px; height: 16px; transition: transform .3s var(--ease), opacity .3s; }
.faq-item.open .faq-ic::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-in { padding: 0 0 28px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--gray); }
.faq-a-in p + p { margin-top: 14px; }
.faq-a-in ul { margin-top: 10px; }
.faq-a-in li { padding-left: 4px; }

/* ── FOUNDER NOTE ── */
/* grey panel behind the card, same treatment as .proc-panel */
.note-wrap { position: relative; }
.note-panel { position: absolute; left: 50%; transform: translateX(-50%);
  width: min(100%, 832px); top: -57px; height: 400px;
  background: var(--panel); border-radius: var(--r-lg); z-index: 0; }

.note { position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  max-width: 690px; margin: 0 auto;
  border-radius: var(--r-lg); padding: 51px;
  background-color: #171D29;
  background-image:
    radial-gradient(135% 88% at 76% 124%, rgba(93,58,169,.50) 0%, rgba(93,58,169,.15) 46%, rgba(93,58,169,0) 74%),
    linear-gradient(180deg, #171D29 0%, #191E2C 58%, #1D2032 100%);
  box-shadow: 0 44px 90px -56px rgba(20,28,38,.9); }
/* hairline + grain: keeps the dark gradient from banding */
.note::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.note::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

.note-in { position: relative; z-index: 1; }
.note-eyebrow { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42); }
/* same as .case-body h3 */
.note-h { margin-top: 16px; font-size: clamp(20px, 1.85vw, 23px); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.3; color: #fff; }
.note-h em { font-style: normal; color: var(--violet-lite); }

/* one size for the whole body — no size-based emphasis */
.note-text, .note-sign { font-family: var(--mono); font-size: 12.5px; line-height: 1.8;
  letter-spacing: -.01em; color: rgba(255,255,255,.60); }
.note-h + .note-text { margin-top: 20px; }
.note-text p + p { margin-top: 16px; }
.note-link { color: #fff; box-shadow: inset 0 -1px 0 rgba(174,146,236,.45); transition: box-shadow .2s var(--ease); }
.note-link:hover { box-shadow: inset 0 -1px 0 var(--violet-lite); }

.note-sign { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); }
.note-sign .sig { color: rgba(255,255,255,.92); }
.note-sign .who { color: rgba(255,255,255,.50); }

/* portrait stands in the bottom-right corner, inside the violet glow */
.note-photo { position: absolute; z-index: 1; right: 0; bottom: 0;
  width: 28%; min-width: 140px; max-width: 193px; height: auto;
  pointer-events: none; user-select: none; filter: grayscale(1) contrast(1.05); }
/* reserve the closing block clear of it — the head is narrow, the shoulders aren't */
.note-text p:nth-last-of-type(-n+2) { padding-right: 30%; }
.note-sign { padding-right: 40%; }


/* ── FINAL CTA ── */
.final { background: var(--violet); border-radius: 40px 40px 0 0; padding: 76px 24px 84px; text-align: center; margin-top: 40px; }
.final h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.18; color: #fff; max-width: 720px; margin: 0 auto; }
.final .sub { color: rgba(255,255,255,.75); margin: 22px auto 34px; max-width: 620px; }
.final-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: #fff; padding: 44px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer .logo img { width: 70px; }
.footer .tag { font-family: var(--mono); font-size: 13px; color: var(--ink); margin-top: 6px; }
.footer-links { display: flex; gap: 30px; }
.footer-links a { font-family: var(--mono); font-size: 13px; color: var(--gray-faint); }
.footer-links a:hover { color: var(--ink); }

/* ── SCROLL REVEAL ── */
.fu { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fu.vis { opacity: 1; transform: none; }

/* ── @property for gauge animation ── */
@property --pct { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .nav-right .nav-link, .nav-right .btn { display: none; }
  .nav-burger { display: flex; }
  .calc-grid, .calc-grid.row2 { grid-template-columns: 1fr 1fr; }
  .price-area { max-width: 420px; }
  .price-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-backdrop { display: none; }
  /* process: stack */
  .proc { height: auto; display: flex; flex-direction: column; gap: 30px; max-width: 420px; }
  .proc-panel, .proc-arrow { display: none; }
  .pcard { position: relative; width: 100%; }
  .pcard.p1, .pcard.p2, .pcard.p3 { left: auto; top: auto; }
  .pcard.p3 { padding: 0; }
  /* cases: stack */
  .case { grid-template-columns: 1fr; }
  .case.rev .case-body { order: 0; }
  .case-media { min-height: 260px; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .calc-grid, .calc-grid.row2 { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .dl-row { flex-direction: column; }
  .dl-note { display: none; }
  .roi-visual { gap: 16px; }
  .roi-arrow { transform: rotate(90deg); }
  .quote-band { padding: 34px 26px; }
  .note-panel { top: -30px; height: 230px; border-radius: var(--r); }
  .note { padding: 40px 20px 48px; border-radius: var(--r); }
  .note-text, .note-sign { font-size: 12px; }
  .note-sign { margin-top: 24px; }
  /* portrait sits inside the signature band only, so the copy runs full width */
  .note-photo { width: clamp(112px, 40%, 152px); min-width: 0; }
  .note-text p:nth-last-of-type(-n+2) { padding-right: 0; }
  .note-sign { padding-right: 46%; }
  .final-ctas .btn { width: 100%; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fu { opacity: 1; transform: none; }
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.cs-hero { text-align: center; padding: 70px 0 0; }
.cs-hero h1 { font-size: clamp(30px, 3.9vw, 46px); font-weight: 600; letter-spacing: -.025em;
  line-height: 1.18; max-width: 800px; margin: 0 auto; }
.cs-meta { font-family: var(--mono); font-size: 12.5px; color: var(--gray); margin-top: 20px; }
.cs-hero-img { margin-top: 46px; }
.cs-hero-img img { width: 100%; max-width: 1000px; margin: 0 auto; height: auto; }

.cs-sec { padding: 70px 0 0; }
.cs-head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.cs-head .eyebrow { display: block; margin-bottom: 12px; }
.cs-head .h2 { font-size: clamp(24px, 2.9vw, 34px); }
.cs-copy { max-width: 700px; margin: 0 auto; text-align: left; font-size: 13px; }
.cs-copy p + p { margin-top: 18px; }
.cs-list { max-width: 700px; margin: 0 auto; font-size: 13px; }
.cs-list li { position: relative; padding-left: 18px; }
.cs-list li + li { margin-top: 18px; }
.cs-list li::before { content: "•"; position: absolute; left: 2px; color: var(--gray); }
.quote-band.solo { border-radius: var(--r-lg); }
.cs-phone { display: flex; justify-content: center; margin-top: 46px; }
.cs-phone img { width: 300px; height: auto; filter: drop-shadow(0 26px 44px rgba(20,28,38,.20)); }
.cs-device { display: flex; justify-content: center; margin-top: 46px; }
.cs-device img { width: 100%; max-width: 620px; height: auto; }

/* connector arrow between steps */
.cs-arrow { display: flex; justify-content: center; padding: 56px 0 0; }
.cs-arrow span { position: relative; width: 2px; height: 78px;
  background: repeating-linear-gradient(var(--violet) 0 6px, transparent 6px 12px); }
.cs-arrow span::after { content: ""; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top: 9px solid var(--violet); }

/* dot rating */
/* X rating scale — SVG mask so it stays crisp at any size */
.xs { display: inline-flex; gap: 4px; align-items: center; }
.xs i { width: 9px; height: 9px; background-color: #CBD3DC;
  -webkit-mask: var(--x-mask) center/contain no-repeat; mask: var(--x-mask) center/contain no-repeat; }
.xs i.on { background-color: #7C61FF; }

/* participants matrix */
.cs-matrix { margin-top: 44px; overflow-x: auto; padding-bottom: 4px; }
.mx-grid { min-width: 830px; display: grid; grid-template-columns: 150px repeat(6, 1fr); gap: 7px; }
.mx-grid.cols7 { min-width: 920px; grid-template-columns: 140px repeat(7, 1fr); }
.mx-head, .mx-lbl { background: var(--dark); color: #fff; border-radius: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; padding: 11px 8px; text-align: center; }
.mx-lbl { justify-content: center; }
.mx-lbl.ghost { background: none; }
.mx-lbl sup { color: var(--orange); margin-left: 2px; }
.mx-cell { background: #fff; border-radius: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--gray);
  display: flex; align-items: center; justify-content: center; padding: 11px 8px; }

/* task / result cards */
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.task-card { background: var(--panel); border-radius: 14px; padding: 22px 22px 20px; }
.task-card.mid { grid-column: 2; }
.task-n { font-family: var(--mono); font-size: 11px; color: var(--gray-faint); }
.task-card h3 { font-size: 14px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; margin: 8px 0 18px; }
.task-rate { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--gray); }
.task-rate + .task-rate { margin-top: 9px; }
.task-rate .lbl { width: 74px; flex-shrink: 0; }

/* interview result cards */
.res-grid { gap: 16px; }
.task-card.res { background: var(--panel); border-radius: 14px; padding: 22px 22px 20px; }
.task-card.res .task-n { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.task-card.res h3 { font-size: 14px; line-height: 1.4; margin: 8px 0 10px; }
.res-time { font-family: var(--mono); font-size: 11px; color: var(--gray-faint); margin-bottom: 16px; }
.res-time b { color: var(--gray); font-weight: 500; }
.task-card.res.mid { grid-column: 2; }
.res-row { display: flex; align-items: center; gap: 26px; }
.res-item { display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; color: var(--gray); }
.res-item i { width: 20px; height: 20px; flex-shrink: 0; display: inline-block;
  background-position: center; background-size: contain; background-repeat: no-repeat; }
.d-ok      { background-image: url("img/res-success.png"); }
.d-med     { background-image: url("img/res-medium.png"); }
.d-crit    { background-image: url("img/res-critical.png"); }
.d-neutral { background-image: url("img/res-neutral.png"); }

/* next case */
.next-head { display: flex; align-items: center; justify-content: center; gap: 26px; margin-bottom: 40px; }
.next-head .h2 { font-size: clamp(22px, 2.4vw, 30px); }
.next-nav { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .18s, transform .18s; }
.next-nav:hover { background: var(--violet-soft); color: var(--violet); transform: translateY(-1px); }
.next-case { transition: opacity .18s var(--ease); }
.next-case.swapping { opacity: 0; }
.next-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.nd { width: 8px; height: 8px; border-radius: 50%; background: #D3D7E0; padding: 0;
  transition: background .2s var(--ease), transform .2s var(--ease); }
.nd:hover { background: #B9BEC9; }
.nd.on { background: var(--violet); transform: scale(1.15); }

@media (max-width: 980px) {
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .task-card.mid, .task-card.res.mid { grid-column: auto; }
}
@media (max-width: 620px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card.mid, .task-card.res.mid { grid-column: auto; }
  .cs-phone img { width: 240px; }
  /* interview results stay in a row inside each stacked card */
  .res-row { flex-wrap: wrap; gap: 18px; }
}

/* ============================================================
   LEGAL PAGES (terms / privacy / cookies)
   ============================================================ */
.legal { padding: 60px 0 100px; }
.legal-in { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.legal-tabs a { font-family: var(--mono); font-size: 12.5px; padding: 9px 16px; border-radius: 100px;
  background: #fff; color: var(--gray); transition: background .18s, color .18s; }
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a.on { background: var(--violet-soft); color: var(--violet); }

.legal-body { background: #fff; border-radius: var(--r-lg); padding: 54px 56px 60px; }
.legal-body h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -.025em;
  line-height: 1.15; margin-bottom: 26px; }
.legal-body h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 44px 0 14px; }
.legal-body h3 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; }
.legal-body p, .legal-body li { font-family: var(--mono); font-size: 13px; line-height: 1.85; color: var(--gray); }
.legal-body p { margin-bottom: 16px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body em { font-style: italic; }
.legal-body a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--violet-ink); }
.legal-body ul { margin: 0 0 18px; padding-left: 4px; }
.legal-body li { position: relative; padding-left: 18px; margin-bottom: 9px; }
.legal-body li::before { content: "•"; position: absolute; left: 2px; color: var(--violet); }
.legal-body code { font-family: var(--mono); font-size: 12px; background: var(--bg);
  padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.legal-body blockquote { background: var(--violet-tint); border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 22px; }
.legal-body blockquote p { margin: 0; }

.legal-body .tbl-wrap { overflow-x: auto; margin: 0 0 24px; }
.legal-body table { width: 100%; min-width: 520px; border-collapse: collapse;
  font-family: var(--mono); font-size: 12px; }
.legal-body th { background: var(--dark); color: #fff; font-weight: 500; text-align: left;
  padding: 12px 14px; line-height: 1.5; }
.legal-body th:first-child { border-radius: 8px 0 0 8px; }
.legal-body th:last-child { border-radius: 0 8px 8px 0; }
.legal-body td { padding: 13px 14px; color: var(--gray); line-height: 1.65;
  border-bottom: 1px solid var(--line); vertical-align: top; }

/* unfilled placeholders — must be replaced before going live */
.ph { background: #FFF3CD; color: #8A6D1F; border-radius: 4px; padding: 1px 5px;
  font-style: normal; white-space: normal; }

@media (max-width: 620px) {
  .legal { padding: 40px 0 70px; }
  .legal-body { padding: 32px 22px 38px; border-radius: var(--r); }
  .legal-body h2 { font-size: 18px; margin: 34px 0 12px; }
}

/* sample-report download CTAs */
.js-dl { position: relative; }
.js-dl.is-downloading { pointer-events: none; opacity: .85; }
