/* ============================================================================
   BrickWise - marketing site
   ----------------------------------------------------------------------------
   Extracted from the five pages that each carried their own identical copy of
   this stylesheet (index, features, how-it-works, faq, privacy). One file means
   one place to change, and one place for the pages to agree with each other.

   DESIGN DIRECTION - "tray & cobalt"
   ----------------------------------
   The subject is a brick seller's bench: moulded plastic trays, sorted parts,
   a price guide open beside them. So the page is built like a parts tray rather
   than a software landing page.

   - Colour is a cool moulded-plastic grey-blue, not a warm cream or a near-black
     canvas. The accent is a deep brick cobalt, with stud-amber reserved for
     money and figures, and a muted mint for "free / already cached".
   - Type does the work: Bricolage Grotesque (assembled from parts - the word
     bricolage is literally that) for headings, IBM Plex Sans for everything
     read at length. Tabular figures so price columns line up.
   - Surfaces are outlined trays with a small radius and NO drop shadow. Shadows
     are reserved for things that actually float above the page (menus, modals).
     One radius on everything was the tell this replaces.
   - The one loud device is the stud field: the tops of LEGO studs, seen from
     above, as the page's repeating rhythm marker. It replaces the blurred
     gradient blobs, which said nothing about the subject.
   ========================================================================== */

/* ============ TOKENS ============
   Light first: a visitor with no stored preference and no OS hint still gets a
   readable page if JavaScript never runs. */
:root{
  --bg:#F1F4F9; --bg-soft:#E7EBF2; --surface:#FFFFFF; --surface-2:#EDF1F7;
  --line:rgba(13,20,32,.10); --line-strong:rgba(13,20,32,.20);
  --ink:#0F1725; --ink-dim:#4B586C; --ink-faint:#7B8798;
  --brand:#1F49C7; --brand-lit:#3568E8; --brand-deep:#143393;
  --stud:#FFD500; --stud-ink:#7A5E00; --mint:#0E9F76; --danger:#C2382C;
  --tray-li:rgba(13,20,32,.035);
  --shadow-sm:0 1px 2px rgba(13,20,32,.06);
  --shadow-md:0 18px 40px -18px rgba(13,20,32,.30);
  --shadow-lg:0 44px 80px -34px rgba(13,20,32,.40);
  --radius:12px; --radius-sm:8px; --radius-xs:5px; --shell:1180px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --display:'Bricolage Grotesque',system-ui,sans-serif;
  --body:'IBM Plex Sans',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color-scheme:light;
}
[data-theme=dark]{
  --bg:#0E1219; --bg-soft:#141A24; --surface:#171E2A; --surface-2:#1E2634;
  --line:rgba(255,255,255,.09); --line-strong:rgba(255,255,255,.17);
  --ink:#F1F5FB; --ink-dim:#A3AFC2; --ink-faint:#6E7A8C;
  --brand:#5A87FF; --brand-lit:#84AAFF; --brand-deep:#2C55D6;
  --stud:#FFD24A; --stud-ink:#FFD24A; --mint:#2ED3A3; --danger:#F0685A;
  --tray-li:rgba(255,255,255,.035);
  --shadow-sm:0 1px 2px rgba(0,0,0,.5);
  --shadow-md:0 20px 44px -18px rgba(0,0,0,.75);
  --shadow-lg:0 50px 90px -34px rgba(0,0,0,.85);
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--body);
  font-size:16px;line-height:1.62;-webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;overflow-x:hidden;
  transition:background .3s var(--ease),color .3s var(--ease);
}
h1,h2,h3,h4,h5{
  font-family:var(--display);font-weight:700;letter-spacing:-.028em;
  line-height:1.06;margin:0;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
::selection{background:color-mix(in srgb,var(--brand) 26%,transparent)}
.shell{max-width:var(--shell);margin-inline:auto;padding-inline:24px}
.muted{color:var(--ink-dim)} .faint{color:var(--ink-faint)}

/* A quiet, sentence-case kicker with a stud for a bullet - not a tracked-out
   ALL-CAPS eyebrow label. */
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--display);font-size:14.5px;font-weight:600;
  color:var(--brand);letter-spacing:-.01em;
}
[data-theme=dark] .eyebrow{color:var(--brand-lit)}
.eyebrow::before{
  content:"";width:7px;height:7px;border-radius:50%;flex:none;
  background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 16%,transparent);
}

/* ============ STUD FIELD ============
   The page's signature: the tops of studs on a baseplate, seen from above. Used
   as a texture band behind the hero and the closing slab. Pure CSS, no image,
   and no markup needed - it is a pseudo-element on the two sections that want it,
   so the five pages stay untouched. */
.stud-field,.hero::before,.band::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background-image:radial-gradient(circle at center,var(--line-strong) 1.4px,transparent 1.5px);
  background-size:26px 26px;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 22%,#000 62%,transparent);
  mask-image:linear-gradient(180deg,transparent,#000 22%,#000 62%,transparent);
  opacity:.75;
}

/* ============ NAV ============ */
header.nav{position:sticky;top:0;z-index:50;transition:background .25s var(--ease),border-color .25s var(--ease);
  border-bottom:1px solid transparent}
header.nav.stuck{background:color-mix(in srgb,var(--bg) 86%,transparent);
  backdrop-filter:saturate(150%) blur(14px);border-bottom-color:var(--line)}
.nav-in{display:flex;align-items:center;gap:10px;height:70px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:700;font-size:19.5px}
.brand img{width:33px;height:33px;border-radius:var(--radius-xs);box-shadow:0 0 0 1px var(--line)}
.brand b span{color:var(--brand)}
[data-theme=dark] .brand b span{color:var(--brand-lit)}
.nav-links{display:flex;gap:2px;margin-left:auto}
.nav-links a{padding:9px 13px;border-radius:var(--radius-xs);font-size:14.5px;font-weight:500;
  color:var(--ink-dim);transition:.18s var(--ease)}
.nav-links a:hover,.nav-links a.on{color:var(--ink);background:var(--tray-li)}
.nav-tools{display:flex;align-items:center;gap:8px;margin-left:10px}
.icon-btn{width:40px;height:40px;border-radius:var(--radius-xs);border:1px solid var(--line-strong);
  background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer;
  transition:.18s var(--ease);flex:none}
.icon-btn:hover{background:var(--tray-li)}
.icon-btn .sun{display:none} [data-theme=dark] .icon-btn .sun{display:block}
[data-theme=dark] .icon-btn .moon{display:none}
.burger{display:none}

/* ============ BUTTONS ============ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 22px;
  border-radius:var(--radius-sm);font-family:var(--body);font-weight:600;font-size:15px;
  border:1px solid transparent;cursor:pointer;transition:.18s var(--ease);white-space:nowrap}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-lit)}
[data-theme=dark] .btn-primary{color:#0B0F16}
.btn-ghost{background:transparent;border-color:var(--line-strong);color:var(--ink)}
.btn-ghost:hover{background:var(--tray-li);border-color:var(--ink-faint)}
.btn-sm{padding:9px 16px;font-size:14px}

/* ============ HERO ============ */
.hero{padding:60px 0 66px;position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:64px;align-items:center;position:relative;z-index:1}
.hero h1{font-size:clamp(38px,5.2vw,64px);font-weight:800;margin:18px 0 0}
/* The accented phrase is marked by a stud-dotted baseline instead of gradient
   text, so it survives a high-contrast or printed view. */
.hero h1 .accent{color:var(--brand);box-shadow:inset 0 -.16em 0 color-mix(in srgb,var(--stud) 60%,transparent)}
[data-theme=dark] .hero h1 .accent{color:var(--brand-lit)}
.hero p.lede{font-size:18px;color:var(--ink-dim);margin:20px 0 0;max-width:33em}
.hero-actions{display:flex;gap:12px;margin-top:32px;flex-wrap:wrap}
.hero-meta{display:grid;grid-template-columns:repeat(3,auto);gap:0 30px;margin-top:34px;
  padding-top:22px;border-top:1px solid var(--line);justify-content:start}
.hero-meta div b{display:block;font-family:var(--display);font-size:21px;font-weight:700}
.hero-meta div span{font-size:13px;color:var(--ink-faint)}

/* ---- the guide card ----
   Markup still says .phone because five pages carry it; it is no longer a phone.
   It is the price guide open on the bench: a flat outlined tray, no gradient
   bezel, no floating animation. */
/* Two legend tags side by side, with the guide card spanning both columns. */
.phone-wrap{position:relative;display:grid;grid-template-columns:auto auto;
  gap:10px;justify-content:center;justify-items:center}
.phone{grid-column:1/-1;width:100%;max-width:460px;border-radius:var(--radius);
  background:var(--surface);border:1px solid var(--line-strong);
  box-shadow:var(--shadow-md);overflow:hidden;padding:0}
.phone-screen{display:flex;flex-direction:column;color:var(--ink)}
.ph-top{padding:17px 18px 15px;background:var(--surface-2);border-bottom:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline}
.ph-top .t{font-family:var(--display);font-weight:700;font-size:16px;color:var(--ink)}
.ph-top .s{font-size:12px;color:var(--ink-faint);margin-left:auto}
.ph-stats{display:flex;gap:22px;flex-basis:100%;margin-top:12px}
.ph-stats div{background:transparent;padding:0}
.ph-stats b{display:block;font-family:var(--display);font-size:17px;font-weight:700}
.ph-stats span{font-size:10.5px;color:var(--ink-faint);letter-spacing:0}
.ph-body{padding:0;display:flex;flex-direction:column;gap:0;flex:1}
/* Tray rows: hairline separated, alternating tone, exactly like the app's guide. */
.ph-row{display:flex;align-items:center;gap:11px;padding:11px 18px;
  border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.ph-row:nth-child(even){background:var(--tray-li)}
.ph-row:last-child{border-bottom:0}
.ph-sq{width:34px;height:34px;border-radius:var(--radius-xs);flex:none;
  background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.ph-row .n{font-size:13px;font-weight:600}
.ph-row .m{font-size:11px;color:var(--ink-faint);margin-top:1px}
.ph-row .p{margin-left:auto;font-family:var(--display);font-size:14px;font-weight:700;color:var(--mint)}
.ph-cta{margin:0;padding:13px 18px;background:var(--brand);color:#fff;border-radius:0;
  text-align:center;font-size:13px;font-weight:600}
[data-theme=dark] .ph-cta{color:#0B0F16}

/* Provenance legend. These used to float over the art on blurred glass; they are
   the key to the two source markers in the card, so they sit above it as tags. */
.float-chip{position:static;background:transparent;backdrop-filter:none;
  border:1px solid var(--line-strong);border-radius:999px;padding:6px 13px;
  display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;
  box-shadow:none;white-space:nowrap;color:var(--ink-dim)}
.float-chip i{width:8px;height:8px;border-radius:50%;flex:none}
.fc-1{animation:none} .fc-2{animation:none}

/* ============ SECTIONS ============ */
section{padding:78px 0;position:relative}
.sec-head{max-width:660px;margin-bottom:44px}
.sec-head h2{font-size:clamp(29px,3.7vw,42px);font-weight:800;margin:14px 0 0}
.sec-head p{color:var(--ink-dim);font-size:17px;margin:14px 0 0}
.sec-head.center{margin-inline:auto;text-align:center}
.sec-head.center .eyebrow{justify-content:center}

.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px;position:relative;overflow:hidden;box-shadow:none;
  transition:border-color .2s var(--ease),transform .2s var(--ease)}
/* The top rule is the only hover flourish; the radial cursor glow is gone. */
.feat::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;
  background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .28s var(--ease)}
.feat:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.feat:hover::before{transform:scaleX(1)}
.feat-ico{width:42px;height:42px;border-radius:var(--radius-xs);display:grid;place-items:center;
  margin-bottom:16px;background:color-mix(in srgb,var(--brand) 10%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 26%,transparent);color:var(--brand)}
[data-theme=dark] .feat-ico{color:var(--brand-lit)}
.feat.gold .feat-ico{background:color-mix(in srgb,var(--stud) 16%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--stud) 40%,transparent);color:var(--stud-ink)}
.feat.gold::before{background:var(--stud)}
.feat.mint .feat-ico{background:color-mix(in srgb,var(--mint) 12%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mint) 30%,transparent);color:var(--mint)}
.feat.mint::before{background:var(--mint)}
.feat h3{font-size:18px;font-weight:600;margin:0 0 7px}
.feat p{color:var(--ink-dim);font-size:14.6px;margin:0}

/* The workflow genuinely is a sequence, so the numbering is information. */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;counter-reset:s}
.step{padding:24px 20px;border-radius:var(--radius);border:1px solid var(--line);
  background:var(--surface);position:relative}
.step::before{counter-increment:s;content:counter(s);font-family:var(--display);font-weight:800;
  font-size:13px;color:var(--brand);display:block;margin-bottom:12px;
  width:26px;height:26px;border-radius:50%;text-align:center;line-height:26px;
  background:color-mix(in srgb,var(--brand) 11%,transparent)}
.step h4{font-size:16.5px;margin:0 0 6px;font-weight:600}
.step p{font-size:14px;color:var(--ink-dim);margin:0}

.split{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.checklist{list-style:none;padding:0;margin:24px 0 0;display:grid;gap:12px}
.checklist li{display:flex;gap:11px;align-items:flex-start;font-size:15.2px;color:var(--ink-dim)}
.checklist svg{flex:none;margin-top:3px;color:var(--mint)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:8px;box-shadow:none}
.panel-in{background:var(--bg-soft);border-radius:var(--radius-sm);padding:22px;border:1px solid var(--line)}
.pr{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.pr:last-child{border-bottom:0}
.pr .sq{width:38px;height:38px;border-radius:var(--radius-xs);flex:none;display:grid;place-items:center;
  font-size:16px;background:color-mix(in srgb,var(--brand) 10%,transparent)}
.pr .nm{font-size:14px;font-weight:600} .pr .sub{font-size:12px;color:var(--ink-faint)}
.pr .val{margin-left:auto;text-align:right}
.pr .val b{font-family:var(--display);font-size:15px;color:var(--mint)}
.pr .val span{display:block;font-size:11px;color:var(--ink-faint)}

/* ============ FAQ ============ */
.faq{max-width:800px;margin-inline:auto;display:grid;gap:10px}
details.q{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);
  overflow:hidden;transition:border-color .2s var(--ease);box-shadow:none}
details.q[open]{border-color:color-mix(in srgb,var(--brand) 42%,transparent)}
details.q summary{padding:18px 20px;cursor:pointer;list-style:none;display:flex;
  align-items:center;gap:14px;font-family:var(--display);font-weight:600;font-size:16.5px}
details.q summary::-webkit-details-marker{display:none}
details.q summary .pm{margin-left:auto;flex:none;width:20px;height:20px;position:relative;opacity:.6}
details.q summary .pm::before,details.q summary .pm::after{content:"";position:absolute;
  background:currentColor;border-radius:2px;transition:.22s var(--ease)}
details.q summary .pm::before{top:9px;left:3px;width:14px;height:2px}
details.q summary .pm::after{top:3px;left:9px;width:2px;height:14px}
details.q[open] summary .pm::after{transform:rotate(90deg);opacity:0}
details.q .a{padding:0 20px 19px;color:var(--ink-dim);font-size:15px}

/* ============ LEGAL ============ */
.legal-wrap{display:grid;grid-template-columns:228px 1fr;gap:46px;align-items:start}
.toc{position:sticky;top:94px;display:grid;gap:2px}
.toc a{padding:9px 13px;border-radius:var(--radius-xs);font-size:14px;color:var(--ink-dim);
  box-shadow:inset 2px 0 0 transparent;transition:.18s var(--ease)}
.toc a:hover,.toc a.on{color:var(--ink);background:var(--tray-li);
  box-shadow:inset 2px 0 0 var(--brand)}
.doc{max-width:760px}
.doc section{padding:0 0 44px;scroll-margin-top:98px}
.doc h2{font-size:26px;margin:0 0 6px;font-weight:700}
.doc .sub{color:var(--ink-faint);font-size:14px;margin-bottom:18px}
.doc h3{font-size:16.5px;margin:26px 0 8px;font-weight:600}
.doc p,.doc li{color:var(--ink-dim);font-size:15.2px}
.doc ul,.doc ol{padding-left:20px} .doc li{margin:7px 0}
.doc strong{color:var(--ink);font-weight:600}
.callout{background:var(--surface);border:1px solid var(--line);
  box-shadow:inset 3px 0 0 var(--brand);border-radius:var(--radius-sm);padding:15px 19px;margin:20px 0}
.callout p{margin:0;font-size:14.5px}
.callout.gold{box-shadow:inset 3px 0 0 var(--stud);
  background:color-mix(in srgb,var(--stud) 7%,var(--surface))}

/* ============ BAND / FOOTER ============ */
.band{position:relative;overflow:hidden;background:var(--ink);color:var(--bg);
  border-radius:var(--radius);padding:56px 44px;text-align:center}
.band > *{position:relative;z-index:1}
.band h2{font-size:clamp(27px,3.5vw,39px);margin:0 0 13px;font-weight:800;color:var(--bg)}
.band p{color:color-mix(in srgb,var(--bg) 78%,var(--ink));max-width:44em;margin:0 auto 28px;font-size:16.5px}
.band .btn-primary{background:var(--bg);color:var(--ink)}
.band .btn-primary:hover{background:var(--stud);color:var(--ink)}
.band .btn-ghost{border-color:color-mix(in srgb,var(--bg) 40%,transparent);color:var(--bg)}
.band .btn-ghost:hover{background:color-mix(in srgb,var(--bg) 14%,transparent)}
.band .faint{color:color-mix(in srgb,var(--bg) 62%,var(--ink))}
.band::before{opacity:.3;-webkit-mask-image:none;mask-image:none;
  background-image:radial-gradient(circle at center,color-mix(in srgb,var(--bg) 55%,transparent) 1.4px,transparent 1.5px)}

footer{border-top:1px solid var(--line);padding:54px 0 32px;margin-top:40px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px}
.foot-grid h5{font-family:var(--body);font-size:12.5px;font-weight:600;
  color:var(--ink-faint);margin:0 0 12px;letter-spacing:0}
.foot-grid a{display:block;color:var(--ink-dim);font-size:14.5px;padding:5px 0;transition:.16s}
.foot-grid a:hover{color:var(--brand)}
.foot-bot{margin-top:38px;padding-top:22px;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13.3px;color:var(--ink-faint)}
.disclaimer{font-size:12.6px;color:var(--ink-faint);max-width:58em;margin-top:14px;line-height:1.6}

/* ============ PAGE HEADER ============ */
.page-head{padding:62px 0 18px;position:relative}
.page-head h1{font-size:clamp(33px,4.4vw,50px);font-weight:800;margin:14px 0 12px}
.page-head p{color:var(--ink-dim);font-size:17.5px;max-width:44em;margin:0}

.rv{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.rv.in{opacity:1;transform:none}

@media (max-width:980px){
  .hero-grid,.split{grid-template-columns:1fr;gap:40px}
  .phone-wrap{order:-1;grid-template-columns:1fr 1fr;justify-content:stretch;justify-items:stretch}
  .phone-wrap .phone{grid-column:1/-1}
  .float-chip{justify-content:center;white-space:normal;text-align:center}
  .feat-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .legal-wrap{grid-template-columns:1fr;gap:24px}
  .toc{position:static;display:flex;flex-wrap:wrap;gap:6px}
  .toc a{box-shadow:none;border:1px solid var(--line)}
  .toc a:hover,.toc a.on{box-shadow:none;border-color:var(--brand)}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .nav-links{display:none}
  .burger{display:grid}
  .nav-links.open{display:flex;position:absolute;top:70px;left:16px;right:16px;flex-direction:column;
    background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);
    padding:10px;gap:2px;box-shadow:var(--shadow-lg)}
  .feat-grid,.steps{grid-template-columns:1fr}
  section{padding:62px 0}
  .hero{padding:52px 0 68px}
  .band{padding:38px 22px}
  .foot-grid{grid-template-columns:1fr}
  .hero-meta{grid-template-columns:1fr 1fr;gap:16px 24px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .rv{opacity:1;transform:none}
}
