@charset "UTF-8";

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/predictor/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

/* Match the main site's type, colours, spacing and controls. */
:root {
  --font-sans: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --bg: #ffffff;
  --panel: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #e9ebee;
  --line: #e6e8ea;
  --border-strong: #d7d9df;
  --card-border: rgb(22 82 240 / 0.1);
  --ink: #1d1f24;
  --muted: #6b6e7a;
  --faint: #a0a3b1;
  --accent: #1652f0;
  --accent-hover: #0c3ec1;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefe;
  --accent-text: #1652f0;
  --blue: var(--accent-text);
  --up: #30a159;
  --up-soft: #e6f6ec;
  --down: #e23939;
  --down-soft: #fcebeb;
  --warn: #a15c00;
  --warn-soft: #fdf3e1;
  --error-soft: #fcebeb;
  --code-bg: #f4f5f7;
  --chart-price: #f29d38;
  --cal-0: #eceef1;
  --shadow: 0 4px 16px rgb(22 82 240 / 0.07);
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.08);
  --radius: 10px;
  --radius-card: 16px;
  --wrap: 1160px;
  --header-h: 64px;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0b0c10;
  --panel: #17181d;
  --surface-2: #202227;
  --surface-3: #2c2e35;
  --line: #25272e;
  --border-strong: #353841;
  --card-border: #25272e;
  --ink: #ecedee;
  --muted: #9b9da7;
  --faint: #6f727d;
  --accent: #3262ff;
  --accent-hover: #4877ff;
  --accent-ink: #ffffff;
  --accent-soft: #0f1d52;
  --accent-text: #7a98ff;
  --up: #2fbb53;
  --up-soft: #0c2a15;
  --down: #f55b55;
  --down-soft: #33100f;
  --warn: #f0b252;
  --warn-soft: #2b2112;
  --error-soft: #33100f;
  --code-bg: #111216;
  --chart-price: #f5b14f;
  --cal-0: #202227;
  --shadow: none;
  --shadow-sm: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.fine { font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }
.skip { position: absolute; top: -80px; left: 20px; z-index: 30; background: var(--accent); color: var(--accent-ink); padding: 12px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Header: brand, section navigation, then language / theme / account. */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; flex: none; color: var(--accent); }
.links { display: flex; align-self: stretch; gap: 22px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.links a { display: flex; align-items: center; color: var(--muted); }
.links a:hover { color: var(--ink); text-decoration: none; }
/* The Data link jumps to the main site, so it carries a small up-right arrow. */
.jump-arrow { display: inline-block; width: 12px; height: 12px; margin-left: 4px; flex: none; vertical-align: middle; transform: translateY(-2px); opacity: .65; color: currentColor; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; flex: none; }
.language { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 12px; border: 0; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.language:hover { background: var(--surface-3); text-decoration: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-dark-icon { display: none; }
[data-theme='dark'] .theme-light-icon { display: none; }
[data-theme='dark'] .theme-dark-icon { display: inline; }

/* Buttons follow the main site's 40px controls and 32px header action. */
.button, .retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 14px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.button-secondary, .retry { border-color: var(--line); background: var(--panel); color: var(--ink); }
.button-secondary:hover, .retry:hover { border-color: var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.button-small, .retry { height: 32px; padding: 0 12px; font-size: 13px; }
.text-link { color: var(--accent-text); font-size: inherit; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 16px; }

/* Product content uses the same reading width and heading scale as the site. */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .eyebrow { padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); font-weight: 500; margin-bottom: 18px; }
.hero h1 .eyebrow { letter-spacing: normal; line-height: 1.5; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 12px; }
.lead { font-size: 17px; color: var(--muted); max-width: 620px; margin: 18px 0 28px; }
.hero .actions .button { height: 44px; padding: 0 22px; font-size: 15px; }
.hero-preview { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--card-border); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.hero-preview .section-head { order: 2; margin: 16px 0 0; }
.hero-preview .section-head h2 { font-size: 16px; }
.hero-preview .section-head p { font-size: 13px; margin-bottom: 0; }
.demo-video { margin: 0; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 8/5; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.demo-video figcaption { margin-top: 10px; }
.section { padding: 56px 0; }
.section-head { margin-bottom: 24px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 720px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 22px; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.feature .tag { display: inline-block; font: 12px var(--font-mono); color: var(--accent-text); padding: 6px 10px; background: var(--accent-soft); border-radius: 6px; margin-bottom: 14px; }
.feature p { color: var(--muted); margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.step-number { color: var(--accent-text); font: 14px var(--font-mono); padding-top: 2px; }
.steps h3, .steps p { margin: 0; }
.steps p { color: var(--muted); }
.purchase-box { margin-bottom: 32px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 28px 20px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-card); background: var(--panel); }
.plan-card h3 { font-size: 18px; }
.plan-description { min-height: 3.2em; color: var(--muted); font-size: 14px; }
.plan-card .price { white-space: nowrap; }
.price-period { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan-detail { min-height: 3.2em; font-size: 13px; color: var(--muted); }
.plan-card .button { width: 100%; margin-top: auto; padding: 0 10px; }
.plan-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.plan-actions .button { margin-top: 0; }
.plan-actions .button[hidden] { display: none; }
.plan-featured { border: 2px solid var(--accent); padding: 27px 19px 19px; background: var(--accent-soft); }
.plan-badge { position: absolute; top: -14px; left: 16px; padding: 3px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.pricing-footer { margin-top: 24px; }
.pricing-footer .fine { max-width: 800px; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } .plan-description, .plan-detail { min-height: 0; } }
.purchase ul { list-style: none; padding: 0; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.purchase li { padding: 8px 0; }
.purchase li::before { content: '✓'; color: var(--accent-text); margin-right: 12px; }
.price { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin: 16px 0; }
.status { font-size: 14px; color: var(--muted); margin-top: 16px; overflow-wrap: anywhere; }
.status.error { color: var(--down); }
.faq { max-width: var(--wrap); }
details { border-top: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-size: 15px; font-weight: 600; padding-right: 20px; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 720px; }
.risk { border: 1px solid var(--down); border-left-width: 3px; border-radius: var(--radius); padding: 20px 22px; background: var(--down-soft); color: var(--down); }
.risk h3 { color: inherit; }
.risk p { color: inherit; font-size: 14px; margin-bottom: 0; }
.legal, .success { max-width: 828px; padding-top: 48px; padding-bottom: 64px; }
.legal h2 { margin-top: 32px; }
.legal p { color: var(--muted); }
.order-result { margin-top: 24px; padding: 22px; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.order-result h2 { font-size: 18px; }
.device-line { overflow-wrap: anywhere; }
.order-result .release-device { margin: 4px 0 8px; }
.license-code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font: 16px var(--font-mono); color: var(--accent-text); padding: 18px 0; user-select: all; }
.download-list { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; list-style: none; padding: 0; margin: 20px 0 0; }
.download-list li { max-width: 100%; }
.download-list .button { height: auto; min-height: 44px; padding: 10px 18px; white-space: normal; overflow-wrap: anywhere; }
.success > .retry { margin: 16px 0; }
.setup-guide { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.setup-guide ol { padding-left: 24px; }
.setup-guide li { padding-left: 8px; margin: 24px 0; }
.setup-guide li::marker { color: var(--accent-text); font-weight: 600; }
.setup-guide p { color: var(--muted); }
.setup-guide a { overflow-wrap: anywhere; }
noscript p { padding: 20px; color: var(--warn); }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 20px; }
.footer a { color: var(--muted); font-weight: 500; }
.footer a:hover { color: var(--ink); }
.footer-contact { margin: 6px 0 0; }
.footer-contact a { color: var(--accent-text); overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  html { scroll-padding-top: 120px; }
  .header-inner { height: auto; padding-top: 10px; flex-wrap: wrap; gap: 4px 12px; }
  .header .brand { flex: 1; min-width: 0; }
  .links { order: 3; width: 100%; height: 40px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
}
@media (max-width: 860px) {
  .hero-grid, .features { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 28px; }
  .hero-preview { max-width: 620px; width: 100%; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header .brand { font-size: 16px; }
  .header-tools { gap: 4px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 40px 0; }
  .hero .actions .button { padding: 0 16px; }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .steps p { grid-column: 2; }
  .price { font-size: 28px; }
  .legal, .success { padding-top: 36px; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .retry { transition: none; }
}
