/* You Translate — landing styles */
:root {
  --bg: #faf8f5;
  --bg-2: #f3efe8;
  --fg: #16140f;
  --fg-2: #5a564d;
  --fg-3: #8a8478;
  --line: rgba(22, 20, 15, 0.08);
  --line-2: rgba(22, 20, 15, 0.15);
  --accent: oklch(63% 0.18 32);
  --accent-soft: oklch(95% 0.04 32);
  --accent-fg: #fff;
  --user-bubble: oklch(67% 0.16 250);
  --user-bubble-fg: #fff;
  --bot-bubble: #ffffff;
  --bot-bubble-fg: #16140f;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --shadow-sm: 0 1px 2px rgba(22,20,15,0.04), 0 1px 1px rgba(22,20,15,0.02);
  --shadow: 0 1px 2px rgba(22,20,15,0.04), 0 8px 24px -8px rgba(22,20,15,0.08);
  --shadow-lg: 0 20px 60px -20px rgba(22,20,15,0.18);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Inter Tight", "Inter", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="midnight"] {
  --bg: #0e0d0a;
  --bg-2: #181613;
  --fg: #f5f1e9;
  --fg-2: #b3ada1;
  --fg-3: #6f6a5e;
  --line: rgba(245, 241, 233, 0.08);
  --line-2: rgba(245, 241, 233, 0.16);
  --accent: oklch(72% 0.18 60);
  --accent-soft: oklch(28% 0.04 60);
  --bot-bubble: #25221c;
  --bot-bubble-fg: #f5f1e9;
}

[data-theme="paper"] {
  --bg: #ffffff;
  --bg-2: #f6f6f4;
  --fg: #0a0a0a;
  --fg-2: #4a4a4a;
  --fg-3: #888;
  --line: rgba(0,0,0,0.08);
  --line-2: rgba(0,0,0,0.18);
  --accent: oklch(58% 0.18 145);
  --accent-soft: oklch(95% 0.04 145);
}

[data-density="cozy"] {
  --pad: clamp(16px, 3vw, 36px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ───────── Nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: url("logo/mini.svg") center / contain no-repeat;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.lang-picker {
  position: relative;
}
.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 12px 7px 14px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.lang-picker-btn:hover { background: var(--bg-2); }
.lang-picker-btn .chev {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.5;
  transition: transform .2s;
}
.lang-picker-btn[aria-expanded="true"] .chev {
  transform: rotate(-135deg) translateY(0);
}
.lang-picker-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg-2);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: menuIn .15s ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-menu li { list-style: none; padding: 0; margin: 0; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}
.lang-menu a:hover { background: var(--bg-2); }
.lang-menu a[aria-selected="true"] { background: var(--bg-2); }
.lang-menu .check-mark {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: transparent;
  border-color: var(--line-2);
  color: var(--fg);
}
.btn-secondary:hover {
  background: var(--bg-2);
}
/* ───────── Hero ───────── */
.hero {
  padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero-title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}
.hero-title .quiet {
  color: var(--fg-3);
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg-2);
  max-width: 640px;
  text-wrap: pretty;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  font-size: 13px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .check {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ───────── Section ───────── */
.section {
  padding: clamp(56px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.section.no-border { border-top: none; }
.section.alt { background: var(--bg-2); }

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: pretty;
}
.sec-title .accent,
.sec-title i { color: var(--accent); font-style: italic; }
.sec-sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--fg-2);
  max-width: 620px;
  line-height: 1.55;
}

/* ───────── Steps ───────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  transition: background .2s;
}
.step:hover { background: var(--bg-2); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.step-t {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.step-d {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .steps { grid-template-columns: 1fr; }
}

/* ───────── Bot demo ───────── */
.bot-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .bot-section { grid-template-columns: 1fr; }
}

.phone {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-screen {
  background: #17212b;
  background-image:
    radial-gradient(circle at 18% 14%, rgba(60, 90, 130, 0.35), transparent 55%),
    radial-gradient(circle at 82% 88%, rgba(30, 55, 90, 0.4), transparent 55%);
  border-radius: 26px;
  overflow: hidden;
  height: 620px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.phone-header {
  background: rgba(23, 33, 43, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-back {
  font-size: 18px;
  color: #6ab3f3;
  font-weight: 400;
}
.phone-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #16140F url("logo/mini.svg") center / 62% no-repeat;
  flex-shrink: 0;
}
.phone-title {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.phone-name { font-size: 14px; font-weight: 600; color: #fff; }
.phone-status-text { font-size: 11px; color: rgba(255,255,255,0.5); }

.chat {
  flex: 1;
  /* Without min-height:0 a flex item won't shrink below its content height in
     Safari, so the whole (2000px+) chat spills out of the phone instead of
     clipping/scrolling. This keeps it bounded to the phone screen. */
  min-height: 0;
  overflow: hidden;
  padding: 14px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* One message = bubble (+ optional inline keyboard). */
.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 94%;
  animation: bubbleIn .35s cubic-bezier(.2,.8,.2,1) backwards;
}
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.bot { align-self: flex-start; align-items: stretch; min-width: 220px; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
  position: relative;
  display: inline-block;
}
.bubble.user {
  background: linear-gradient(180deg, #4ea3e5 0%, #3e89c8 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  /* room for the "HH:MM ✓✓" timestamp (wider than the bot's "HH:MM") so it
     never overlaps short messages like "/start". */
  padding-right: 68px;
}
.bubble.bot {
  background: #1e2c3a;
  color: #ecf3fa;
  border-bottom-left-radius: 4px;
  padding-right: 50px;
}
.bubble-time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.bubble.bot .bubble-time { color: rgba(236,243,250,0.4); }

/* Inline keyboard */
.kb { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.kb-row { display: flex; gap: 4px; }
.kb-btn {
  flex: 1;
  background: #1e2c3a;
  color: #ecf3fa;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.kb-btn.primary { background: #2c4660; color: #cfe6fb; }

.typing {
  align-self: flex-start;
  background: #1e2c3a;
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(236,243,250,0.4);
  animation: typingDot 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.bot-callouts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bot-callout {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.bot-callout-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  width: 32px; height: 32px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.bot-callout h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.bot-callout p {
  margin: 0;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ───────── Features ───────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: clamp(24px, 3vw, 36px);
}
.feature-glyph {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.feature-glyph svg { width: 18px; height: 18px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.feature p {
  color: var(--fg-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ───────── Languages ───────── */
.lang-tier {
  margin-top: 32px;
}
.lang-tier-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.lang-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all .15s;
}
.lang-card:hover {
  border-color: var(--line-2);
  background: var(--bg-2);
}
.lang-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-native {
  font-size: 15px;
  font-weight: 500;
}
.lang-name {
  font-size: 12px;
  color: var(--fg-3);
}
.lang-more {
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--fg-3);
  background: transparent;
  border: 1px dashed var(--line-2);
}

/* ───────── Pricing ───────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.packs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.packs-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.pack {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all .15s;
  position: relative;
}
.pack:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.pack.featured {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}
.pack.featured .pack-tokens-num,
.pack.featured .pack-price { color: var(--bg); }
.pack.featured .pack-note,
.pack.featured .pack-tokens-label { color: rgba(255,255,255,0.6); }
.pack-tokens {
  display: flex;
  flex-direction: column;
}
.pack-tokens-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}
.pack-tokens-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 2px;
}
.pack-note {
  font-size: 13px;
  color: var(--fg-2);
}
.pack-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.pack-tag {
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
}

.rate-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  max-width: 720px;
}
@media (max-width: 580px) { .rate-cards { grid-template-columns: 1fr; } }
.rate-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.rate-card-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.rate-card-body { display: flex; flex-direction: column; gap: 4px; }
.rate-card-label { font-size: 13px; color: var(--fg-2); }
.rate-card-price { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.rate-card-price strong { font-weight: 400; color: var(--fg); }
.rate-card-price span { font-family: var(--font-sans); font-size: 13px; color: var(--fg-3); margin-left: 4px; }

.calc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all .15s;
}
.calc-check:hover { background: var(--bg-2); }
.calc-check input { position: absolute; opacity: 0; pointer-events: none; }
.calc-check-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  transition: all .15s;
}
.calc-check input:checked + .calc-check-box {
  background: var(--fg);
  border-color: var(--fg);
}
.calc-check input:checked + .calc-check-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: 2px solid var(--bg);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.calc-check-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.calc-check-rate {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.calc-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
}
.calc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-label {
  font-size: 13px;
  color: var(--fg-2);
  font-weight: 500;
}
.calc-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-2);
  border-radius: 999px;
  outline: none;
  border: 1px solid var(--line);
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--fg);
}
.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--fg);
}
.calc-total {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.calc-total-label {
  font-size: 13px;
  color: var(--fg-2);
}
.calc-total-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
.calc-total-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.calc-rate {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* ───────── FAQ ───────── */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font: inherit;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  color: var(--fg);
  transition: color .15s;
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all .25s;
}
.faq-q[aria-expanded="true"] .faq-toggle {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 64px 0 0;
}
.faq-a.open {
  max-height: 400px;
  padding-bottom: 22px;
}

/* ───────── Privacy ───────── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.privacy-block {
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--bg);
}
.privacy-block h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.privacy-block p {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .privacy-grid { grid-template-columns: 1fr; }
}
.disclosure {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.disclosure h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
}
.disclosure ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.disclosure li {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  position: relative;
  padding-left: 22px;
}
.disclosure li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--fg-3);
}
.privacy-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.privacy-links a {
  color: var(--fg-2);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-2);
  padding-bottom: 1px;
  transition: color .15s;
}
.privacy-links a:hover { color: var(--accent); }

/* ───────── Why ───────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
}
.why-stat {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}
.why-t {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.why-d {
  color: var(--fg-2);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ───────── Footer ───────── */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-tagline {
  color: var(--fg-2);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.55;
  margin: 0;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-3);
  flex-wrap: wrap;
}
.footer-disclaimer {
  max-width: 600px;
  line-height: 1.55;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* === Static-build shims (added in Phase 1 conversion) === */

/* Lang picker dropdown (HTML <button> + <ul>; no React popover) */
.lang-picker .lang-menu[hidden] { display: none; }

/* FAQ accordion uses native <details>/<summary> */
.faq-list summary {
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }

/* Bot demo cycler — main.js toggles .visible on each .msg */
.bot-demo-screen .msg {
  opacity: 0;
  transition: opacity 250ms ease;
}
.bot-demo-screen .msg.visible { opacity: 1; }
