/* appbro.fun: page styles. The engine (scrollcraft.css) is the mechanism;
   everything here is this page's own markup. */

:root {
  --sc-canvas: #F6F8FF;
  --sc-surface: #FFFFFF;
  --sc-ink: #141A33;
  --sc-ink-soft: #4A5378;
  --sc-accent: #2457F5;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sc-font-text: "Figtree", system-ui, sans-serif;
  --sc-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sc-shadow-color: 228 45% 18%;

  --night: #12162B;
  --night-ink: #F3F5FF;
  --night-soft: #B4BCE0;
  --butter: #FFF0C2;
  --sky: #DDEBFF;
  --lilac: #ECE3FF;
  --peach: #FFE3D8;
  --mint: #D6F4EA;
  --cut: #FFD43B;

  --r: 22px;
  --r-sm: 12px;
  --nav-h: 64px;
}

html { scroll-padding-top: calc(var(--nav-h) + 24px); }
body { font-weight: 450; }
h1, h2, h3 { font-family: var(--sc-font-display); }
.sc-display { font-weight: 750; letter-spacing: -0.03em; }

/* no-JS: everything visible, nothing waits on the engine */
.no-js [data-sc-in], .no-js [data-sc-stagger] > *, .no-js [data-sc-cue] { opacity: 1 !important; transform: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sc-ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 52px; padding: 0 1.5rem;
  border-radius: var(--sc-r-pill);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: 0 2px 0 hsl(228 80% 30% / 0.35), 0 10px 24px -8px hsl(228 90% 40% / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: transform 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); background: #1D4BE0; }
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--light { background: #fff; color: var(--sc-accent); box-shadow: 0 2px 0 rgb(0 0 0 / 0.12), 0 14px 30px -10px rgb(10 20 80 / 0.5); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #F1F4FF; } }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.95rem; }

/* ----------------------------------------------------------------- nav --
   The pipeline stepper: the chrome is the product's own workflow, and it
   is the navigation. */
.bar {
  position: fixed; z-index: var(--sc-z-chrome);
  top: 12px; left: 50%; translate: -50% 0;
  width: min(calc(100% - 24px), 1120px);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 10px 0 18px;
  background: color-mix(in oklab, var(--night) 94%, transparent);
  color: var(--night-ink);
  border-radius: var(--sc-r-pill);
  box-shadow: var(--sc-e3), inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.bar__mark { display: flex; align-items: center; flex: none; }
.bar__mark img { width: 118px; height: auto; }
.steps { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.steps a {
  position: relative; display: block; padding: 8px 12px; border-radius: var(--sc-r-pill);
  font-size: 0.92rem; font-weight: 600; color: var(--night-soft); text-decoration: none;
  transition: color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.steps li + li::before {
  content: ""; display: inline-block; width: 10px; height: 2px; vertical-align: middle;
  background: color-mix(in oklab, var(--night-soft) 40%, transparent); margin-right: 2px; border-radius: 2px;
}
.steps li { display: flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .steps a:hover { color: #fff; } }
.steps a[aria-current="step"] { color: var(--night); background: var(--cut); }
.steps a.done { color: #fff; }
.bar .btn { flex: none; }
.bar__link { flex: none; padding: 8px 6px; font-size: 0.92rem; font-weight: 650; color: var(--night-ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bar__link:hover { color: var(--cut); } }
.bar :focus-visible { outline-color: var(--cut); }
@media (max-width: 1000px) { .steps { display: none; } .bar { justify-content: space-between; } .bar__link { margin-left: auto; } }
@media (max-width: 520px) { .bar__link { display: none; } }
@media (max-width: 420px) { .bar__mark img { width: 96px; } .bar .btn { padding: 0 0.95rem; font-size: 0.9rem; } }

/* ---------------------------------------------------------- section skin --
   Each stage of the pipeline is a sheet with its own ground. Hard cuts, no
   drift: the sheets overlap like a stack of printouts. */
.sheet { position: relative; background: var(--ground, var(--sc-canvas)); border-radius: 40px 40px 0 0; margin-top: -40px; }
.sheet > .sc-wrap { position: relative; }
@media (max-width: 700px) { .sheet { border-radius: 28px 28px 0 0; margin-top: -28px; } }
.sheet--butter { --ground: var(--butter); }
.sheet--sky { --ground: var(--sky); }
.sheet--lilac { --ground: var(--lilac); }
.sheet--peach { --ground: var(--peach); }
.sheet--mint { --ground: var(--mint); }
.sheet--night { --ground: var(--night); --sc-ink: var(--night-ink); --sc-ink-soft: var(--night-soft); color: var(--sc-ink); }
.sheet--blue { --ground: var(--sc-accent); --sc-ink: #fff; --sc-ink-soft: #DCE4FF; color: var(--sc-ink); }

.kicker { font-weight: 700; font-size: var(--sc-t-sm); color: var(--sc-accent); letter-spacing: 0.01em; margin: 0; }
.h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 4.2rem); line-height: 1; max-width: 18ch; }
.lead { font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 44ch; margin: 0; text-wrap: pretty; }

/* tiles: a store screenshot, sitting like a printed card */
.tile { margin: 0; border-radius: clamp(8px, 1.1vw, 16px); overflow: hidden; background: #dfe5f5; box-shadow: var(--sc-e2); }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 0 96px;
  background:
    radial-gradient(60rem 40rem at 85% 20%, #E3EDFF 0%, transparent 60%),
    radial-gradient(40rem 30rem at 10% 90%, #FFF3D1 0%, transparent 60%),
    var(--sc-canvas);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: var(--sc-6); min-height: calc(100svh - var(--nav-h) - 152px); }
.hero h1 { font-size: clamp(2.7rem, 1.2rem + 3.9vw, 5rem); line-height: 0.96; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--sc-accent); }
.hero__copy { position: relative; z-index: 5; }
.hero__copy > * + * { margin-top: var(--sc-5); }
.hero__copy .lead { max-width: 34ch; color: var(--sc-ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-5); padding-top: var(--sc-2); }
.hero__note { font-size: var(--sc-t-sm); font-weight: 600; color: var(--sc-ink-soft); margin: 0; display: flex; align-items: center; gap: 8px; }
.hero__note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1FB57A; box-shadow: 0 0 0 4px rgb(31 181 122 / 0.18); }

/* the layered scene: far blobs, a mid artboard, the screenshots, near icons */
.scene { position: relative; height: min(76svh, 720px); min-height: 460px; }
.scene [data-depth] { position: absolute; will-change: transform; }
.blob { border-radius: 50%; filter: blur(2px); }
.blob--a { width: 46%; aspect-ratio: 1; right: -4%; top: 2%; background: #CFE0FF; }
.blob--b { width: 30%; aspect-ratio: 1; left: 4%; bottom: 0; background: #FFE08A; }
.blob--c { width: 16%; aspect-ratio: 1; right: 14%; bottom: 6%; background: #FFC2D6; }
.board {
  left: 8%; right: 6%; top: 9%; bottom: 9%;
  border-radius: 34px; background-color: #fff;
  background-image: radial-gradient(circle, #D5DCEF 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  box-shadow: var(--sc-e2), inset 0 0 0 1px rgb(20 26 51 / 0.05);
  rotate: -3deg;
}
.scene .tile { position: absolute; width: 27%; aspect-ratio: 1290 / 2796; height: auto; }
.scene .t1 { left: 13%; top: 17%; }
.scene .t2 { left: 37%; top: 8%; width: 29%; z-index: 2; box-shadow: var(--sc-e3); }
.scene .t3 { left: 63%; top: 18%; }
.scene .tile-in { width: 100%; height: 100%; transform-origin: 50% 90%; }
.t1 .tile-in { rotate: -7deg; } .t3 .tile-in { rotate: 6deg; }
.ico { width: 22%; height: auto; filter: drop-shadow(0 18px 18px rgb(20 26 80 / 0.22)); z-index: 4; }
.ico--brush { left: 0; bottom: 6%; width: 25%; }
.ico--magic { right: -2%; top: 0; width: 19%; }
.ico--star { left: 3%; top: 4%; width: 11%; filter: blur(1.5px) drop-shadow(0 10px 12px rgb(20 26 80 / 0.2)); }
.ico--palette { right: 3%; bottom: 2%; width: 17%; }

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sc-5); min-height: 0; }
  .hero h1 { font-size: clamp(2.5rem, 1.2rem + 6.2vw, 3.6rem); max-width: 12ch; }
  .scene { height: 112vw; max-height: 560px; min-height: 0; }
  .scene .tile { width: 30%; } .scene .t2 { width: 33%; left: 34%; } .scene .t1 { left: 6%; } .scene .t3 { left: 64%; }
  .board { left: 2%; right: 2%; }
}

/* ------------------------------------------------------------ the maths -- */
.maths { padding-block: clamp(5rem, 9vw, 9rem); }
.maths__eq {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-5);
  margin: var(--sc-8) 0 var(--sc-7); padding: 0; list-style: none;
}
.maths__eq li { display: flex; flex-direction: column; gap: 4px; }
.maths__eq .num { font-family: var(--sc-font-display); font-weight: 800; font-size: clamp(3rem, 2rem + 4.5vw, 6rem); line-height: 0.9; letter-spacing: -0.04em; }
.maths__eq .what { font-weight: 600; color: var(--sc-ink-soft); font-size: var(--sc-t-base); }
.maths__eq .op { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); color: #C08A00; align-self: flex-start; padding-top: 0.2em; }
.maths__eq .total .num { color: var(--sc-accent); }
.maths__foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-6); align-items: end; }
.maths__foot p { margin: 0; }
@media (max-width: 760px) { .maths__foot { grid-template-columns: 1fr; } .maths__eq { gap: var(--sc-3) var(--sc-4); } }

/* ------------------------------------------------- the cut (peak, pinned) -- */
.cut .sc-stage, .cut [data-sc-stage] {
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + 32px) var(--sc-gutter) 28px;
  background: var(--night); border-radius: 40px 40px 0 0;
}
.cut__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sc-4) var(--sc-6); }
.cut__head .h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); max-width: 16ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: var(--sc-r-pill); cursor: pointer;
  border: 1.5px solid color-mix(in oklab, var(--night-soft) 45%, transparent);
  background: transparent; color: var(--night-ink); font-weight: 650; font-size: 0.92rem;
  transition: background-color 150ms var(--sc-ease-out), color 150ms var(--sc-ease-out), border-color 150ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--cut); } }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--cut); color: var(--night); border-color: var(--cut); }

.cut__area { position: relative; min-height: 0; }
.strip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.strip .piece {
  position: absolute; left: 0; top: 0;
  width: var(--tw, 200px); height: calc(var(--tw, 200px) * var(--ratio, 2.1674));
  transform-origin: 50% 50%; will-change: transform; margin: 0;
}
.piece .tile { width: 100%; height: 100%; border-radius: 0; box-shadow: none; transition: border-radius 200ms var(--sc-ease-out); }
.strip.is-cut .piece .tile { border-radius: 10px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.6); }
.piece figcaption {
  position: absolute; left: 0; right: 0; top: 100%; padding-top: 10px; text-align: center;
  font-size: 0.8rem; line-height: 1.3; color: var(--night-soft); opacity: var(--lbl, 0); white-space: nowrap;
}
.piece figcaption b { display: block; color: var(--night-ink); font-weight: 650; }
.seam { position: absolute; top: 0; width: 0; height: 100%; z-index: 3; pointer-events: none; }
.seam::before {
  content: ""; position: absolute; left: -1.5px; top: 0; width: 3px; height: 100%;
  background: repeating-linear-gradient(to bottom, var(--cut) 0 10px, transparent 10px 17px);
  transform-origin: 50% 0; transform: scaleY(var(--draw, 0));
  filter: drop-shadow(0 0 0 #000) drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}
.scissors { position: absolute; z-index: 4; width: 120px; max-width: none; height: auto; left: -60px; top: -60px; opacity: 0; pointer-events: none; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.45)); will-change: transform, opacity; }
.cut__foot { display: grid; justify-items: center; min-height: 3.2em; text-align: center; }
.cut__foot p { grid-area: 1 / 1; margin: 0; max-width: 46ch; font-size: var(--sc-t-lg); line-height: 1.4; color: var(--night-ink); font-weight: 550; }
.cut__foot p:nth-child(2) { opacity: 0; }
@media (max-width: 700px) {
  .cut .sc-stage, .cut [data-sc-stage] { border-radius: 28px 28px 0 0; padding-top: calc(var(--nav-h) + 24px); }
  .chip { min-height: 38px; padding: 0 12px; font-size: 0.85rem; }
  .cut__foot p { font-size: var(--sc-t-base); }
  .piece figcaption { font-size: 0.62rem; padding-top: 5px; }
  .piece figcaption b { font-size: 0.9em; }
}

/* ------------------------------------------------------------- studio -- */
.studio { padding-block: clamp(5rem, 9vw, 9rem) clamp(6rem, 10vw, 10rem); }
.studio__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--sc-6); margin-top: var(--sc-8); align-items: start; }
.panel { background: var(--sc-surface); border-radius: var(--r); padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); box-shadow: var(--sc-e1), var(--sc-edge); }
.panel h3 { font-size: var(--sc-t-xl); line-height: 1.1; margin: 0 0 var(--sc-3); letter-spacing: -0.02em; }
.panel p { margin: 0; color: var(--sc-ink-soft); }
.sizes { width: 100%; border-collapse: collapse; margin-top: var(--sc-5); font-size: var(--sc-t-sm); }
.sizes th, .sizes td { text-align: left; padding: 9px 0; border-top: 1px solid var(--sc-hairline); }
.sizes td:last-child { text-align: right; font-family: var(--sc-font-mono); font-size: 0.85em; color: var(--sc-ink-soft); white-space: nowrap; }
.sizes th { font-weight: 600; }
.sizes caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
.kit { display: grid; gap: var(--sc-4); }
.kit .panel { display: grid; grid-template-columns: 1fr auto; gap: var(--sc-4); align-items: center; }
.kit .panel img { width: clamp(76px, 8vw, 110px); height: auto; filter: drop-shadow(0 12px 14px rgb(20 26 80 / 0.18)); }
.kit .panel--wide { grid-template-columns: 1fr; }
.starts { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sc-4) 0 0; padding: 0; list-style: none; }
.starts li { padding: 6px 12px; border-radius: var(--sc-r-pill); background: var(--sky); font-weight: 600; font-size: var(--sc-t-sm); }
@media (max-width: 900px) { .studio__grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- translate -- */
.lang { padding-block: clamp(5rem, 9vw, 9rem) clamp(6rem, 10vw, 10rem); }
.lang__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--sc-8); align-items: center; }
.lang__copy > * + * { margin-top: var(--sc-5); }
.flags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-bottom: 0; list-style: none; }
.flags li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--sc-r-pill); background: #fff; font-weight: 600; font-size: var(--sc-t-sm); box-shadow: var(--sc-e1); }
.flags img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.lang__all { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 60ch; }
.lang__set { margin: 0; }
.lang__set .row { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r); overflow: hidden; box-shadow: var(--sc-e3); }
.lang__set .row img { width: 100%; height: auto; aspect-ratio: 1080 / 2400; object-fit: cover; }
.lang__set figcaption { margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
@media (max-width: 900px) { .lang__grid { grid-template-columns: 1fr; gap: var(--sc-7); } }

/* ----------------------------------------------------------- templates -- */
.tpl-act .sc-stage, .tpl-act [data-sc-stage] { display: flex; align-items: center; background: var(--peach); }
.rail { gap: clamp(2rem, 4vw, 4.5rem); padding-inline: var(--sc-gutter); align-items: center; padding-top: var(--nav-h); }
.rail__lead { flex: none; width: min(26rem, 78vw); }
.rail__lead > * + * { margin-top: var(--sc-4); }
.tpl { flex: none; margin: 0; }
.tpl__pano { display: flex; height: clamp(260px, 50svh, 520px); border-radius: var(--r); overflow: hidden; box-shadow: var(--sc-e3); }
.tpl__pano img { height: 100%; width: auto; aspect-ratio: 1290 / 2796; }
.tpl dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--sc-4); margin: var(--sc-4) 0 0; font-size: var(--sc-t-sm); max-width: 34rem; }
.tpl dt { font-weight: 700; }
.tpl dd { margin: 0; color: var(--sc-ink-soft); }
.tpl h3 { margin: var(--sc-4) 0 0; font-size: var(--sc-t-xl); letter-spacing: -0.02em; }
.rail__end { flex: none; width: min(22rem, 76vw); }
.rail__end > * + * { margin-top: var(--sc-4); }
@media (max-width: 700px) { .tpl__pano { height: clamp(220px, 40svh, 380px); } }
@media (prefers-reduced-motion: no-preference) {
  .tpl { opacity: calc(0.55 + 0.45 * var(--settle, 1)); }
}

/* -------------------------------------------------------------- export -- */
.export { padding-block: clamp(5rem, 9vw, 9rem) clamp(6rem, 10vw, 10rem); }
.export__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sc-8); align-items: center; }
.export__copy > * + * { margin-top: var(--sc-5); }
.ticks { margin-bottom: 0; padding: 0; list-style: none; display: grid; gap: var(--sc-3); }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #1FB57A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tree { background: var(--night); color: var(--night-ink); border-radius: var(--r); padding: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); box-shadow: var(--sc-e3); font-family: var(--sc-font-mono); font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.92rem); line-height: 1.9; overflow-x: auto; }
.tree ul { list-style: none; margin: 0; padding-left: 1.4em; border-left: 1px dashed rgb(255 255 255 / 0.18); }
.tree > ul { padding-left: 0; border: 0; }
.tree .dir { color: var(--cut); font-weight: 700; }
.tree .dim { color: var(--night-soft); }
.tree .zip { color: #8FE3C2; font-weight: 700; }
@media (max-width: 900px) { .export__grid { grid-template-columns: 1fr; gap: var(--sc-7); } }

/* ----------------------------------------------------------------- faq -- */
.faq { padding-block: clamp(5rem, 9vw, 8rem) clamp(6rem, 10vw, 10rem); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--sc-8); align-items: start; }
.faq details { border-top: 1.5px solid var(--sc-hairline-strong); }
.faq details:last-child { border-bottom: 1.5px solid var(--sc-hairline-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sc-4); padding: 20px 0; font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-lg); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23141A33' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 200ms var(--sc-ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--sc-ink-soft); max-width: 62ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: var(--sc-6); } }

/* --------------------------------------------------------------- close -- */
.close .sc-stage, .close [data-sc-stage] { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--sc-accent); color: #fff; border-radius: 40px 40px 0 0; }
.close__inner { align-self: center; justify-self: center; text-align: center; padding: calc(var(--nav-h) + 24px) var(--sc-gutter) 0; display: grid; justify-items: center; gap: var(--sc-5); position: relative; }
.close__inner h2 { font-size: clamp(2.2rem, min(1.4rem + 5vw, 9svh), 6rem); line-height: 0.95; max-width: 13ch; }
.close__inner p { margin: 0; font-size: var(--sc-t-lg); color: #E4EAFF; max-width: 40ch; }
.close__alt { color: #fff; font-weight: 650; }
.close__ico { position: absolute; width: clamp(70px, 9vw, 130px); height: auto; pointer-events: none; filter: drop-shadow(0 16px 18px rgb(0 0 60 / 0.35)); }
.close__ico--a { left: -10%; top: 18%; rotate: -14deg; }
.close__ico--b { right: -8%; bottom: 8%; rotate: 12deg; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sc-3) var(--sc-6); padding: var(--sc-5) var(--sc-gutter) calc(var(--sc-5) + env(safe-area-inset-bottom)); font-size: var(--sc-t-sm); color: #DCE4FF; border-top: 1px solid rgb(255 255 255 / 0.18); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--sc-5); }
.foot a { color: #fff; }
.foot__mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sc-font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.foot__mark img { width: 34px; height: 34px; }
.close :focus-visible, .sheet--blue :focus-visible { outline-color: #fff; }
@media (max-width: 700px) { .close__ico { display: none; } .close .sc-stage, .close [data-sc-stage] { border-radius: 28px 28px 0 0; } }
/* The stage is a fixed 100svh and clips, so the close copy has to give way on
   short screens or the footer's last row is cut off below the fold. */
@media (max-height: 760px) {
  .close__inner { padding-top: calc(var(--nav-h) + 8px); gap: var(--sc-4); }
  .foot { padding-block: var(--sc-4) calc(var(--sc-4) + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) { .foot nav { gap: var(--sc-2) var(--sc-4); } }

/* ------------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .cut.sc-act--pinned, .close.sc-act--pinned { height: auto !important; }
  .cut .sc-stage, .close .sc-stage { position: relative; min-height: 100svh; }
  .tpl-act.sc-act--pinned { height: auto !important; }
  .tpl-act .sc-stage { position: relative; height: auto; padding-block: calc(var(--nav-h) + 40px) 64px; }
  .scene [data-depth] { transform: none !important; }
}
