/* Protea.Website: styles.css
   Tokens mirror the app's "Parchment" design system (Protea/fe-src/src/styles/tokens.css) and the
   logo's midnight-navy + brass palette. No web fonts: system stacks keep LCP fast and CLS at zero.
   Animations only touch transform/opacity (plus tiny SVG strokes) and are all gated for reduced motion. */

:root {
  --navy-950: #080f21;
  --navy-900: #0e1a36;
  --navy-800: #1b2c57;
  --brass-300: #e4c57a;
  --brass-500: #b98a2e;
  --brass-700: #7a5a12;
  --paper: #f4ead6;
  --paper-2: #fcf8ef;
  --paper-3: #eee3ca;
  --line: #ddcca8;
  --line-soft: #eadfc2;
  --ink: #2a1c14;
  --ink-soft: #6d583f;
  --on-dark: #c9d0e2;

  --serif: "Libre Baskerville", Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --hdr: 68px;
  color-scheme: light;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--brass-300); color: var(--navy-900); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 8px; background: var(--brass-300); color: var(--navy-900); font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.ic { display: inline-block; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--brass-500); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible, .hero :focus-visible, .dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-300); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: var(--navy-900); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: 40rem; }
code { font: 500 .86em var(--mono); background: rgba(14, 26, 54, .07); color: var(--navy-800); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-700); }
.fl { width: 26px; height: 15px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s; }
.btn-lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-brass { background: linear-gradient(180deg, var(--brass-300), #d2ac5c); color: var(--navy-900); box-shadow: 0 6px 20px rgba(185, 138, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(185, 138, 46, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn:active { transform: none; }

/* ---------- Header ---------- */
.sentinel { position: absolute; top: 32px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; transition: background-color .25s, box-shadow .25s; }
.site-header.is-stuck { background: rgba(14, 26, 54, .94); box-shadow: 0 1px 0 rgba(228, 197, 122, .16), 0 8px 24px rgba(4, 9, 22, .28); backdrop-filter: saturate(1.4) blur(10px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font: 700 1.35rem/1 var(--serif); letter-spacing: .01em; }
.mark { flex: none; }
#nav { display: flex; align-items: center; gap: 1.5rem; }
#nav ul { display: flex; gap: 1.4rem; }
#nav a:not(.btn) { display: inline-block; padding: .5rem .2rem; color: #d8dded; font-size: .95rem; font-weight: 500; text-decoration: none; transition: color .2s; }
#nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle .ic { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-grid; }
  #nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: .5rem var(--gutter) 1.5rem; background: var(--navy-900); border-bottom: 1px solid rgba(228, 197, 122, .2); }
  #nav ul { flex-direction: column; gap: 0; }
  #nav a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.02rem; }
}
@media (max-width: 899px) and (scripting: enabled) {
  #nav { display: none; }
  #nav.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #f4ead6; padding: calc(var(--hdr) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3.25rem, 7vw, 5.5rem);
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(185, 138, 46, .26), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(58, 79, 128, .5), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.hero .lead { color: var(--on-dark); }
.bloom { position: absolute; right: -10%; bottom: -14%; width: min(110vw, 980px); height: auto; pointer-events: none; }
.bloom .p { fill: url(#g-brass); transform: rotate(var(--r)); animation: bloom 1.9s cubic-bezier(.16, .84, .24, 1) var(--d) both; }
.bloom .p1 { --r: -64deg; --d: .25s; opacity: .10; }
.bloom .p2 { --r: 64deg;  --d: .25s; opacity: .10; }
.bloom .p3 { --r: -32deg; --d: .45s; opacity: .16; }
.bloom .p4 { --r: 32deg;  --d: .45s; opacity: .16; }
.bloom .p5 { --r: 0deg;   --d: .65s; opacity: .24; }
@keyframes bloom { from { transform: rotate(0) scale(.55); opacity: 0; } }

.hero-grid { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.hero-copy { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; border: 1px solid rgba(228, 197, 122, .38); border-radius: 999px; background: rgba(228, 197, 122, .08); color: var(--brass-300); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-300); box-shadow: 0 0 0 4px rgba(228, 197, 122, .2); }
h1 { margin: 1.15rem 0 1.25rem; color: #fff; font-size: clamp(2.3rem, 1.15rem + 4.7vw, 4.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
.hl { color: var(--brass-300); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; color: var(--on-dark); font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points .ic { color: var(--brass-300); }

/* Sample member portal: rebrandable through custom properties only */
.hero-visual { display: grid; gap: 1rem; min-width: 0; }
.portal { --p: #1b2c57; --p2: #b98a2e; --bg: #f4ead6; --surf: #fcf8ef; --pi: #2a1c14; --soft: #6d583f; --pline: #ddcca8; --r: 14px; --ff: var(--serif);
  overflow: hidden; border-radius: 20px; background: var(--bg); color: var(--pi); font-family: var(--ff);
  box-shadow: 0 30px 80px rgba(3, 8, 20, .55), 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .35s, color .35s; }
.portal[data-brand="fern"] { --p: #0f5257; --p2: #e4572e; --bg: #eaf3f2; --surf: #fff;    --pi: #0c2b2d; --soft: #486a6c; --pline: #cde0de; --r: 18px; --ff: var(--sans); }
.portal[data-brand="lake"] { --p: #1f5e3b; --p2: #b8862a; --bg: #f3efe2; --surf: #fffdf6; --pi: #1c2a20; --soft: #566659; --pline: #dcd6bd; --r: 8px;  --ff: var(--serif); }
.portal[data-brand="plum"] { --p: #5b2a86; --p2: #d94f86; --bg: #f2ecf8; --surf: #fff;    --pi: #241636; --soft: #62567a; --pline: #dccfec; --r: 20px; --ff: var(--sans); }
.pbar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: rgba(0, 0, 0, .06); font: 500 .78rem var(--sans); color: var(--soft); }
.pbar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .2); }
.pbar span { flex: 1; max-width: 16rem; margin-left: .6rem; padding: .18rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.pbody { padding: 1rem 1.1rem 1.2rem; }
.phead { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px solid var(--pline); }
.plogo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: calc(var(--r) * .6); background: var(--p); color: #fff; font: 700 1rem var(--ff); transition: background-color .35s; }
.phead b { font: 700 1rem var(--ff); }
.pnav { display: flex; gap: .25rem; margin-left: auto; font: 500 .78rem var(--sans); }
.pnav span { padding: .3rem .6rem; border-radius: 999px; color: var(--soft); }
.pnav .on { background: var(--p); color: #fff; transition: background-color .35s; }
.phello { padding: 1rem 0 .8rem; }
.phello h3 { font: 700 clamp(1.15rem, 3.6vw, 1.4rem)/1.2 var(--ff); }
.phello p { margin-top: .2rem; font: 400 .88rem var(--sans); color: var(--soft); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pw { min-width: 0; padding: .8rem .9rem; border: 1px solid var(--pline); border-radius: var(--r); background: var(--surf); transition: background-color .35s, border-color .35s, border-radius .35s; }
.pw small { display: block; margin-bottom: .35rem; font: 600 .75rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.pkpi strong { display: block; font: 700 clamp(1.35rem, 4.6vw, 1.75rem)/1.1 var(--ff); color: var(--p); transition: color .35s; }
.pkpi em { margin-left: .35rem; font: 400 .8rem var(--sans); font-style: normal; color: var(--soft); }
.up { display: block; margin-top: .45rem; font: 600 .78rem var(--sans); color: #2f6b3d; }
.pw svg { width: 100%; height: auto; }
.pline .area { fill: var(--p); opacity: .1; }
.pline .stroke { fill: none; stroke: var(--p); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; animation: draw 1.6s .9s ease both; transition: stroke .35s; }
.pbars rect { fill: var(--p); opacity: .3; transform-box: fill-box; transform-origin: 50% 100%; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; transition: fill .35s; }
.pbars rect:nth-child(1) { animation-delay: .75s; } .pbars rect:nth-child(2) { animation-delay: .81s; } .pbars rect:nth-child(3) { animation-delay: .87s; }
.pbars rect:nth-child(4) { animation-delay: .93s; } .pbars rect:nth-child(5) { animation-delay: .99s; } .pbars rect:nth-child(6) { animation-delay: 1.05s; }
.pbars .hi { fill: var(--p2); opacity: 1; }
.plist ul { display: grid; gap: .5rem; font: 500 .84rem var(--sans); }
.plist li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--pline); }
.plist li:last-child { border: 0; padding: 0; }
.tag { display: inline-block; padding: .12rem .55rem; border-radius: 999px; background: var(--paper-3); color: var(--ink-soft); font: 600 .75rem var(--sans); white-space: nowrap; }
.portal .tag { background: var(--pline); color: var(--pi); }
.portal .tag.ok, .tag.ok { background: #e3e8da; color: #3c5a34; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes growx { from { transform: scaleX(0); } }

.picker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.picker-label { flex-basis: 100%; font-size: .88rem; color: #b6bfd6; }
.sw { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem 1rem .35rem .45rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #e8ecf7; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.sw:nth-of-type(1) { animation: nudge .8s ease 2.2s; } .sw:nth-of-type(2) { animation: nudge .8s ease 2.3s; }
.sw:nth-of-type(3) { animation: nudge .8s ease 2.4s; } .sw:nth-of-type(4) { animation: nudge .8s ease 2.5s; }
.sw:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.sw[aria-pressed="true"] { background: rgba(228, 197, 122, .16); border-color: var(--brass-300); color: #fff; }
.sw i { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.sw[data-brand="protea"] i { background: linear-gradient(135deg, #1b2c57 50%, #b98a2e 50%); }
.sw[data-brand="fern"] i { background: linear-gradient(135deg, #0f5257 50%, #e4572e 50%); }
.sw[data-brand="lake"] i { background: linear-gradient(135deg, #1f5e3b 50%, #b8862a 50%); }
.sw[data-brand="plum"] i { background: linear-gradient(135deg, #5b2a86 50%, #d94f86 50%); }
@keyframes nudge { 40% { transform: translateY(-4px); } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec.alt { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.sec.dark { position: relative; overflow: hidden; color: #e8ecf7;
  background: radial-gradient(700px 320px at 92% 0%, rgba(185, 138, 46, .18), transparent 70%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.dark h2 { color: #fff; }
.dark .lead { color: var(--on-dark); }
.dark .eyebrow { color: var(--brass-300); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* Cards */
.bento, .grid3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { display: block; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); color: inherit; text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card.flat { background: #fff; }
.card:hover { transform: translateY(-4px); border-color: var(--brass-500); box-shadow: 0 18px 40px -18px rgba(14, 26, 54, .35); }
.card h3 { margin: 1rem 0 .4rem; color: var(--navy-900); }
.card p { color: var(--ink-soft); font-size: .96rem; }
.ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: var(--brass-300); box-shadow: inset 0 0 0 1px rgba(228, 197, 122, .25); }
.ico .ic { width: 24px; height: 24px; }

/* Split feature rows */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .split.rev { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .split.rev .split-copy { order: 2; }
}
.ticks { margin-top: 1.5rem; }
.ticks li { position: relative; margin-top: .85rem; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--navy-900); }
.ticks li::after { content: ""; position: absolute; left: .49rem; top: calc(.3em + .3rem); width: .3rem; height: .55rem; border: solid var(--brass-300); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks a { color: var(--navy-800); font-weight: 600; text-underline-offset: 3px; }

/* Illustrative "app" mock-ups */
.mock { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -30px rgba(14, 26, 54, .38); font-size: .84rem; color: var(--ink); }
.mock small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.mock-top { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.mock-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-title { margin-left: .5rem; font-weight: 600; }
.mock-actions { display: flex; gap: .4rem; margin-left: auto; }
.mock-actions b { padding: .22rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 600; }
.mock-actions .go, .go { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.inp { display: block; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mock .up { margin-top: .2rem; }

.builder-body { display: grid; }
@media (min-width: 640px) { .builder-body { grid-template-columns: minmax(0, 1fr) 13rem; } }
.canvas { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; padding: .9rem; background-color: #fbf7ec; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 14px 14px; }
.tile { position: relative; min-width: 0; padding: .65rem .7rem; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.t-kpi { grid-column: span 2; } .t-bars { grid-column: span 4; } .t-line, .t-donut { grid-column: span 3; } .t-table { grid-column: span 6; }
.t-kpi strong { display: block; margin-top: .2rem; font: 700 1.5rem/1.1 var(--serif); color: var(--navy-800); }
.tile svg { width: 100%; height: auto; margin-top: .3rem; }
.tile rect { fill: var(--navy-800); opacity: .3; }
.tile .hi { fill: var(--brass-500); opacity: 1; }
.tile .area { fill: var(--navy-800); opacity: .1; }
.tile .stroke { fill: none; stroke: var(--navy-800); stroke-width: 2.2; stroke-linecap: round; }
.t-donut svg { width: 64px; height: 64px; margin-top: .4rem; }
.ring, .seg { fill: none; stroke-width: 5; }
.ring { stroke: var(--line-soft); }
.seg { transform: rotate(-90deg); transform-origin: 18px 18px; }
.s1 { stroke: var(--navy-800); stroke-dasharray: 58 42; }
.s2 { stroke: var(--brass-500); stroke-dasharray: 24 76; stroke-dashoffset: -60; }
.t-table .row { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line-soft); }
.drag { transform: translateY(-3px) rotate(-.7deg); border: 2px dashed var(--brass-500); box-shadow: 0 16px 30px -14px rgba(14, 26, 54, .4); }
.handle { position: absolute; top: -.7rem; right: .7rem; padding: .1rem .6rem; border-radius: 999px; background: var(--brass-300); color: var(--navy-900); font-size: .75rem; font-weight: 700; }
.rail { display: grid; gap: .4rem; align-content: start; padding: .9rem; border-top: 1px solid var(--line-soft); background: var(--paper-2); }
@media (min-width: 640px) { .rail { border-top: 0; border-left: 1px solid var(--line-soft); } }
.rail-tabs { display: flex; gap: .25rem; margin-bottom: .3rem; font-weight: 600; font-size: .78rem; }
.rail-tabs span, .fm-tabs span, .bm-tabs span { padding: .28rem .65rem; border-radius: 999px; color: var(--ink-soft); }
.rail-tabs .on, .fm-tabs .on, .bm-tabs .on { background: var(--navy-800); color: #fff; }
.code { overflow-x: auto; margin: 0; padding: .85rem 1rem; border-radius: 12px; background: var(--navy-900); color: #dfe6f7; font: 500 .82rem/1.65 var(--mono); tab-size: 2; }
.code.sm { padding: .6rem .7rem; font-size: .75rem; line-height: 1.6; }
.code .k { color: var(--brass-300); }
.code .p { color: #8fd3b6; }
.ai-btn { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; margin-top: .3rem; padding: .4rem .85rem; border-radius: 999px; background: linear-gradient(180deg, var(--brass-300), #d2ac5c); color: var(--navy-900); font-size: .8rem; font-weight: 700; }
.ai-btn .ic { width: 1.1em; height: 1.1em; }

.formmock { display: grid; }
@media (min-width: 640px) { .formmock { grid-template-columns: 8.5rem minmax(0, 1fr); } }
.fm-rail { display: flex; flex-wrap: wrap; gap: .4rem; padding: .9rem; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); align-content: start; }
@media (min-width: 640px) { .fm-rail { display: grid; border-bottom: 0; border-right: 1px solid var(--line-soft); } }
.fm-rail b { flex-basis: 100%; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.fm-rail span { padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 500; }
.fm-rail .on { border-color: var(--brass-500); background: #fff6df; }
.fm-main { display: grid; gap: .8rem; padding: .9rem; }
.fm-tabs, .bm-tabs { display: flex; flex-wrap: wrap; gap: .3rem; font-weight: 600; font-size: .78rem; }
.fld small { margin-bottom: .3rem; }
.rep { display: grid; gap: .45rem; padding: .75rem; border: 1px dashed var(--line); border-radius: 12px; background: #fffdf6; }
.rep b { font-size: .86rem; }
.rep-row { display: grid; grid-template-columns: 1.3fr 1fr .6fr; gap: .4rem; }
.add { color: var(--navy-800); font-weight: 600; }
.sig { display: block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sig svg { width: 100%; height: 40px; }
.sig path { fill: none; stroke: var(--navy-800); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fm-foot { display: flex; align-items: center; gap: .6rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); }
.tog { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--navy-800); }
.tog i { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.fm-foot .go { margin-left: auto; padding: .4rem 1.1rem; border-radius: 999px; font-weight: 600; }

.brandmock { display: grid; gap: 1rem; padding: 1.1rem; background: linear-gradient(180deg, #fff, #fdf9ef); }
.bm-url { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.bm-url .ic { color: var(--brass-700); }
.bm-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.bm-url b { padding: .38rem .85rem; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: .78rem; white-space: nowrap; }
.bm-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; }
.bm-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #0f5257; color: #fff; font: 700 1.9rem var(--serif); }
.bm-sw { display: flex; gap: .5rem; }
.bm-sw i { flex: 1; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.c1 { background: #0f5257; } .c2 { background: #e4572e; } .c3 { background: #eaf3f2; } .c4 { background: #0c2b2d; } .c5 { background: #486a6c; }
.bm-types { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.bm-type { display: flex; align-items: baseline; gap: .7rem; color: var(--ink-soft); }
.bm-type b { font: 700 1.9rem/1 var(--serif); color: var(--navy-900); }
.bm-type em { font: 500 1.9rem/1 var(--sans); font-style: normal; color: var(--navy-900); }

.flow { padding: 1rem; background: linear-gradient(180deg, #fff, #fdf9ef); }
.flow svg { width: 100%; height: auto; }
.flow .lines path { fill: none; stroke: var(--brass-500); stroke-width: 2; stroke-dasharray: 4 6; opacity: .7; }
.flow .node rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.flow .node text { font: 600 14px var(--sans); fill: var(--navy-900); text-anchor: middle; }
.flow .out rect { fill: var(--navy-800); stroke: none; }
.flow .out text { fill: #fff; }
.flow .hub { fill: url(#g-tile); stroke: var(--brass-500); stroke-width: 2; }

/* ---------- AI section ---------- */
.ai-demo { padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid rgba(228, 197, 122, .24); border-radius: 22px; background: rgba(255, 255, 255, .04); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.ai-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ai-tabs button { min-height: 44px; padding: .5rem 1.15rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: transparent; color: #d8dded; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.ai-tabs button:hover { background: rgba(255, 255, 255, .08); }
.ai-tabs [aria-selected="true"] { border-color: var(--brass-300); background: var(--brass-300); color: var(--navy-900); }
.prompt { display: flex; align-items: flex-start; gap: .7rem; padding: .95rem 1.1rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 1.02rem; line-height: 1.5; }
.prompt .ic { margin-top: .12em; color: var(--brass-300); }
.txt { position: relative; flex: 1; min-width: 0; }
.ghost { visibility: hidden; }
.live { position: absolute; inset: 0; }
.caret { flex: none; align-self: center; width: 2px; height: 1.2em; background: var(--brass-300); opacity: 0; }
.prompt.typing .caret { animation: blink .9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 1; } }
.results { display: grid; margin-top: 1rem; }
.pan { grid-area: 1 / 1; display: grid; gap: 1rem; align-content: start; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .3s; }
.pan.on { visibility: visible; opacity: 1; }
@media (min-width: 800px) { #pan-sql { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; } }
.viz { display: grid; gap: .8rem; padding: .5rem .25rem; }
.hbar { display: grid; grid-template-columns: 5.5rem 1fr; gap: .7rem; align-items: center; color: var(--on-dark); font-size: .88rem; }
.hbar i { display: block; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--brass-500), var(--brass-300)); transform-origin: left; }
.w90 { width: 90%; } .w62 { width: 62%; } .w41 { width: 41%; } .w18 { width: 18%; }
.pan.on .hbar i { animation: growx .9s cubic-bezier(.2, .8, .2, 1) both; }
.mini-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .7rem; }
.mini-tiles > div { padding: .8rem .9rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.mini-tiles small { color: var(--on-dark); font-size: .78rem; font-weight: 600; }
.mini-tiles strong { display: block; margin: .15rem 0 .35rem; color: #fff; font: 700 1.6rem/1.15 var(--serif); }
.mini-tiles svg { width: 100%; height: 26px; }
.mini-tiles path { fill: none; stroke: var(--brass-300); stroke-width: 2; stroke-linecap: round; }
.outline { display: grid; gap: .6rem; }
.outline li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; padding: .7rem .95rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #e8ecf7; font-size: .92rem; }
.outline b { color: var(--brass-300); }
.outline span:not(.tag) { padding: .15rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: .84rem; }
.note { color: var(--on-dark); font-size: .94rem; }
.fine { margin-top: .9rem; color: #9aa5c2; font-size: .82rem; }
.ai-grid { display: grid; gap: 1.25rem 1.5rem; margin-top: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.ai-grid > div { padding-top: 1.25rem; border-top: 1px solid rgba(228, 197, 122, .28); }
.ai-grid .ic { width: 26px; height: 26px; color: var(--brass-300); }
.ai-grid h3 { margin: .8rem 0 .4rem; color: #fff; }
.ai-grid p { color: var(--on-dark); font-size: .96rem; }

/* ---------- Onboarding steps ---------- */
.steps { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.steps li { position: relative; padding: 1.6rem 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.steps h3 { margin: 1rem 0 .4rem; color: var(--navy-900); }
.steps p { color: var(--ink-soft); font-size: .96rem; }
.num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: var(--brass-300); font: 700 1.2rem var(--serif); box-shadow: inset 0 0 0 1px rgba(228, 197, 122, .3); }
@media (min-width: 860px) {
  .steps li:not(:last-child)::after { content: "→"; position: absolute; top: 2rem; right: -1.45rem; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brass-300); color: var(--navy-900); font-weight: 700; }
}
.steps-note { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.75rem; color: var(--ink-soft); text-align: center; }
.steps-note .ic { color: var(--brass-700); }

/* ---------- Trust ---------- */
.cols3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.cols3 > div { padding: 1.6rem; border: 1px solid rgba(228, 197, 122, .22); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.cols3 .ic { width: 28px; height: 28px; color: var(--brass-300); }
.cols3 h3 { margin: .9rem 0 .5rem; color: #fff; }
.cols3 li { position: relative; margin-top: .6rem; padding-left: 1.25rem; color: var(--on-dark); font-size: .96rem; }
.cols3 li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass-500); }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }
.stack p { color: #9aa5c2; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.stack ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack li { padding: .4rem .9rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #e8ecf7; font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq details { margin-bottom: .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); transition: border-color .2s, background-color .2s; }
.faq details[open] { border-color: var(--brass-500); background: #fff; }
.faq summary { position: relative; min-height: 44px; padding: 1.1rem 3.2rem 1.1rem 1.25rem; color: var(--navy-900); font: 700 1.02rem/1.4 var(--serif); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; color: var(--brass-700); font: 400 1.6rem/1 var(--sans); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); }

/* ---------- CTA + footer ---------- */
.cta-band { padding-block: clamp(3.5rem, 8vw, 6rem); color: #fff; text-align: center;
  background: radial-gradient(800px 400px at 50% 0%, rgba(185, 138, 46, .32), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.cta-band .mark { margin: 0 auto 1.25rem; }
.cta-band h2 { color: #fff; }
.cta-band .lead { margin: 0 auto 1.75rem; color: #d3d9ea; }
.site-footer { padding-top: 2.5rem; background: var(--navy-950); color: #aab3cc; }
.foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; }
.foot-brand p { margin-top: .6rem; font-size: .92rem; }
.foot-brand b { color: #fff; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer nav a { display: inline-block; padding: .75rem 0; color: var(--on-dark); font-size: .95rem; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 1.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- Scroll reveal (JS adds .in, then drops .reveal so hover transitions work) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .bento > :nth-child(3n + 2), .grid3 > :nth-child(3n + 2), .ai-grid > :nth-child(3n + 2), .steps > :nth-child(3n + 2) { transition-delay: .08s; }
  .bento > :nth-child(3n + 3), .grid3 > :nth-child(3n + 3), .ai-grid > :nth-child(3n + 3), .steps > :nth-child(3n + 3) { transition-delay: .16s; }

  .sig path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .mock.in .sig path { animation: draw 1.8s .5s ease forwards; }
  .mock.in .bm-sw i { animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; }
  .mock.in .bm-sw i:nth-child(2) { animation-delay: .08s; } .mock.in .bm-sw i:nth-child(3) { animation-delay: .16s; }
  .mock.in .bm-sw i:nth-child(4) { animation-delay: .24s; } .mock.in .bm-sw i:nth-child(5) { animation-delay: .32s; }
  .mock.in .lines path { animation: flow 1.4s linear 4; }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -20; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
