/*
 * QuoFast site styles. Colours and type follow the app itself (src/theme/tokens.ts in the app
 * repo): brand blue, the teal of the logo's bolt, and Sora over Inter.
 *
 * Fonts are served from this site rather than Google Fonts: the page promises no tracking, and a
 * third-party font request hands every visitor's IP address to someone else. Both are latin
 * subsets; Chinese falls through to the system's own CJK face.
 */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/sora.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b1b3f;
  --text: #334155;
  --muted: #5b6b85;
  --blue: #2563eb;
  --blue-600: #0a4ce6;
  --blue-deep: #0838b8;
  --blue-soft: #eaf0fd;
  --teal: #14c6b3;
  --teal-ink: #0a7e73;
  --bg: #f2f6fc;
  --line: #dde5f2;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 63, .06), 0 2px 8px rgba(11, 27, 63, .05);
  --shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 12px 32px rgba(11, 27, 63, .10);
  --shadow-lg: 0 30px 60px -20px rgba(8, 56, 184, .38), 0 18px 36px -18px rgba(11, 27, 63, .32);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-head: "Sora", var(--font-body);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
/* Set in <head> before paint when the page will switch language, so nobody sees English flash first. */
html.i18n-pending body { opacity: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
/* Balanced headings: no single word left stranded on the last line. */
h1, h2, h3, .section-head .sub, .fine, .plans-note { text-wrap: balance; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 {
  letter-spacing: 0; line-height: 1.3;
  /* Chinese has no spaces, so balancing alone splits words like 报价|单. Only break at punctuation. */
  word-break: keep-all;
}
:focus-visible { outline: 3px solid #8fb0f7; outline-offset: 3px; border-radius: 10px; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.icon { width: 20px; height: 20px; flex: none; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-soft { background: var(--blue-soft); color: var(--blue-deep); }
.btn-soft:hover { background: #dbe5fb; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em;
}
.brand-mark { width: 28px; height: 29px; color: var(--blue); }
.nav-links { display: none; gap: 28px; margin-left: 20px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-actions .btn { display: none; }
.lang { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--bg); }
.lang button {
  min-width: 44px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
@media (min-width: 520px) { .nav-actions .btn { display: inline-flex; } }
@media (min-width: 940px) { .nav-links { display: flex; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 36px 0 56px;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(37, 99, 235, .15), transparent 62%),
    radial-gradient(620px 420px at 6% 96%, rgba(20, 198, 179, .13), transparent 62%),
    linear-gradient(180deg, #f5f8fe 0%, #fff 100%);
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  color: var(--blue-deep); font-size: 13px; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20, 198, 179, .2); }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 5.6vw, 54px); font-weight: 700; }
.hero .lede { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 2vw, 19px); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.stores.android-first .store[data-store="android"] { order: -1; }
.store { display: inline-flex; border-radius: 10px; transition: box-shadow .2s ease; }
.store:hover { box-shadow: 0 10px 22px -10px rgba(11, 27, 63, .55); }
.store img { width: auto; height: 48px; }
.fine { margin-top: 14px; color: var(--muted); font-size: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.trust .icon { width: 18px; height: 18px; color: var(--blue); }

.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 8px; }
.phone {
  position: relative; margin: 0; padding: 8px;
  border-radius: 38px; background: var(--ink); box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; border-radius: 31px; }
.phone-front { z-index: 2; width: min(236px, 58vw); transform: translateX(22%); }
.phone-back {
  position: absolute; z-index: 1; left: 50%; top: 34px;
  width: min(200px, 48vw); opacity: .96;
  transform: translateX(-96%) rotate(-7deg);
}
.float-chip {
  position: absolute; z-index: 3; left: 0; bottom: 12%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.35;
}
.float-chip .tick {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20, 198, 179, .16); color: var(--teal-ink);
}
.float-chip .tick .icon { width: 18px; height: 18px; }
.float-chip strong { display: block; color: var(--ink); font-size: 14px; }
.float-chip span { color: var(--muted); }

@media (min-width: 960px) {
  .hero { padding: 72px 0 100px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .phone-front { width: 272px; transform: translateX(24%); }
  .phone-back { width: 236px; top: 44px; }
  .float-chip { left: 2%; bottom: 16%; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--bg); }
.section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.kicker { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:lang(zh-Hans) .kicker { letter-spacing: .14em; }
.section-head h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); }
.section-head .sub { margin-top: 12px; color: var(--muted); font-size: 17px; }
@media (min-width: 960px) { .section { padding: 104px 0; } .section-head { margin-bottom: 56px; } }

/* Steps */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.step-icon .icon { width: 24px; height: 24px; }
.step-num { color: #d9e3f5; font-family: var(--font-head); font-size: 42px; font-weight: 700; line-height: 1; }
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Features */
.features { display: grid; gap: 20px; }
.feature {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
.feature-copy { padding: 28px 28px 0; }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff;
}
.feature h3 { font-size: 21px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.feature-shot {
  position: relative; flex: 1 0 auto; height: 270px; margin-top: 26px; padding: 0 28px; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%);
}
.feature-shot img {
  width: 100%; max-width: 340px; margin: 0 auto;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 16px 36px -14px rgba(11, 27, 63, .3);
}
/* Fade the cropped screenshot into the card instead of cutting it off with a hard edge. */
.feature-shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 64px;
  background: linear-gradient(180deg, rgba(234, 240, 253, 0), var(--blue-soft));
}
@media (min-width: 800px) { .features { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 960px) { .feature-shot { height: 310px; } }

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 1020px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.plan-best { border: 2px solid var(--blue); box-shadow: 0 28px 56px -28px rgba(37, 99, 235, .5); }
.plan-badge {
  position: absolute; top: -13px; left: 26px;
  padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.plan-name { color: var(--muted); font-size: 15px; font-weight: 600; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan-price .amount { color: var(--ink); font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-caption { min-height: 22px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.plan-caption.save { color: var(--teal-ink); font-weight: 600; }
.plan ul { display: grid; flex: 1; align-content: start; gap: 12px; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--teal-ink); }
.plan .btn { width: 100%; }
.plans-note { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details { padding: 0 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 0; list-style: none; cursor: pointer;
  color: var(--ink); font-size: 16px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); font-size: 15px; }
.faq-more { margin-top: 26px; color: var(--muted); font-size: 15px; text-align: center; }
.faq-more a { font-weight: 600; }

/* Closing call to action */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-600) 55%, #1e8ff0 100%);
}
.cta::before {
  content: ""; position: absolute; top: -240px; right: -180px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 198, 179, .38), transparent 65%);
}
.cta-inner { position: relative; padding-block: 80px; text-align: center; }
.cta-mark { width: 54px; height: 56px; margin: 0 auto 22px; color: #fff; }
.cta h2 { max-width: 15em; margin: 0 auto; color: #fff; font-size: clamp(28px, 4.4vw, 44px); }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .88); font-size: 17px; }
.cta .stores { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 28px; }
.footer .brand { font-size: 17px; }
.footer .brand-mark { width: 22px; height: 23px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--blue); }
.footer small { color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
