/* ═══════════════════════════════════════════════════════════
   Handy Partners — marketing site
   Language: deep space ground, amber light. Beams, glow bands,
   rim-lit product frames, bento grids. Dark by default;
   light theme is opt-in via the toggle only.
   ═══════════════════════════════════════════════════════════ */

:root {
  --void:      #070509;
  --ink:       #0B0810;
  --panel:     #100C16;
  --panel-2:   #16111D;
  --line:      #221B2C;
  --line-2:    #2E2539;
  --text:      #F2EEF6;
  --dim:       #A79FB4;
  --faint:     #6E6679;

  --amber:     #FF9500;
  --ember:     #F97316;
  --glow:      #FFC46B;
  --on-amber:  #241200;
  --rgb-amber: 255 149 0;
  --rgb-glow:  255 196 107;

  --beam-a:    .085;
  --band-a:    .22;
  --grid-line: rgba(255,255,255,.028);
  --glass:     rgba(11,8,16,.72);
  --rim:       rgba(255,196,107,.55);

  --f-sans: "Onest", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, SFMono-Regular, monospace;

  --t--2: .72rem;
  --t--1: .84rem;
  --t-0:  .95rem;
  --t-1:  1.08rem;
  --t-2:  1.35rem;
  --t-3:  clamp(1.7rem, 2.6vw, 2.1rem);
  --t-4:  clamp(2.05rem, 4vw, 2.95rem);
  --t-5:  clamp(2.5rem, 5.4vw, 3.9rem);

  --gutter: clamp(18px, 5vw, 40px);
  --maxw: 1160px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --void:  #FFFBF4;
  --ink:   #FFF8EE;
  --panel: #FFFFFF;
  --panel-2: #FDF4E7;
  --line:  #EFE2CE;
  --line-2:#E3D2B8;
  --text:  #14101A;
  --dim:   #665C71;
  --faint: #93899E;
  --amber: #D97400;
  --ember: #C9530C;
  --glow:  #F59E2B;
  --on-amber: #FFFFFF;
  --beam-a: .11;
  --band-a: .26;
  --grid-line: rgba(90,60,20,.055);
  --glass: rgba(255,248,238,.8);
  --rim: rgba(217,116,0,.4);
  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font-family: var(--f-sans); font-size: var(--t-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
h1, h2, h3, h4 {
  font-family: var(--f-sans); margin: 0; font-weight: 700;
  letter-spacing: -.032em; line-height: 1.07; text-wrap: balance;
}
h1 { font-size: var(--t-5); }
h2 { font-size: var(--t-4); }
h3 { font-size: var(--t-1); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--f-mono); font-weight: 400; }
.dim { color: var(--dim); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 5px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.narrow { max-width: 660px; margin-inline: auto; }
section { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.center { text-align: center; }

/* ── Light language: beams, bands, grid ───────────────────── */
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gridfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 20%, transparent 75%);
}
/* the cone of light falling from above — the reference's signature */
.beam {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(1240px, 135vw); height: clamp(520px, 78vh, 900px);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg,
      rgb(var(--rgb-glow) / calc(var(--beam-a) * 1.5)) 0%,
      rgb(var(--rgb-amber) / var(--beam-a)) 26%,
      rgb(var(--rgb-amber) / calc(var(--beam-a) * .45)) 55%,
      transparent 85%);
  filter: blur(96px);
  opacity: .9;
}
.beam::after {
  content: ""; position: absolute; top: -46px; left: 50%; translate: -50% 0;
  width: 190px; height: 96px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(var(--rgb-glow) / .5), transparent 68%);
  filter: blur(22px);
}
.beam.tight { width: min(820px, 105vw); height: 460px; opacity: .8; }
/* the flat elliptical glow + horizon line behind a heading */
.band {
  position: absolute; left: 50%; translate: -50% 0; top: 0;
  width: min(940px, 96vw); height: 200px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(var(--rgb-amber) / var(--band-a)), transparent 66%);
  filter: blur(42px);
}
.band::after {
  content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--rgb-glow) / .8), transparent);
  filter: blur(.4px);
}
.orb-far {
  position: absolute; border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, rgb(var(--rgb-amber) / .16), transparent 68%);
  animation: drift 30s ease-in-out infinite alternate; will-change: transform;
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(56px,-38px,0) scale(1.14); } }

/* ── Section heading block ────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(255 255 255 / .02);
  margin-bottom: 22px;
}
.kicker .sp { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.sub { color: var(--dim); font-size: var(--t-0); margin-top: 16px; max-width: 56ch; }
.center .sub { margin-inline: auto; }
/* the small grey caption the reference sets under each block */
.cap { text-align: center; color: var(--faint); font-size: var(--t--1); margin-top: 26px; max-width: 60ch; margin-inline: auto; }
.cap b { color: var(--dim); font-weight: 500; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.stuck { background: var(--glass); backdrop-filter: blur(16px) saturate(1.5); border-bottom-color: var(--line); }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.03em; font-size: var(--t-0); }
.mark { width: 24px; height: 24px; border-radius: 7px; flex: none;
        background: linear-gradient(150deg, var(--glow), var(--ember));
        box-shadow: 0 0 20px rgb(var(--rgb-amber) / .55); }
/* centred link cluster — reference layout */
.nav-links { display: flex; justify-self: center; gap: 2px; padding: 3px;
             border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .022); }
.nav-links a { font-size: var(--t--1); color: var(--dim); padding: 7px 14px; border-radius: 999px; transition: .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / .06); }
.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.navtoggle { display: none; }
@media (max-width: 940px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
               border-radius: 0; border-inline: 0; padding: 10px var(--gutter) 20px;
               background: var(--glass); backdrop-filter: blur(16px); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-right .btn-solid { display: none; }
  .navtoggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
               background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  font: 500 var(--t--1)/1 var(--f-sans); padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, background .22s, border-color .22s, color .22s;
}
.btn-lg { padding: 14px 24px; font-size: var(--t-0); }
/* primary: amber fill with a light rim on top */
.btn-solid {
  background: rgb(var(--rgb-amber) / .07); color: var(--glow); font-weight: 600;
  border-color: rgb(var(--rgb-amber) / .55);
  box-shadow: 0 0 26px -7px rgb(var(--rgb-amber) / .55) inset, 0 0 22px -12px rgb(var(--rgb-amber) / .8);
}
.btn-solid:hover {
  transform: translateY(-1px); color: #FFE7C2; border-color: rgb(var(--rgb-glow) / .9);
  background: rgb(var(--rgb-amber) / .13);
  box-shadow: 0 0 34px -5px rgb(var(--rgb-amber) / .8) inset, 0 0 40px -10px rgb(var(--rgb-amber) / .9);
}
/* secondary: hairline glass */
.btn-line { background: rgb(255 255 255 / .03); border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: rgb(var(--rgb-amber) / .6); background: rgb(var(--rgb-amber) / .07); }
.btn-quiet { color: var(--dim); padding-inline: 12px; }
.btn-quiet:hover { color: var(--text); }
.btn .arw { transition: transform .22s; }
.btn:hover .arw { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 11px; }
.center .btns { justify-content: center; }

/* ── Rim-lit product frame ────────────────────────────────── */
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--ink));
  border: 1px solid var(--line);
  box-shadow: 0 -1px 0 var(--rim) inset, 0 40px 120px -40px rgb(var(--rgb-amber) / .35), 0 30px 70px -30px rgba(0,0,0,.9);
}
.frame::before {
  content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--rim), transparent);
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px;
             border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .018); }
.tl { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.frame-bar .mono { font-size: var(--t--2); color: var(--faint); margin-left: 8px; }
.frame-body { display: grid; grid-template-columns: 196px 1fr; min-height: 300px; text-align: left; }
@media (max-width: 760px) { .frame-body { grid-template-columns: 1fr; } .fside { display: none; } }
.fside { border-right: 1px solid var(--line); padding: 16px 12px; background: rgb(0 0 0 / .18); }
.slab { font-family: var(--f-mono); font-size: .54rem; letter-spacing: .17em; text-transform: uppercase;
        color: var(--faint); margin: 0 8px 9px; }
.sitem { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px;
         font-size: var(--t--1); color: var(--dim); }
.sitem.on { background: rgb(var(--rgb-amber) / .12); color: var(--glow); }
.sitem .sq { width: 5px; height: 5px; border-radius: 1px; background: currentColor; flex: none; }

/* ── Chat ─────────────────────────────────────────────────── */
.chat { padding: clamp(16px, 2.6vw, 26px); display: grid; gap: 13px; align-content: start; }
.bub { max-width: 84%; padding: 11px 15px; border-radius: 14px; font-size: var(--t--1); line-height: 1.58; }
.bub.q { justify-self: end; background: linear-gradient(180deg, var(--glow), var(--ember));
         color: var(--on-amber); border-bottom-right-radius: 4px; font-weight: 500; }
.bub.a { justify-self: start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cite { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
        font-family: var(--f-mono); font-size: .58rem; padding: 4px 8px; border-radius: 5px;
        background: rgb(var(--rgb-amber) / .13); color: var(--glow); }
.caret { display: inline-block; width: 6px; height: 1em; vertical-align: -.14em;
         background: var(--amber); animation: blink 1.05s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Provider logo row ────────────────────────────────────── */
.providers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(26px, 5vw, 62px); }
.prov { display: inline-flex; align-items: center; gap: 10px; color: var(--faint);
        font-size: var(--t--1); font-weight: 500; letter-spacing: -.01em;
        filter: grayscale(1); opacity: .62; transition: opacity .25s, filter .25s, color .25s; }
.prov:hover { opacity: 1; filter: none; color: var(--text); }
.prov svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ── Bento ────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento > * { grid-column: span 4; }
.bento .w6 { grid-column: span 6; }
.bento .w8 { grid-column: span 8; }
.bento .w12 { grid-column: span 12; }
@media (max-width: 900px) { .bento > * { grid-column: span 6; } .bento .w8, .bento .w12 { grid-column: span 12; } }
@media (max-width: 620px) { .bento > * { grid-column: span 12 !important; } }

.tile {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--ink));
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s cubic-bezier(.2,.8,.3,1);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile-art { position: relative; height: 148px; overflow: hidden; border-bottom: 1px solid var(--line);
            background: radial-gradient(ellipse at 50% 120%, rgb(var(--rgb-amber) / .22), transparent 70%); }
.tile-txt { padding: 18px 18px 20px; }
.tile-txt p { color: var(--faint); font-size: var(--t--1); margin-top: 7px; line-height: 1.55; }

/* little visuals that live inside .tile-art */
.mini-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.mini-rings i { position: absolute; border: 1px solid rgb(var(--rgb-amber) / .3); border-radius: 50%; }
.mini-rings i:nth-child(1) { width: 74px;  height: 74px;  animation: pulse 3.4s ease-out infinite; }
.mini-rings i:nth-child(2) { width: 126px; height: 126px; animation: pulse 3.4s ease-out infinite .7s; }
.mini-rings i:nth-child(3) { width: 178px; height: 178px; animation: pulse 3.4s ease-out infinite 1.4s; }
@keyframes pulse { 0% { opacity: .1; transform: scale(.82); } 45% { opacity: .85; } 100% { opacity: 0; transform: scale(1.1); } }
.mini-core { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(150deg, var(--glow), var(--ember));
             box-shadow: 0 0 34px rgb(var(--rgb-amber) / .8); z-index: 1; }

.bars { position: absolute; inset: auto 18px 20px; display: flex; align-items: end; gap: 6px; height: 84px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--glow), rgb(var(--rgb-amber) / .18));
          transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.3,1) both; }
@keyframes grow { from { transform: scaleY(.06); } }

.sphere { position: absolute; left: 50%; top: 54%; translate: -50% -50%; width: 116px; height: 116px; border-radius: 50%;
          background: radial-gradient(circle at 32% 28%, #FFD79A, var(--ember) 44%, #5A2100 78%, #1B0A00);
          box-shadow: 0 0 60px rgb(var(--rgb-amber) / .55), 0 0 0 1px rgb(var(--rgb-glow) / .25); }
.sphere::after { content: ""; position: absolute; inset: -26px -50px; border-radius: 50%;
                 border: 1px solid rgb(var(--rgb-amber) / .28); transform: rotate(-18deg); }

.wavelines { position: absolute; inset: 0; }
.wavelines path { fill: none; stroke: rgb(var(--rgb-amber) / .45); stroke-width: 1.2; }

.tag-row { position: absolute; inset: auto 0 22px; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; padding-inline: 16px; }
.tg { font-family: var(--f-mono); font-size: .56rem; padding: 5px 9px; border-radius: 999px;
      border: 1px solid var(--line-2); color: var(--dim); background: rgb(0 0 0 / .35); }
.tg.hot { border-color: rgb(var(--rgb-amber) / .5); color: var(--glow); background: rgb(var(--rgb-amber) / .1); }

/* ── Data table (product-shot style) ──────────────────────── */
.tblwrap { overflow-x: auto; }
table.data { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--t--1); }
table.data th {
  text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .56rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--faint);
  padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: rgb(var(--rgb-amber) / .045); }
table.data td:first-child { color: var(--text); font-weight: 500; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.meter { position: relative; height: 5px; width: 108px; border-radius: 3px; background: rgb(255 255 255 / .07); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--ember), var(--glow)); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: .56rem;
        padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--dim); }
.chip.up { border-color: rgb(var(--rgb-amber) / .45); color: var(--glow); background: rgb(var(--rgb-amber) / .1); }

/* ── Stats ────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
         background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--ink); padding: 26px 22px; }
.stat .n { font-size: 2.2rem; font-weight: 700; line-height: 1; letter-spacing: -.05em;
           font-variant-numeric: tabular-nums; color: var(--glow); }
.stat .l { color: var(--faint); font-size: var(--t--1); margin-top: 8px; }

/* ── Split ────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: start; color: var(--faint); font-size: var(--t--1); }
.checks .tk { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
              font-size: .58rem; margin-top: 2px; background: rgb(var(--rgb-amber) / .14); color: var(--glow); }
.checks b { color: var(--text); font-weight: 600; }

/* ── Quotes ───────────────────────────────────────────────── */
.quote { border-radius: var(--r-md); padding: 24px; background: var(--panel); border: 1px solid var(--line);
         display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: var(--t-0); line-height: 1.6; }
.who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
      font: 600 .72rem var(--f-sans); color: var(--on-amber); background: linear-gradient(150deg, var(--glow), var(--ember)); }
.who .nm { font-size: var(--t--1); font-weight: 600; }
.who .rl { font-size: var(--t--2); color: var(--faint); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { display: grid; gap: 8px; margin-top: 34px; text-align: left; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: var(--t-0);
               list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.2rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--faint); font-size: var(--t--1); max-width: 74ch; }

/* ── Closing CTA (reference: icon tile, centred, on beam) ─── */
.close-cta { position: relative; text-align: center; padding-block: clamp(80px, 12vw, 150px); overflow: hidden; }
.badge-tile {
  width: 62px; height: 62px; border-radius: 17px; margin: 0 auto 26px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--glow), var(--ember)); color: var(--on-amber);
  box-shadow: 0 0 0 1px rgb(var(--rgb-glow) / .5) inset, 0 0 60px rgb(var(--rgb-amber) / .6);
}
.badge-tile svg { width: 30px; height: 30px; }

/* ── Footer ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: 52px 30px; position: relative; z-index: 2; }
.foot { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-family: var(--f-mono); font-size: .56rem; font-weight: 500; letter-spacing: .17em;
           text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { font-size: var(--t--1); color: var(--dim); transition: color .2s; }
.foot a:hover { color: var(--glow); }
.foot-b { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
          margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line);
          font-size: var(--t--2); color: var(--faint); }

/* ── Theme toggle ─────────────────────────────────────────── */
.tt { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.tt button { font: 500 .68rem/1 var(--f-sans); cursor: pointer; border: 0; border-radius: 999px;
             padding: 6px 10px; background: transparent; color: var(--faint); transition: .2s; }
.tt button[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }

/* ── Reveal ───────────────────────────────────────────────── */
.js .pending { opacity: 0; transform: translateY(22px); }
.js .revealed { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1); }
.js.reveal-off .pending { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .pending { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════════════════
   COSMOS
   ═══════════════════════════════════════════════════════════ */
#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
:root[data-theme="light"] #cosmos { opacity: .3; }

/* ── Dynamic Island navigation ────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: none;
       border: 0; display: grid; place-items: center; padding-top: 14px; pointer-events: none; }
.nav.stuck { background: none; backdrop-filter: none; }
.island {
  pointer-events: auto; position: relative; display: flex; align-items: center;
  gap: 12px; height: 50px; padding: 0 8px 0 16px; max-width: calc(100vw - 24px);
  border-radius: 999px; overflow: hidden; isolation: isolate;
  background: rgba(10, 8, 14, .82);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.5),
              0 0 34px -18px rgb(var(--rgb-amber) / .8);
  transition: gap .5s cubic-bezier(.34,1.32,.44,1), padding .5s cubic-bezier(.34,1.32,.44,1),
              height .5s cubic-bezier(.34,1.32,.44,1), border-radius .5s, box-shadow .4s;
}
:root[data-theme="light"] .island { background: rgba(255,251,244,.86); border-color: rgba(0,0,0,.08); }
/* a faint amber sheen sweeping the capsule, like the island's live glint */
.island::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(var(--rgb-amber) / .17) 50%, transparent 70%);
  background-size: 260% 100%; animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { background-position: 190% 0; } 100% { background-position: -70% 0; } }

.isl-brand { display: flex; align-items: center; gap: 9px; font-weight: 700;
             letter-spacing: -.03em; font-size: var(--t--1); white-space: nowrap; flex: none; }
.isl-live { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none;
            box-shadow: 0 0 0 0 rgb(var(--rgb-amber) / .8); animation: livedot 2.4s ease-out infinite; }
@keyframes livedot { 70%, 100% { box-shadow: 0 0 0 8px rgb(var(--rgb-amber) / 0); } }

/* the links + actions that the island reveals when it expands */
.isl-more { display: flex; align-items: center; gap: 10px; overflow: hidden;
            max-width: 720px; opacity: 1;
            transition: max-width .5s cubic-bezier(.34,1.32,.44,1), opacity .3s .12s; }
.nav.compact .isl-more { max-width: 0; opacity: 0; transition: max-width .45s cubic-bezier(.4,0,.2,1), opacity .18s; }
.nav.compact .island { gap: 8px; padding-right: 16px; }
/* a compact-state status line that only shows once collapsed */
.isl-status { display: flex; align-items: center; gap: 7px; white-space: nowrap; flex: none;
              font-family: var(--f-mono); font-size: .56rem; letter-spacing: .13em;
              text-transform: uppercase; color: var(--faint);
              max-width: 0; opacity: 0; overflow: hidden;
              transition: max-width .45s cubic-bezier(.34,1.32,.44,1), opacity .3s; }
.nav.compact .isl-status { max-width: 220px; opacity: 1; transition-delay: .1s; }
@media (max-width: 620px) { .isl-status { display: none; } }

.isl-links { display: flex; gap: 1px; padding: 3px; border-radius: 999px;
             background: rgba(255,255,255,.045); flex: none; }
:root[data-theme="light"] .isl-links { background: rgba(0,0,0,.045); }
.isl-links a { font-size: var(--t--1); color: var(--dim); padding: 6px 12px; border-radius: 999px;
               transition: .2s; white-space: nowrap; }
.isl-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.isl-links a[aria-current="page"] { color: var(--glow); background: rgb(var(--rgb-amber) / .13); }
.isl-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.islbtn { display: none; }
@media (max-width: 980px) {
  .isl-links, .isl-actions .btn-quiet, .isl-status { display: none; }
  .islbtn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
            background: rgba(255,255,255,.06); border: 0; color: var(--text); cursor: pointer; flex: none; }
  /* expanded island drops into a sheet on small screens */
  .nav.open .island { height: auto; flex-direction: column; align-items: stretch;
                      border-radius: 24px; padding: 14px; gap: 10px; width: min(420px, calc(100vw - 24px)); }
  .nav.open .isl-links { display: flex; flex-direction: column; gap: 2px; }
  .nav.open .isl-links a { padding: 11px 14px; }
  .nav.open .isl-actions { display: flex; }
  .nav.open .isl-actions .btn-quiet { display: inline-flex; }
  .nav.open .isl-more { max-width: none; opacity: 1; }
}
/* the page needs headroom for the floating island */
body { padding-top: 78px; }

/* ── Celestial bodies ─────────────────────────────────────── */
.cosmos-stage { position: relative; display: grid; place-items: center; overflow: hidden;
                min-height: clamp(280px, 34vw, 430px); }

/* the sun: brand-coloured core, breathing corona, flare spokes */
.sun {
  position: relative; width: clamp(120px, 15vw, 190px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFF2D2 0%, #FFD07A 22%, var(--amber) 52%, #C24E05 82%, #6B2400 100%);
  box-shadow: 0 0 70px rgb(var(--rgb-amber) / .75), 0 0 160px rgb(var(--rgb-amber) / .38),
              inset -14px -18px 44px rgba(90,20,0,.6);
  animation: breathe 7s ease-in-out infinite; cursor: pointer;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 70px rgb(var(--rgb-amber) / .7),  0 0 150px rgb(var(--rgb-amber) / .32), inset -14px -18px 44px rgba(90,20,0,.6); }
  50%      { box-shadow: 0 0 110px rgb(var(--rgb-amber) / .95), 0 0 230px rgb(var(--rgb-amber) / .5), inset -14px -18px 44px rgba(90,20,0,.6); }
}
.sun::before {
  content: ""; position: absolute; inset: -34%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 6deg, rgb(var(--rgb-glow) / .3) 8deg, transparent 10deg 30deg,
                             rgb(var(--rgb-glow) / .2) 32deg, transparent 34deg 60deg);
  mask-image: radial-gradient(circle, transparent 46%, #000 52%, transparent 80%);
  animation: spin-slow 26s linear infinite;
}
.sun::after {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, rgb(var(--rgb-amber) / .22) 60%, transparent 72%);
  animation: flare 4.5s ease-in-out infinite alternate;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes flare { from { opacity: .5; transform: scale(.97); } to { opacity: 1; transform: scale(1.06); } }

/* the moon: cratered, cool, rim-lit from the sun's side */
.moon {
  position: relative; width: clamp(74px, 9vw, 116px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #E9E3F2 0%, #B9B1C9 34%, #6E6680 68%, #2A2533 100%);
  box-shadow: inset -12px -10px 26px rgba(0,0,0,.75), 0 0 44px rgba(210,200,230,.22),
              -3px -3px 22px rgb(var(--rgb-amber) / .3);
  cursor: pointer;
}
.moon i { position: absolute; border-radius: 50%; background: rgba(0,0,0,.16);
          box-shadow: inset 1px 1px 2px rgba(0,0,0,.35); }
.moon i:nth-child(1) { width: 22%; height: 22%; top: 24%; left: 20%; }
.moon i:nth-child(2) { width: 13%; height: 13%; top: 55%; left: 44%; }
.moon i:nth-child(3) { width: 17%; height: 17%; top: 34%; left: 60%; }
.moon i:nth-child(4) { width: 9%;  height: 9%;  top: 70%; left: 24%; }

/* orbit rings that carry a satellite dot */
.orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%;
         border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.orbit.tilt { transform: rotateX(72deg); }
.orbit::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px;
                border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px 2px rgb(var(--rgb-amber) / .9); }
.orbit.o1 { width: min(260px, 62vw); height: min(260px, 62vw); animation: spin-slow 18s linear infinite; }
.orbit.o2 { width: min(380px, 84vw); height: min(380px, 84vw); animation: spin-slow 30s linear infinite reverse;
            border-color: rgb(var(--rgb-amber) / .12); }
.orbit.o3 { width: min(510px, 96vw); height: min(510px, 96vw); animation: spin-slow 46s linear infinite;
            border-style: dashed; border-color: rgba(255,255,255,.05); }
@media (max-width: 620px) { .orbit.o3 { display: none; } }

/* an eclipse-style horizon: light rising from behind a dark limb */
.eclipse { position: absolute; left: 50%; translate: -50% 0; width: min(760px, 92vw); height: 380px;
           border-radius: 50%; background: var(--void);
           box-shadow: 0 -2px 0 1px rgb(var(--rgb-glow) / .55), 0 -30px 90px rgb(var(--rgb-amber) / .45),
                       0 -80px 180px rgb(var(--rgb-amber) / .25); }

@media (prefers-reduced-motion: reduce) {
  .sun, .sun::before, .sun::after, .orbit, .island::after, .isl-live { animation: none !important; }
}

/* ── Pipeline diagram ─────────────────────────────────────── */
.pipe { overflow-x: auto; padding-bottom: 8px; }
.pipe svg { display: block; min-width: 720px; width: 100%; height: auto; }
.pipe .node-box { fill: var(--panel); stroke: var(--line-2); transition: stroke .5s, filter .5s; }
.pipe .node-box.on { stroke: rgb(var(--rgb-amber) / .8);
                     filter: drop-shadow(0 0 14px rgb(var(--rgb-amber) / .45)); }
.pipe .t-title { fill: var(--text); font: 600 14px "Onest", sans-serif; }
.pipe .t-sub   { fill: var(--faint); font: 400 10px "Martian Mono", monospace; }
.pipe .wire { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.pipe .flow { stroke: var(--glow); stroke-width: 2; fill: none; stroke-linecap: round;
              stroke-dasharray: 5 170; animation: dash 3.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -350; } }
.pipe .loop-label { fill: var(--glow); font: 500 9px "Martian Mono", monospace; }

/* small caption inside a framed panel */
.note { color: var(--faint); font-size: var(--t--2); }

/* ═══════════════════════════════════════════════════════════
   LEGAL PROSE · FORMS · BUSINESS DETAILS
   ═══════════════════════════════════════════════════════════ */

/* ── Long-form legal reading ──────────────────────────────── */
.legal { max-width: 74ch; margin-inline: auto; }
.legal h2 { font-size: var(--t-2); margin-top: 52px; scroll-margin-top: 100px; }
.legal h3 { font-size: var(--t-1); margin-top: 30px; color: var(--text); }
.legal p, .legal li { color: var(--dim); font-size: var(--t-0); line-height: 1.72; }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 9px; }
.legal li::marker { color: var(--amber); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }
.legal table.data { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }

/* the table of contents that rides alongside a legal page */
.legal-toc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
             padding: 18px 20px; margin-top: 26px; }
.legal-toc h4 { font-family: var(--f-mono); font-size: .56rem; letter-spacing: .17em;
                text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc;
                columns: 2; column-gap: 26px; }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }
.legal-toc li { counter-increment: toc; break-inside: avoid; margin-bottom: 8px; }
.legal-toc a { color: var(--dim); font-size: var(--t--1); text-decoration: none; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero) " ";
                       font-family: var(--f-mono); font-size: .58rem; color: var(--amber); margin-right: 7px; }
.legal-toc a:hover { color: var(--glow); }

/* effective-date / version strip at the top of a policy */
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px;
            font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em;
            text-transform: uppercase; color: var(--faint); }
.doc-meta b { color: var(--dim); font-weight: 500; }

/* ── Placeholders the operator must still fill in ─────────── */
.todo {
  display: inline; padding: 1px 7px; border-radius: 5px; font-family: var(--f-mono);
  font-size: .78em; letter-spacing: .02em; white-space: nowrap;
  background: rgb(var(--rgb-amber) / .16); color: var(--glow);
  border: 1px dashed rgb(var(--rgb-amber) / .55);
}
.todo-banner {
  display: flex; gap: 13px; align-items: start; margin-top: 26px;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px dashed rgb(var(--rgb-amber) / .5); background: rgb(var(--rgb-amber) / .06);
}
.todo-banner .ic { flex: none; color: var(--glow); font-size: 1rem; line-height: 1.4; }
.todo-banner p { color: var(--dim); font-size: var(--t--1); margin: 0; }
.todo-banner b { color: var(--glow); }

/* ── Business identity block ──────────────────────────────── */
.ident { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px;
         background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
         overflow: hidden; margin-top: 26px; }
.ident div { background: var(--ink); padding: 18px 20px; }
.ident .k { display: block; font-family: var(--f-mono); font-size: .54rem; letter-spacing: .16em;
             text-transform: uppercase; color: var(--faint); }
.ident .v { display: block; margin-top: 8px; font-size: var(--t--1); color: var(--text); }

/* ── Forms ────────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--t--1); font-weight: 500; color: var(--text); }
.field .hint { font-size: var(--t--2); color: var(--faint); }
.field input, .field select, .field textarea {
  font: 400 var(--t-0) var(--f-sans); color: var(--text);
  background: rgb(255 255 255 / .03); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 11px 13px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background: #fff; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgb(var(--rgb-amber) / .7);
  box-shadow: 0 0 0 3px rgb(var(--rgb-amber) / .12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field.two { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field.two { grid-template-columns: 1fr; } }
.field .err { font-size: var(--t--2); color: #FF8A80; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #FF8A80; }
.field.invalid .err { display: block; }
.form-note { font-size: var(--t--2); color: var(--faint); line-height: 1.6; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--r-sm); font-size: var(--t--1); }
.form-status.on { display: block; }
.form-status.ok { background: rgb(var(--rgb-amber) / .1); border: 1px solid rgb(var(--rgb-amber) / .4); color: var(--glow); }
.form-status.warn { background: rgb(255 138 128 / .08); border: 1px solid rgb(255 138 128 / .4); color: #FFB3AB; }
