/* Kitesail site. Colours follow the app (App/UI/Shared/Theme.swift). */
:root {
  --bg: #F4F5FA; --bg-2: #ECEEF6; --card: #FFFFFF; --border: rgba(17, 24, 39, .07);
  --text: #111827; --muted: #5F6475; --faint: #8A8FA0;
  --accent: #4F46E5; --accent-soft: rgba(99, 102, 241, .12);
  --ok: #059669; --no: #DC2626;
  --grad: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
  --hero: #0A0C1C;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -12px rgba(17, 24, 39, .12);
  --radius: 22px; --nav-bg: rgba(244, 245, 250, .8);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080C; --bg-2: #0D0F16; --card: #12141C; --border: rgba(255, 255, 255, .08);
    --text: #F3F4F6; --muted: #9AA0B2; --faint: #6E7486;
    --accent: #8B91FF; --accent-soft: rgba(124, 131, 255, .14);
    --ok: #34D399; --no: #F87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --nav-bg: rgba(7, 8, 12, .78);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font);
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* MARK: Navigation */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s;
       border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav.solid, .page .nav { background: var(--nav-bg); border-bottom-color: var(--border);
       backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { color: inherit; opacity: .78; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.lang { position: relative; }
.lang select { appearance: none; -webkit-appearance: none; font: 500 14px var(--font); color: inherit; cursor: pointer;
       background: transparent; border: 1px solid currentColor; border-radius: 99px; padding: 6px 30px 6px 14px; opacity: .8; }
.lang select:hover { opacity: 1; }
.lang::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
       border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .8; }
.lang option { color: #111827; }
.home .nav:not(.solid) { color: #fff; }

/* MARK: Hero */
.hero { position: relative; background: var(--hero); color: #fff; margin-top: -64px; padding: 128px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 18% 10%, rgba(99, 102, 241, .55), transparent 60%),
    radial-gradient(50% 60% at 92% 30%, rgba(34, 211, 238, .38), transparent 60%),
    radial-gradient(70% 60% at 60% 110%, rgba(139, 92, 246, .45), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.eyebrow i { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 800; margin: 22px 0 20px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #A5B4FC, #67E8F9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .74); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--font); border-radius: 14px;
  padding: 15px 22px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-store { background: #fff; color: #0A0C1C; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .45); }
.btn-store svg { width: 20px; height: 20px; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .6; margin-bottom: 3px; }
.btn-store span { text-align: left; line-height: 1.1; }
.btn-store.soon { cursor: default; }
.btn-store.soon:hover { transform: none; }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: rgba(255, 255, 255, .62); }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 16px; height: 16px; color: #67E8F9; }

.hero-kite { position: absolute; z-index: -1; right: -60px; top: 40px; width: 420px; opacity: .1; transform: rotate(8deg); pointer-events: none; }

/* MARK: Phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .35), rgba(99, 102, 241, .2) 45%, transparent 70%); filter: blur(30px); }
.phone { position: relative; width: 300px; aspect-ratio: 300 / 620; border-radius: 52px; padding: 12px;
  background: linear-gradient(145deg, #2A2D3A, #0E0F15); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset,
  0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .6); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(-.5deg); } }
.screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #07080C; color: #F3F4F6;
  display: flex; flex-direction: column; padding: 14px 16px 18px; font-size: 12px; }
.screen::before { content: ""; position: absolute; inset: 0 0 auto; height: 55%; z-index: 0;
  background: radial-gradient(90% 70% at 50% 0%, rgba(16, 185, 129, .28), transparent 70%); }
.screen > * { position: relative; z-index: 1; }
.island { position: absolute; top: 10px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 12px; padding: 2px 10px 0; height: 24px; }
.status b { display: inline-flex; gap: 4px; align-items: center; }
.status b i { display: inline-block; width: 20px; height: 10px; border-radius: 3px; border: 1px solid rgba(255,255,255,.5); position: relative; }
.status b i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1px; }
.app-bar { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 0; }
.app-bar strong { font-size: 20px; letter-spacing: -.02em; }
.app-bar span { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.app-bar span svg { width: 15px; height: 15px; opacity: .8; }
.power { position: relative; width: 150px; height: 150px; margin: 24px auto 10px; display: grid; place-items: center; }
.power::before { content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, .45), transparent 68%); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
.power .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, #10B981, #22D3EE, #10B981); padding: 4px;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.power .core { width: 118px; height: 118px; border-radius: 50%; background: linear-gradient(145deg, #047857, #0891B2);
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(8, 145, 178, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.power .core svg { width: 40px; height: 40px; }
.conn-state { text-align: center; }
.conn-state strong { display: block; font-size: 16px; }
.conn-state span { color: #9AA0B2; font-variant-numeric: tabular-nums; }
.m-card { background: #14161D; border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; padding: 11px 13px; margin-top: 10px; }
.speeds { display: flex; gap: 14px; }
.speeds div { flex: 1; }
.speeds small { display: block; color: #8E93A3; font-size: 10px; }
.speeds b { font-size: 15px; font-variant-numeric: tabular-nums; }
.speeds b u { text-decoration: none; font-size: 10px; font-weight: 500; color: #8E93A3; margin-left: 2px; }
.speeds .up { color: #A78BFA; } .speeds .down { color: #67E8F9; }
.chart { width: 100%; height: 44px; margin-top: 6px; }
.chart path { vector-effect: non-scaling-stroke; }
.node { display: flex; align-items: center; gap: 10px; }
.node .flag { font-size: 20px; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.node div { flex: 1; line-height: 1.3; }
.node small { color: #8E93A3; font-size: 10px; }
.node b { font-size: 13px; }
.node em { font-style: normal; color: #34D399; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg { display: flex; padding: 3px; background: rgba(255,255,255,.06); border-radius: 12px; margin-top: 10px; }
.seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 9px; color: #9AA0B2; font-weight: 600; }
.seg span.on { background: rgba(255,255,255,.12); color: #fff; }
.tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 0; border-top: 1px solid rgba(255,255,255,.06); color: #5D6273; }
.tabs svg { width: 20px; height: 20px; }
.tabs .on { color: #7C83FF; }

/* MARK: Sections */
section { padding: 104px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

.pillars { padding: 0; margin-top: -40px; position: relative; z-index: 2; }
.pillars .grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.pillar + .pillar { border-left: 1px solid var(--border); }
.pillar { background: var(--card); padding: 26px 26px 24px; display: flex; gap: 16px; align-items: flex-start; }
.pillar .ico { flex: none; }
.pillar h3 { font-size: 17px; margin-bottom: 4px; }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .6); }
.ico svg { width: 22px; height: 22px; }

.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); }
.feature h3 { font-size: 19px; margin: 20px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.feature.wide h3 { margin-top: 20px; }
.ico.violet { background: linear-gradient(135deg, #8B5CF6, #6366F1); box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .6); }
.ico.green { background: linear-gradient(135deg, #10B981, #22D3EE); box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .6); }
.ico.amber { background: linear-gradient(135deg, #F59E0B, #F97316); box-shadow: 0 8px 20px -8px rgba(249, 115, 22, .6); }
.ico.pink { background: linear-gradient(135deg, #EC4899, #8B5CF6); box-shadow: 0 8px 20px -8px rgba(236, 72, 153, .6); }

.routes { display: grid; gap: 10px; }
.route { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.route b { flex: 1; font-weight: 600; }
.route .tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.tag.direct { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tag.proxy { color: var(--accent); background: var(--accent-soft); }
.route .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--card); border: 1px solid var(--border); }

/* MARK: Privacy */
.privacy { background: var(--bg-2); }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ledger .col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.ledger h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ledger .col > p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ledger li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ledger li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.ledger li small { display: block; color: var(--muted); font-size: 13.5px; }
.ledger .never li svg { color: var(--no); }
.ledger .only li svg { color: var(--ok); }
.badge-round { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.badge-round svg { width: 16px; height: 16px; }
.never .badge-round { background: color-mix(in srgb, var(--no) 14%, transparent); color: var(--no); }
.only .badge-round { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.privacy-foot { text-align: center; margin-top: 30px; color: var(--muted); font-size: 15px; }

/* MARK: Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; }
.plan.best { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; transform: translateY(-8px);
  box-shadow: 0 30px 60px -24px rgba(99, 102, 241, .45); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: #fff; padding: 5px 12px;
  border-radius: 99px; background: var(--grad); white-space: nowrap; }
.plan h3 { font-size: 17px; color: var(--muted); font-weight: 600; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.per { color: var(--muted); font-size: 14px; min-height: 22px; }
.save { display: inline-block; margin-left: 6px; color: var(--ok); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15px; border-top: 1px solid var(--border); padding-top: 20px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.plans-note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 30px; max-width: 760px; margin-left: auto; margin-right: auto; }

/* MARK: FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 20px 32px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15.5px; }
.contact-card { margin-top: 28px; display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-card div { flex: 1; }
.contact-card h3 { font-size: 17px; margin-bottom: 2px; }
.contact-card p { color: var(--muted); font-size: 14.5px; }

/* MARK: Closing band */
.band { padding: 0 0 104px; }
.band .box { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 64px 40px; text-align: center; color: #fff; background: var(--hero); }
.band .box::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 0% 0%, rgba(99, 102, 241, .6), transparent 60%), radial-gradient(60% 90% at 100% 100%, rgba(34, 211, 238, .45), transparent 60%); }
.band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.band p { color: rgba(255, 255, 255, .72); margin: 14px auto 30px; max-width: 32em; font-size: 17px; }
.band .cta { justify-content: center; margin-top: 0; }
.band img.mark { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 22px; box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .6); }

/* MARK: Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
footer a { color: inherit; }
footer a:hover { color: var(--text); }

/* MARK: Legal pages */
.page main { padding: 56px 0 80px; }
.doc-head { margin-bottom: 36px; }
.doc-head h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; }
.doc-head p { color: var(--muted); margin-top: 10px; }
.doc { font-size: 16px; }
.doc .summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 36px; box-shadow: var(--shadow); }
.doc .summary h2 { font-size: 17px; margin: 0 0 12px; padding: 0; border: 0; }
.doc .summary ul { margin: 0; }
.doc h2 { font-size: 22px; margin: 44px 0 14px; padding-top: 4px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--faint); }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.doc td:first-child { font-weight: 600; min-width: 9em; }
.doc strong { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 32px; }
.toc a { font-size: 13.5px; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; }

/* MARK: Language blocks */
[data-l] { display: none; }
html[lang="zh-Hans"] [data-l="zh"], html[lang="en"] [data-l="en"], html[lang="ja"] [data-l="ja"] { display: revert; }

/* MARK: Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .power::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* MARK: Narrow screens */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .cta, .hero-notes { justify-content: center; }
  .phone-stage { margin-top: 24px; }
  .features .grid { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .plan.best { transform: none; order: -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  section { padding: 76px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 108px 0 80px; }
  .pillars .grid { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--border); }
  .features .grid, .ledger { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .phone { width: 264px; border-radius: 46px; }
  .screen { border-radius: 36px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .band .box { padding: 48px 22px; border-radius: 24px; }
  footer .links { margin-left: 0; }
}

/* assets/lang.js: hidden for a moment while a non-Chinese page is translated */
html.ks-pending body { visibility: hidden; }
