/* Fastby Solutions — site styles
   Brand colours from the Fastby logo: sky #007FFF, indigo #1E1E7C
   Type: Bricolage Grotesque (headings) + Figtree (text), both sans-serif */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --sky: #007FFF;
  --sky-deep: #0066D6;
  --indigo: #1E1E7C;
  --ink: #16163F;
  --text: #3D3E63;
  --muted: #6A6C8E;
  --mist: #F1F5FD;
  --line: #DCE3F2;
  --white: #FFFFFF;
  --sun: #FFB547;
  --ok: #1D8A5B;
  --err: #C23B3B;

  --f-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.4rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --head-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--sky);
  background: var(--sky); color: #fff;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn.line { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn.line:hover { background: var(--indigo); color: #fff; }
.btn.is-soon { background: transparent; border-color: var(--line); color: var(--muted); cursor: default; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(0,127,255,.35); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
#site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 20px; }
.brand img { height: 30px; width: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.nav a:hover { color: var(--sky-deep); }
.nav a[aria-current="page"] { color: var(--sky-deep); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.sub-toggle { display: none; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg); }
.sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 18px 40px -18px rgba(30,30,124,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 9px 12px; }
.sub a:hover { background: var(--mist); }
.menu-btn { display: none; }

@media (max-width: 940px) {
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0 10px; }
  .menu-btn span:not(.sr) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  #site-header.open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  #site-header.open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  #primary-nav { display: none; position: absolute; top: var(--head-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--head-h)); overflow: auto; }
  #site-header.open #primary-nav { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav > li > a { flex: 1; padding: 14px 4px; font-size: 1.06rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .has-sub > a::after { display: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .sub-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; display: none; }
  .has-sub.sub-open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.sub-open:hover .sub { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.tint { background: var(--mist); }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { font-size: var(--step-1); color: var(--text); line-height: 1.5; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(0,127,255,.14), transparent 62%),
    radial-gradient(700px 400px at 100% 100%, rgba(30,30,124,.08), transparent 60%),
    var(--white);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { max-width: 13ch; color: var(--indigo); }
.hero h1 .lite { display: block; color: var(--sky); font-weight: 700; }
.hero .lede { font-size: var(--step-1); line-height: 1.5; max-width: 44ch; margin: 1.1em 0 1.8em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero art: a brain with three dotted rings revolving around it, nonstop */
.orbit-art { position: relative; width: 100%; max-width: 480px; justify-self: center; }
.orbit-art svg { width: 100%; height: auto; overflow: visible; }
.ring { transform-box: view-box; transform-origin: 200px 200px; }
.ring circle:first-child { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.ring.r1 circle:first-child { stroke: var(--sky); stroke-dasharray: 0.1 12; }
.ring.r2 circle:first-child { stroke: var(--indigo); stroke-dasharray: 0.1 15; opacity: .75; }
.ring.r3 circle:first-child { stroke: var(--sun); stroke-dasharray: 0.1 18; }
.ring .moon { stroke: #fff; stroke-width: 3; }
.ring.r1 .moon { fill: var(--sky); }
.ring.r2 .moon { fill: var(--indigo); }
.ring.r3 .moon { fill: var(--sun); }
.ring.r1 { animation: revolve 14s linear infinite; }
.ring.r2 { animation: revolve 22s linear infinite reverse; }
.ring.r3 { animation: revolve 32s linear infinite; }
@keyframes revolve { to { transform: rotate(360deg); } }
.brain .halo { fill: #fff; stroke: rgba(0,127,255,.14); stroke-width: 10; }
.brain .lobe { fill: #E6F1FF; stroke: var(--indigo); stroke-width: 4; stroke-linejoin: round; }
.brain .fold path { fill: none; stroke: var(--sky); stroke-width: 3.4; stroke-linecap: round; }
.brain { transform-box: view-box; transform-origin: 0 0; transform: translate(200px, 200px); animation: think 4.5s ease-in-out infinite; }
@keyframes think { 0%, 100% { transform: translate(200px, 200px) scale(1); } 50% { transform: translate(200px, 200px) scale(1.04); } }
.orbit-key { list-style: none; margin: 18px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
.orbit-key a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 1rem/1 var(--f-head); padding: 8px 4px; }
.orbit-key a:hover { color: var(--sky-deep); }
.orbit-key i { width: 12px; height: 12px; border-radius: 50%; }
.orbit-key .k1 { background: var(--sky); }
.orbit-key .k2 { background: var(--indigo); }
.orbit-key .k3 { background: var(--sun); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-grid .big { font: 600 var(--step-2)/1.3 var(--f-head); color: var(--ink); letter-spacing: -0.015em; max-width: 24ch; }
.about-grid .big b { color: var(--sky-deep); font-weight: 700; }

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.solution { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.solution + .solution { padding-left: 28px; border-left: 1px solid var(--line); }
.solution svg { width: 44px; height: 44px; color: var(--sky); margin-bottom: 10px; }
.solution h3 { margin: 0; }
.solution p { margin: 0; }
.solution .text-link { margin-top: 6px; color: var(--sky-deep); }
.solution:hover h3 { color: var(--sky-deep); }

/* ---------- Apps ---------- */
.apps-band { background: var(--indigo); color: #D9DCF7; }
.apps-band h2, .apps-band h3 { color: #fff; }
.apps-band .section-head p { color: #D9DCF7; }
.apps-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.app-list { display: grid; gap: 18px; }
.app-card { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.app-card p { color: #D9DCF7; }
.app-card .text-link { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.app-icon { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(145deg, var(--sky), #4FA7FF); display: grid; place-items: center; font: 800 1.9rem/1 var(--f-head); color: #fff; }
.app-card.is-teaser { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.25); }
.app-card.is-teaser .app-icon { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 .75rem/1 var(--f-body); letter-spacing: 0; }
.stay { font-weight: 600; color: #fff; margin: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 12px; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font: 700 1rem/1.1 var(--f-head); border: 1px solid #fff; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font: 500 .72rem/1.2 var(--f-body); color: var(--muted); }
.store:hover { background: var(--mist); color: var(--indigo); }
.store.is-soon { background: transparent; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); cursor: default; }
.store.is-soon small { color: rgba(255,255,255,.55); }
.store.is-soon em { font: 600 .72rem/1 var(--f-body); font-style: normal; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.12); margin-left: 4px; }
.light .store { background: var(--ink); color: #fff; border-color: var(--ink); }
.light .store small { color: rgba(255,255,255,.7); }
.light .store:hover { background: var(--indigo); color: #fff; }
.light .store.is-soon { background: transparent; color: var(--muted); border-color: var(--line); }
.light .store.is-soon small { color: var(--muted); }
.light .store.is-soon em { background: var(--mist); color: var(--muted); }

/* Phone mockup showing a sample Mind-Yoo day */
.phone { width: min(300px, 100%); margin: 0 auto; aspect-ratio: 300 / 610; border-radius: 44px; padding: 12px; background: #0E0E3A; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08); }
.screen { height: 100%; border-radius: 34px; background: #F7F9FE; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); font-size: 13px; }
.screen-top { padding: 34px 20px 14px; background: linear-gradient(160deg, var(--sky), #4FA7FF); color: #fff; }
.screen-top small { opacity: .85; display: block; font-size: 12px; }
.screen-top strong { display: block; font: 700 21px/1.2 var(--f-head); margin-top: 3px; }
.slots { list-style: none; margin: 0; padding: 14px 14px 0; display: grid; gap: 8px; }
.slots li { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 12px; border-left: 4px solid var(--sky); box-shadow: 0 1px 2px rgba(22,22,63,.06); }
.slots li.life { border-left-color: #2F8F6B; }
.slots li.date { border-left-color: var(--sun); }
.slots li.done span:last-child { text-decoration: line-through; color: var(--muted); }
.slots time { font-weight: 700; font-size: 12px; color: var(--muted); }

/* ---------- Ebooks: 3D mockups ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.book { display: flex; flex-direction: column; gap: 22px; }
.book-body h3 { margin-bottom: .35em; }
.book-body p { color: var(--text); }
.book-body .actions { margin-top: 4px; }
.book3d { perspective: 1400px; padding: 22px 30px 30px; background: linear-gradient(180deg, transparent 72%, rgba(30,30,124,.07) 72%); border-radius: var(--r); }
.b-inner { position: relative; width: min(200px, 72%); margin: 0 auto; aspect-ratio: 2 / 3; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(2deg); transition: transform .5s ease; }
.book:hover .b-inner { transform: rotateY(-10deg); }
.b-front {
  position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden;
  background: linear-gradient(155deg, var(--c1) 0%, var(--c1) 58%, var(--c2) 58.2%, var(--c2) 100%);
  display: flex; flex-direction: column; padding: 18% 12% 10%; color: #fff;
  transform: translateZ(12px);
  box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.4), 18px 24px 34px -14px rgba(22,22,63,.45);
}
.b-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-cat { font: 600 .72rem/1 var(--f-body); opacity: .85; }
.b-title { font: 800 clamp(1.05rem, .9rem + .7vw, 1.4rem)/1.08 var(--f-head); letter-spacing: -0.02em; margin-top: 10px; }
.b-by { margin-top: auto; align-self: flex-start; font: 600 .72rem/1.2 var(--f-body); color: var(--ink); background: rgba(255,255,255,.88); padding: 5px 8px; border-radius: 4px; }
.b-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 24px; background: var(--c1); filter: brightness(.7); transform: translateX(-12px) rotateY(-90deg); }
.b-pages { position: absolute; top: 3px; bottom: 3px; right: 0; width: 24px; background: repeating-linear-gradient(90deg, #fff 0 2px, #E9ECF3 2px 3px); transform: translateX(12px) rotateY(90deg); }

/* ---------- Music ---------- */
.music-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.vinyl { width: min(260px, 70%); aspect-ratio: 1; border-radius: 50%; margin: 8px 0 0;
  background:
    radial-gradient(circle, var(--sun) 0 13%, var(--ink) 13.5% 15%, transparent 15.5%),
    repeating-radial-gradient(circle, #1B1B4E 0 2px, #2A2A72 2px 3px);
  box-shadow: 0 30px 60px -30px rgba(22,22,63,.6);
}
.is-spinning .vinyl { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.playlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: t; }
.track { display: grid; grid-template-columns: 48px 1fr auto 44px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.track .play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sky); color: #fff; display: grid; place-items: center; cursor: pointer; }
.track .play svg { width: 20px; height: 20px; }
.track .play:hover { background: var(--indigo); }
.track.is-playing .play { background: var(--indigo); }
.track-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.track-title { font-weight: 600; color: var(--ink); }
.track-note { font-size: var(--step--1); color: var(--err); }
.track-note:empty { display: none; }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--sky); }
.dur { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--indigo); border: 1px solid var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--mist); }
.empty { color: var(--muted); padding: 18px 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 80px); }
.contact-info dl { margin: 24px 0 0; display: grid; gap: 18px; }
.contact-info dt { font-weight: 600; color: var(--muted); font-size: var(--step--1); }
.contact-info dd { margin: 2px 0 0; font: 600 var(--step-1)/1.3 var(--f-head); color: var(--ink); }
.contact-info dd a { color: var(--ink); }
form.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0,127,255,.18); }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(900px 420px at 90% -20%, rgba(0,127,255,.12), transparent 62%); }
.page-intro h1 { color: var(--indigo); font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); }
.page-intro p { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* MindYoo page */
.app-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.app-hero .app-icon { width: 76px; height: 76px; border-radius: 22px; font-size: 2.3rem; margin-bottom: 22px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.features li { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.features li:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.features p { margin: 0; }
.url-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: var(--step--1); color: var(--muted); }
.url-note code { font: 600 .9rem/1 var(--f-body); color: var(--indigo); background: var(--mist); padding: 6px 10px; border-radius: 999px; }

/* ---------- Legal ---------- */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 4px; }
.legal-toc a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; }
.legal-toc a:hover { background: var(--mist); }
.legal-item { border-top: 2px solid var(--ink); }
.legal-item:last-child { border-bottom: 1px solid var(--line); }
.legal-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.legal-item summary::-webkit-details-marker { display: none; }
.legal-item summary h2 { margin: 0; font-size: var(--step-2); }
.legal-item summary small { display: block; font: 500 var(--step--1)/1.3 var(--f-body); color: var(--muted); margin-top: 6px; }
.legal-item summary::after { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%2316163F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .2s; }
.legal-item[open] summary::after { transform: rotate(45deg); }
.legal-body { padding: 0 0 32px; max-width: 72ch; }
.legal-body h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .45em; }
.legal-body .eff { font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
#site-footer { background: var(--ink); color: #B9BBDA; padding: 64px 0 0; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.foot-brand p { max-width: 32ch; }
#site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
#site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#site-footer a { color: #DADCF2; text-decoration: none; }
#site-footer a:hover { color: #fff; text-decoration: underline; }
.fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 20px; padding-bottom: 28px; font-size: var(--step--1); }
.fine p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .apps-layout, .music-layout, .contact-grid, .app-hero { grid-template-columns: 1fr; }
  .orbit-art { max-width: 380px; margin-top: 12px; }
  .books { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .features li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .features li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; }
  .phone { width: min(270px, 100%); }
  .vinyl { width: min(220px, 60%); }
}
@media (max-width: 640px) {
  .solutions { grid-template-columns: 1fr; }
  .solution, .solution + .solution { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .books { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .features li:nth-child(even) { padding-left: 0; border-left: 0; }
  .app-card { grid-template-columns: 1fr; padding: 22px; }
  .foot { grid-template-columns: 1fr; }
  .track { grid-template-columns: 44px 1fr 44px; }
  .track .dur { display: none; }
  .orbit-art { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tracks not uploaded yet */
.track .play.is-off { background: var(--line); color: #fff; cursor: default; }
.track-note.soon { color: var(--muted); }
