
/* ==========================================================================
   RentAHuman.ai — V7 design system (mobile-first)
   1 tokens · 2 base · 3 video background · 4 glass levels · 5 layout
   6 components · 7 sections · 8 overlays · 9 motion & responsive
   ========================================================================== */

/* 1 ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Palette A */
  --navy: #101C2B;
  --ice: #F3F6F5;
  --teal: #00BFA5;
  --teal-ink: #00927F;          /* teal for text and numerals */
  --ink: var(--navy);
  --ink-2: #526477;

  --line: rgba(82, 100, 119, 0.24);
  --hair: rgba(82, 100, 119, 0.16);
  --tint: rgba(16, 28, 43, 0.06);

  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --pad: 16px;
  --gap: 12px;
  --header-h: 56px;

  --fs-h1: clamp(32px, 9.4vw, 42px);
  --fs-h2: 22px;
  --fs-h3: 16px;
  --fs-body: 14.5px;
  --fs-small: 12.5px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2 ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  display: flex;
  justify-content: center;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(0, 191, 165, 0.55); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* 3 ── Video background (unchanged: full-bleed video + 22% white veil) ───── */
.video-wrapper {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #f8fafc;
}
.background-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.video-wrapper::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.22); }

/* Opening animation: full-screen, plays once per session, fades out */
.intro { position: fixed; inset: 0; z-index: 200; display: none; background: var(--navy); opacity: 1; transition: opacity 0.5s ease; }
html.intro-on .intro { display: block; }
html.intro-on .intro.is-out { opacity: 0; pointer-events: none; }
.intro-video { display: block; width: 100%; max-width: 440px; height: 100vh; height: 100dvh; margin: 0 auto; object-fit: cover; }
.intro-skip { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, calc(50% - 220px + 12px)); min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(243, 246, 245, 0.55); border-radius: 999px; background: rgba(16, 28, 43, 0.38); color: var(--ice); font-size: 13px; font-weight: 650; opacity: 0; transition: opacity 0.3s ease; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.lang-ready .intro-skip { opacity: 1; }

/* 4 ── Glass levels ───────────────────────────────────────────────────────── */
/* L1 Signature: hero step rail, closing CTA. Clearest edge, richest light. */
.g1 {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 42%), rgba(243, 246, 245, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(82, 100, 119, 0.14), 0 2px 4px rgba(16, 28, 43, 0.05), 0 14px 32px rgba(16, 28, 43, 0.12), 0 32px 64px -20px rgba(16, 28, 43, 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}
/* L2 Premium: task cards, steps, categories, figure. Reads first. */
.g2 {
  background: rgba(243, 246, 245, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(16, 28, 43, 0.05), 0 10px 24px -6px rgba(16, 28, 43, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* L3 Minimal: section heads, FAQ, notes, footer. Almost no weight. */
.g3 {
  background: rgba(243, 246, 245, 0.5);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 5 ── Layout ─────────────────────────────────────────────────────────────── */
.shell { position: relative; width: 100%; max-width: 440px; min-height: 100vh; }
.page { position: relative; z-index: 1; transition: opacity 0.25s ease; }
html:not(.lang-ready) .page { opacity: 0; }
.section { padding: 44px var(--pad) 0; }
.section > * + * { margin-top: var(--gap); }
#jobs, #trust, #faq { content-visibility: auto; contain-intrinsic-size: auto 520px; }

.sec-head { padding: 16px; }
.sec-no { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-num); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.sec-no::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.sec-head h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 750; letter-spacing: -0.01em; }
.sec-head p { margin-top: 6px; color: var(--ink-2); text-wrap: pretty; }

/* 6 ── Components ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 15px; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn--block { display: flex; width: 100%; }
.btn--primary {
  min-height: 56px; color: var(--navy); font-size: 16px;
  background: linear-gradient(180deg, #12CDB2, var(--teal));
  box-shadow: 0 8px 20px rgba(0, 191, 165, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.btn--primary:active { box-shadow: 0 3px 10px rgba(0, 191, 165, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38); }
/* roles: primary (teal) = move forward on this page · dark (navy) = open a task detail · external (outlined, arrow up-right) = leaves this site */
.btn--external { background: rgba(243, 246, 245, 0.55); border: 1.5px solid var(--navy); color: var(--navy); }
.btn--external:active { background: rgba(16, 28, 43, 0.08); }
.btn--external .ic { transition: transform 0.15s ease; }
.btn--external:active .ic { transform: translate(2px, -2px); }
.btn--dark:active .ic { transform: translateX(3px); }
.btn--dark .ic { transition: transform 0.15s ease; }
/* ghost: quiet bordered button used inside cards and dialogs */
.btn--ghost { background: rgba(243, 246, 245, 0.7); border-color: var(--line); color: var(--navy); }
.btn--dark { min-height: 44px; padding: 8px 16px; background: var(--navy); color: var(--ice); font-size: 14px; box-shadow: 0 6px 14px rgba(16, 28, 43, 0.22); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.3; }
.tag--outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: var(--header-h); padding: 0 14px;
  background: rgba(243, 246, 245, 0.72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-ai { padding: 1px 6px; border-radius: 6px; background: var(--navy); color: var(--ice); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar .btn { min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 13px; white-space: nowrap; }

.lang-switcher { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 6px; min-width: 64px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(243, 246, 245, 0.7); font-size: 13px; font-weight: 650; }
.lang-trigger .ic { width: 14px; height: 14px; margin-left: auto; transition: transform 0.2s ease; }
.lang-switcher.open .lang-trigger .ic { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  display: none; width: 176px; max-width: calc(100vw - 24px); max-height: min(60vh, 340px); overflow-y: auto; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(243, 246, 245, 0.98);
  box-shadow: 0 16px 40px rgba(16, 28, 43, 0.18);
}
.lang-switcher.open .lang-menu { display: block; }
.lang-option { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; font-size: 14px; font-weight: 550; }
.lang-option.active { background: rgba(0, 191, 165, 0.14); font-weight: 700; }

/* 7 ── Sections ───────────────────────────────────────────────────────────── */
/* hero: headline → open video stage (steps live inside the frame) → CTA row */
.hero { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.hero-head { padding: 20px var(--pad) 28px; background: linear-gradient(180deg, rgba(243, 246, 245, 0.8) 0%, rgba(243, 246, 245, 0.55) 62%, rgba(243, 246, 245, 0) 100%); }
.hero-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mark { width: 40px; height: 40px; flex: none; }
.eyebrow { display: grid; gap: 1px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); }
.eyebrow::before { content: "AI × HUMAN"; font-family: var(--font-num); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--navy); }
/* two-tier headline: AI line (quiet, square marker) joined to the human line (loud, ring marker) */
.hero h1 { position: relative; display: grid; gap: 4px; padding-left: 26px; letter-spacing: -0.03em; text-wrap: balance; color: var(--navy); }
.hero h1::before { content: ""; position: absolute; left: 5px; top: 0.62em; bottom: 0.62em; width: 2px; background: linear-gradient(180deg, var(--navy), var(--teal)); }
.h1-row { position: relative; display: block; font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; }
.h1-row::before { content: ""; position: absolute; left: -26px; top: 0.34em; box-sizing: border-box; width: 12px; height: 12px; }
.h1-ai { font-size: clamp(20px, 5.8vw, 25px); color: var(--ink-2); }
.h1-ai::before { border-radius: 4px; background: var(--navy); }
.h1-hu { font-size: var(--fs-h1); }
.h1-hu::before { top: 0.4em; border-radius: 50%; border: 3px solid var(--teal); }
.hero-desc { margin-top: 14px; max-width: 30em; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
/* stage: untreated video window with corner brackets; the step rail sits on its lower edge */
.stage { position: relative; flex: 1 1 auto; min-height: 150px; margin: 0 var(--pad); display: flex; align-items: flex-end; padding: 10px; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ice); filter: drop-shadow(0 1px 2px rgba(16, 28, 43, 0.35)); pointer-events: none; }
.corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }
.rail-wrap { width: 100%; padding: 6px 6px 8px; border-radius: var(--r-lg); }
.rail { display: flex; counter-reset: s; }
.rail li { position: relative; flex: 1 1 0; min-width: 0; }
.rail-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 52px; padding: 6px 0 2px; border: 0; background: none; text-align: center; font-size: 11px; font-weight: 650; line-height: 1.25; color: var(--ink-2); overflow-wrap: anywhere; counter-increment: s; }
.rail-btn::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); color: var(--navy); font-family: var(--font-num); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; position: relative; z-index: 1; transition: background 0.2s ease, border-color 0.2s ease; }
.rail-btn.is-active { color: var(--navy); font-weight: 750; }
.rail-btn.is-active::before { background: var(--teal); border-color: transparent; box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.22); }
.rail li.is-done .rail-btn::before { background: var(--navy); border-color: transparent; color: var(--ice); }
.rail li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 15px); width: calc(100% - 30px); height: 1px; background: var(--line); pointer-events: none; }
.rail li.is-done:not(:last-child)::after { height: 2px; top: 16.5px; background: var(--navy); }
.rail-cap { min-height: 3em; padding: 2px 6px 0; font-size: var(--fs-small); line-height: 1.5; color: var(--navy); text-align: center; text-wrap: balance; }
/* CTA row: no card, only a soft ice veil rising from the bottom */
.hero-cta { display: grid; gap: 8px; padding: 18px var(--pad) 8px; background: linear-gradient(0deg, rgba(243, 246, 245, 0.78) 0%, rgba(243, 246, 245, 0.5) 70%, rgba(243, 246, 245, 0) 100%); }
.cta-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.cta-row .btn { padding-left: 12px; padding-right: 12px; }
.hero-note { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); text-align: center; }

/* flow */
.fig { position: relative; overflow: hidden; padding: 0; }
.fig-media { position: relative; aspect-ratio: 16 / 10; background: #dfe6e8; }
.fig-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fig-media .tag { position: absolute; top: 12px; left: 12px; background: rgba(243, 246, 245, 0.88); }
.fig figcaption { padding: 12px 16px 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

.steps { padding: 8px 16px; }
.steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 12px 0; counter-increment: step; }
.steps { counter-reset: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--ice); font-family: var(--font-num); font-size: 14px; font-weight: 750; position: relative; z-index: 1; }
.steps li:last-child::before { background: var(--teal); color: var(--navy); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 44px; bottom: -12px; width: 1px; background: var(--line); }
.steps h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; }
.steps p { margin-top: 2px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* categories: one card, four rows */
.jobs { padding: 4px 16px; }
.job { padding: 16px 0; }
.job + .job { border-top: 1px solid var(--hair); }
.job-head { display: flex; align-items: center; gap: 12px; }
.job-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--tint); color: var(--navy); }
.job-ic .ic { width: 20px; height: 20px; }
.job h3 { flex: 1; min-width: 0; font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; }
.job-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); }
.job ul { margin: 10px 0 0 48px; display: grid; gap: 6px; }
.job li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.job li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--ink-2); }

/* task market */
.tools { display: grid; gap: 10px; padding: 12px 12px 6px; }
.tools .chips { margin: 0 -12px; padding: 2px 12px; scroll-padding: 0 12px; }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 14px 0 42px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(243, 246, 245, 0.84);
  font-size: 16px; /* >=16px stops iOS zoom-on-focus */
  -webkit-appearance: none; appearance: none; outline: none;
  box-shadow: 0 1px 2px rgba(16, 28, 43, 0.05), 0 8px 20px -8px rgba(16, 28, 43, 0.14);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.2), 0 8px 20px -8px rgba(16, 28, 43, 0.14); }
.search input::placeholder { color: var(--ink-2); opacity: 0.85; }
.chips { display: flex; gap: 8px; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); -webkit-overflow-scrolling: touch; }
.chip { flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(243, 246, 245, 0.7); font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: background 0.2s ease, color 0.2s ease; }
.chip-n { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.chip.is-active { background: var(--teal); border-color: transparent; color: var(--navy); font-weight: 700; }

.task-list { display: grid; gap: var(--gap); }
.task { display: flex; flex-direction: column; gap: 12px; padding: 16px; cursor: pointer; transition: transform 0.15s ease; }
.task:active { transform: scale(0.99); }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-cat { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-2); }
.task-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--tint); color: var(--navy); }
.task-ic .ic { width: 16px; height: 16px; }
.task-title { font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -0.005em; color: var(--navy); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.task-sum { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.meta li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.meta .ic { margin-top: 1px; flex: none; }
.price-box { display: grid; gap: 2px; min-width: 0; }
.price-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); }
.meta .ic { width: 15px; height: 15px; }
.task-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.price { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; color: var(--teal-ink); }
.price-sym { font-size: 15px; font-weight: 650; }
.price-amt { font-size: 26px; line-height: 1; font-weight: 750; letter-spacing: -0.03em; }
.price-unit { font-size: 12.5px; font-weight: 650; color: var(--ink-2); letter-spacing: 0; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; padding-top: 2px; border-top: 1px solid var(--hair); font-size: var(--fs-small); color: var(--ink-2); }
.link-btn { min-height: 44px; margin: -8px 0; padding: 0 4px; border: 0; background: none; font-size: var(--fs-small); font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.link-btn[hidden] { display: none; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 28px 20px; text-align: center; color: var(--ink-2); }
.empty-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--navy); }
.empty-ic .ic { width: 22px; height: 22px; }
.more-link { display: flex; }

/* transparency */
.trust { padding: 4px 16px 16px; background: rgba(243, 246, 245, 0.68); }
.trust-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.trust-row + .trust-row { border-top: 1px solid var(--hair); }
.trust-row dt { min-width: 0; font-size: 14px; font-weight: 600; }
.trust-row dd { flex: none; max-width: 52%; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.3; text-align: center; }
.badge--sample { background: var(--tint); color: var(--navy); }
.badge--none { border: 1px solid var(--hair); color: var(--ink-2); }
.badge--ext { background: var(--navy); color: var(--ice); }
.policy { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.policy .ic { margin-top: 2px; width: 18px; height: 18px; color: var(--navy); }

/* faq */
.faq { display: grid; gap: 8px; }
.faq details { overflow: hidden; background: rgba(243, 246, 245, 0.64); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; font-size: 15px; font-weight: 650; line-height: 1.4; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.2s ease; color: var(--ink-2); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 16px 16px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* closing CTA */
.cta { position: relative; padding: 28px 20px 20px; display: grid; gap: 16px; text-align: left; }
.cta h3 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.hero-rule { display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--teal); }
.cta .hero-note { text-align: left; }

.footer { margin: 32px var(--pad) 0; padding: 12px 16px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--navy); text-decoration: none; }
.page-end { height: 24px; }

/* 8 ── Overlays (same language as the cards) ──────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 28, 43, 0.36); }
.overlay.is-open { display: flex; }
.overlay--top { z-index: 120; }
.overlay--sheet { align-items: flex-end; padding: 0; }
.dialog {
  width: 100%; max-width: 400px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px; border-radius: var(--r-xl); background: var(--ice);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(82, 100, 119, 0.14), 0 24px 60px rgba(16, 28, 43, 0.28);
}
.dialog--sheet { display: flex; flex-direction: column; max-width: 440px; max-height: 90vh; max-height: 90dvh; padding: 0; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.dialog--sheet .dialog-head { padding: 14px 16px 6px 20px; }
.dialog-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 16px; }
.dialog--sheet .dialog-actions { margin: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); background: rgba(243, 246, 245, 0.98); }
.dialog--sheet h3 { margin-top: 4px; }
.m-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.m-facts dt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); }
.m-facts dd { margin-top: 2px; font-size: 14px; font-weight: 650; line-height: 1.4; color: var(--navy); overflow-wrap: anywhere; }
.m-h { margin-top: 18px; font-size: 13px; font-weight: 750; letter-spacing: 0.02em; color: var(--navy); }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.icon-btn .ic { width: 22px; height: 22px; }
.dialog h3 { margin-top: 12px; font-size: 20px; line-height: 1.3; font-weight: 750; letter-spacing: -0.01em; color: var(--navy); overflow-wrap: anywhere; }
.dialog-body { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.dialog-actions { margin-top: 16px; display: grid; gap: 8px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.host { display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--tint); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.modal-author { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.m-price { display: grid; gap: 2px; margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.m-price .price-amt { font-size: 30px; }
.task-desc { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--navy); white-space: pre-line; overflow-wrap: anywhere; }
.notice { margin-top: 14px; padding: 12px; border-radius: var(--r-sm); background: var(--tint); font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.notice strong { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--navy); }

/* 9 ── Motion & responsive ────────────────────────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

@media (max-width: 374px) {
  :root { --pad: 14px; --fs-h1: 30px; }
  .topbar { padding: 0 10px; }
  .brand { font-size: 16px; }
  .lang-trigger { min-width: 56px; padding: 0 8px; }
  .topbar .btn { padding: 0 10px; }
  .price-amt { font-size: 24px; }
  .cta-row { gap: 8px; }
}
@media (max-height: 700px) {
  :root { --fs-h1: clamp(26px, 8vw, 32px); }
  .hero-head { padding: 12px var(--pad) 16px; }
  .hero-brand { margin-bottom: 8px; }
  .mark { width: 32px; height: 32px; }
  .h1-ai { font-size: clamp(17px, 5vw, 20px); }
  .hero-desc { margin-top: 8px; font-size: 13px; line-height: 1.45; }
  .stage { min-height: 120px; padding: 8px; }
  .rail-wrap { padding: 4px 4px 6px; }
  .rail-btn { min-height: 48px; }
  .rail li:not(:last-child)::after { top: 15px; }
  .rail li.is-done:not(:last-child)::after { top: 14.5px; }
  .rail-cap { min-height: 2.6em; font-size: 12px; }
  .hero-cta { padding-top: 12px; gap: 6px; }
  .btn--primary, .btn--external { min-height: 46px; }
  .hero-note { font-size: 11.5px; line-height: 1.4; }
}
@media (min-width: 441px) {
  .shell { box-shadow: 0 0 40px rgba(16, 28, 43, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .intro, .page, .btn, .task, .chip, .faq summary .ic, .lang-trigger .ic { transition: none; }
}

