/* 小口荷兰语 Dutch Bites — 官网样式
   暖色玻璃质感,延续 app 内设计:米黄底 + 琥珀金 + 橙色品牌色 + 浓缩咖啡棕文字。
   字体刻意只用系统字体栈(含 CJK 兜底),不引 Google Fonts —— 大陆访问会被墙。 */

:root {
  --bg: #faf7f1;
  --bg-alt: #f3ede2;
  --surface: #ffffff;
  --surface-warm: #f5eedd;

  --text: #1f1b16;
  --heading: #3b2a1a;
  --muted: #7a7064;
  --secondary: #8a6a4d;
  /* exact app tokens (src/theme/colors.ts) — used in the phone mockup so the
     mock card matches the real learn screen pixel-for-pixel */
  --textPrimary: #3b2a1a;
  --textHeading: #5c4a3b;
  --textSecondary: #8a6a4d;
  --textSubtle: #a89f92;
  --success: #a7c4a0;

  --brand: #ff8a00;
  --brand-soft: #fff3e6;
  --gold: #f4b921;
  --accent: #c99846;
  --badge: #e97451;

  --border: #ede5d5;
  --border-light: #f4eee2;

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 1px 3px rgba(95, 74, 59, 0.06), 0 4px 16px rgba(95, 74, 59, 0.05);
  --shadow-md: 0 4px 12px rgba(95, 74, 59, 0.08), 0 12px 40px rgba(201, 152, 70, 0.1);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Source Han Sans CN", "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif;
  /* Display face = the app/splash wordmark font (Alibaba PuHuiTi ExtraBold),
     subset to only the glyphs used in headings → 12KB woff2, self-hosted
     (no Google Fonts; China-safe). Falls back to the system stack. */
  --font-display: "PuHuiTi", var(--font);
}

/* Self-hosted, subset display font — see scripts note in DEPLOY.md. */
@font-face {
  font-family: "PuHuiTi";
  src: url("assets/fonts/puhuiti-extrabold-subset.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 全页暖色光晕背景 —— 仿 app BrandGradient 的「晨光 + 暮光」径向叠加。
   固定在视口,内容浮在其上。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 138, 0, 0.1) 0%, rgba(255, 138, 0, 0) 55%),
    radial-gradient(120% 95% at 12% 95%, rgba(233, 116, 81, 0.09) 0%, rgba(233, 116, 81, 0) 60%),
    linear-gradient(180deg, #fbf3e6 0%, var(--bg) 30%, var(--bg) 70%, #f7eede 100%);
}

a { color: inherit; text-decoration: none; }

/* ── 容器 ───────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 玻璃卡片 ───────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

/* ── 顶栏 ───────────────────────────────────────── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--heading);
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
/* "小口" is the brand's orange highlight (matches splash + hero headline) */
.wm-o { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--secondary); font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--heading); }
.nav-cta {
  color: #fff; background: var(--brand);
  padding: 8px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(255, 138, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 9px 22px -7px rgba(255, 138, 0, 0.6); }
@media (max-width: 560px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a.hide-sm { display: none; }
  .nav-cta { padding: 7px 15px; }
}

/* ── Hero ───────────────────────────────────────── */
.hero { padding: 52px 0 52px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--brand-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.8vw, 40px);
  line-height: 1.3;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: 1px;
}
.hero h1 .o { color: var(--brand); }
.hero .lead {
  margin: 16px 0 26px;
  font-size: clamp(14px, 1.7vw, 15.5px);
  color: var(--secondary);
  max-width: 30em;
}
.hero-art { display: flex; justify-content: center; margin-top: 24px; }

/* ── Phone mockup — the PRODUCT is the focus, not the mascots ──── */
.device {
  position: relative;
  /* width tracks the column but is capped by viewport height so the whole
     (tall) phone stays visible on short laptops instead of overflowing */
  width: max(220px, min(290px, calc((100svh - 160px) * 0.45)));
  padding: 9px;                       /* the black bezel */
  border-radius: 52px;                /* iPhone corner radius */
  background: linear-gradient(135deg, #303035 0%, #0c0c0e 42%, #1c1c20 100%); /* graphite titanium */
  box-shadow:
    inset 0 0 0 1.5px #4a4a50,         /* polished titanium edge highlight */
    0 0 0 1px #000,
    0 36px 66px -26px rgba(0, 0, 0, 0.5),
    0 10px 24px -12px rgba(0, 0, 0, 0.4);
}
/* side buttons: left volume + right power */
.device::before {
  content: ""; position: absolute; left: -2px; top: 17%; width: 3px; height: 8%;
  background: #1a1a1d; border-radius: 2px 0 0 2px;
}
.device::after {
  content: ""; position: absolute; right: -2px; top: 21%; width: 3px; height: 12%;
  background: #1a1a1d; border-radius: 0 2px 2px 0;
}
.device-screen {
  position: relative;
  border-radius: 43px;        /* concentric with the 52px frame minus bezel */
  overflow: hidden;
  aspect-ratio: 600 / 1300;   /* true iPhone 19.5:9 */
  background: var(--bg);
}
/* real app screenshot, filling the phone screen */
.screen-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 25px; background: #000; border-radius: 999px; z-index: 6;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-art { order: 0; margin-top: 40px; }   /* phone sits BELOW the copy on mobile */
  .device { width: clamp(238px, 64vw, 278px); }
  .cta { justify-content: center; }
}


/* ── 下载按钮 ───────────────────────────────────── */
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--heading);
  color: #fff7ec;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .t small { font-size: 11px; opacity: 0.8; }
.store-btn .t b { font-size: 16px; font-weight: 700; }
.store-btn[aria-disabled="true"] {
  background: #fffdf8;
  color: var(--secondary);
  box-shadow: 0 1px 2px rgba(95, 74, 59, 0.05), 0 8px 20px -10px rgba(95, 74, 59, 0.2);
  border: 1px solid var(--border);
  cursor: default;
  pointer-events: none;
}
.store-btn[aria-disabled="true"] svg { opacity: 0.55; }
.cta-note { width: 100%; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── 区块 ───────────────────────────────────────── */
section.block { padding: 72px 0; }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 48px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(21px, 2.7vw, 27px); font-weight: 800; letter-spacing: 0.5px; color: var(--heading); }
.section-head p { margin-top: 11px; color: var(--secondary); font-size: 14.5px; }

/* 特性网格 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 30px 28px; }
.feature .ic {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--brand);
  background: linear-gradient(150deg, #fff7ec, var(--brand-soft));
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px -5px rgba(201, 152, 70, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.3px; color: var(--heading); margin-bottom: 7px; }
.feature p { color: var(--secondary); font-size: 13.5px; }

/* ── 页脚 ───────────────────────────────────────── */
footer.site {
  margin-top: 32px;
  border-top: 1px solid var(--border-light);
  background: rgba(247, 238, 222, 0.5);
}
.footer-inner {
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--heading); }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--secondary); font-weight: 500; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-legal { width: 100%; font-size: 13px; color: var(--muted); padding-top: 6px; }
.footer-legal a { color: var(--accent); }
/* center the whole footer on phones */
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; }
  .footer-legal { text-align: center; padding-top: 2px; }
}

/* ── 法律条款页(privacy / terms) ──────────────── */
.legal { padding: 48px 0 24px; }
.legal-card { padding: 40px clamp(24px, 5vw, 56px); }
.legal h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: 0.5px; color: var(--heading); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 10px 0 28px; }
.legal h2 {
  font-size: 19px; font-weight: 700; color: var(--heading);
  margin: 30px 0 12px; padding-top: 6px;
}
.legal h3 { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 18px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 15.5px; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 6px 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--heading); font-weight: 700; }
.legal .lead-box {
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0 8px;
  color: var(--secondary);
  font-size: 15px;
}
.legal hr { border: none; border-top: 1px solid var(--border-light); margin: 32px 0; }
.toc { font-size: 14px; color: var(--secondary); }
.toc a { color: var(--accent); }
.back-home { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; margin-top: 28px; }
.back-home:hover { color: var(--brand); }
