/* ============================================================
   Sanddo — cinematic LIGHT redesign (v2)
   Clean near-white canvas · navy ink · navy-blue accent
   Unified with the real product palette.
   ============================================================ */

:root {
  --bg:        #fcfcfd;      /* clean near-white canvas */
  --bg-2:      #f4f6f9;
  --bg-tint:   #eef2f8;      /* soft tinted fill (avatars, bubbles, tracks) */
  --paper:     #f8f9fb;
  --surface:   #ffffff;
  --surface-2: #f4f6f9;
  --glass:     rgba(255,255,255,.72);
  --glass-brd: rgba(22,38,63,.08);

  --ink:    #16263f;
  --ink-2:  #51617a;
  --ink-3:  #8593a8;
  --ink-4:  #aab4c4;

  --line:    rgba(22,38,63,.10);
  --line-2:  rgba(22,38,63,.16);

  --primary:      #1d4ed8;   /* navy blue */
  --primary-deep: #16409f;
  --primary-ink:  #143489;
  --primary-tint: rgba(29,78,216,.08);
  --primary-tint2:rgba(29,78,216,.16);
  --sky:          #e8f1fb;   /* light blue fill */
  --sky-2:        #c9def5;

  --auto:       #1f9d6b;   --auto-tint:  rgba(31,157,107,.13);
  --approve:    #c2871b;   --approve-tint:rgba(194,135,27,.14);
  --stop:       #d65a52;   --stop-tint:  rgba(214,90,82,.13);

  /* high-contrast surfaces (navy pill buttons / dark cards) */
  --contrast-bg: #16263f; --contrast-fg: #ffffff;
  --action-bg:   #16263f; --action-fg:   #ffffff;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 6px -2px rgba(22,38,63,.10);
  --shadow:    0 14px 36px -16px rgba(22,38,63,.18), 0 2px 8px -3px rgba(22,38,63,.07);
  --shadow-lg: 0 50px 100px -36px rgba(18,32,56,.30), 0 14px 34px -18px rgba(18,32,56,.16);

  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Schibsted Grotesk", system-ui, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

#root { isolation: isolate; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }
::selection { background: var(--primary-tint2); color: var(--primary-ink); }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 128px 0; position: relative; }
.section--tint  { background: var(--bg-2); }
.section--paper { background: var(--paper); }

/* fixed dark band (regardless of page being light) — token scope flips children */
.section--ink {
  background: #122035; color: #e7edf6;
  --ink: #ffffff; --ink-2: #aebccf; --ink-3: #7e8da3; --ink-4: #5a6a82;
  --surface: #1b2c46; --surface-2: #223354;
  --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.2);
  --bg-2: #1b2c46; --bg: #122035; --bg-tint: #26395a;
  --primary: #9b8dff; --primary-ink: #d2ccff; --primary-tint: rgba(155,141,255,.16); --primary-tint2: rgba(155,141,255,.28);
  --auto:#4ecf91; --auto-tint:rgba(78,207,145,.15); --approve:#e6b14e; --approve-tint:rgba(230,177,78,.15); --stop:#f0795f; --stop-tint:rgba(240,121,95,.15);
  --contrast-bg:#ffffff; --contrast-fg:#16263f;
  --glass: rgba(27,44,70,.55); --glass-brd: rgba(255,255,255,.13);
  --shadow-lg: 0 50px 100px -36px rgba(0,0,0,.6), 0 14px 34px -18px rgba(0,0,0,.45);
}

.ruled { border-top: 1px solid var(--line); }

/* ---- kicker ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint);
}

/* ---- headings ---- */
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; color: var(--ink); }

.h-display { font-size: clamp(54px, 9vw, 132px); font-weight: 700; letter-spacing: -0.045em; line-height: .94; }
.h-section { font-size: clamp(34px, 4.8vw, 66px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); line-height: 1.6; letter-spacing: -0.004em; }

.sec-head { max-width: 760px; }
.sec-head .kicker { margin-bottom: 24px; }
.sec-head h2 { margin-bottom: 22px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: background .2s var(--ease), color .2s, box-shadow .25s var(--ease), transform .14s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action-bg); color: var(--action-fg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---- signal pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  padding: 5px 11px; border-radius: 999px;
}
.pill-auto    { color: var(--auto);    background: var(--auto-tint); }
.pill-approve { color: var(--approve); background: var(--approve-tint); }
.pill-stop    { color: var(--stop);    background: var(--stop-tint); }
.pill-draft   { color: var(--ink-2);   background: var(--surface-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- surfaces ---- */
.card  { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.frame { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.frame--raised { box-shadow: var(--shadow-lg); }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--glass-brd); }

/* hover lift for interactive/feature cards */
.lift { transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ambient radial glow for depth behind a section */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 760px; height: 560px; left: 50%; top: -120px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--primary-tint), transparent 72%);
  opacity: .8;
}
.glow > * { position: relative; z-index: 1; }

/* ---- reveal (opacity via declarations; animation only slides transform, so a
   paused/frozen capture can never leave content invisible) ---- */
.rise { opacity: 1; transform: none; }
html.js .rise:not(.in) { opacity: 0; transform: translateY(22px); }
html.js .rise.in { opacity: 1; transform: none; }
html.js.vis .rise.in { animation: riseUp .85s var(--ease); }
@keyframes riseUp { from { transform: translateY(22px); } to { transform: none; } }
html.js.vis .rise-d1.in { animation-delay: .08s; }
html.js.vis .rise-d2.in { animation-delay: .16s; }
html.js.vis .rise-d3.in { animation-delay: .24s; }
html.js.vis .rise-d4.in { animation-delay: .32s; }
html.vis .fade { transition: opacity .5s var(--ease), transform .5s var(--ease), background .4s var(--ease), border-color .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html.js.vis .rise.in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- bento feature cards ---- */
.bento { display: grid; gap: 22px; grid-template-columns: repeat(6, 1fr); }
.bcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: 26px;
}
.bcard--3 { grid-column: span 3; min-height: 470px; }
.bcard--2 { grid-column: span 2; min-height: 440px; }
.bcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 30px 30px 10px; }
.bcard-title { font-size: 21px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.32; color: var(--ink); max-width: 26ch; }
.bcard-go {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  transition: transform .25s var(--ease), background .2s;
}
.bcard:hover .bcard-go { transform: translate(2px,-2px); background: var(--primary-deep); }
.bcard-body { position: relative; flex: 1; min-height: 340px; }
.shot {
  background: var(--surface); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(22,38,63,.28), 0 0 0 1px rgba(22,38,63,.05);
}
@media (max-width: 980px) {
  .bcard--2, .bcard--3 { grid-column: span 6; min-height: 440px; }
}

/* ---- production polish ---- */
h1, h2, h3 { text-wrap: balance; }
.lead, .bcard-title { text-wrap: pretty; }
[id] { scroll-margin-top: 96px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* bento: reveal more of the cropped mockup on hover */
.bcard .bcard-body { transition: transform .55s var(--ease); }
.bcard:hover .bcard-body { transform: translateY(-9px); }

/* subtle dot-grid texture */
.dotted { position: relative; }
.dotted::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(22,38,63,.09) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 42%, #000, transparent 72%);
  mask-image: radial-gradient(70% 60% at 50% 42%, #000, transparent 72%);
}

/* stat band dividers */
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .stat-cell + .stat-cell { border-left: none; border-top: 1px solid var(--line); padding-top: 44px; }
}

/* giant footer wordmark */
.foot-mark {
  font-weight: 800; line-height: .82; letter-spacing: -0.05em; text-align: center;
  user-select: none; pointer-events: none; color: var(--bg-2);
  font-size: clamp(100px, 16.5vw, 220px); margin-top: 52px; margin-bottom: -10px;
}

/* marquee pauses on hover */
.strip-track:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .bcard .bcard-body { transition: none; }
  .bcard:hover .bcard-body { transform: none; }
}

/* ---- label ---- */
.mono-label {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

@media (max-width: 820px) {
  .section { padding: 86px 0; }
  .wrap { padding: 0 20px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .btn-lg { height: 52px; padding: 0 22px; font-size: 15.5px; }
}
