/* CrispDock — site styles.
   Look: 8-bit pixel headings floating on a pale "cloud paper" sky; one loud accent
   (signal orange) for actions and emphasis; a single dark warm band for the footer. */
:root {
  color-scheme: light;
  --orange: #ff5e24;
  --orange-press: #e84d14;
  --ember: #6c3200;
  --sky: #e3f1fe;
  --sky-deep: #cfe5fb;
  --ink: #232629;
  --ink-strong: #101828;
  --paper: #ffffff;
  --window: #f5f5f7;
  --slate: #5c6066;
  --ash: #989ea4;
  --cream: #f5e6dc;
  --ok: #1f9d55;

  --font-pixel: "Jersey 10", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  /* Chinese has no glyphs in the pixel font: headings fall back to a heavy system face */
  --font-heading-cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --r-btn: 6px;
  --r-card: 12px;
  --r-card-lg: 16px;
  --r-image: 24px;
  --shadow-card: rgba(15, 34, 52, 0.01) 0 27px 11px 0, rgba(15, 34, 52, 0.02) 0 15px 9px 0,
                 rgba(15, 34, 52, 0.04) 0 7px 7px 0, rgba(15, 34, 52, 0.04) 0 2px 4px 0;
  --shadow-lift: rgba(0, 0, 0, 0.01) 0 49px 30px 0, rgba(0, 0, 0, 0.03) 0 22px 22px 0,
                 rgba(0, 0, 0, 0.03) 0 5px 12px 0;
  --ring: rgba(255, 94, 36, 0.17) 0 0.5px 0.5px 0.5px inset, rgba(153, 37, 18, 0.2) 0 -1px 0.5px 0 inset,
          var(--orange) 0 0 0 1px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h3 { font: 700 18px/1.4 var(--font-body); letter-spacing: -0.01em; }
p { margin: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- pixel display type ---------- */
.display, .heading {
  font-family: var(--font-pixel);
  font-weight: 400;
  color: var(--ink);
}
.display { font-size: clamp(56px, 10vw, 96px); line-height: 0.82; letter-spacing: -0.031em; }
.display.small { font-size: clamp(48px, 8vw, 72px); }
.display .line { display: block; }
.accent { color: var(--orange); }
.heading { font-size: clamp(40px, 6vw, 60px); line-height: 0.9; letter-spacing: -0.025em; }
:lang(zh-CN) .display, :lang(zh-CN) .heading {
  font-family: var(--font-heading-cjk);
  font-weight: 800;
  letter-spacing: -0.01em;
}
:lang(zh-CN) .display { font-size: clamp(40px, 7vw, 68px); line-height: 1.12; }
:lang(zh-CN) .display.small { font-size: clamp(34px, 5.5vw, 52px); }
:lang(zh-CN) .heading { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-btn);
  font: 500 16px/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s, transform .15s;
}
.btn-lg { min-height: 52px; padding: 14px 28px; }
.btn-small { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--ring); }
.btn-primary:hover { background: var(--orange-press); transform: translateY(-1px); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--sky-deep); box-shadow: 0 1px 0 var(--sky-deep); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-meta { font-weight: 400; font-size: 14px; opacity: .85; }
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .45; transform: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-btn); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(12px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--font-body); color: var(--ink); letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.brand small { font: 500 13px/1 var(--font-body); color: var(--slate); letter-spacing: 0; }
.nav-links { display: none; gap: 6px; }
.nav-links a { font: 500 14px/1 var(--font-body); color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: var(--r-btn); }
.nav-links a:hover { color: var(--orange); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 0; color: var(--slate); font: 500 14px var(--font-body); padding: 8px 10px; border-radius: var(--r-btn); cursor: pointer; }
.lang:hover { color: var(--orange); }
@media (min-width: 880px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .brand small { display: none; } }

/* ---------- pixel sprites & sky ---------- */
.px-cloud, .px-mascot, .px-icon { image-rendering: pixelated; display: block; }
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.drift { position: absolute; display: block; }
.drift .px-cloud { width: auto; max-width: 120px; height: auto; }
.d1 { top: 56px; left: 3%; }
.d2 { top: 210px; right: 6%; }
.d3 { top: 420px; left: 9%; opacity: .9; }
.d4 { top: 32px; right: 5%; }
.d5 { top: 40px; left: 4%; }
.d6 { top: 120px; right: 8%; }
.d7 { top: 24px; left: 6%; }
.d8 { top: 48px; right: 10%; }
.d9 { top: 30px; left: 8%; }
.d10 { bottom: 40px; right: 12%; }
@media (max-width: 720px) {
  .d2, .d3, .d6, .d10 { display: none; }
  .drift .px-cloud { max-width: 72px; }
  .d1 { top: 16px; left: -12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 32px; }
.hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { font: 600 14px/1.4 var(--font-body); color: var(--slate); background: var(--paper); border-radius: 999px; padding: 6px 14px; margin-bottom: 28px; box-shadow: var(--shadow-card); }
.lead { max-width: 580px; margin: 28px auto 32px; font-size: 18px; line-height: 1.56; color: var(--slate); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--slate); font-size: 14px; }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--orange); vertical-align: 1px; }
@media (min-width: 960px) { .hero { padding: 104px 0 48px; } }

/* letter sheet → 4×6 card */
.card { background: var(--paper); border: 1px solid var(--sky); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.transform {
  margin: 64px auto 0; max-width: 920px; padding: 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  border-radius: var(--r-card-lg);
}
.paper { background: #fff; border-radius: 4px; box-shadow: var(--shadow-lift); padding: 6px; outline: 1px solid #edf1f5; }
.paper-sheet { transform: rotate(-2deg); }
.paper-label { transform: rotate(1.5deg); }
.transform-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mascot-wrap .px-mascot { width: 80px; height: auto; }
.arrow-px { width: 56px; height: 28px; }
.transform figcaption { grid-column: 1 / -1; text-align: center; color: var(--slate); font-size: 14px; }
@media (max-width: 560px) {
  .transform { padding: 18px; gap: 10px; margin-top: 40px; }
  .mascot-wrap .px-mascot { width: 48px; }
  .arrow-px { width: 32px; height: 16px; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-head { position: relative; max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { margin-top: 18px; font-size: 18px; line-height: 1.56; color: var(--slate); }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 24px; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.feature .px-icon { width: 44px; height: 44px; margin-bottom: 18px; padding: 6px; box-sizing: content-box; background: var(--sky); border-radius: 8px; }
.feature p { margin-top: 8px; color: var(--slate); }

/* app window */
.app-window {
  position: relative; max-width: 1040px; margin: 0 auto; padding: 10px;
  background: var(--window); border-radius: var(--r-image);
  box-shadow: var(--shadow-lift), 0 0 0 1px #e6eaef;
}
.app-window .screenshot { border-radius: 16px; }
.pills { list-style: none; padding: 0; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border-radius: var(--r-btn); padding: 8px 14px; font: 500 14px/1.3 var(--font-body); box-shadow: var(--shadow-card); }
.pill-dot { width: 8px; height: 8px; background: var(--orange); flex: none; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 24px; }
.step-n { display: block; font: 400 56px/0.85 var(--font-pixel); color: var(--orange); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--slate); }
.compat { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .compat { grid-template-columns: 1fr 1fr; } }
.compat > div { padding: 22px 24px; }
.compat p { margin-top: 8px; color: var(--slate); }
.compat-yes h3::before, .compat-no h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: 1px; }
.compat-yes h3::before { background: var(--ok); }
.compat-no h3::before { background: var(--ash); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; padding: 28px; display: flex; flex-direction: column; border-radius: var(--r-card-lg); }
.plan-featured { border-color: var(--orange); box-shadow: var(--shadow-lift), 0 0 0 1px var(--orange); }
@media (min-width: 900px) { .plan-featured { transform: translateY(-8px); } }
.ribbon { position: absolute; top: -13px; left: 24px; background: var(--orange); color: #fff; font: 700 12px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 7px 10px; border-radius: var(--r-btn); }
.tagline { color: var(--slate); font-size: 14px; margin-top: 4px; }
.price { font: 400 64px/0.9 var(--font-pixel); letter-spacing: -0.02em; color: var(--ink-strong); margin-top: 18px; }
.price span { font: 500 15px var(--font-body); color: var(--slate); letter-spacing: 0; }
.price-sub { font-size: 14px; color: var(--slate); margin-top: 8px; }
.save { color: var(--orange); font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; align-content: start; flex: 1; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff5e24' d='M6 1h1v1H6zM5 2h1v1H5zM4 3h1v1H4zM3 4h1v1H3zM2 5h1v1H2zM1 3h1v1H1zM0 2h1v1H0zM1 4h1v1H1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan-note { color: var(--slate); font-size: 13px; text-align: center; margin-top: 10px; }

/* Pro / Pro + AirShare switch above the pricing cards */
.tier-switch { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; background: var(--paper); border: 1px solid var(--sky-deep); border-radius: calc(var(--r-btn) + 4px); box-shadow: var(--shadow-card); }
.tier-switch button { border: 0; background: none; color: var(--slate); font: 600 15px/1 var(--font-body); padding: 11px 18px; border-radius: var(--r-btn); cursor: pointer; min-height: 40px; }
.tier-switch button[aria-checked="true"] { background: var(--orange); color: #fff; }
.tier-switch button:not([aria-checked="true"]):hover { color: var(--ink); background: var(--sky); }
.tier-note { margin-top: 12px; font-size: 15px; color: var(--slate); }
.tier-note[hidden], .checks li[hidden] { display: none; }
.checks li.no { color: var(--slate); }
.checks li.no::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%235c6066' d='M1 3h6v2H1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.free-strip { margin-top: 20px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.free-strip > div { flex: 1 1 280px; }
.free-strip p { color: var(--slate); margin-top: 4px; }
.free-mascot .px-mascot { width: 48px; height: auto; }

.compare { margin-top: 20px; padding: 24px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
.compare table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--sky); }
.compare thead th { font-weight: 700; color: var(--ink-strong); }
.compare tbody th { font-weight: 500; color: var(--slate); }
.compare .yes { color: var(--ok); font-weight: 600; }
.compare .no { color: var(--orange); font-weight: 600; }
.account-link { text-align: center; margin-top: 22px; color: var(--slate); }
.account-link a { color: var(--orange); font-weight: 600; }
.fine { color: var(--slate); font-size: 13px; }
.pricing-fine { text-align: center; max-width: 760px; margin: 18px auto 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 16px/1.45 var(--font-body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 30px/0.7 var(--font-pixel); color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--slate); padding-bottom: 20px; max-width: 46em; }

/* closing band */
.cta-band { padding: 88px 0 104px; }
.cta-band .cta-row { margin-top: 32px; }

/* ---------- footer ---------- */
.footer { background: var(--ember); color: var(--cream); padding: 48px 0 56px; }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer .brand { color: #fff; }
.footer .brand small { color: var(--cream); }
.footer-mascot .px-mascot { width: 42px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 6px 0 8px; }
.footer-links a { color: #fff; text-decoration: none; font: 500 14px var(--font-body); }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.footer .fine { color: var(--cream); opacity: .85; }
.footer .fine a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature { transition: none; }
}

/* Before / after slider (features): drag the orange line across two aligned close-up photos. */
.ba { margin: 0 0 40px; padding: 12px; }
.ba-frame {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1600 / 692;
  background: #fff; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none;
}
.ba-frame:focus-visible { box-shadow: var(--ring); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--orange); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  display: grid; place-items: center; background: var(--orange); border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--orange-press), var(--shadow-lift);
}
.ba-frame:active .ba-knob { background: var(--orange-press); }
.ba-stage { position: relative; }
.ba-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.ba-tag { padding: 5px 10px; border-radius: 4px; font: 700 13px/1.2 var(--font-body); color: #fff; background: rgba(16, 24, 40, 0.8); transition: opacity 0.2s; }
.ba-tag-r { background: var(--orange); }
.ba-tag.is-hidden { opacity: 0; }
.ba figcaption { margin-top: 12px; text-align: center; color: var(--slate); font-size: 14px; }
@media (max-width: 560px) {
  .ba { padding: 8px; }
  /* Too little room over the photo on phones: the two names sit under it instead */
  .ba-tags { position: static; margin-top: 8px; }
  .ba-tag { font-size: 12px; padding: 4px 8px; }
  .ba-tag.is-hidden { opacity: 1; }
  .ba-knob { width: 38px; height: 38px; }
}
