/* Better Explora website — design B: light, editorial (after Atlas for Mac / Eagle / Atlas for Windows). */
:root {
  --bg: #ffffff;
  --panel: #f4f3f0;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.09);
  --text: #111111;
  --muted: #6b6862;   /* 5.6:1 on white (was #8d8b87, 3.4:1) */
  --soft: #8a8780;    /* 3.6:1, for text of 24 px and more */
  --yellow: #ffc61a;
  --orange: #ff7a1a;
  --cream: #fbe9cc;
  --stage: #1b1a1f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; font-weight: 600; }
h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; max-width: 19em; }
h1 br { display: none; }
h1 .accent { color: var(--text); }
h1 .soft { display: inline; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; max-width: 30em; }
h3 { font-size: 18px; }
.soft { color: var(--soft); }
.fine { color: var(--muted); font-size: 14px; }
kbd { font: 11px var(--mono); color: var(--muted); }

.wrap { width: min(1160px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.narrow { width: min(820px, calc(100% - 32px)); }
.block { padding-top: clamp(80px, 11vw, 150px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: #111; color: #fff; font: 600 15px var(--font); text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #000; }
.btn-soft { background: var(--panel); color: var(--text); }
.btn-soft:hover { background: #ebe9e4; }
.btn-small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-coffee { background: #ffdd00; color: #1a1400; }
.btn-coffee:hover { background: #ffd000; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 12px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; font-size: 16px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.links a { text-decoration: none; color: var(--text); opacity: .8; }
.links a:hover { opacity: 1; }
.links a { white-space: nowrap; }
/* Suggest a feature leaves the header first when it gets tight (the footer and Docs keep it). */
@media (max-width: 1180px) { .links a[href="feedback.html"] { display: none; } }
.lang { display: flex; background: var(--panel); border-radius: 9px; padding: 2px; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 12px var(--font); padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 110px); }
.hero-icon { margin-bottom: 28px; filter: drop-shadow(0 10px 20px rgba(255,120,20,.25)); }
.hero .cta-row { margin-top: 36px; }
.hero .fine { margin-top: 14px; }
.stage-panel { background: var(--panel); border-radius: 24px; padding: clamp(20px, 5vw, 64px); margin-top: 56px; }
.window { margin: 0 auto; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.08); }
.chrome { display: flex; gap: 7px; padding: 11px 13px; background: #ecebe8; border-bottom: 1px solid var(--line); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
.shot-missing { background: #fafaf8; }

/* ---------- Stats (Atlas-for-Windows style) ---------- */
.stats { margin-top: 64px; max-width: none; }
.stats div:first-child { border-left: 0; padding-left: 0; }

/* ---------- Demo ---------- */
.block .demo-grid { margin-top: 44px; }
.stage { box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(0,0,0,.08); }
.formats { margin: 44px 0 0; max-width: 1120px; }

/* ---------- Press Space (layout in base.css) ---------- */
.space-sec { padding-top: clamp(64px, 8vw, 110px); }
.space-panel { margin-top: 36px; }

/* ---------- Spotlights ---------- */
.spots { display: grid; gap: clamp(60px, 8vw, 110px); }
.spot h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; max-width: 30em; letter-spacing: -0.02em; }
.spot .stage-panel { margin-top: 28px; }
.spot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.spot-pair .stage-panel { padding: clamp(16px, 3vw, 36px); }
.spot-pair h3 { font-size: clamp(19px, 2vw, 24px); }

/* ---------- Features (Atlas-for-Mac style: bold title, grey sentence) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; margin-top: 52px; }
.feature .ficon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--panel); font-size: 20px; margin-bottom: 16px; }
.feature h3 { display: inline; font-size: 16px; letter-spacing: -0.01em; }
.feature h3::after { content: ". "; }
.feature p { display: inline; color: var(--muted); font-size: 16px; }

/* ---------- Compare ---------- */
.compare thead th.bf { color: var(--text); }
.compare td.bf { background: rgba(255,170,40,.06); }

/* ---------- Support (the QR pop-up from the footer line) ---------- */
.support-modal { background: #fff; }

/* ---------- What's new ---------- */
.releases { list-style: none; padding: 0; margin: 40px 0 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.releases > li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rel-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rel-v { font: 600 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--panel); }
.rel-head h3 { font-size: 17px; }
.rel-head time { margin-left: auto; color: var(--muted); font-size: 13px; }
.releases ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.releases ul li + li { margin-top: 5px; }

/* ---------- Install ---------- */
.download-card { display: flex; align-items: center; gap: 16px; margin: 40px 0 44px; padding: 18px 20px; border-radius: 18px; background: var(--panel); }
.download-card div { display: grid; gap: 2px; }
.download-card .btn { margin-left: auto; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 30px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; background: var(--panel); }
.steps p { color: var(--muted); margin: 8px 0; }
.steps b { color: var(--text); font-weight: 600; }
.code { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 9px 9px 9px 14px; border-radius: 11px; background: #151517; }
.code code { font: 13px var(--mono); color: #fbe9cc; overflow-x: auto; white-space: nowrap; flex: 1; }
.code button { flex: none; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 7px; padding: 6px 12px; font: 500 13px var(--font); cursor: pointer; }
.warn { margin-top: 34px; padding: 14px 18px; border-radius: 12px; background: #fff6e0; font-size: 15px; }

/* ---------- FAQ (Atlas-for-Mac style: big questions with +) ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 16px; font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::before { content: "+"; color: var(--muted); width: 14px; transition: transform .2s; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0 30px; }

/* ---------- Footer ---------- */
.footer { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: clamp(90px, 12vw, 160px); padding: 36px 0 70px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-right: auto; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { text-decoration: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .lang { margin-left: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .spot-pair { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; gap: 30px; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .download-card { flex-wrap: wrap; }
  .download-card .btn { margin-left: 0; width: 100%; justify-content: center; }
  .nav .btn-small { display: none; }
}

/* side-by-side demos: same height, no empty space under the shorter one */
.spot-pair .spot { display: flex; flex-direction: column; }
.spot-pair .stage-panel { flex: 1; display: flex; }
.spot-pair .stage-panel > .vd { flex: 1; display: flex; flex-direction: column; }
.spot-pair .stage-panel > .vd > :last-child { flex: 1; }
.spot-pair .bd-body { grid-template-rows: 1fr auto; }

/* ---------- Hero (after cap.so): a big soft panel, one strong line in the middle, MacBook below ---------- */
.hero-b { padding-top: 16px; }
.hero-sky { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(36px, 5vw, 64px); border-radius: 32px;
  background: var(--panel); }
.hero-sky h1 { margin: 26px auto 0; max-width: 14em; font-size: clamp(38px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.hero-sky h1 .accent { background: linear-gradient(90deg, #ff9b1a, #ff5a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sky .lead { margin: 22px auto 0; max-width: 32em; font-size: clamp(17px, 1.6vw, 21px); color: #6b6862; }
.hero-sky .cta-row { justify-content: center; margin-top: 32px; }
.hero-sky .btn { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.hero-sky .btn-soft { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.05); }
.hero-sky .fine { margin-top: 14px; }
.btn .apple { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 14px; text-decoration: none;
  color: #fff; background: #151515; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.pill-new { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #1a1004; background: linear-gradient(135deg, #ffd93b, #ff7a1a); }
.pill:hover { background: #000; }
.hero-sky .mbp { margin-top: clamp(40px, 6vw, 72px); }


/* ---------- Made for your work (#work): one card per kind of work ---------- */
#work .space-sub { margin-top: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.work-card { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--panel); }
.work-card .ficon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--card); font-size: 20px; margin-bottom: 14px; }
.work-card .feat-soon { display: table; margin: 0 0 10px; padding: 2px 9px; font-size: 11px; }
.work-card h3 { font-size: 17px; margin-bottom: 8px; }
.work-card ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.work-card li + li { margin-top: 6px; }
@media (max-width: 1180px) { .links a[href="#work"] { display: none; } }

/* Footer links wrap on a phone (Report a bug and Discord added 21 Nov) */
.footer nav { flex-wrap: wrap; }

/* New app icon (15 Nov) on the 3D cube demo; base.css still points at the old one */
.sv-cube .front { background: url(assets/icon-2026-128.png) center / 62% no-repeat, linear-gradient(135deg, #ffd27a, #ff8a2a); }

/* ---------- Inside archives (#zip): Space on a ZIP ---------- */
.zd { color: var(--w-text); font-size: 13px; }
.zd .vd-chrome { background: var(--w-bar); }
.zd-size { margin-left: auto; color: var(--w-muted); font-size: 12px; }
.zd-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); aspect-ratio: 16 / 8.2; background: var(--w-bg); }
.zd-list { display: flex; flex-direction: column; gap: 1px; padding: 12px 10px; background: var(--w-side); border-right: 1px solid var(--w-line); overflow: hidden; }
.zd-dir { margin: 10px 8px 4px; font-size: 11px; font-weight: 600; color: var(--w-muted); }
.zd-dir:first-child { margin-top: 0; }
.zd-file { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 18px; border: 0; border-radius: 6px; background: none; font: inherit; color: var(--w-text); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .15s ease, color .15s ease; }
.zd-file:hover { background: color-mix(in srgb, var(--w-text) 6%, transparent); }
.zd-file[aria-pressed="true"] { background: var(--w-sel); color: #fff; }
.zd-ic { flex: none; width: 14px; height: 14px; border-radius: 3px; }
.zd-ic--video { background: #7c5cff; } .zd-ic--image { background: #22b07d; } .zd-ic--audio { background: #ff9f1a; } .zd-ic--pdf { background: #e5484d; }
.zd-view { position: relative; overflow: hidden; background: #111; }
.zd-pane { position: absolute; inset: 0 0 44px; display: grid; place-items: center; opacity: 0; transition: opacity .3s ease; }
.zd-pane.on { opacity: 1; }
.zd-pane video, .zd-pane img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zd-pane[data-kind="audio"], .zd-pane[data-kind="pdf"] { background: #1b1b1f; }
.zd-wave { display: flex; align-items: center; gap: 3px; width: 80%; height: 46%; }
.zd-wave i { flex: 1; border-radius: 2px; background: #ff9f1a; opacity: .9; }
.zd-page { width: 46%; aspect-ratio: 1 / 1.3; padding: 7% 7%; background: #fff; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 9px; }
.zd-page b { font: 700 18px/1.2 var(--font, system-ui); color: #111; }
.zd-page i { display: block; height: 6px; border-radius: 3px; background: #e2e2e6; width: 100%; }
.zd-img { display: block; height: 28%; border-radius: 4px; background: center / cover url(assets/demo/photo/t-mountains.jpg); }
.zd-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #1d1d20; color: #f2f2f4; font-size: 12.5px; white-space: nowrap; }
.zd-meta { color: #a1a1a8; overflow: hidden; text-overflow: ellipsis; }
.zd-read { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(28, 170, 217, .2); color: #8fdcf5; font-size: 11.5px; }
.zip-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.zip-facts li { padding: 7px 13px; border-radius: 999px; background: var(--panel); font-size: 14px; }
#zip .sd2-ainote { margin-top: 14px; }
@media (max-width: 700px) {
  .zd-body { grid-template-columns: 1fr; aspect-ratio: auto; }
  .zd-list { flex-direction: row; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--w-line); }
  .zd-dir { display: none; }
  .zd-file { padding: 0 8px; }
  .zd-view { aspect-ratio: 4 / 3.4; }
  .zd-read { display: none; }
}

/* ---------- Pricing (#pricing) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin-top: 44px; }
.price-card { display: flex; flex-direction: column; padding: 28px 28px 26px; border-radius: 22px; background: var(--panel); }
.price-card h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.price-amount { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.price-amount b { font-size: 46px; line-height: 1; letter-spacing: -0.03em; color: var(--text); margin-right: 4px; }
.price-card .fine { margin: 8px 0 0; }
.price-card ul { flex: 1; margin: 20px 0 24px; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.price-card li + li { margin-top: 7px; }
.price-card .btn { align-self: flex-start; }
.price-card--pro { background: #111113; color: #f2f2f4; }
.price-card--pro .price-amount, .price-card--pro .fine { color: #a1a1a8; }
.price-card--pro .price-amount b { color: #fff; }
.price-card--pro .btn { background: linear-gradient(135deg, #ffd93b, #ff7a1a); color: #1a1004; }
.btn.is-off { opacity: .45; pointer-events: none; }
.price-soon { margin-top: 10px !important; }
.price-more { margin-top: 18px; }
.price-more a { color: inherit; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card .btn-soft { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }

/* Sharp, not blurred: the search demo's folder behind the palette is dimmed instead of blurred */
.fd-back { filter: none; opacity: .28; }

/* Hero: no lone word on the last line; "better explorer." stays together on wide screens */
.hero-sky h1, .hero-sky .lead, h2, .lead { text-wrap: balance; }
@media (min-width: 720px) { .hero-sky h1 .accent { white-space: nowrap; } }

/* ---------- Pricing, round 2: Pro leads, the gap is plain ---------- */
.price-grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.42fr); max-width: 1080px; align-items: stretch; }
.price-card--free { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.price-card--free h3, .price-card--free .price-amount b { color: var(--text); }
.price-card--free ul { font-size: 14.5px; }
.price-card--pro { position: relative; overflow: hidden; padding: 36px 36px 32px; background: #0f0f12; color: #f4f4f6;
  box-shadow: 0 40px 80px -40px rgba(255, 122, 26, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.price-card--pro::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(255, 140, 40, .32), transparent); pointer-events: none; }
.price-card--pro > * { position: relative; }
.price-card--pro h3 { font-size: 22px; background: linear-gradient(90deg, #ffd93b, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card--pro .price-amount b { font-size: 72px; color: #fff; }
.price-card--pro .price-amount { color: #b8b8c0; font-size: 17px; }
.price-note { margin: 8px 0 0; color: #b8b8c0; font-size: 15px; }
.price-plus { margin: 26px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #ffb35c; }
.price-checks { list-style: none; padding: 0 !important; margin: 14px 0 28px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; font-size: 15.5px; }
.price-checks li { position: relative; padding-left: 26px; margin: 0 !important; }
.price-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #ffb35c; font-weight: 700; }
.price-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.btn-pro { padding: 16px 28px; font-size: 17px; background: linear-gradient(135deg, #ffd93b, #ff7a1a) !important; color: #1a1004 !important; }
.price-soon { color: #b8b8c0; font-size: 14px; }
.price-table-h { margin: 64px 0 0; font-size: 22px; }
.price-table { width: 100%; max-width: 1080px; margin-top: 18px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 0; }
.price-table tbody th { font-weight: 500; width: 38%; }
.price-table td { color: var(--muted); width: 26%; }
.price-table .pt-pro { color: var(--text); }
.price-table thead .pt-pro { color: var(--text); }
.pt-yes { color: var(--text); font-weight: 600; font-size: 16px; }
.pt-no { color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: 15px; }
.pt-txt--pro { color: var(--text); font-weight: 500; }
@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card--pro { order: -1; }
  .price-checks { grid-template-columns: 1fr; }
  .price-card--pro .price-amount b { font-size: 60px; }
  .price-table { font-size: 13.5px; }
  .price-table th, .price-table td { padding: 11px 9px; }
  .price-table tbody th { width: 40%; }
}
.price-card--pro .btn.is-off { opacity: .9; }

/* Language menu (9 languages) */
.lang { position: relative; padding: 0; background: var(--panel); border-radius: 9px; }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text); font: 600 12.5px var(--font); padding: 7px 26px 7px 11px; border-radius: 9px; cursor: pointer; }
.lang::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Landing: the detailed Free / Pro table lives on pricing.html; one line and a link here */
.price-more { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-top: 22px; }
.price-detail { font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--text) 30%, transparent); }
.price-detail:hover { border-bottom-color: var(--text); }

/* ---- UI review, round 1 (21 Nov): contrast, one closed Buy Pro, phone menu, Free card, tablet work grid, Japanese breaks ---- */
/* Buy Pro before the store opens: one look everywhere, clearly not active, still focusable (aria-disabled) */
.btn-pro.is-off, .price-card--pro .btn-pro.is-off { opacity: 1; pointer-events: none; cursor: default; background: transparent !important;
  color: #a24f00 !important; box-shadow: inset 0 0 0 1.5px rgba(196, 98, 0, .55); }
.price-card--pro .btn-pro.is-off { color: #ffb35c !important; box-shadow: inset 0 0 0 1.5px rgba(255, 179, 92, .55); }
.price-card--pro .price-soon { color: #d9d6cf; }
/* Free card: the same ticks as Pro, in the text colour, and a solid Download button */
.price-card--free { color: var(--text); }
.price-card--free ul { list-style: none; padding-left: 0; }
.price-card--free li { position: relative; padding-left: 24px; }
.price-card--free li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--muted); font-weight: 700; }
.price-card--free .btn-soft { background: var(--text); color: var(--bg); box-shadow: none; }
.pt-no { color: var(--soft); }
.compare .no { opacity: 1; color: var(--soft); }
/* Phone and tablet menu: the links in a sheet under the bar */
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav.open .links { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0;
    padding: 4px 16px 14px; background: var(--bg); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3); border-bottom: 1px solid var(--line); }
  .nav.open .links a { display: block !important; padding: 13px 0; font-size: 17px; opacity: 1; border-bottom: 1px solid var(--line); }
  .nav.open .links a:last-child { border-bottom: 0; }
}
/* Work cards: 3 columns on a tablet (5 was too many, 2 made each card huge) */
@media (max-width: 1060px) and (min-width: 701px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Japanese (and Chinese / Korean) headings break between phrases, not inside words */
:lang(ja) :is(h1, h2, h3, .lead), :lang(zh) :is(h1, h2, h3, .lead), :lang(ko) :is(h1, h2, h3, .lead) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2, h3, .lead) { word-break: keep-all; }

/* ---- The app icon stands out on white (owner, 21 Nov): its right half is cream, so it gets a Dock-like edge and shadow ---- */
.brand img, .foot-brand img, .download-card > img {
  filter: drop-shadow(0 0 .5px rgba(90, 50, 0, .5)) drop-shadow(0 1px 1.5px rgba(40, 25, 0, .16)) drop-shadow(0 2px 4px rgba(255, 110, 20, .14)); }
.brand img { width: 30px; height: 30px; }
.brand { gap: 10px; }

/* ---- Dark mode: picked in the footer (Light by default, Dark, or Auto = the system's); the demo windows keep their own palette.
   :root[data-theme] is set before the page draws (inline script in <head>, main.js keeps it) ---- */
:root { color-scheme: light; }
/* dark (picked) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e10; --panel: #19191c; --card: #141417; --line: rgba(255, 255, 255, .10);
  --text: #f2f1ee; --muted: #a8a59f; --soft: #85827c; --cream: #2a2117;
}
:where(:root[data-theme="dark"]) .nav { background: rgba(14, 14, 16, .78); }
:where(:root[data-theme="dark"]) .btn { background: #f2f1ee; color: #111; }
:where(:root[data-theme="dark"]) .btn:hover { background: #fff; }
:where(:root[data-theme="dark"]) .btn-soft, :where(:root[data-theme="dark"]) .hero-sky .btn-soft { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
:where(:root[data-theme="dark"]) .btn-soft:hover { background: #222226; }
:where(:root[data-theme="dark"]) .lang button[aria-pressed="true"] { background: var(--panel); }
:where(:root[data-theme="dark"]) .hero-sky .lead { color: var(--muted); }
:where(:root[data-theme="dark"]) .pill { background: #1d1d21; box-shadow: 0 0 0 1px var(--line); }
:where(:root[data-theme="dark"]) .pill:hover { background: #26262b; }
:where(:root[data-theme="dark"]) .support-modal, :where(:root[data-theme="dark"]) .rel-modal { background: var(--card); color: var(--text); }
:where(:root[data-theme="dark"]) .warn { background: #2a2214; }
:where(:root[data-theme="dark"]) .stage { box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(0, 0, 0, .5); }
:where(:root[data-theme="dark"]) .stage-panel .vd, :where(:root[data-theme="dark"]) .stage-panel .fd { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(0, 0, 0, .8); }
:where(:root[data-theme="dark"]) .price-card--pro { background: #17171b; box-shadow: 0 40px 80px -40px rgba(255, 122, 26, .45), 0 0 0 1px rgba(255, 255, 255, .09) inset; }
:where(:root[data-theme="dark"]) .price-card--free .btn-soft { background: var(--text); color: var(--bg); }
:where(:root[data-theme="dark"]) .btn-pro.is-off { color: #ffb35c !important; box-shadow: inset 0 0 0 1.5px rgba(255, 179, 92, .55); }
:where(:root[data-theme="dark"]) .nav.open .links { box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8); }
:where(:root[data-theme="dark"]) .brand img, :where(:root[data-theme="dark"]) .foot-brand img, :where(:root[data-theme="dark"]) .download-card > img { filter: drop-shadow(0 2px 4px rgba(255, 122, 26, .14)); }
:where(:root[data-theme="dark"]) .sp-tabs { --tab-bg: var(--panel); --tab-on-bg: #f2f1ee; --tab-on-fg: #111; }
:where(:root[data-theme="dark"]) .sp-tabs button { box-shadow: 0 0 0 1px var(--line); }
:where(:root[data-theme="dark"]) .compare td.bf { background: rgba(255, 170, 40, .09); }
:where(:root[data-theme="dark"]) .pf-table thead th { background: var(--bg); }
/* dark (Auto: follows the system) */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0e0e10; --panel: #19191c; --card: #141417; --line: rgba(255, 255, 255, .10);
    --text: #f2f1ee; --muted: #a8a59f; --soft: #85827c; --cream: #2a2117;
  }
  :where(:root[data-theme="auto"]) .nav { background: rgba(14, 14, 16, .78); }
  :where(:root[data-theme="auto"]) .btn { background: #f2f1ee; color: #111; }
  :where(:root[data-theme="auto"]) .btn:hover { background: #fff; }
  :where(:root[data-theme="auto"]) .btn-soft, :where(:root[data-theme="auto"]) .hero-sky .btn-soft { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
  :where(:root[data-theme="auto"]) .btn-soft:hover { background: #222226; }
  :where(:root[data-theme="auto"]) .lang button[aria-pressed="true"] { background: var(--panel); }
  :where(:root[data-theme="auto"]) .hero-sky .lead { color: var(--muted); }
  :where(:root[data-theme="auto"]) .pill { background: #1d1d21; box-shadow: 0 0 0 1px var(--line); }
  :where(:root[data-theme="auto"]) .pill:hover { background: #26262b; }
  :where(:root[data-theme="auto"]) .support-modal, :where(:root[data-theme="auto"]) .rel-modal { background: var(--card); color: var(--text); }
  :where(:root[data-theme="auto"]) .warn { background: #2a2214; }
  :where(:root[data-theme="auto"]) .stage { box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(0, 0, 0, .5); }
  :where(:root[data-theme="auto"]) .stage-panel .vd, :where(:root[data-theme="auto"]) .stage-panel .fd { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(0, 0, 0, .8); }
  :where(:root[data-theme="auto"]) .price-card--pro { background: #17171b; box-shadow: 0 40px 80px -40px rgba(255, 122, 26, .45), 0 0 0 1px rgba(255, 255, 255, .09) inset; }
  :where(:root[data-theme="auto"]) .price-card--free .btn-soft { background: var(--text); color: var(--bg); }
  :where(:root[data-theme="auto"]) .btn-pro.is-off { color: #ffb35c !important; box-shadow: inset 0 0 0 1.5px rgba(255, 179, 92, .55); }
  :where(:root[data-theme="auto"]) .nav.open .links { box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8); }
  :where(:root[data-theme="auto"]) .brand img, :where(:root[data-theme="auto"]) .foot-brand img, :where(:root[data-theme="auto"]) .download-card > img { filter: drop-shadow(0 2px 4px rgba(255, 122, 26, .14)); }
  :where(:root[data-theme="auto"]) .sp-tabs { --tab-bg: var(--panel); --tab-on-bg: #f2f1ee; --tab-on-fg: #111; }
  :where(:root[data-theme="auto"]) .sp-tabs button { box-shadow: 0 0 0 1px var(--line); }
  :where(:root[data-theme="auto"]) .compare td.bf { background: rgba(255, 170, 40, .09); }
  :where(:root[data-theme="auto"]) .pf-table thead th { background: var(--bg); }
}

/* ---- One grid (UI review round 2): outside the hero, everything starts at the same left edge as the headings and uses the
   full 1160 px; the text-only sections (vs Finder, Install, FAQ) keep their narrow measure but line up on the left too ---- */
main > section:not(.hero-b) :is(.vd, .fd, .sp-tabs, .sp-cap, .stats, .fd-tries, .find-points, .find-pro, .sd2-ainote) { max-width: none; margin-left: 0; margin-right: 0; }
.fd-tries { justify-content: flex-start; }
.stats { max-width: none; }
.price-grid { max-width: none; }
@media (min-width: 861px) { .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); } }   /* phones keep one column (a later two-column rule had broken it) */
.narrow { margin-left: calc((100% - min(1160px, 100% - 32px)) / 2); margin-right: auto; }
.narrow h2 { text-align: left; }

/* One type scale: h2 > spotlight h3 > card titles; FAQ questions no longer compete with headings */
main h2 { font-size: clamp(28px, 3vw, 40px); }
.spot h3 { font-size: clamp(20px, 2vw, 24px); }
.faq summary { font-size: clamp(16px, 1.4vw, 18px); }

/* ---- UI review round 3: who it is for, a trust line, a closing call to action ---- */
.hero-for { margin: 18px 0 14px; color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.hero-trust { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.hero-sky .hero-trust { text-align: center; }
.end-cta { text-align: center; padding-bottom: clamp(40px, 6vw, 80px); }
.end-cta h2 { margin: 0 auto 26px; max-width: none; }
.end-cta .cta-row { justify-content: center; }

/* ---- ZIP demo, clearer "inside without extracting" (owner, 21 Nov): the archive drawn as a strip of bytes where only
   the picked file lights up and is scanned, how much of it is read, and a big "0 bytes extracted" ---- */
.zd-strip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--w-bar); border-bottom: 1px solid var(--w-line); }
.zd-box { position: relative; flex: none; width: 34px; height: 40px; border-radius: 6px; background: linear-gradient(160deg, #f6c453, #e09a1f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.zd-box i { position: absolute; left: 50%; top: 0; bottom: 14px; width: 6px; margin-left: -3px; background: repeating-linear-gradient(#5a3b06 0 3px, transparent 3px 6px); opacity: .55; }
.zd-box::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 10px; height: 7px; margin-left: -5px; border-radius: 2px; background: #5a3b06; opacity: .7; }
.zd-mapwrap { flex: 1; min-width: 0; }
.zd-maphead { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--w-muted); white-space: nowrap; }
.zd-maphead b { color: var(--w-text); font-weight: 600; }
.zd-readof { margin-left: auto; color: #0a7fa8; font-weight: 600; }
.zd-map { display: flex; gap: 2px; height: 14px; margin-top: 6px; }
.zd-seg { position: relative; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, var(--w-text) 9%, transparent); }
.zd-seg--f { cursor: pointer; background: color-mix(in srgb, var(--w-text) 20%, transparent); }
.zd-seg--f.on.zd-seg--video { background: #7c5cff; }
.zd-seg--f.on.zd-seg--image { background: #22b07d; }
.zd-seg--f.on.zd-seg--audio { background: #ff9f1a; }
.zd-seg--f.on.zd-seg--pdf { background: #e5484d; }
.zd-seg--f.on { box-shadow: 0 0 0 2px var(--w-bar), 0 0 0 3.5px #1caad9; overflow: visible; }
.zd-seg.scan::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); animation: zd-scan .7s ease-out 1 forwards; }
@keyframes zd-scan { from { transform: translateX(-100%); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.zd-zero { flex: none; display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; background: rgba(34, 176, 125, .14); color: #138a5f; font-size: 12.5px; font-weight: 600; }
.zd-zero b { font-size: 22px; line-height: 1; }
@media (max-width: 700px) {
  .zd-strip { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .zd-box { display: none; }
  .zd-mapwrap { flex-basis: 100%; }
  .zd-maphead span:not(.zd-readof) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .zd-seg.scan::after { animation: none; display: none; } }

/* ---- ZIP demo sidebar (owner, 21 Nov): the archive unfolds like a folder in List view, as the app does it:
   Delivery_Final.zip > Renders, Stills, Audio, Docs > files, with a Size column ---- */
.zd-body { grid-template-columns: 300px minmax(0, 1fr); }
.zd-list { gap: 0; padding: 6px 6px 10px; }
.zd-th { display: flex; justify-content: space-between; padding: 4px 10px 6px 28px; font-size: 11px; font-weight: 600; color: var(--w-muted); border-bottom: 1px solid var(--w-line); margin-bottom: 4px; }
.zd-row, .zd-list .zd-file { display: flex; align-items: center; gap: 7px; width: 100%; height: 27px; padding: 0 10px 0 var(--in, 6px); border: 0; border-radius: 6px;
  background: none; font: 12.5px var(--font); color: var(--w-text); text-align: left; white-space: nowrap; }
.zd-row { cursor: pointer; }
.zd-row:hover { background: color-mix(in srgb, var(--w-text) 5%, transparent); }
.zd-root { --in: 6px; }
.zd-root b { font-weight: 600; }
.zd-folder { --in: 22px; }
.zd-list .zd-file { --in: 52px; }
.zd-fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.zd-sz { margin-left: auto; padding-left: 10px; color: var(--w-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.zd-file[aria-pressed="true"] .zd-sz { color: rgba(255, 255, 255, .8); }
/* the disclosure triangle, turning when the row opens */
.zd-tw { flex: none; width: 10px; height: 10px; position: relative; transition: transform .25s ease; }
.zd-tw::before { content: ""; position: absolute; left: 2px; top: 1px; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent var(--w-muted); }
.zd-tw.open { transform: rotate(90deg); }
/* the children slide open (grid rows 0fr -> 1fr) */
.zd-kids { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.zd-kids > div { overflow: hidden; min-height: 0; }
.zd-kids.open { grid-template-rows: 1fr; }
/* icons: the archive (yellow with a zipper), folders (blue), files keep their kind colour */
.zd-ic { width: 14px; height: 14px; }
.zd-ic--zip { position: relative; width: 13px; height: 15px; border-radius: 3px; background: linear-gradient(160deg, #f6c453, #e09a1f); }
.zd-ic--zip::after { content: ""; position: absolute; left: 5px; top: 0; width: 3px; height: 9px; background: repeating-linear-gradient(#5a3b06 0 2px, transparent 2px 3px); opacity: .6; }
.zd-ic--folder { position: relative; width: 16px; height: 12px; border-radius: 2px 3px 3px 3px; background: #5aa7f5; }
.zd-ic--folder::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: #5aa7f5; }
.zd-ic--video, .zd-ic--image, .zd-ic--audio, .zd-ic--pdf { width: 12px; height: 14px; border-radius: 2px; }
@media (max-width: 700px) {
  .zd-body { grid-template-columns: 1fr; }
  .zd-list { flex-direction: column; flex-wrap: nowrap; gap: 0; border-bottom: 1px solid var(--w-line); }
  .zd-list .zd-file { padding: 0 10px 0 var(--in, 6px); }
}
@media (prefers-reduced-motion: reduce) { .zd-kids, .zd-tw { transition: none; } }
.zd-list .zd-file:hover { background: color-mix(in srgb, var(--w-text) 5%, transparent); }
.zd-list .zd-file[aria-pressed="true"] { background: var(--w-sel); color: #fff; }

/* ---- End of the page on one grid (UI review of the vs-Finder table and the FAQ, 21 Nov) ----
   12 columns on the 1160 wrap. Edge A = the page's left edge (headings, the feature names, the Free card).
   Edge B = column 5: the Better Explora column, the Pro card and the FAQ questions all start there. */
:root { --gut: 20px; --head-gap: 44px; }
@media (min-width: 901px) {
  .price-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
  .price-card--free { grid-column: 1 / span 4; }
  .price-card--pro { grid-column: 5 / -1; }
  table.compare { table-layout: fixed; }
  .compare thead th:first-child { width: calc((100% + var(--gut)) / 3); }
  .compare thead th.bf { width: calc((100% + var(--gut)) / 3); }
  .faq-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: start; }
  .faq-head { grid-column: 1 / span 4; position: sticky; top: 96px; padding-right: 24px; }
  .faq-sec .faq { grid-column: 5 / -1; margin-top: 0; }
}
.faq-head .fine { margin: 14px 0 0; max-width: 26em; }
.faq-head .fine a { color: var(--text); }

/* vs Finder: the feature names start on the page edge; the Better Explora column is one raised card, header included */
.compare th:first-child, .compare td:first-child { padding-left: 0; }
.compare thead th.bf, .compare td.bf { background: color-mix(in srgb, var(--orange) 8%, transparent);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--orange) 28%, transparent), inset -1px 0 0 color-mix(in srgb, var(--orange) 28%, transparent); }
.compare thead th.bf { border-radius: 12px 12px 0 0; box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--orange) 28%, transparent), inset -1px 0 0 color-mix(in srgb, var(--orange) 28%, transparent); padding-left: 14px; }
.compare tbody tr:last-child td.bf { border-radius: 0 0 12px 12px; box-shadow: inset 1px -1px 0 color-mix(in srgb, var(--orange) 28%, transparent), inset -1px -1px 0 color-mix(in srgb, var(--orange) 28%, transparent); }
.compare td.bf { padding-left: 14px; }
.compare thead th.bf img { width: 20px; height: 20px; }
.compare .pro-badge { white-space: nowrap; }
/* dark (picked) */
:where(:root[data-theme="dark"]) .compare thead th.bf, :where(:root[data-theme="dark"]) .compare td.bf { background: rgba(255, 255, 255, .04); }
:where(:root[data-theme="dark"]) .price-card--pro { box-shadow: 0 40px 80px -48px rgba(255, 122, 26, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
/* dark (Auto: follows the system) */
@media (prefers-color-scheme: dark) {
  :where(:root[data-theme="auto"]) .compare thead th.bf, :where(:root[data-theme="auto"]) .compare td.bf { background: rgba(255, 255, 255, .04); }
  :where(:root[data-theme="auto"]) .price-card--pro { box-shadow: 0 40px 80px -48px rgba(255, 122, 26, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
}
/* Phones: each row's name on its own line, the two answers side by side under it; the column names stay on screen */
@media (max-width: 600px) {
  .compare, .compare thead, .compare tbody { display: block; }
  .compare thead { position: sticky; top: 52px; z-index: 2; background: var(--bg); }
  .compare thead tr, .compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .compare thead th:first-child { display: none; }
  .compare tbody tr { border-bottom: 1px solid var(--line); }
  .compare tbody th { grid-column: 1 / -1; padding: 14px 0 4px; border: 0; }
  .compare tbody td { width: auto; padding: 6px 10px 12px; border: 0; }
  .compare thead th { padding: 10px; border: 0; }
  .compare thead th.bf img { display: inline-block; width: 18px; height: 18px; }
  .compare tbody tr:last-child td.bf { border-radius: 0; }
  .compare thead th.bf { border-radius: 10px 10px 0 0; }
}

/* FAQ: a bigger click area (the whole row), the "+" never shrinks, readable answer lines, visible links and focus */
.faq details { padding: 0; }
.faq summary { padding: 20px 0; }
.faq summary::before { flex: none; width: 14px; text-align: center; }
.faq summary:hover::before { color: var(--text); }
.faq summary:focus-visible { outline: 2px solid #0a84ff; outline-offset: 4px; border-radius: 6px; }
.faq p { margin: -6px 0 22px 30px; max-width: 64ch; }
.faq p a { color: var(--text); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.faq p a:hover { text-decoration-color: currentColor; }

/* Closing call to action: a panel of its own, hero-size buttons, and the footer closer to it */
.price-more { margin-bottom: 0; }
.end-cta { margin-top: clamp(96px, 11vw, 150px); padding: clamp(56px, 7vw, 96px) 24px; background: var(--panel); border-radius: 28px; }
.end-cta .btn { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.end-cta .hero-trust { margin-top: 18px; }
main:has(.end-cta) + .footer { margin-top: clamp(48px, 6vw, 80px); }

/* ---- Closing title (owner, 21 Nov): "Space" is a real key, and the Better Explora icon keeps pressing it ---- */
.spk { position: relative; display: inline-block; white-space: nowrap; margin: 0 .06em; }
.spk-key { --spk-sh: 0 .16em 0 rgba(0, 0, 0, .14), 0 .5em .8em -.4em rgba(0, 0, 0, .25);
  --spk-sh-down: 0 .02em 0 rgba(0, 0, 0, .14), 0 .2em .4em -.3em rgba(0, 0, 0, .2); --spk-bg-down: linear-gradient(#fbf6ef, #efe9e1); }
.spk-key { display: inline-block; min-width: 4.4em; padding: .3em 1em .36em; border-radius: .4em;
  font: 600 .74em/1 var(--font); letter-spacing: 0; text-align: center; color: var(--text);
  background: linear-gradient(#ffffff, #f1efeb); border: 1px solid rgba(0, 0, 0, .13);
  box-shadow: 0 .16em 0 rgba(0, 0, 0, .14), 0 .5em .8em -.4em rgba(0, 0, 0, .25);
  transform: translateY(-.12em); animation: spk-key 1.8s cubic-bezier(.3, .7, .4, 1) infinite; }
.spk-icon { position: absolute; left: 50%; bottom: calc(100% - .02em); width: 1em; height: 1em; margin-left: -.5em;
  transform-origin: 50% 100%; filter: drop-shadow(0 .06em .08em rgba(40, 25, 0, .28));
  animation: spk-tap 1.8s cubic-bezier(.3, .7, .4, 1) infinite; }
@keyframes spk-key {
  0%, 36%, 70%, 100% { transform: translateY(-.12em); box-shadow: var(--spk-sh); }
  44%, 54% { transform: translateY(.02em); box-shadow: var(--spk-sh-down); background: var(--spk-bg-down); }
}
@keyframes spk-tap {
  0%, 20%, 100% { transform: translateY(-.32em) scale(1); }
  36% { transform: translateY(-.1em) scale(1); }
  44%, 54% { transform: translateY(.03em) scale(1.06, .9); }
  70% { transform: translateY(-.34em) scale(.98, 1.03); }
}
/* dark (picked) */
:where(:root[data-theme="dark"]) .spk-key { color: #f2f2f2; background: linear-gradient(#3a3a3d, #2c2c2f); border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 .16em 0 rgba(0, 0, 0, .55), 0 .5em .8em -.4em rgba(0, 0, 0, .6); }
:where(:root[data-theme="dark"]) .spk-key { --spk-sh: 0 .16em 0 rgba(0, 0, 0, .55), 0 .5em .8em -.4em rgba(0, 0, 0, .6); --spk-sh-down: 0 .02em 0 rgba(0, 0, 0, .55); --spk-bg-down: linear-gradient(#333336, #29292c); }
/* dark (Auto: follows the system) */
@media (prefers-color-scheme: dark) {
  :where(:root[data-theme="auto"]) .spk-key { color: #f2f2f2; background: linear-gradient(#3a3a3d, #2c2c2f); border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 .16em 0 rgba(0, 0, 0, .55), 0 .5em .8em -.4em rgba(0, 0, 0, .6); }
  :where(:root[data-theme="auto"]) .spk-key { --spk-sh: 0 .16em 0 rgba(0, 0, 0, .55), 0 .5em .8em -.4em rgba(0, 0, 0, .6); --spk-sh-down: 0 .02em 0 rgba(0, 0, 0, .55); --spk-bg-down: linear-gradient(#333336, #29292c); }
}
.end-cta h2[data-space-key] { padding-top: .35em; }
@media (prefers-reduced-motion: reduce) {
  .spk-key, .spk-icon { animation: none; }
  .spk-icon { transform: translateY(-.1em); }
}
/* the soft button sat on the same grey as the closing panel (main page) and disappeared */
.end-cta .btn-soft { background: color-mix(in srgb, var(--text) 7%, transparent); box-shadow: none; }
.end-cta .btn-soft:hover { background: color-mix(in srgb, var(--text) 11%, transparent); }
.end-cta.narrow h2 { text-align: center; }   /* install page: the closing title sat left while its buttons were centred */

/* ---- Closing scene (owner, 21 Nov): only Space. No buttons; each press of the key throws a viewer into a fan ---- */
.end-show { position: relative; overflow: hidden; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px);
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--orange, #ff7a1a) 10%, var(--panel)) 0%, var(--panel) 60%); }
.es-stage { position: relative; height: clamp(230px, 20vw, 250px); margin: 0 auto 18px; max-width: 1040px; }
.es-card { position: absolute; left: 50%; bottom: 74px; width: clamp(150px, 17vw, 220px); border-radius: 12px; overflow: hidden;
  background: #1d1d1f; color: #f2f2f2; transform-origin: 50% 100%; opacity: 0;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .08); }
.es-bar { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; background: #2c2c2e; font: 500 10.5px var(--font); color: #c9c9cc; }
.es-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; flex: none; }
.es-bar i:nth-child(2) { background: #febc2e; } .es-bar i:nth-child(3) { background: #28c840; }
.es-bar span { flex: 1; text-align: center; margin-right: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.es-body video, .es-body img { display: block; width: 100%; height: 100%; object-fit: cover; }
.es-tc { position: absolute; left: 8px; bottom: 6px; font: 600 9.5px var(--mono, monospace); padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .55); }
.es-histo { position: absolute; right: 8px; bottom: 8px; width: 34%; height: 22%; border-radius: 4px; background:
  linear-gradient(to top, rgba(255, 255, 255, .75), rgba(255, 255, 255, .75)) 0 100% / 100% 1px no-repeat,
  conic-gradient(from 200deg at 40% 120%, rgba(120, 190, 255, .7), rgba(255, 170, 90, .7), rgba(255, 255, 255, .5), transparent 120deg), rgba(0, 0, 0, .5); }
.es-card--psd .es-body img { width: 68%; }
.es-layers { position: absolute; right: 0; top: 0; bottom: 0; width: 32%; padding: 8px 6px; display: grid; align-content: start; gap: 5px; background: #262628; }
.es-layers b { height: 12px; border-radius: 3px; background: linear-gradient(90deg, #555 0 14px, #3a3a3c 14px); }
.es-layers b:first-child { background: linear-gradient(90deg, #0a84ff 0 14px, #34538a 14px); }
.es-wave { position: absolute; inset: 14% 8%; display: flex; align-items: center; gap: 2px; }
.es-wave i { flex: 1; height: var(--h); border-radius: 2px; background: linear-gradient(#ffb15c, #ff7a1a); animation: es-wave 1.1s ease-in-out var(--d) infinite alternate; }
@keyframes es-wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.es-card--3d .es-body { background: radial-gradient(circle at 50% 60%, #3a3a40, #18181b); perspective: 400px; }
.es-cube { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; transform-style: preserve-3d; animation: es-spin 5s linear infinite; }
.es-cube i { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 132, 255, .28); }
.es-cube i:nth-child(1) { transform: translateZ(22px); } .es-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(22px); }
.es-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(22px); } .es-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(22px); }
.es-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(22px); } .es-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(22px); }
@keyframes es-spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.es-code { position: absolute; inset: 12px 12px; display: grid; align-content: start; gap: 7px; background: none; }
.es-code b { display: block; height: 6px; width: var(--w); margin-left: calc(var(--i, 0) * 14px); border-radius: 3px; background: var(--c, #61afef); opacity: .9; }
.es-card--pdf .es-body { background: #3a3a3c; }
.es-page { position: absolute; left: 50%; top: 10%; bottom: -10%; width: 52%; transform: translateX(-50%); padding: 10% 9%; background: #fff; border-radius: 2px; display: grid; align-content: start; gap: 6%; }
.es-page b { height: 9px; width: 70%; background: #ff7a1a; border-radius: 2px; margin-bottom: 4px; }
.es-page i { display: block; height: 4px; width: 100%; background: #d4d4d8; border-radius: 2px; }
.es-hint { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.end-show h2 { position: relative; z-index: 20; }
/* in this scene the key is pressed by the script (one press per visit of .hit), and it is a button */
.end-show .spk { cursor: pointer; border-radius: .4em; }
.end-show .spk:focus-visible { outline: 3px solid #0a84ff; outline-offset: 4px; }
.end-show .spk-key, .end-show .spk-icon { animation: none; }
.end-show .spk.hit .spk-key { animation: spk-key .8s cubic-bezier(.3, .7, .4, 1); }
.end-show .spk.hit .spk-icon { animation: spk-tap .8s cubic-bezier(.3, .7, .4, 1); }
.end-show .spk-icon { transform: translateY(-.32em); }
.end-show .spk:hover .spk-key { border-color: color-mix(in srgb, var(--orange, #ff7a1a) 45%, transparent); }
@media (max-width: 600px) {
  .es-stage { height: 200px; }
  .es-card { width: 128px; border-radius: 9px; bottom: 56px; }
  .es-bar { height: 17px; font-size: 8.5px; }
  .es-bar span { margin-right: 14px; }
  .es-hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .es-card { opacity: 1; } .es-wave i, .es-cube { animation: none; } }

/* Closing scene, round 2 (owner: too empty, faster): bigger viewers that fill the panel, the fan is always full,
   every press opens the next card (it lifts and grows); the press itself is quicker */
.end-cta.end-show { padding: clamp(28px, 3vw, 44px) 24px clamp(36px, 4vw, 52px); }
.es-stage { height: clamp(280px, 26vw, 350px); max-width: none; margin-bottom: 22px; }
.es-card { width: clamp(180px, 21vw, 280px); bottom: clamp(60px, 6vw, 84px);
  transition: transform .32s cubic-bezier(.2, 1.3, .4, 1), box-shadow .3s ease; }
.es-card.on { box-shadow: 0 40px 60px -24px rgba(0, 0, 0, .55), 0 0 0 2px #ff7a1a; }
.es-bar { height: 24px; font-size: 11.5px; }
.es-cube { width: 56px; height: 56px; margin: -28px; }
.es-cube i:nth-child(1) { transform: translateZ(28px); } .es-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(28px); }
.es-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(28px); } .es-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(28px); }
.es-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(28px); } .es-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(28px); }
.end-show .spk.hit .spk-key { animation-duration: .45s; }
.end-show .spk.hit .spk-icon { animation-duration: .45s; }
@media (max-width: 600px) {
  .es-stage { height: 230px; margin-bottom: 14px; }
  .es-card { width: 150px; bottom: 58px; }
  .es-bar { height: 18px; font-size: 9px; }
}
/* the line under the closing title is a call, not instructions: bigger, darker */
.end-show .es-hint { margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; color: var(--text); opacity: .72; }

/* ---- Last UI review (21 Nov), chosen by the owner over the mockup in variants/review ---- */

/* Closing scene: the download buttons and the trust line come back under the Space scene */
.end-show .cta-row { margin-top: 26px; }
.end-show .hero-trust { margin-top: 16px; }

/* Pro: a solid orange button, as strong as Free's (even while the store is closed) */
.price-card--pro .btn-pro, .price-card--pro .btn-pro.is-off { background: linear-gradient(135deg, #ffb347, #ff7a1a) !important; color: #1a1004 !important; box-shadow: none; }
/* Free and Pro buttons balance: same size, both on the bottom line of their card (equal bottom padding) */
.price-card .btn, .price-card .btn-pro { padding: 14px 26px; font-size: 16px; border-radius: 14px; min-height: 52px; line-height: 1.2; }
.price-card--free, .price-card--pro { padding-bottom: 32px; }
.price-card--free .btn { width: auto; }
.price-card--pro .price-buy { flex-wrap: nowrap; gap: 16px; }
/* the store note and the 14-day trial: two small lines beside the Pro button */
.buy-note { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.buy-note .price-soon { margin: 0 !important; font-size: 13px; }
.buy-trial { font-size: 13px; font-weight: 500; color: #ffb35c; }
.buy-trial::before { content: "✓ "; }
@media (max-width: 520px) { .price-card--pro .price-buy { flex-wrap: wrap; } }

/* "New · v0.399" above the hero: quieter */
.hero-b .pill-new { background: none; color: var(--muted); padding: 0; font-weight: 600; }

/* Feature spots: less white between them */
.spots { gap: clamp(48px, 5.5vw, 80px); }

/* Footage table on phones: the columns the headline names (FPS, resolution, codec), not AI and ratio */
@container (max-width: 420px) {
  .sd2-head, .sd2-row { grid-template-columns: minmax(0, 1.35fr) .5fr .95fr .75fr; }
  .sd2-head .c-ai, .sd2-row .c-ai, .sd2-head .c-ratio, .sd2-row .c-ratio { display: none; }
  .sd2-head .c-fps, .sd2-row .c-fps, .sd2-head .c-res, .sd2-row .c-res, .sd2-head .c-codec, .sd2-row .c-codec { display: flex; }
  .sd2-row .vd-th { display: none; }
  .sd2-row > span, .sd2-head button { padding: 0 6px; font-size: 11.5px; }
}

/* vs Finder on phones: the two answers get equal halves */
@media (max-width: 600px) {
  .compare thead tr, .compare tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Pricing page headline: no "Pro làm phần / việc nặng" break */
.pp-hero h1, main h1 { text-wrap: balance; }

/* Install page: Windows and Linux are two equal buttons, one line each */
.desk-buttons { flex-direction: column; min-width: 190px; }
.desk-buttons .btn { white-space: nowrap; justify-content: center; text-align: center; }
.download-card .btn-soft { background: color-mix(in srgb, var(--text) 8%, transparent); }
.desk-buttons .btn { width: 100%; }

/* ---- Colour mode switch in the footer (Light / Dark / Auto) ---- */
.theme-pick { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.theme-pick button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none;
  color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.theme-pick button:hover { color: var(--text); }
.theme-pick button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }
.theme-pick button:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.tp-ic { position: relative; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tp-ic--light { background: #ffb02e; box-shadow: 0 0 0 2px color-mix(in srgb, #ffb02e 30%, transparent); }
.tp-ic--dark { background: currentColor; -webkit-mask: radial-gradient(circle at 75% 30%, transparent 5px, #000 5.5px); mask: radial-gradient(circle at 75% 30%, transparent 5px, #000 5.5px); }
.tp-ic--auto { border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
@media (max-width: 600px) { .theme-pick { order: 3; } .theme-pick button { padding: 0 10px; } }

/* Dark mode, adapted from the light page (owner, 21 Nov): the demo windows go dark too (the app's own dark look, base.css .vd-dark),
   so no bright window glares out of a dark page */
:where(:root[data-theme="dark"]) .vd, :where(:root[data-theme="dark"]) .fd { --w-bg: #1e1e21; --w-bar: #2a2a2e; --w-side: #232326; --w-line: rgba(255,255,255,.08); --w-text: #ececf0; --w-muted: #8e8e96; --w-row: rgba(255,255,255,.03); --w-sel: #2f7cf6; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.09); }
@media (prefers-color-scheme: dark) {
  :where(:root[data-theme="auto"]) .vd, :where(:root[data-theme="auto"]) .fd { --w-bg: #1e1e21; --w-bar: #2a2a2e; --w-side: #232326; --w-line: rgba(255,255,255,.08); --w-text: #ececf0; --w-muted: #8e8e96; --w-row: rgba(255,255,255,.03); --w-sel: #2f7cf6; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.09); }
}

/* the rest of the app's dark look (base.css .vd-dark rules): keys, figure paper, find-demo accents */
:where(:root[data-theme="dark"]) .vd .sv-key, :where(:root[data-theme="dark"]) .fd .sv-key { --key-a: #3a3a40; --key-b: #2c2c31; --key-side: #0d0d10; --key-line: rgba(255,255,255,.12); }
:where(:root[data-theme="dark"]) .vd .sv-fig { background-color: #2a2a2e; background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1.2px); }
:where(:root[data-theme="dark"]) .fd.fd { --w-muted: #8e8e96; --fd-acc: color-mix(in srgb, var(--w-sel) 50%, #fff); }
@media (prefers-color-scheme: dark) {
:where(:root[data-theme="auto"]) .vd .sv-key, :where(:root[data-theme="auto"]) .fd .sv-key { --key-a: #3a3a40; --key-b: #2c2c31; --key-side: #0d0d10; --key-line: rgba(255,255,255,.12); }
:where(:root[data-theme="auto"]) .vd .sv-fig { background-color: #2a2a2e; background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1.2px); }
:where(:root[data-theme="auto"]) .fd.fd { --w-muted: #8e8e96; --fd-acc: color-mix(in srgb, var(--w-sel) 50%, #fff); }
}

/* dark: the Pro card stands apart from Free with an orange edge (on a dark page its dark fill alone did not) */
:where(:root[data-theme="dark"]) .price-card--pro { background: #16161a; box-shadow: 0 40px 80px -48px rgba(255, 122, 26, .35), inset 0 0 0 1px rgba(255, 150, 60, .38); }
@media (prefers-color-scheme: dark) {
  :where(:root[data-theme="auto"]) .price-card--pro { background: #16161a; box-shadow: 0 40px 80px -48px rgba(255, 122, 26, .35), inset 0 0 0 1px rgba(255, 150, 60, .38); }
}

/* the colour switch, compact (owner): three small icon buttons, the names show as a tooltip */
.theme-pick { gap: 0; padding: 2px; border-radius: 9px; }
.theme-pick button { width: 26px; height: 24px; padding: 0; justify-content: center; border-radius: 7px; }
.theme-pick .tp-ic { width: 11px; height: 11px; }
.tp-ic--light { box-shadow: 0 0 0 1.5px color-mix(in srgb, #ffb02e 30%, transparent); }
@media (max-width: 600px) { .theme-pick button { padding: 0; } }
