/*
 * OneFi storefront
 * Look: modelled on Apple product pages. Centered headlines, the product photo as the hero,
 * white and light-gray sections, large rounded tiles, blue pill buttons, a floating "Buy" pill.
 * Font: the system font (SF Pro on iPhone/Mac), Inter everywhere else.
 * Network colours (Smart / Globe / DITO) are only used to mark networks.
 */
:root {
    --paper: #ffffff;
    --gray: #f5f5f7;
    --gray-2: #e8e8ed;
    --ink: #1d1d1f;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: #d2d2d7;
    --line-strong: #86868b;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --link: #0066cc;
    --orange: #b64400;
    --smart: #00a14b;
    --globe: #005bbb;
    --dito: #e3262f;
    --ok: #1d7c35;
    --ok-bg: #e9f6ec;
    --warn: #8a5300;
    --warn-bg: #fff6e0;
    --error: #d70015;
    --error-bg: #fff0f1;
    --info-bg: #eef5fe;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --r-xl: 28px;
    --r-lg: 18px;
    --r-md: 12px;
    --header-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.07; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 200; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.6); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1240px; }
.container--narrow { max-width: 760px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

.section { padding: 110px 0; }
.section--gray { background: var(--gray); }
.section__head { margin-bottom: 44px; }
.section__head h2 { margin-bottom: 0.25em; }
.section__head p { color: var(--muted); font-size: 1.2rem; line-height: 1.4; margin: 0; }
.section__head--center { text-align: center; }
.section__head--center p { margin: 0 auto; }
@media (max-width: 734px) {
    .section { padding: 72px 0; }
    .section__head { margin-bottom: 30px; }
    .section__head p { font-size: 1.05rem; }
}
.more { display: inline-block; font-size: 1.05rem; color: var(--link); }

/* ---------- brand: OneFi logo（用户提供的原图 onefi logo4.png：去白底、裁边、缩到 120px 高 → public/images/logo/onefi-logo.png） ---------- */
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 30px; width: auto; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: 1040px; }
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { color: var(--ink); font-size: 0.8rem; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: none; color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 0.78rem; color: var(--muted); }
.lang a { color: var(--muted); padding: 2px 1px; }
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; margin-right: -10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 17px; height: 7px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.menu[open] summary span { height: 0; border-bottom: 0; transform: rotate(45deg); position: relative; }
.menu[open] summary span::after { content: ""; position: absolute; left: 0; top: -1.5px; width: 17px; border-top: 1.5px solid var(--ink); transform: rotate(-90deg); }
.menu__panel {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    padding: 16px 40px 32px; border-bottom: 1px solid var(--line);
}
.menu__panel a { display: block; padding: 10px 0; color: var(--ink); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.015em; }
.menu__panel a:hover { text-decoration: none; color: var(--muted); }
.menu__panel .lang { display: block; margin-top: 18px; font-size: 1rem; }
@media (max-width: 834px) {
    .nav { display: none; }
    .menu { display: block; }
    .header-end { margin-left: auto; gap: 14px; }
    .header-end > .lang { display: none; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 22px;
    background: var(--blue); color: #fff;
    border: 1px solid var(--blue); border-radius: 980px;
    font: inherit; font-weight: 500; font-size: 1.02rem; line-height: 1; letter-spacing: -0.01em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color 0.15s ease;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; text-decoration: none; }
.btn--light { background: transparent; color: var(--blue); }
.btn--light:hover { background: var(--blue); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #333336; border-color: #333336; }
.btn--sm { min-height: 30px; padding: 0 14px; font-size: 0.82rem; }
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- network marks ---------- */
.networks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.net { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 12px; border-radius: 980px; background: var(--gray); color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.net::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.net--smart::before { background: var(--smart); }
.net--globe::before { background: var(--globe); }
.net--dito::before { background: var(--dito); }
.tile .net, .section--gray .net { background: var(--paper); }

/* ---------- home: hero ---------- */
.hero { padding: 44px 0 76px; text-align: center; overflow: hidden; }
.hero__name { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.hero__headline {
    font-family: var(--font-display); font-weight: 600; color: var(--ink);
    font-size: clamp(2.7rem, 8.4vw, 6rem); line-height: 1.03; letter-spacing: -0.03em;
    margin: 0 auto 24px; max-width: 16ch; text-wrap: balance;
}
.hero__lede { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.4; color: var(--muted); margin: 34px auto 0; max-width: 40ch; text-wrap: pretty; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.hero__rating:hover { text-decoration: none; color: var(--ink); }
.hero__image { position: relative; max-width: 580px; margin: 24px auto 0; padding: 0 12px; }
.hero__image img { width: 100%; }
@media (max-width: 734px) {
    .hero { padding: 40px 0 56px; }
    .hero__headline { margin-bottom: 18px; }
    .hero__image { margin-top: 18px; }
    .hero__lede { margin-top: 26px; }
}
/* 手机：标题最大 38.4px，屏幕更窄时按宽度缩小，保证 “Switch networks.” 一行放得下
   （原来 360 宽的安卓机上会拆成 3 行）。12.25vw - 4.9px ≈ 可用宽度 ÷ 这行字的宽度 × 0.97 */
@media (max-width: 480px) {
    .hero__headline { font-size: min(2.4rem, calc(12.25vw - 4.9px)); }
}

/* buy pill: price + Buy in a translucent capsule. One sits under the hero photo; a second one floats at the
   bottom of the screen whenever the first is out of view (home page script), and comes to rest at the end of the FAQ.
   The floating one lives in a zero-height sticky strip that must be a direct child of <main>. */
.buy-pill {
    display: inline-flex; align-items: center; gap: 18px;
    width: max-content; max-width: calc(100vw - 32px);
    padding: 8px 8px 8px 26px; border-radius: 980px;
    background: rgba(232, 232, 237, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.buy-pill__text { text-align: left; line-height: 1.25; color: var(--ink); font-size: 0.95rem; }
.buy-pill__text strong { font-weight: 600; font-size: 1.05rem; }
.buy-pill__text span { display: block; color: var(--muted); font-size: 0.8rem; }
.buy-pill .btn { min-height: 46px; padding: 0 26px; font-size: 1.05rem; }
.hero__buy { margin-top: 8px; }
.buy-pill-wrap { position: sticky; bottom: 0; height: 0; z-index: 30; }
.buy-pill-wrap .buy-pill {
    position: absolute; left: 50%; bottom: 22px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    opacity: 0; transform: translate(-50%, 18px); pointer-events: none; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.buy-pill-wrap.is-visible .buy-pill { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .buy-pill-wrap .buy-pill { transition: none; } }
@media (max-width: 420px) { .buy-pill { gap: 12px; padding-left: 20px; } }

/* ---------- home: highlight tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--paper); border-radius: var(--r-xl); padding: 40px 38px; display: flex; flex-direction: column; min-height: 330px; overflow: hidden; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; }
.tile p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.tile p strong { color: var(--ink); font-weight: 600; }
.tile .tile__figure { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(3.4rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -0.04em; margin: auto 0 10px; }
.tile .tile__figure small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.02em; margin-left: 4px; }
.tile .networks { justify-content: flex-start; margin: 4px 0 18px; }
.tile--networks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 24px; }
.tile--networks img { width: auto; max-width: 100%; max-height: 340px; margin: 0 auto; }
.tile__list { list-style: none; margin: auto 0 0; padding: 0; }
.tile__list li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); }
.tile__list li:first-child { border-top: 0; }
.tile .more { margin-top: 14px; font-size: 1rem; }
@media (max-width: 960px) {
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile--networks { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .tiles { grid-template-columns: 1fr; gap: 14px; }
    .tile, .tile--wide { grid-column: auto; min-height: 0; padding: 32px 26px; }
    .tile--networks { grid-template-columns: 1fr; }
    .tile--networks img { max-height: 260px; margin: 6px auto 0; }
    .tile .tile__figure { margin-top: 26px; }
}

/* ---------- home: getting started (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; counter-reset: step; text-align: center; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step); display: grid; place-items: center;
    width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
    border: 1.5px solid var(--ink); color: var(--ink);
    font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0 auto; max-width: 30ch; }
@media (max-width: 734px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- home: data plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.plan { background: var(--paper); border-radius: var(--r-lg); padding: 30px 26px 28px; display: flex; flex-direction: column; text-align: center; }
.plan__label { display: block; color: var(--orange); font-size: 0.82rem; font-weight: 600; min-height: 1.3em; margin-bottom: 6px; }
.plan__name { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0; }
.plan__data { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(1.55rem, 6.2vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 4px; }
.plan__days { color: var(--muted); font-size: 0.95rem; }
.plan__price { margin-top: auto; padding-top: 22px; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.plan--featured { box-shadow: inset 0 0 0 2px var(--ink); }
.plans-note { margin: 26px auto 0; color: var(--muted); text-align: center; font-size: 0.95rem; }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { gap: 12px; } .plan { padding: 24px 14px 22px; } }

/* ---------- home: why buy from OneFi ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.perk { background: var(--paper); border-radius: var(--r-lg); padding: 30px 26px; }
.perk svg { width: 34px; height: 34px; color: var(--ink); margin-bottom: 18px; }
.perk h3 { font-size: 1.2rem; margin-bottom: 8px; }
.perk p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.perk .more { font-size: 0.97rem; margin-top: 10px; }
.perk__logos { display: flex; gap: 8px; margin-bottom: 18px; }
.perk__logos img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; }
@media (max-width: 960px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__a { padding: 0 48px 22px 0; color: var(--text); }
.faq__a p:last-child { margin-bottom: 0; }
.faq-foot { text-align: center; color: var(--muted); margin: 30px auto 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- closing ---------- */
.closing { text-align: center; padding: 100px 0; }
.section--pill-rest { padding-bottom: 150px; }
@media (max-width: 734px) { .closing { padding: 72px 0; } .section--pill-rest { padding-bottom: 120px; } }
.closing img { width: 100%; max-width: 360px; margin: 0 auto 26px; }
.closing h2 { margin-bottom: 8px; }
.closing p { color: var(--muted); font-size: 1.15rem; margin: 0 auto 26px; }
.closing__actions { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--gray); color: var(--muted); font-size: 0.78rem; line-height: 1.45; padding: 30px 0 24px; border-top: 1px solid var(--line); }
.site-footer .container { max-width: 1040px; }
.footer-note { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.footer-note p { margin: 0 0 6px; max-width: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h2 { font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.4; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .brand img { height: 24px; }
.footer-pay { display: flex; gap: 6px; margin-top: 14px; }
.footer-pay img { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); object-fit: contain; padding: 3px; background: #fff; }
.footer-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; }
.footer-legal p { max-width: none; margin: 0; }
.chat-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.chat-link:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 834px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- panels, notices, badges ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel { background: var(--gray); border-radius: var(--r-lg); padding: 26px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.notice { padding: 14px 18px; border-radius: var(--r-md); font-size: 0.97rem; background: var(--gray); color: var(--ink); }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.notice--warn { background: var(--warn-bg); color: #4a3000; }
.notice--error { background: var(--error-bg); color: #8a000d; }
.notice--info { background: var(--info-bg); color: #00346b; }
.notice--ok { background: var(--ok-bg); color: #0f4220; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 980px; font-size: 0.8rem; font-weight: 600; }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--info { background: var(--info-bg); color: var(--blue); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--muted { background: var(--gray); color: var(--muted); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; color: var(--ink); font-size: 0.92rem; margin-bottom: 7px; }
.field__label small { font-weight: 400; color: var(--muted); }
.input, .select {
    width: 100%; min-height: 52px; padding: 12px 16px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--r-md);
    font: inherit; font-size: 1.02rem; outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { line-height: 1.45; }
.input::placeholder { color: #a1a1a6; }
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.select:disabled { background-color: var(--gray); color: var(--muted); border-color: var(--line); }
.is-invalid, .input.is-invalid { border-color: var(--error) !important; }
.field__error { color: var(--error); font-size: 0.88rem; margin-top: 6px; }
.field__hint { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .input, .select { transition: none; } }

/* searchable dropdown (city, barangay): text box + list; the native select stays hidden in the form */
.combo { position: relative; }
.combo__native { display: none !important; }
.combo__input { cursor: text; text-overflow: ellipsis; }
.combo__input:disabled { cursor: not-allowed; }
.combo__list {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
    margin: 0; padding: 6px 0; list-style: none;
    max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.combo__option { padding: 11px 16px; color: var(--ink); line-height: 1.3; cursor: pointer; }
.combo__option[aria-selected="true"] { font-weight: 600; }
.combo__option.is-active { background: var(--gray); }
.combo__empty { padding: 11px 16px; color: var(--muted); }
[data-level-wrap] { scroll-margin-top: 84px; }
@media (max-width: 600px) { .combo__list { max-height: 36vh; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.95rem; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- order page ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding: 48px 0 88px; }
.order-summary { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .order-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } .order-summary { position: static; } }
.order-title { font-size: clamp(2.1rem, 4.6vw, 3rem); letter-spacing: -0.025em; }
.recipient { border-top: 1px solid var(--line); padding: 24px 0 8px; margin-bottom: 8px; }
.recipient__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.recipient__title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); letter-spacing: -0.015em; }
.recipient__remove { background: none; border: 0; padding: 0; font: inherit; font-size: 0.92rem; color: var(--error); cursor: pointer; }
.recipient__remove:hover { text-decoration: underline; }
.recipient:first-child .recipient__remove, .recipient:first-child .same-email { display: none; }
.recipient__eta { font-size: 0.92rem; color: var(--ok); font-weight: 500; margin: -4px 0 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.86rem; font-weight: 400; color: var(--link); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.qty button { width: 48px; border: 0; background: var(--gray); color: var(--ink); font-size: 1.3rem; font-weight: 400; cursor: pointer; }
.qty button:hover { background: var(--gray-2); }
.qty input { width: 58px; min-height: 50px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-recipient { display: block; width: 100%; margin: 6px 0 40px; padding: 16px 18px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-md); font: inherit; font-weight: 500; color: var(--link); cursor: pointer; text-align: left; }
.add-recipient:hover { border-color: var(--blue); background: var(--info-bg); }
.form-block { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 36px; }
.form-block h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin-bottom: 16px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: block; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option__box { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-weight: 500; color: var(--ink); background: #fff; }
.pay-option__box img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.pay-option__box::after { content: ""; margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.pay-option input:checked + .pay-option__box { border: 2px solid var(--blue); padding: 13px 17px; }
.pay-option input:checked + .pay-option__box::after { border: 6px solid var(--blue); }
.pay-option input:focus-visible + .pay-option__box { outline: 3px solid rgba(0, 113, 227, 0.6); outline-offset: 2px; }
.secure-note { color: var(--muted); font-size: 0.86rem; margin-top: 12px; }
.summary-product { display: flex; gap: 16px; align-items: center; }
.summary-product img { width: 84px; flex: none; }
.summary-product strong { color: var(--ink); display: block; line-height: 1.3; font-weight: 600; }
.summary-lines { list-style: none; margin: 0; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--ink); }
.summary-total strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.overlay { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.overlay.is-active { display: grid; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--gray-2); border-top-color: var(--blue); animation: spin 0.8s linear infinite; margin: 0 0 16px; }
.overlay .spinner { margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* mobile bottom bar on the order page: total + Pay */
.buy-bar { display: none; }
@media (max-width: 960px) {
    .buy-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    }
    .buy-bar strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; }
    .buy-bar span { font-size: 0.8rem; color: var(--muted); }
    .buy-bar .btn { min-width: 140px; min-height: 46px; }
    body:has(.buy-bar) { padding-bottom: 78px; }
    body:has(.buy-bar) .header-end > .btn { display: none; }
}

/* ---------- checkout status / tracking ---------- */
.status { padding: 56px 0 28px; }
.status h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); letter-spacing: -0.025em; }
.status__mark { display: inline-block; font-weight: 600; font-size: 0.88rem; padding: 5px 13px; border-radius: 980px; margin-bottom: 16px; }
.status__mark--ok { background: var(--ok-bg); color: var(--ok); }
.status__mark--warn { background: var(--warn-bg); color: var(--warn); }
.status__mark--muted { background: var(--gray); color: var(--muted); }
.order-number { display: inline-block; font-weight: 600; color: var(--ink); background: var(--gray); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-variant-numeric: tabular-nums; border: 0; font-family: inherit; font-size: 1rem; }
.order-number:hover { background: var(--gray-2); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 18px; margin: 14px 0 0; font-size: 0.97rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 10px; } }
.order-block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px 26px; margin-top: 18px; }
.progress { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 0.84rem; color: var(--muted); }
.progress li { padding-top: 10px; position: relative; }
.progress li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: var(--gray-2); }
.progress li.is-done { color: var(--ink); font-weight: 600; }
.progress li.is-done::before { background: var(--blue); }

/* ---------- policy pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; letter-spacing: -0.015em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .placeholder { background: var(--warn-bg); padding: 0 3px; border-radius: 3px; }
.page-head { padding: 56px 0 10px; }
.page-head p { color: var(--muted); }

/* ---------- error pages ---------- */
.error-page { padding: 110px 0; text-align: center; }
.error-page p { margin-left: auto; margin-right: auto; }
.error-page__code { font-weight: 600; font-size: 1rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- reviews ---------- */
.stars { display: inline-block; color: var(--ink); letter-spacing: 0.06em; line-height: 1; font-size: 1rem; white-space: nowrap; }
.stars__off { color: var(--line); }
.rating-summary { display: flex; align-items: center; gap: 16px; margin: 20px 0 10px; }
.rating-summary__score { font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.rating-summary .stars { font-size: 1.3rem; margin-bottom: 5px; }
.rating-summary--center { justify-content: center; text-align: left; margin: 0 0 40px; }
.rating-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 0.95rem; }
.rating-line a { color: var(--text); }
.rating-line--small { display: flex; margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); gap: 6px; }
.rating-line--small .stars { font-size: 0.85rem; }
.rating-line--small:hover { text-decoration: none; }
.rating-line--small:hover span { text-decoration: underline; }
.review-list { margin-top: 28px; }
.review { padding: 24px 0; border-top: 1px solid var(--line); }
.review:last-child { border-bottom: 1px solid var(--line); }
.review__title { font-size: 1.12rem; margin: 12px 0 4px; letter-spacing: -0.01em; }
.review__body { margin: 8px 0 12px; max-width: 68ch; }
.review__by { margin: 0; font-size: 0.86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.review__by strong { color: var(--ink); font-weight: 600; }
.review__verified { color: var(--ok); }
.review__reply { margin-top: 16px; padding: 14px 16px; background: var(--gray); border-radius: var(--r-md); font-size: 0.95rem; }
.review__reply p { margin: 4px 0 0; }
/* home: reviews as cards in a row that scrolls sideways on small screens */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reviews-grid .review { background: var(--gray); border: 0; border-radius: var(--r-lg); padding: 28px 26px; }
.reviews-grid .review__reply { background: var(--paper); }
@media (max-width: 960px) {
    .reviews-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(280px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; }
    .reviews-grid .review { scroll-snap-align: start; }
}
.reviews-foot { text-align: center; margin: 30px auto 0; }
.pager { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.review-form { margin-top: 28px; }
.review-form .field { margin-bottom: 18px; }
.review-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.review-form legend { padding: 0; margin-bottom: 6px; }
/* star input: radios in order 5→1, shown 1→5 with row-reverse, so hover/checked colours the stars before it */
.rating-input { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rating-input label { font-size: 2.3rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px 3px; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--ink); }
.rating-input:hover input:checked ~ label:not(:hover):not(:hover ~ label) { color: var(--line); }
.rating-input input:focus-visible + label { outline: 3px solid rgba(0, 113, 227, 0.6); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 834px) { body:has(.buy-pill) .header-end > .btn { display: none; } }

/* 首页内容滑到时“浮上来”（参照苹果产品页的手机端效果），脚本在 home.blade.php 的 #scroll-reveal。
   只在 <html> 带 rv-on 时才隐藏：rv-on 由脚本加上，脚本没跑、出错或浏览器不支持时就没有它，内容照常显示。 */
.rv-on .rv { opacity: 0; transform: translateY(30px); }
/* 先快后慢 */
.rv-on .rv.is-in { opacity: 1; transform: none; transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--rv-delay, 0s), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--rv-delay, 0s); }
/* 单独写一条：不认识 :focus-within 的旧浏览器会让整条规则失效，和上面写在一起会连 .is-in 一起失效 */
.rv-on .rv:focus-within { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv-on .rv { opacity: 1; transform: none; transition: none; } }
@media print { .rv-on .rv { opacity: 1 !important; transform: none !important; } }
