/* Sell-ready layer: overview, sequence, plan, FAQ and footer.
   Keeps the obsidian + ice identity from studio.css. */
:root {
  --tile: #111113;
  --tile-edge: #ffffff1a;
  --radius-tile: 16px;
}

/* ---------- Hero additions ---------- */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 26px 0 0;
  max-width: 34rem;
  padding: 0;
  list-style: none;
}
.hero-points li {
  font-size: .78rem;
  color: #cacad0;
  padding: 5px 10px 5px 24px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #101012a8;
  position: relative;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 7px; height: 4px;
  border-left: 1.5px solid var(--ice);
  border-bottom: 1.5px solid var(--ice);
  transform: translateY(-70%) rotate(-45deg);
}
.hero-actions { margin-top: 26px; }

@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated load: copy rises, the app is unveiled, then light passes over the headline. */
  .hero h1 span {
    background-size: 220% 100%;
    background-image: linear-gradient(100deg, #f3f3f5 0%, #bfe9f1 30%, #ffffff 42%, #bfe9f1 54%, #7fc6d3 100%);
    animation: enter .9s var(--ease) .08s both, headline-light 2.2s var(--ease) 1.1s both;
  }
  @keyframes headline-light { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .hero-points li { animation: enter .8s var(--ease) both; }
  .hero-points li:nth-child(1) { animation-delay: .34s; }
  .hero-points li:nth-child(2) { animation-delay: .40s; }
  .hero-points li:nth-child(3) { animation-delay: .46s; }
  .hero-points li:nth-child(4) { animation-delay: .52s; }
  .product-frame { animation: unveil 1.15s var(--ease) .25s both; }
  @keyframes unveil {
    from { clip-path: inset(0 0 100% 0 round 13px); filter: brightness(1.6); }
    to   { clip-path: inset(0 0 0 0 round 13px); filter: brightness(1); }
  }
}

/* Magnetic primary actions: visual offset only, hit target never moves. */
.magnetic { position: relative; overflow: hidden; isolation: isolate; }
.magnetic > .mag-inner { display: inline-block; transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .25s var(--ease); }
.btn.light::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, #ffffff9e 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn.light:hover::after { transform: translateX(120%); }

/* ---------- Shared section heading ---------- */
.sell-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px 60px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sell-head h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  font-weight: 530;
  letter-spacing: -.068em;
}
.sell-head h2 span { color: #7d7d84; }
.sell-head p { color: var(--type-secondary); max-width: 44ch; font-size: 1.05rem; }

/* ---------- Toolkit bento ---------- */
.toolkit {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px);
  border-top: 1px solid var(--hairline);
  background: radial-gradient(ellipse 60% 40% at 80% 0%, #10191c 0%, transparent 70%), #09090a;
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 14px;
}
.tile {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 300px;
  padding: 22px;
  border-radius: var(--radius-tile);
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  overflow: hidden;
  isolation: isolate;
}
/* Pointer light: a soft glow inside, a brighter rim on the edge. */
.tile::before, .tile::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.tile::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), #36d6ee14, transparent 60%);
}
.tile::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), #36d6ee99, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile-copy { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.tile-copy .icon { color: var(--ice); width: 20px; height: 20px; }
.tile-copy h3 { font-size: 1.25rem; font-weight: 560; letter-spacing: -.035em; }
.tile-copy p { grid-column: 1 / -1; color: var(--type-secondary); font-size: .95rem; max-width: 40ch; }
.tile-copy h3:first-child { grid-column: 1 / -1; }
.tile-visual { flex: 1; min-height: 150px; display: flex; align-items: center; justify-content: center; }

.tile-filters { grid-column: span 7; grid-row: span 2; }
.tile-cross   { grid-column: span 5; }
.tile-res     { grid-column: span 5; }
.tile-keys    { grid-column: span 7; }
.tile-theme   { grid-column: span 5; }
.tile-keys + .tile-theme { grid-column: span 5; }

/* Filter strip: hover a slice to open it. */
.filter-strip { gap: 6px; align-items: stretch; min-height: 340px; }
.filter-strip figure {
  position: relative;
  flex: 1;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ffffff14;
  transition: flex .7s var(--ease);
}
.filter-strip figure:hover, .filter-strip:not(:hover) figure.f-clarity { flex: 2.6; }
.filter-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.filter-strip figure:first-child img { filter: saturate(.48) brightness(.72) contrast(.85); }
.f-clarity img  { filter: contrast(1.13) saturate(1.03) brightness(.98); }
.f-contrast img { filter: contrast(1.28) brightness(.92); }
.f-colour img   { filter: saturate(1.5) contrast(1.04); }
.filter-strip figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-size: .72rem;
  padding: 5px 8px;
  border-radius: 5px;
  background: #0c0c0dcc;
  color: #ececef;
  white-space: nowrap;
}

/* Crosshair presets, highlighted in turn. */
.cross-set { gap: 12px; }
.cross-set svg {
  width: 64px; height: 64px;
  padding: 10px;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  background: #0b0b0c linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 8px 8px;
  fill: none;
  stroke: #a1a1a8;
  stroke-width: 2.2;
  stroke-linecap: square;
  animation: preset 8s infinite;
}
.cross-set .fill { fill: currentColor; stroke: none; }
.cross-set svg { color: #a1a1a8; }
.cross-set svg:nth-child(2) { animation-delay: 2s; }
.cross-set svg:nth-child(3) { animation-delay: 4s; }
.cross-set svg:nth-child(4) { animation-delay: 6s; }
@keyframes preset {
  0%, 22% { stroke: var(--ice); color: var(--ice); border-color: #36d6ee88; transform: translateY(-4px); box-shadow: 0 10px 28px -12px #36d6ee88; }
  28%, 100% { stroke: #a1a1a8; color: #a1a1a8; border-color: #ffffff1a; transform: none; box-shadow: none; }
}

/* Aspect ratios at a fixed height, one lit at a time. */
.ratio-set { gap: 14px; align-items: flex-end; }
.ratio-set span { display: grid; justify-items: center; gap: 10px; --h: 92px; }
.ratio-set i {
  display: block;
  height: var(--h);
  border: 1px solid #ffffff2a;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 12px);
  animation: ratio-lit 7.5s infinite;
}
.ratio-set b { font-weight: 500; font-size: .8rem; color: #a1a1a8; animation: ratio-label 7.5s infinite; }
.r169 { width: calc(var(--h) * 16 / 9); }
.r43  { width: calc(var(--h) * 4 / 3); }
.r54  { width: calc(var(--h) * 5 / 4); }
.ratio-set span:nth-child(2) i, .ratio-set span:nth-child(2) b { animation-delay: 2.5s; }
.ratio-set span:nth-child(3) i, .ratio-set span:nth-child(3) b { animation-delay: 5s; }
@keyframes ratio-lit {
  0%, 26% { border-color: var(--ice); background-color: #36d6ee12; box-shadow: 0 10px 30px -16px #36d6ee88; }
  33%, 100% { border-color: #ffffff2a; background-color: transparent; box-shadow: none; }
}
@keyframes ratio-label { 0%, 26% { color: var(--ice); } 33%, 100% { color: #a1a1a8; } }

/* Keycaps pressed in sequence. */
.keys { gap: 10px; color: #707078; font-size: 1.2rem; }
.keys kbd {
  font: 500 1rem Inter, system-ui, sans-serif;
  min-width: 64px;
  padding: 16px 18px 20px;
  border-radius: 10px;
  color: #e7eef0;
  text-align: center;
  background: linear-gradient(#1d1d20, #131315);
  border: 1px solid #ffffff1f;
  box-shadow: 0 5px 0 #050506, 0 12px 24px -10px #000;
  animation: press 4s infinite var(--ease);
}
.keys kbd:nth-of-type(2) { animation-delay: .12s; }
.keys kbd.k-num { animation-delay: .24s; }
@keyframes press {
  0%, 52%, 100% { transform: translateY(0); box-shadow: 0 5px 0 #050506, 0 12px 24px -10px #000; }
  58%, 70% { transform: translateY(4px); box-shadow: 0 1px 0 #050506, 0 4px 18px -6px #36d6ee66; color: var(--ice); border-color: #36d6ee66; }
}

/* Theme swatches fan on hover. */
.swatches { gap: 0; }
.swatches i {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid var(--tile);
  margin-left: -18px;
  transition: margin .5s var(--ease), transform .5s var(--ease);
}
.swatches i:first-child { margin-left: 0; }
.tile-theme:hover .swatches i { margin-left: 8px; }
.tile-theme:hover .swatches i:first-child { margin-left: 0; }
.tile-theme:hover .swatches i:nth-child(odd) { transform: translateY(-6px); }

.demo-note { margin-top: 18px; color: #8c8c93; font-size: .82rem; }

/* ---------- How it works ---------- */
.how { padding: clamp(30px, 4vw, 60px) 0 clamp(90px, 11vw, 140px); background: #09090a; }
.how .sell-head { grid-template-columns: 1fr; }
.steps-row {
  --draw: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0; padding: 0;
  list-style: none;
}
.steps-row::before, .steps-row::after {
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: calc((100% - 80px) / 3 - 22px);
  height: 1px;
  background: var(--hairline);
}
.steps-row::after {
  background: linear-gradient(90deg, var(--ice), #36d6ee44);
  transform-origin: left;
  transform: scaleX(var(--draw));
}
.steps-row li { position: relative; padding-right: 20px; }
.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 45px; height: 45px;
  border-radius: 50%;
  background: #09090a;
  border: 1px solid #36d6ee66;
  color: var(--ice);
  font-weight: 600;
  margin-bottom: 26px;
  transition: background .4s, color .4s;
}
.steps-row li.lit .step-n { background: var(--ice); color: var(--ink); }
.steps-row h3 { font-size: 1.6rem; font-weight: 550; letter-spacing: -.045em; margin-bottom: 10px; }
.steps-row p { color: var(--type-secondary); max-width: 32ch; }

/* ---------- Closing + plan ---------- */
.closing-lede { margin-top: 4px; max-width: 40ch; color: #3f5550 !important; font-size: 1.1rem !important; }
.closing > .shell:first-of-type { align-items: center; }
.plan {
  position: relative;
  padding: 30px;
  border-radius: 18px;
  background: #f7faf9;
  border: 1px solid #3f5c5530;
  box-shadow: 0 1px 0 #fff inset, 0 40px 80px -40px #1d3a3366, 0 8px 20px -12px #1d3a3333;
  color: var(--ink);
  outline: none;
}
.plan::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, #36d6ee 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .plan::before { animation: plan-edge 6s linear infinite; }
  @keyframes plan-edge { to { --spin: 360deg; } }
}
.plan-top { display: flex; gap: 14px; align-items: center; }
.plan-top h3 { font-size: 1.5rem; letter-spacing: -.04em; }
.plan-top p { font-size: .85rem !important; color: #50645f !important; margin: 0 !important; }
.price { display: grid; gap: 4px; margin: 24px 0 20px; padding: 20px 0; border-block: 1px solid #1d3a3320; }
.price-amount { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.price-note { font-size: .9rem; color: #4c605b; }
.plan-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 26px; font-size: .95rem; color: #1b2a27; }
.plan-list li::before {
  content: ""; position: absolute; left: 3px; top: .45em;
  width: 9px; height: 5px;
  border-left: 2px solid #36d6ee; border-bottom: 2px solid #36d6ee;
  transform: rotate(-45deg);
}
.plan .plan-status { font-size: .88rem !important; color: #4c605b !important; margin: 0 0 14px !important; }
.plan .btn { width: 100%; padding: 15px 24px; font-size: 1rem; }
.plan .btn[hidden] { display: none; }
.plan .release-links:not(:empty) { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; }
.plan .release-links a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.access-faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 4px 0;
  font-size: 1.05rem;
}
.access-faq summary::-webkit-details-marker { display: none; }
.access-faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s var(--ease);
}
.access-faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.access-faq details > div > p { padding: 10px 0 6px; color: #42524f; }
.access-faq details { padding-block: 18px; }
@supports (interpolate-size: allow-keywords) {
  .access-faq { interpolate-size: allow-keywords; }
  .access-faq details::details-content {
    height: 0; opacity: 0; overflow: clip;
    transition: height .22s var(--ease), opacity .2s, content-visibility .22s allow-discrete;
  }
  .access-faq details[open]::details-content { height: auto; opacity: 1; }
}
.access-faq h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.05em; font-weight: 550; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; padding: 70px 0 0; border-top: 1px solid var(--hairline); }
.foot .shell.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 30px; align-items: start; }
.foot-brand p { margin-top: 12px; color: #94949b; font-size: .9rem !important; display: block !important; }
.foot nav { display: grid; gap: 10px; }
.foot nav h2 { font-size: .85rem; letter-spacing: 0; color: #ececef; font-weight: 600; margin-bottom: 4px; }
.foot nav a, .foot-links a { color: #9a9aa1; font-size: .9rem; transition: color .2s; }
.foot nav a:hover, .foot-links a:hover { color: var(--ice); }
.foot-links { display: contents; }
.foot-base { margin-top: 50px; padding: 20px 0 0; border-top: 1px solid var(--hairline); }
.foot-base p { color: #77777e; font-size: .8rem !important; display: block !important; }
.foot-word {
  font-size: clamp(7rem, 24vw, 22rem);
  font-weight: 600;
  letter-spacing: -.09em;
  line-height: .78;
  text-align: center;
  margin-top: 30px;
  translate: 0 18%;
  color: transparent;
  background: linear-gradient(#36d6ee24, #36d6ee00 75%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* ---------- Scroll reveals (JS adds .is-in; content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .rv { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js-reveal .rv.is-in { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tile-filters, .tile-cross, .tile-res, .tile-keys, .tile-theme, .tile-keys + .tile-theme { grid-column: span 6; grid-row: auto; }
  .tile-filters { grid-column: 1 / -1; }
  .foot .shell.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .sell-head { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-filters, .tile-cross, .tile-res, .tile-keys, .tile-theme, .tile-keys + .tile-theme { grid-column: 1 / -1; }
  .tile { min-height: 0; }
  .filter-strip { min-height: 220px; }
  .filter-strip figcaption { font-size: .65rem; left: 4px; bottom: 4px; padding: 4px 6px; }
  .steps-row { grid-template-columns: 1fr; gap: 34px; padding-left: 64px; }
  .steps-row::before, .steps-row::after { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .steps-row::after { transform-origin: top; transform: scaleY(var(--draw)); }
  .step-n { position: absolute; left: -64px; top: 0; margin: 0; }
  .hero-points { margin-top: 20px; }
  .plan { padding: 24px; }
  .keys kbd { min-width: 52px; padding: 13px 12px 16px; }
  .foot .shell.foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1180px) and (min-width: 801px) { .ratio-set span { --h: 70px; } }
@media (max-width: 420px) {
  .cross-set { gap: 8px; }
  .cross-set svg { width: 54px; height: 54px; }
  .ratio-set { gap: 10px; }
  .ratio-set span { --h: 58px; }
}

/* Pricing page */
.pricing-plan-v2 { display: flex; justify-content: center; }
.pricing-plan-v2 .plan { width: min(460px, 100%); }
.pricing-plan-v2 .plan-top h2 { font-size: 1.5rem; letter-spacing: -.04em; }
.plan .btn.light { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan .btn.light:hover { background: #1f3a34; border-color: #1f3a34; }

.access-faq details a { text-decoration: underline; text-underline-offset: 3px; }

/* Buying flow inside the plan card */
.buy-steps {
  counter-reset: buy;
  list-style: none;
  margin: 0 0 18px; padding: 14px 16px;
  display: grid; gap: 8px;
  border-radius: 12px;
  background: #e9f1ee;
  font-size: .88rem; color: #1b2a27;
}
.buy-steps li { counter-increment: buy; display: flex; gap: 10px; align-items: baseline; }
.buy-steps li::before {
  content: counter(buy);
  flex: none;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #1b2a27; color: #f7faf9;
  font-size: .72rem; font-weight: 600;
}
.plan .btn-download {
  margin-top: 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid #1b2a2740;
}
.plan .btn-download:hover { background: #1b2a270d; border-color: #1b2a2780; }
.plan .dl-note { margin: 10px 0 0 !important; font-size: .8rem !important; line-height: 1.5; color: #50645f !important; }
.plan .dl-note[hidden] { display: none; }
.plan .dl-note b { font-weight: 600; color: #1b2a27; }

/* ================= Why Optiq ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.why .tile-copy { display: block; }
.why .tile-copy h3 { margin-bottom: 8px; }
.why .tile-copy p { max-width: 52ch; }
.why .tile-night   { grid-column: span 7; }
.why .tile-zoom    { grid-column: span 5; }
.why .tile-presets { grid-column: span 7; }
.why .tile-all     { grid-column: span 5; }
.why .tile-keys    { grid-column: span 6; }
.why .tile-safe    { grid-column: span 6; }
.why .tile-safe .safe-list { flex-direction: column; align-items: flex-start; justify-content: center; }

/* Night vision: dark → washed-out brightness → local contrast */
.night-strip { min-height: 360px; }
.night-strip figure.n-optiq { flex: 2.4; }
.night-strip:hover figure.n-optiq:not(:hover) { flex: 1; }
.n-dark img   { filter: brightness(.3) saturate(.8) !important; }
.n-bright img { filter: brightness(1.05) contrast(.5) saturate(.35) !important; }
.n-optiq img  { filter: brightness(.78) contrast(1.5) saturate(1.1) !important; }
.n-optiq::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, transparent 55%, #0006);
  pointer-events: none;
}

/* Zoom: same crop, blurred vs sharp */
.zoom-pair { gap: 12px; }
.zoom-pair figure { position: relative; margin: 0; flex: 1; display: grid; justify-items: center; gap: 10px; }
.zoom-pair span {
  width: min(150px, 100%); aspect-ratio: 1;
  border-radius: 50%;
  background: url(../../public/scenes/courtyard.jpg) 58% 42% / 420% auto no-repeat;
  border: 2px solid #ffffff2e;
  box-shadow: 0 18px 40px -18px #000;
}
.z-blur span { filter: blur(2.2px) saturate(.9); }
.z-sharp span { filter: contrast(1.12) saturate(1.05); border-color: #36d6eeaa; box-shadow: 0 0 0 6px #36d6ee14, 0 18px 40px -18px #000; }
.zoom-pair figcaption { font-size: .78rem; color: #a1a1a8; }
.z-sharp figcaption { color: var(--ice); }
@media (prefers-reduced-motion: no-preference) {
  .z-sharp span { animation: lens-pan 9s ease-in-out infinite alternate; }
  .z-blur span { animation: lens-pan 9s ease-in-out infinite alternate; }
  @keyframes lens-pan { from { background-position: 52% 38%; } to { background-position: 66% 50%; } }
}

/* Everything in one */
.all-in-one { list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-content: center; gap: 8px; }
.all-in-one li {
  font-size: .82rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff08;
  border: 1px solid #ffffff17;
  color: #e0e0e4;
}
.all-in-one li:nth-child(2) { border-color: #36d6ee66; color: var(--ice); }

/* Presets */
.preset-tree { position: relative; justify-content: flex-start; align-items: stretch; gap: 16px; }
.tree { flex: 1; padding: 12px; border-radius: 10px; background: #0b0b0c; border: 1px solid #ffffff14; font-size: .8rem; }
.tree p { padding: 4px 8px; border-radius: 5px; color: #a1a1a8; line-height: 1.4; }
.t-folder { color: #e4e4e8 !important; font-weight: 550; }
.t-folder::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.t-sub { margin-left: 12px; }
.t-item { margin-left: 30px; }
.t-on { background: #36d6ee1a; color: var(--ice) !important; }
.toast {
  position: absolute; left: 50%; top: 8px;
  translate: -50% 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .78rem; font-weight: 550;
  color: var(--ink);
  background: var(--ice);
  box-shadow: 0 10px 30px -10px #36d6ee99;
  opacity: 0;
}
.share-code {
  position: absolute; right: 10px; bottom: 10px;
  font: 500 .75rem ui-monospace, SFMono-Regular, Consolas, monospace;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px dashed #36d6ee77;
  color: var(--ice);
  background: #0a1013;
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast 5s var(--ease) infinite; }
  @keyframes toast { 0%, 8% { opacity: 0; translate: -50% -8px; } 14%, 52% { opacity: 1; translate: -50% 0; } 60%, 100% { opacity: 0; translate: -50% -8px; } }
}

/* Mouse with right button lit */
.keys .or { font-size: .8rem; margin: 0 4px; }
.mouse { width: 40px; height: 58px; fill: none; stroke: #ffffff40; stroke-width: 1.5; }
.mouse .rmb { fill: #36d6ee; stroke: none; opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .mouse .rmb { animation: rmb 4s infinite; animation-delay: 2s; }
  @keyframes rmb { 0%, 52%, 100% { opacity: .2; } 58%, 72% { opacity: 1; } }
}

/* Safe list */
.safe-list { list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-start; gap: 10px 22px; min-height: 0; }
.safe-list li { position: relative; padding-left: 24px; color: #e0e0e4; font-size: .92rem; }
.safe-list li::before {
  content: ""; position: absolute; left: 2px; top: .4em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--ice); border-bottom: 2px solid var(--ice);
  transform: rotate(-45deg);
}

/* By the numbers */
.numbers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(50px, 7vw, 90px) 0 0;
  border-block: 1px solid var(--hairline);
}
.numbers > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 28px 22px; }
.numbers > div + div { border-left: 1px solid var(--hairline); }
.numbers dt { color: var(--type-secondary); font-size: .85rem; }
.numbers dd { margin: 0; font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 560; letter-spacing: -.06em; line-height: 1; color: #f1f1f3; }
.numbers > div:nth-child(2) dd, .numbers > div:nth-child(3) dd { color: var(--ice); }

/* ================= Comparison ================= */
.compare { padding: clamp(50px, 6vw, 80px) 0 clamp(40px, 5vw, 70px); background: #09090a; border-top: 1px solid var(--hairline); }
.compare-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .82rem; color: var(--type-secondary); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.checked { font-size: .8rem; color: #cfcfd4; padding: 6px 12px; border: 1px solid var(--hairline); border-radius: 999px; }
.compare-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--tile-edge); background: var(--tile); }
.compare-scroll:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 18px 16px; text-align: center; border-bottom: 1px solid #ffffff10; vertical-align: middle; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font-size: .85rem; font-weight: 550; color: #cfcfd4; padding-block: 22px; }
.compare-table tbody th { text-align: left; font-weight: 500; font-size: .95rem; color: #ececef; width: 30%; }
.compare-table td small { display: block; margin-top: 6px; font-size: .72rem; color: #8c8c93; }
.compare-table td b { font-weight: 600; color: #ececef; }
.compare-table .us { background: #36d6ee0d; border-inline: 1px solid #36d6ee33; }
.compare-table thead .us { background: var(--ice); color: var(--ink); border-color: var(--ice); font-size: 1rem; }
.compare-table thead .us img { display: block; margin: 0 auto 6px; border-radius: 7px; }
.compare-table .us small { color: #9fd3dd; }
.compare-table .big { font-size: 1.6rem; letter-spacing: -.05em; color: var(--ice) !important; }
.compare-table tbody th { position: sticky; left: 0; background: var(--tile); z-index: 1; }
.m { display: inline-block; width: 14px; height: 14px; position: relative; vertical-align: middle; }
.m.y::before { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 5px; border-left: 2px solid var(--ice); border-bottom: 2px solid var(--ice); transform: rotate(-45deg); }
.m.n::before, .m.n::after { content: ""; position: absolute; left: 6px; top: 0; width: 1.5px; height: 14px; background: #7c7c83; transform: rotate(45deg); }
.m.n::after { transform: rotate(-45deg); }
.m.p::before { content: "~"; position: absolute; inset: -6px 0 0; text-align: center; font-size: 1.15rem; line-height: 1; color: #cfcfd4; }
.compare .demo-note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .why .tile-night, .why .tile-zoom, .why .tile-all, .why .tile-presets, .why .tile-keys { grid-column: span 6; grid-row: auto; }
  .why .tile-night { grid-column: 1 / -1; }
  .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numbers > div:nth-child(4) { border-left: 0; }
  .numbers > div:nth-child(n+4) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 800px) {
  .why .tile-night, .why .tile-zoom, .why .tile-all, .why .tile-presets, .why .tile-keys, .why .tile-safe { grid-column: 1 / -1; }
  .why .tile-safe { flex-direction: column; align-items: stretch; }
  .night-strip { min-height: 240px; }
  .preset-tree { min-height: 240px; }
  .share-code { bottom: 6px; right: 6px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div { padding: 20px 14px; }
  .numbers > div + div { border-left: 0; }
  .numbers > div:nth-child(even) { border-left: 1px solid var(--hairline); }
  .numbers > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .numbers > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .compare-table tbody th { width: auto; min-width: 150px; font-size: .85rem; }
}

.hero h1 span { display: inline-block; }
#hero-title > span { display: block; width: fit-content; }
#hero-title .w { display: inline-block; }
#hero-title .w::before, #hero-title .wl::before { content: none !important; }

/* ================= Before / after showcase ================= */
.showcase { padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); background: #09090a; border-top: 1px solid var(--hairline); }
.ba-tabs, .tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ba-tabs button, .tour-tabs button {
  font: 500 .86rem Inter, system-ui, sans-serif;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #ffffff1f;
  background: #111113;
  color: #b9c7cb;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ba-tabs button:hover, .tour-tabs button:hover { border-color: #36d6ee66; color: #ececef; }
.ba-tabs button[aria-selected="true"], .tour-tabs button[aria-selected="true"] { background: var(--ice); color: var(--ink); border-color: var(--ice); }
.ba-tabs button:focus-visible, .tour-tabs button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.ba {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--tile-edge);
  background: #05070a;
  user-select: none;
  touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.ba.loading img { opacity: .35; }
.ba-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 14px #0009;
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #111113e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 1.5px solid #fff;
  backdrop-filter: blur(6px);
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 3px; }
.ba-tag {
  position: absolute; bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .8rem; font-weight: 550;
  pointer-events: none;
  transition: opacity .2s;
}
.ba-tag-before { left: 14px; background: #0c0c0dd9; color: #ececef; border: 1px solid #ffffff22; }
.ba-tag-after { right: 14px; background: var(--ice); color: var(--ink); }
.ba-note { margin-top: 14px; color: var(--type-secondary); max-width: 70ch; }
@media (prefers-reduced-motion: no-preference) {
  .ba.hint .ba-handle, .ba.hint .ba-before { transition: left 1s var(--ease), clip-path 1s var(--ease); }
}

/* Real night image in the Why tile */
.night-real { min-height: 0; border-radius: 10px; overflow: hidden; border: 1px solid #ffffff14; align-items: stretch; }
.night-real img { display: block; width: 100%; height: auto; }
.night-real { align-items: center; border: 0; }
.night-real img { border-radius: 10px; border: 1px solid #ffffff14; }
.why .tile-night .night-real { flex: 1; }
.z-blur span, .z-sharp span { filter: none !important; animation: none !important; }
.z-blur span { background: url(../../public/showcase/zoom_before.webp) 22% 30% / 260% auto no-repeat; }
.z-sharp span { background: url(../../public/showcase/zoom_after.webp) 70% 28% / 260% auto no-repeat; }

/* ================= App tour ================= */
.tour { padding: clamp(70px, 9vw, 120px) 0 clamp(30px, 4vw, 60px); background: radial-gradient(ellipse 70% 50% at 50% 100%, #0e181b 0%, transparent 70%), #09090a; }
.tour-frame {
  margin: 0;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #9199a04d;
  background: linear-gradient(140deg, #373b40, #141619 35%, #24262a 90%);
  box-shadow: 0 0 0 1px #000, 0 40px 100px -30px #000;
}
.tour-frame img { display: block; width: 100%; height: auto; border-radius: 11px; transition: opacity .3s var(--ease); }
.tour-frame img.swap { opacity: 0; }

@media (max-width: 800px) {
  .ba-tabs, .tour-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .ba-tabs button, .tour-tabs button { flex: none; }
  .ba { aspect-ratio: 4 / 3; border-radius: 12px; }
  .ba-tag { bottom: 10px; font-size: .7rem; padding: 5px 9px; }
  .ba-tag-before { left: 10px; } .ba-tag-after { right: 10px; }
  .night-real img { aspect-ratio: auto; }
}

@media (max-width: 420px) {
  .keys { gap: 6px; }
  .keys kbd { min-width: 0; padding: 11px 10px 14px; font-size: .85rem; }
  .mouse { width: 30px; height: 44px; }
}
