/* Cubescape site: layout and components. Colors and fonts come from tokens.css.
   Light bands are the app's look (paper, navy text); dark bands are the explainer video's (navy gradient, cream). */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--amber-ink); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--amber); }
code { font-family: var(--mono); font-size: .9em; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--amber); color: var(--on-amber); font-weight: 600; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.1; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { margin: 0 0 14px; font: 600 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
.dark .eyebrow { color: var(--amber); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.dark .lede { color: var(--dark-muted); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.amber { color: var(--amber-ink); }
.dark .amber { color: var(--amber); }
.teal { color: var(--teal); }
.dark .teal { color: var(--teal-l); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 14px; border: 1px solid transparent; font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--amber); color: var(--on-amber); box-shadow: 0 4px 14px rgba(246, 169, 40, .35); }
.btn-primary:hover { background: var(--amber-hi); color: var(--on-amber); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--idle); color: var(--text); }
.dark .btn-ghost { background: rgba(252, 250, 245, .06); color: var(--cream); border-color: rgba(252, 250, 245, .25); }
.dark .btn-ghost:hover { background: rgba(252, 250, 245, .12); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); }
.dark .fine { color: var(--dark-muted); }

/* ---------- icons and the mark ---------- */
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The Open frame mark: cream or navy outline, teal inner edges, amber dot out through the gap. */
.mark { flex: none; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mark .m-line { stroke: var(--mark-line, var(--text)); }
.mark .m-inner { stroke: var(--mark-inner, var(--teal)); }
.mark .m-dot { fill: var(--amber); stroke: none; }
.mark .m-glow { fill: var(--amber); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dark .mark { --mark-line: var(--cream); --mark-inner: var(--teal-l); }
.mark.live .m-glow { animation: glow 2.8s ease-out infinite; }
.mark.live .m-dot { animation: dot 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes dot { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
          border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand .mark { width: 30px; height: 30px; }
.brand b { font: 700 21px/1 var(--display); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--sunk); }
.topbar .btn { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line);
            border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
         padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .topbar .btn.cta { display: none; }
}

/* ---------- bands ---------- */
.band { padding: clamp(72px, 10vw, 128px) 0; }
.band.sunk { background: var(--sunk); }
.dark { color: var(--cream); background: radial-gradient(1200px 800px at 30% 15%, var(--navy-hi) 0%, var(--navy) 45%, var(--deep) 100%); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); }
.hero h1 .amber { display: block; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--dark-muted); }
.hero .badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero .badges .i { width: 18px; height: 18px; color: var(--teal-l); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
/* "Just ask: …", cycling through very different requests (site.js) */
.asks { font-size: 17px; color: var(--dark-muted); min-height: 3.2em; }
.asks q { color: var(--cream); font-weight: 500; transition: opacity .35s ease; }
.asks q.out { opacity: 0; }

/* A place illustration with the phone standing beside it, as in the video's demos */
.scene { position: relative; aspect-ratio: 5 / 4; max-width: 620px; width: 100%; margin-inline: auto; }
.scene .art { position: absolute; left: 0; top: 9%; width: 57%; height: 82%; border-radius: var(--radius-l); overflow: hidden;
              box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.scene .art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.scene .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 22, 31, 0) 55%, rgba(17, 22, 31, .5) 100%); }
.scene .phone { position: absolute; right: 0; top: 0; height: 100%; }
.scene .place { position: absolute; left: 5%; top: 6%; max-width: 50%; }
@media (max-width: 600px) {
  .scene .place { padding: 7px 10px; border-radius: 10px; max-width: 52%; }
  .scene .place small { font-size: 9px; }
  .scene .place b { font-size: 12px; }
}

.place { display: inline-grid; gap: 2px; padding: 12px 18px; border-radius: 14px; background: rgba(17, 22, 31, .8); color: var(--cream);
         backdrop-filter: blur(6px); }
.place small { font: 600 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.place b { font: 600 20px/1.2 var(--display); }

/* ---------- the phone ---------- */
/* An iPhone's proportions (71.5 x 147.6 mm body, even bezel, round corners). The clips are a touch taller than the
   screen, so they're centred: the blank strips above and below the app's own screen are what gets trimmed. */
.phone { aspect-ratio: 71.5 / 147.6; padding: 2.6%; border-radius: 16% / 7.75%; background: #05070a;
         box-shadow: 0 0 0 2px #3a4150, 0 34px 80px rgba(0, 0, 0, .45); }
.phone .screen { width: 100%; height: 100%; border-radius: 14.1% / 6.7%; overflow: hidden; background: var(--cream); }
.phone .screen > * { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.band:not(.dark) .phone { box-shadow: 0 0 0 2px #3a4150, 0 30px 70px rgba(27, 35, 51, .28); }

/* ---------- the gap ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 56px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--card);
            border: 1px solid var(--line); font-weight: 500; font-size: 15px; box-shadow: var(--shadow); }
.chips .i { width: 18px; height: 18px; color: var(--teal); }
.gap-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 40px; }
@media (max-width: 860px) { .gap-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.compare { border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tr:last-child td { border-bottom: none; }
.compare thead th { font: 600 15px/1.25 var(--display); color: var(--muted); background: var(--sunk); }
.compare thead th small { display: block; font: 500 13px/1.3 var(--body); }
.compare thead th.cs { color: var(--amber-ink); }
.compare th:not(:first-child), .compare td:not(:first-child) { width: 22%; text-align: center; }
.compare td:first-child { font-weight: 500; }
.compare td.cs { background: color-mix(in srgb, var(--amber-bg) 55%, transparent); }
.yes, .no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.yes { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.no { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); }
.yes .i, .no .i { width: 18px; height: 18px; stroke-width: 2.6; }
.compare + .fine { margin-top: 14px; }
@media (max-width: 640px) { .compare th, .compare td { padding: 14px 12px; font-size: 15px; } .compare thead th small { display: none; } }

/* ---------- how it works ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.25fr) 120px minmax(0, 1fr); align-items: center; margin-bottom: 40px; }
.box { padding: 30px 26px; border-radius: 26px; background: var(--dark-card); border: 1px solid var(--dark-line); text-align: center; display: grid; gap: 8px; justify-items: center; }
.box.main { background: rgba(246, 169, 40, .08); border-color: rgba(246, 169, 40, .35); }
.box .i, .box .mark { width: 56px; height: 56px; color: var(--teal-l); stroke-width: 1.8; margin-bottom: 4px; }
.box .mark { stroke-width: 2.4; }
.box b { font: 600 24px/1.2 var(--display); }
.box span { color: var(--dark-muted); font-size: 16px; line-height: 1.45; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.pills em { font-style: normal; padding: 6px 14px; border-radius: 999px; background: rgba(79, 195, 223, .16); color: var(--teal-l); font-size: 14px; font-weight: 600; }
.pills em.cc { background: rgba(246, 169, 40, .16); color: var(--amber); }
.link { text-align: center; color: var(--dark-muted); font-size: 14px; }
.link svg { width: 100%; height: 24px; overflow: visible; }
.link path { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 440px; margin-inline: auto; }
  .link { padding: 10px 0; }
  .link svg { width: 24px; height: 48px; margin: 0 auto 4px; transform: rotate(90deg); }
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--dark-card); font-weight: 500; line-height: 1.4; }
.steps li::before { counter-increment: step; content: counter(step); flex: none; display: grid; place-items: center; width: 36px; height: 36px;
                    border-radius: 50%; background: var(--amber); color: var(--navy); font: 700 17px/1 var(--display); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- anywhere ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.tiles li { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg); }
.tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tiles li:hover img { transform: scale(1.04); }
.tiles .place { position: absolute; left: 14px; bottom: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- demos ---------- */
.demos { display: grid; gap: clamp(56px, 8vw, 96px); }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo:nth-child(even) { grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); }
.demo:nth-child(even) .demo-copy { order: 2; }
.demo-copy { display: grid; gap: 22px; }
.demo-art { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 2 / 1; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.demo-art img { width: 100%; height: 100%; object-fit: cover; }
.demo-art .place { position: absolute; left: 16px; top: 16px; }
.quote { padding: 18px 22px; border-radius: 18px; background: rgba(17, 22, 31, .6); border: 1px solid var(--dark-line); font-size: 18px; line-height: 1.5; }
.quote small { display: block; margin-bottom: 6px; font: 600 12px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-l); }
.beats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--dark-muted); }
.beats li { display: flex; gap: 12px; align-items: baseline; }
.beats li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); transform: translateY(-1px); }
.beats li b { color: var(--cream); font-weight: 600; }
.demo .phone { width: 100%; max-width: 330px; margin-inline: auto; }
.demo-note { margin-top: 40px; text-align: center; }
@media (max-width: 860px) {
  .demo, .demo:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .demo:nth-child(even) .demo-copy { order: 0; }
  .demo .phone { max-width: 280px; }
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.feature { display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-bg); color: var(--teal); margin-bottom: 6px; }
.feature:nth-child(3n+2) .ico { background: var(--amber-bg); color: var(--amber-ink); }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .features, .features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Feature groups on the Features page: Ask, Start, Check, Approve, Hear back… */
.group + .group { margin-top: 56px; }
.group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.group-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.group-head p { color: var(--muted); font-size: 16px; }
@media (max-width: 600px) { .group-head { display: grid; gap: 4px; } }

/* ---------- what people ask ---------- */
.ask-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ask-wall li { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ask-wall h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.ask-wall h3 .i { width: 22px; height: 22px; color: var(--teal); }
.ask-wall q { display: block; padding: 12px 16px; border-radius: 14px; background: var(--sunk); font-size: 16px; line-height: 1.45; }
@media (max-width: 960px) { .ask-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ask-wall { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .features, .features.four { grid-template-columns: minmax(0, 1fr); } }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin: 72px 0 0; padding: 0; list-style: none; }
.gallery li { display: grid; gap: 16px; justify-items: center; text-align: center; }
.gallery .phone { width: 100%; max-width: 250px; }
.gallery b { font: 600 17px/1.3 var(--display); }
.gallery span { display: block; color: var(--muted); font-size: 15px; font-weight: 400; font-family: var(--body); margin-top: 2px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- what you need ---------- */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.need { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.need .i { width: 36px; height: 36px; color: var(--teal); stroke-width: 1.8; }
.need p { color: var(--muted); font-size: 16px; }
.soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 10px 16px; border-radius: 999px; background: var(--amber-bg); color: var(--text); font-size: 15px; }
.soon .i { width: 18px; height: 18px; color: var(--amber-ink); }
@media (max-width: 860px) { .needs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- video ---------- */
.player { position: relative; max-width: 1040px; margin-inline: auto; border-radius: var(--radius-l); overflow: hidden; background: #000;
          box-shadow: 0 0 0 1px var(--dark-line), 0 40px 90px rgba(0, 0, 0, .5); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; }

/* ---------- beta ---------- */
.beta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px);
        border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.beta .copy { display: grid; gap: 18px; }
.beta ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.beta li { display: flex; gap: 12px; align-items: flex-start; }
.beta li .i { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
@media (max-width: 860px) { .beta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
               font: 600 18px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
                      transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .a { display: grid; gap: 12px; padding: 0 24px 22px; color: var(--muted); }
.more { margin-top: 24px; text-align: center; }

/* ---------- close ---------- */
.close { text-align: center; }
.close .wrap { display: grid; justify-items: center; gap: 28px; }
.close .mark { width: 120px; height: 120px; }
.close h2 { max-width: 900px; }
/* The smaller close at the end of each inner page: where to go next */
.close.next { padding: clamp(56px, 7vw, 88px) 0; }
.close.next h2 { font-size: clamp(26px, 3.2vw, 38px); }
.close .actions { justify-content: center; }

/* ---------- home: one card per page ---------- */
.explore { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.explore a { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%; padding: 26px; border-radius: 20px;
             background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none;
             transition: border-color .15s, transform .15s; }
.explore a:hover { color: var(--text); border-color: var(--idle); transform: translateY(-2px); }
.explore .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-bg); color: var(--teal); margin-bottom: 6px; }
.explore li:nth-child(even) .ico { background: var(--amber-bg); color: var(--amber-ink); }
.explore .ico .mark { width: 30px; height: 30px; }
.explore p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.explore .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--amber-ink); font-weight: 600; font-size: 15px; }
.explore .go .i { width: 18px; height: 18px; transition: transform .15s; }
.explore a:hover .go .i { transform: translateX(3px); }
@media (max-width: 1000px) { .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .explore { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
footer .brand { margin: 0 0 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer .legal { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.page-head .narrow, .page-head .wrap { display: grid; gap: 18px; }
.page-head h1, .band.first h1 { font-size: clamp(36px, 5vw, 60px); }
/* An inner page that opens straight into a dark band (How it works, Demos) rather than a page head */
.band.first { padding-top: clamp(56px, 8vw, 96px); }
.section-head + .gallery { margin-top: 0; }
.setup { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.setup > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.setup > li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
                      background: var(--amber); color: var(--navy); font: 700 22px/1 var(--display); }
.setup .body { display: grid; gap: 12px; align-content: start; }
.setup .body p { color: var(--muted); }
.setup .actions { margin-top: 6px; }
.prose { display: grid; gap: 18px; }
.prose h2 { font-size: 28px; margin-top: 24px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.draft { padding: 16px 20px; border-radius: 14px; background: var(--amber-bg); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); color: var(--text); font-size: 15px; }
.todo { padding: 2px 8px; border-radius: 6px; background: var(--amber-bg); color: var(--amber-ink); font-family: var(--mono); font-size: 14px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mark.live .m-glow, .mark.live .m-dot, .link path { animation: none; }
  .tiles li:hover img { transform: none; }
}

/* ---------- home: what it can do, the safety layers ---------- */
.ask-wall p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.ask-wall li.star { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); background: color-mix(in srgb, var(--amber-bg) 45%, var(--card)); }
.ask-wall li.star h3 .i { color: var(--amber-ink); }
.features.layers .ico { font: 700 22px/1 var(--display); }
.close .lede { color: var(--dark-muted); max-width: 640px; }
