/* ==========================================================================
   iStruct2D — marketing site
   Design system distilled from the app's own source (exact brand colours,
   logo geometry and the green/blue/purple/red result language).
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Brand — lifted verbatim from the SwiftUI source */
  --indigo:        #5B6CF6;   /* primary brand  Color(91,108,246)  */
  --indigo-deep:   #4150d8;
  --indigo-ink:    #2c2f7a;
  --blue:          #3093FF;   /* draw / bending Color(48,147,255)   */
  --blue-soft:     #3B82F6;   /* results        Color(59,130,246)   */
  --green:         #2EB872;   /* supports       Color(46,184,114)   */
  --green-shear:   #10B981;   /* shear          Color(16,185,129)   */
  --red:           #DB2719;   /* loads / axial  Color(219,39,25)    */
  --purple:        #9747FF;   /* edit           Color(151,71,255)   */
  --purple-defl:   #8B5CF6;   /* deflection     Color(139,92,246)   */
  --steel:         #1A2793;   /* members        Color(26,39,147)    */
  --uq:            #51247A;   /* UQ purple      Color(81,36,122)    */

  /* Ink + neutrals */
  --ink:           #141522;   /* Color(20,21,34)   */
  --body:          #464A60;   /* Color(70,74,96)   */
  --muted:         #6E728C;   /* Color(110,114,140)*/
  --faint:         #8C90AA;   /* Color(140,144,170)*/
  --line:          #e4e7f1;
  --line-soft:     #eef1f9;

  /* Surfaces */
  --bg:            #f7f8fc;   /* Color(247,248,252)*/
  --bg-2:          #e9ecf8;   /* Color(233,236,248)*/
  --surface:       #ffffff;
  --surface-blur:  rgba(255,255,255,.72);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20,21,34,.04), 0 2px 8px rgba(20,21,34,.05);
  --shadow:    0 8px 24px -8px rgba(40,46,110,.18), 0 2px 8px rgba(20,21,34,.05);
  --shadow-lg: 0 30px 60px -18px rgba(40,46,110,.32), 0 8px 24px -12px rgba(20,21,34,.14);
  --shadow-indigo: 0 18px 40px -12px rgba(91,108,246,.5);

  --radius:   18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
}

::selection { background: rgba(91,108,246,.22); color: var(--ink); }

/* ----------------------------------------------------------------- Layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 132px); position: relative; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12.5px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(91,108,246,.09);
  border: 1px solid rgba(91,108,246,.16);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgba(91,108,246,.18); }

.h2 { font-size: clamp(30px, 4.4vw, 50px); }
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}
.center .lead { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.center.section-head { margin-inline: auto; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15.5px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s;
  white-space: nowrap;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-indigo);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -12px rgba(91,108,246,.62); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(91,108,246,.4); box-shadow: var(--shadow); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 11px 22px 11px 18px; border-radius: 15px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 12px 30px -10px rgba(20,21,34,.5);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(20,21,34,.6); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appstore .as-small { font-size: 10.5px; opacity: .85; letter-spacing: .02em; }
.appstore .as-big { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.appstore .as-tag {
  margin-left: 6px; font: 700 9.5px/1 var(--mono); letter-spacing: .1em;
  padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.16); color: #fff; align-self: center;
}

/* ----------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--surface-blur);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px -8px rgba(20,21,34,.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 18.5px; letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand .beta { font: 700 9px/1 var(--mono); letter-spacing: .12em; color: var(--indigo); background: rgba(91,108,246,.12); padding: 4px 6px; border-radius: 5px; transform: translateY(-7px); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--body); font-weight: 600; font-size: 14.5px; padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(91,108,246,.07); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; stroke: var(--ink); }
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: inline-flex; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 99;
  background: var(--surface-blur); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter) 26px;
  display: none; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; animation: fade-down .3s var(--ease); }
.mobile-menu a { padding: 14px 8px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 14px; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- Blueprint background */
.blueprint {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-image:
    linear-gradient(rgba(91,108,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,108,246,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 35%, transparent 78%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }

/* ----------------------------------------------------------------- Hero */
.hero { position: relative; padding-top: 132px; padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); letter-spacing: -.035em; font-weight: 850; }
.hero h1 .grad {
  background: linear-gradient(115deg, var(--indigo) 10%, var(--blue) 60%, var(--purple) 110%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { margin-top: 22px; font-size: clamp(17px, 2.1vw, 21px); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.hero-trust .uq-chip { width: 26px; height: 26px; border-radius: 7px; background: var(--uq); display: grid; place-items: center; flex: none; }
.hero-trust .uq-chip svg { width: 15px; height: 15px; fill: #fff; }

.beta-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 12px/1 var(--mono); letter-spacing: .04em;
  color: var(--indigo-ink); background: rgba(91,108,246,.1);
  border: 1px solid rgba(91,108,246,.2);
  padding: 8px 14px 8px 10px; border-radius: var(--radius-pill); margin-bottom: 24px;
}
.beta-pill .tag { background: var(--indigo); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 999px; letter-spacing: .1em; }

/* Hero visual — animated logo + floating result cards over an iPad */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.logo-stage {
  position: relative; width: min(440px, 90%); aspect-ratio: 1 / .92;
  display: grid; place-items: center;
}
.logo-stage .halo {
  position: absolute; inset: 6% ; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(91,108,246,.4), rgba(91,108,246,0) 62%);
  filter: blur(10px);
}
/* the blue gradient app-icon tile that holds the assembling white frame */
.icon-tile {
  position: relative; z-index: 2;
  width: min(330px, 78%); aspect-ratio: 1 / 1;
  border-radius: 24%;
  background:
    radial-gradient(130% 130% at 28% 18%, #7d8bff 0%, #5B6CF6 42%, #4150d8 100%);
  box-shadow:
    0 40px 80px -24px rgba(65,80,216,.62),
    0 12px 28px -12px rgba(20,21,34,.3),
    inset 0 2px 0 rgba(255,255,255,.4),
    inset 0 -18px 40px rgba(33,40,120,.45);
  display: grid; place-items: center; overflow: hidden;
  transition: transform .35s var(--ease-spring);
}
.icon-tile::before {            /* glossy top-light sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 36%);
  mix-blend-mode: screen; pointer-events: none;
}
.logo-stage.nudge .icon-tile { animation: tile-nudge .6s var(--ease); }
@keyframes tile-nudge { 0%,100% { transform: none; } 30% { transform: translateY(-6px) rotate(-1.5deg); } 60% { transform: translateY(2px) rotate(.8deg); } }

.logo-svg { width: 76%; height: 76%; position: relative; z-index: 3; overflow: visible; }
.logo-svg .member { stroke-linecap: round; stroke-linejoin: round; fill: none; stroke: #fff; stroke-width: 7; }
.logo-svg .member.brace { stroke: rgba(255,255,255,.42); stroke-width: 7.5; }
.logo-svg .joint { fill: #fff; stroke-width: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 1px 3px rgba(33,40,120,.5)); }

/* members drop in from the top member-by-member (echoes BuildingHeroView) */
.logo-svg .member, .logo-svg .joint { opacity: 0; }
.logo-svg.go .member { animation: drop-in .9s var(--ease-spring) forwards; }
.logo-svg.go .member:nth-child(1) { animation-delay: .04s; }
.logo-svg.go .member:nth-child(2) { animation-delay: .18s; }
.logo-svg.go .member:nth-child(3) { animation-delay: .32s; }
.logo-svg.go .member:nth-child(4) { animation-delay: .46s; }
.logo-svg.go .member:nth-child(5) { animation-delay: .60s; }
.logo-svg.go .member:nth-child(6) { animation-delay: .74s; }
.logo-svg.go .joint { animation: joint-pop .5s var(--ease-spring) forwards; animation-delay: .9s; }
.logo-svg.go.noanim .member, .logo-svg.go.noanim .joint { animation: none; opacity: 1; }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-74px); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
@keyframes joint-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.nudge-btn { animation: tile-nudge .5s var(--ease); }

/* floating chips around hero logo */
.float-chip {
  position: absolute; z-index: 5;
  background: var(--surface); border-radius: 14px; padding: 11px 15px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  animation: floaty 6s var(--ease) infinite;
}
.float-chip .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-chip .ico svg { width: 17px; height: 17px; }
.float-chip small { display: block; font: 600 11px/1.3 var(--mono); color: var(--muted); margin-top: 2px; }
.float-chip .val { font-family: var(--mono); font-weight: 700; }
.fc-1 { top: 4%; left: -4%; animation-delay: 0s; }
.fc-2 { top: 38%; right: -8%; animation-delay: -2s; }
.fc-3 { bottom: 6%; left: 2%; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* metric strip under hero */
.metric-row {
  position: relative; z-index: 2; margin-top: clamp(48px, 7vw, 84px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.metric { background: var(--surface); padding: 24px 22px; text-align: center; }
.metric .n { font: 800 clamp(26px,3vw,34px)/1 var(--font); color: var(--ink); letter-spacing: -.03em; }
.metric .n .u { font-family: var(--mono); color: var(--indigo); font-size: .6em; font-weight: 700; }
.metric .l { font-size: 13px; color: var(--muted); margin-top: 7px; font-weight: 600; }
@media (max-width: 720px){ .metric-row { grid-template-columns: repeat(2,1fr);} }

/* ----------------------------------------------------------------- Steps band (Draw / Load / Solve) */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step3 {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px 26px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.step3:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(91,108,246,.3); }
.step3 .num { font: 800 14px/1 var(--mono); color: var(--indigo); letter-spacing: .1em; }
.step3 h3 { font-size: 22px; margin: 14px 0 8px; }
.step3 p { color: var(--muted); font-size: 15px; }
.step3 .glyph { width: 100%; height: 92px; margin-bottom: 6px; }
@media (max-width: 820px){ .steps3 { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- Interactive Solver */
.solver-section { background: linear-gradient(180deg, var(--bg) 0%, #eef1fb 100%); }
.solver {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
}
.solver-stage {
  position: relative; background:
    linear-gradient(rgba(91,108,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,108,246,.06) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcff, #f3f5fd);
  background-size: 26px 26px, 26px 26px, 100% 100%;
  padding: 18px; min-height: 420px; display: flex; flex-direction: column;
}
.solver-stage svg { width: 100%; flex: 1; overflow: visible; touch-action: none; }
.solver-hint { font: 600 12px/1 var(--mono); color: var(--faint); text-align: center; padding-top: 6px; }
.solver-hint b { color: var(--indigo); }

.solver-panel { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 22px; background: var(--surface); }
.solver-panel h3 { font-size: 23px; }
.solver-panel .sp-lead { color: var(--muted); font-size: 14.5px; margin-top: -10px; }

.seg { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button {
  font: 700 13.5px/1 var(--font); color: var(--muted); padding: 9px 16px; border-radius: 9px;
  transition: color .2s, background .25s, box-shadow .25s;
}
.seg button.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }

.ctrl label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 9px; }
.ctrl label .v { font-family: var(--mono); color: var(--indigo); font-weight: 700; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--indigo) var(--fill,50%), var(--bg-2) var(--fill,50%));
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--indigo); box-shadow: var(--shadow); cursor: grab; transition: transform .15s;
}
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--indigo); box-shadow: var(--shadow); cursor: grab; }

/* result toolbar — mirrors the app's ResultsToolbar */
.result-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.result-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 6px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--surface); transition: all .25s var(--ease);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.result-tabs button .rt-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; transition: all .25s; }
.result-tabs button .rt-ico svg { width: 17px; height: 17px; }
.result-tabs button.on { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.result-tabs button.on .rt-ico { background: rgba(255,255,255,.22) !important; }
.result-tabs button[data-r=reactions].on { background: var(--indigo); }
.result-tabs button[data-r=shear].on     { background: var(--green-shear); }
.result-tabs button[data-r=bending].on    { background: var(--blue-soft); }
.result-tabs button[data-r=deflection].on { background: var(--purple-defl); }

.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.readcard {
  background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px;
}
.readcard .k { font: 600 11px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.readcard .v { font: 800 19px/1.1 var(--mono); color: var(--ink); margin-top: 7px; letter-spacing: -.02em; }
.readcard .v small { font-size: 12px; color: var(--faint); font-weight: 600; }
.readcard.accent { border-color: rgba(91,108,246,.3); background: rgba(91,108,246,.05); }
.readcard.accent .v { color: var(--indigo); }

@media (max-width: 900px){ .solver { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- How it works (timeline) */
.how-steps { display: grid; gap: 18px; }
.how-step {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.how-step:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: rgba(91,108,246,.28); }
.how-step .badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font: 800 22px/1 var(--mono); color: #fff;
}
.how-step h3 { font-size: 21px; margin-bottom: 5px; }
.how-step p { color: var(--muted); font-size: 14.5px; max-width: 56ch; }
.how-step .how-anim { width: 132px; height: 76px; flex: none; }
@media (max-width: 760px){
  .how-step { grid-template-columns: 52px 1fr; }
  .how-step .how-anim { display: none; }
}

/* ----------------------------------------------------------------- Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center;
  margin-bottom: clamp(64px, 9vw, 120px);
}
.feature:last-child { margin-bottom: 0; }
.feature.rev .feature-media { order: 2; }
.feature-copy .tag {
  display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono);
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; margin-bottom: 18px;
}
.feature-copy h3 { font-size: clamp(25px, 3.2vw, 35px); margin-bottom: 16px; }
.feature-copy p { color: var(--body); font-size: 16.5px; }
.feature-list { margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--body); }
.feature-list .tick { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; margin-top: 1px; }
.feature-list .tick svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; fill: none; }

/* device frame */
.device {
  position: relative; border-radius: 26px; padding: 12px; background: #14151f;
  box-shadow: var(--shadow-lg); border: 1px solid #23253a;
}
.device::after { content:""; position: absolute; top: 50%; transform: translateY(-50%); right: -4px; width: 4px; height: 56px; background:#0c0d15; border-radius: 0 3px 3px 0; }
.device img { border-radius: 15px; width: 100%; display: block; }
.device.tilt { transition: transform .5s var(--ease); transform-style: preserve-3d; }

.media-tilt { perspective: 1400px; }

/* ----------------------------------------------------------------- Results legend showcase */
.legend-section { background: #0f1020; color: #fff; overflow: hidden; position: relative; }
.legend-section .blueprint {
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  -webkit-mask-image: none; mask-image: none; opacity: .6;
}
.legend-section h2, .legend-section h3 { color: #fff; }
.legend-section .lead { color: rgba(255,255,255,.62); }
.legend-section .eyebrow { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.legend-section .eyebrow .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.legend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 12px; }
.legend-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: 24px; backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.legend-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.legend-card .lc-sym { font: 800 26px/1 var(--mono); margin-bottom: 4px; }
.legend-card h3 { font-size: 18px; margin-bottom: 6px; }
.legend-card p { color: rgba(255,255,255,.6); font-size: 13.5px; }
.legend-card svg { width: 100%; height: 64px; margin: 14px 0; overflow: visible; }
@media (max-width: 880px){ .legend-grid { grid-template-columns: repeat(2,1fr);} }

/* ----------------------------------------------------------------- Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #14151f; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.shot img { width: 100%; height: 100%; aspect-ratio: 2420 / 1668; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot:hover img { transform: scale(1.03); }
.shot .cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 18px 14px; z-index: 2;
  background: linear-gradient(transparent, rgba(8,9,18,.86));
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.01em;
}
.shot .cap small { display: block; font: 600 11.5px/1.4 var(--mono); color: rgba(255,255,255,.78); margin-top: 3px; letter-spacing: .02em; }
.shot.g6 { grid-column: span 6; }
.shot.g4 { grid-column: span 4; }
@media (max-width: 820px){ .shot.g6, .shot.g4 { grid-column: span 12; } }

/* ----------------------------------------------------------------- Audience cards */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; position: relative; overflow: hidden;
}
.aud::before { content:""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--indigo)); opacity: .9; }
.aud:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(91,108,246,.28); }
.aud .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: color-mix(in srgb, var(--c, var(--indigo)) 13%, #fff); }
.aud .ico svg { width: 28px; height: 28px; stroke: var(--c, var(--indigo)); fill: none; stroke-width: 1.8; }
.aud h3 { font-size: 21px; margin-bottom: 9px; }
.aud p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px){ .aud-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- Trust band */
.trust {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.trust-item { background: var(--surface); padding: 34px 30px; display: flex; gap: 18px; align-items: center; }
.trust-item .ti-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.trust-item .ti-ico svg { width: 26px; height: 26px; }
.trust-item h3 { font-size: 17px; margin-bottom: 3px; }
.trust-item p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 820px){ .trust { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- CTA */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 80px) var(--gutter);
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 55%, var(--purple) 130%);
  box-shadow: var(--shadow-indigo); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 56ch; margin: 0 auto 30px; font-size: 18px; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .appstore { background: #fff; color: var(--ink); }
.cta-band .appstore .as-tag { background: rgba(91,108,246,.14); color: var(--indigo); }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.cta-band .cta-grid-deco { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }

/* ----------------------------------------------------------------- Disclaimer + Footer */
.disclaimer {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px 26px;
  background: rgba(219,39,25,.03); display: flex; gap: 16px; align-items: flex-start; margin-top: 56px;
}
.disclaimer .ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(219,39,25,.1); display: grid; place-items: center; flex: none; }
.disclaimer .ico svg { width: 19px; height: 19px; stroke: var(--red); fill: none; stroke-width: 2; }
.disclaimer p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.disclaimer b { color: var(--body); }

footer { background: #0f1020; color: rgba(255,255,255,.7); padding-block: 64px 36px; margin-top: clamp(60px,8vw,100px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 16px; max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-family: var(--mono); }
.footer-col a { display: block; padding: 7px 0; font-size: 14.5px; color: rgba(255,255,255,.62); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bot .uq { display: inline-flex; align-items: center; gap: 9px; }
.footer-bot .uq b { color: rgba(255,255,255,.8); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------------------- Terms page */
.legal-hero { padding-top: 130px; padding-bottom: 40px; position: relative; overflow: hidden; }
.legal-wrap { max-width: 820px; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.legal-meta { font: 600 13px/1 var(--mono); color: var(--muted); margin-top: 14px; }
.legal-body { max-width: 820px; padding-bottom: 80px; }
.legal-section { margin-bottom: 30px; scroll-margin-top: 100px; }
.legal-section h2 { font-size: 19px; margin-bottom: 9px; display: flex; gap: 12px; align-items: baseline; }
.legal-section h2 .n { font: 800 14px/1 var(--mono); color: var(--indigo); }
.legal-section p { color: var(--body); font-size: 15.5px; line-height: 1.7; }
.legal-ack { margin-top: 36px; padding: 22px 26px; border-radius: var(--radius); background: rgba(91,108,246,.06); border: 1px solid rgba(91,108,246,.18); font-weight: 700; color: var(--ink); font-size: 15px; }
.legal-toc { position: sticky; top: 100px; align-self: start; }
.legal-toc h4 { font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.legal-toc a { display: block; padding: 7px 0 7px 14px; font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--line); transition: all .2s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--indigo); border-left-color: var(--indigo); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; }
@media (max-width: 880px){ .legal-layout { grid-template-columns: 1fr; } .legal-toc { display: none; } }

/* ----------------------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* animated draw-on path utility (set via JS when in view) */
.draw-path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.draw-path.go { animation: draw 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.pop { opacity: 0; transform: scale(.2); }
.pop.go { animation: pop .5s var(--ease-spring) forwards; }
@keyframes pop { to { opacity: 1; transform: scale(1);} }

/* small print helpers */
.kbd { font: 600 12px/1 var(--mono); background: var(--bg-2); padding: 3px 7px; border-radius: 6px; color: var(--body); }

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: 2; min-height: 340px; margin-top: 8px; }
  .hero .lead { max-width: 100%; }
}
@media (max-width: 860px) {
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev .feature-media { order: 0; }
  .feature-media { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 116px; }
  .hero-visual { min-height: 300px; }
  .icon-tile { width: 64%; }
  .float-chip { transform: scale(.86); }
  .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { left: 0; }
  .cta-band .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-band .appstore, .cta-band .btn { justify-content: center; }
  .legend-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .eyebrow { white-space: normal; }
}
