@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("figtree-400.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("figtree-600.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("figtree-700.woff2") format("woff2");
}
:root {
  --wrap: 1280px;
  --header-h: 72px;
  --h1: 56px;
  --h2: 52px;
  --h3: 20px;
  --body: 20px;
  --radius-control: 12px;
  --radius-card: 16px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 48px;
  --s5: 64px;
  --s6: 96px;
  --s7: 120px;
  --ink: #0d0d0b;
  --night: #0d0d0b;
  --night-soft: #1a1a17;
  --paper: #32312d;
  --warm: #f8f6f0;
  --surface: #efece4;
  --panel: #ffffff;
  --panel-soft: #f8f6f0;
  --cream: #e8e4d8;
  --line: #ddd8cc;
  --muted: #46443f;
  --mist: #b8b4aa;
  --brand: #ffd706;
  --brand-soft: #ffe45c;
  --accent: #ffd706;
  --glow: #ff8a00;
  --success: #6f9438;
  --danger: #b64032;
  --white: #ffffff;
  --shadow-float: 0 20px 48px rgba(13, 13, 11, 0.14);
  --font: Figtree, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
body,
button,
input,
summary {
  font-family: var(--font);
}
a { color: inherit; text-decoration: none; }
button,
summary { cursor: pointer; }
button,
input { font: inherit; }
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
img,
svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--brand);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

/* Header — Recurly: white 72px sticky, no rule, yellow CTA */
.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: var(--header-h);
  background: var(--white);
  color: var(--ink);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 32px;
  height: 32px;
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
}
.primary-nav a:hover {
  color: var(--ink);
}
.primary-nav a[aria-current="page"],
.nav-drawer a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 28%, var(--white));
  color: var(--ink);
  border-radius: 10px;
  font-weight: 700;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch { position: relative; }
.lang-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  font-weight: 600;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-68%) rotate(45deg);
  position: relative;
  top: 50%;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius-control);
  box-shadow: 0 18px 40px rgba(13, 13, 11, 0.14);
}
.lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
}
.lang-menu a:hover,
.lang-menu a[aria-current="page"] { background: var(--warm); }
.header-login {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 600;
}
.header-create,
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
}
.button svg {
  width: 16px;
  height: 16px;
}
.header-create:hover,
.button:hover { background: var(--brand-soft); }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--warm);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}
.nav-drawer {
  display: none;
}
body.nav-locked { overflow: hidden; }

/* Hero — Recurly: near-black, centered gold eyebrow, white h1, gold CTA, wave */
.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 0;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 70% 46% at 50% -12%, rgba(255, 255, 255, 0.1), transparent 54%),
    radial-gradient(ellipse 42% 28% at 8% 36%, rgba(255, 215, 6, 0.07), transparent 62%),
    radial-gradient(ellipse 36% 24% at 92% 18%, rgba(255, 138, 0, 0.08), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.2' d='M-40 210C180 120 340 280 560 190C780 100 980 250 1220 160C1380 100 1500 190 1600 150'/%3E%3Cpath fill='none' stroke='%23ffd706' stroke-opacity='.05' stroke-width='1.4' d='M-20 340C200 250 420 420 680 310C940 200 1160 380 1480 270'/%3E%3C/svg%3E");
  background-size: auto, auto, auto, 100% 100%;
  color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 38%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 90% 36% at 28% 42%, transparent 42%, rgba(255, 255, 255, 0.035) 43%, transparent 45%),
    radial-gradient(ellipse 80% 30% at 74% 58%, transparent 48%, rgba(255, 215, 6, 0.05) 49%, transparent 52%);
  transform: rotate(-6deg);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .eyebrow {
  margin-inline: auto;
  color: var(--brand);
}
.hero h1 {
  margin: 0 auto;
  max-width: 900px;
  color: var(--white);
  font-size: clamp(40px, 4.4vw, var(--h1));
  font-weight: 700;
  letter-spacing: -1.28px;
  line-height: 1.14;
  text-wrap: balance;
}
.hero .eyebrow + h1 {
  margin-top: 24px;
}
.hero-lede {
  max-width: 640px;
  margin: 24px auto 0;
  color: #c8c4ba;
  font-size: var(--body);
  line-height: 1.5;
}
.hero-cta {
  margin-top: 32px;
}
.proof-row {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 48px));
  margin: 28px auto 0;
  text-align: center;
}
.proof-row p {
  margin: 0 0 16px;
  color: var(--mist);
  font-size: 14px;
}
.proof-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
}
.proof-marks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof-marks svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

/* Wave + floating product */
.hero-stage {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 48px), var(--wrap));
  margin: 16px auto 0;
  padding: 8px 0 0;
}
.wave {
  position: absolute;
  left: 50%;
  top: -24px;
  width: 170%;
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
}
.wave-bloom {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 38% 58% at 16% 42%, #ffd706 0, rgba(255, 215, 6, 0.72) 26%, transparent 58%),
    radial-gradient(ellipse 44% 64% at 82% 38%, #ff8a00 0, rgba(255, 138, 0, 0.7) 28%, transparent 62%),
    radial-gradient(ellipse 58% 48% at 50% 78%, #f8f6f0 0, rgba(248, 246, 240, 0.88) 38%, transparent 70%);
  filter: blur(34px);
  opacity: 0.96;
}
.wave-svg {
  position: absolute;
  left: -4%;
  bottom: -8px;
  width: 108%;
  height: 280px;
  filter: blur(2px);
}
@keyframes wave-drift {
  0%,
  100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -10px, 0) scale(1.03); }
}
@media (prefers-reduced-motion: no-preference) {
  .wave-bloom { animation: wave-drift 18s ease-in-out infinite; }
}
.float-deck {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.3fr 0.88fr;
  gap: 16px;
  align-items: stretch;
  padding: 8px 0 4px;
}
.float-chart,
.float-chat {
  position: relative;
  overflow: hidden;
}
.float-card {
  min-height: 168px;
  padding: 18px 18px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
}
.metric-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.metric-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.metric-head strong {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1;
}
.line-chart {
  display: block;
  width: 100%;
  height: 72px;
}
.float-code {
  background: var(--ink);
  color: var(--white);
}
.chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 215, 6, 0.16);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.code-chip {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}
.float-code p,
.float-time > p {
  margin: 10px 0 0;
  color: var(--mist);
  font-size: 12px;
}
.chat-head {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.chat-in,
.chat-out {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.chat-in {
  background: var(--warm);
  border-radius: 14px 14px 14px 5px;
}
.chat-out {
  margin-top: 8px;
  background: var(--brand);
  border-radius: 14px 14px 5px 14px;
  font-weight: 700;
}
.chat-bar {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--mist);
  font-size: 12px;
}
.ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 4px auto 0;
}
.ring-wrap svg { width: 72px; height: 72px; }
.ring-wrap b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  letter-spacing: -0.4px;
}
.float-time { text-align: center; }
.float-time > p { color: var(--muted); }

.mailbox-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 20px auto 64px;
  min-height: 0;
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  scroll-margin-top: 92px;
}
.stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2);
  align-items: center;
  padding: 20px 24px 12px;
}
.address-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-control);
}
.address-group.is-pulse {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 55%, transparent);
}
.address-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
}
.copy-button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
}
.stage-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--warm);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 215, 6, 0.22);
}
.stage-tools {
  display: flex;
  gap: 8px;
  padding: 0 24px 18px;
}
.tool-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--warm);
  color: var(--ink);
  font-weight: 600;
}
.tool-button:hover { background: var(--warm); }
.tool-button svg { width: 16px; height: 16px; }
.inbox-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mail-list {
  min-height: 0;
  max-height: 560px;
  overflow-y: auto;
  background: var(--white);
}
.list-head,
.reader-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 14px 22px;
}
.list-head h2,
.reader-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.unread-count {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.message-row {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 22px;
  border: 0;
  border-top: 1px solid var(--warm);
  background: var(--white);
  color: var(--ink);
  text-align: left;
}
.message-row:hover,
.message-row[aria-selected="true"] {
  background: var(--warm);
}
.message-row[aria-selected="true"] {
  box-shadow: inset 4px 0 0 var(--brand);
}
.message-row.is-unread .message-main strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: middle;
}
.sender-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink);
  color: var(--brand);
  font-weight: 700;
}
.sender-mark svg { width: 36px; height: 36px; }
.message-main { min-width: 0; }
.message-main strong,
.message-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-main span,
.message-time {
  color: var(--muted);
  font-size: 13px;
}
.demo-badge {
  display: inline-block;
  margin-top: 4px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.reader { min-width: 0; background: var(--warm); }
.reader-head { border-bottom: 1px solid var(--line); }
.reader-actions { display: flex; gap: 8px; }
.reader-action {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  font-weight: 600;
}
.reader-body {
  padding: 36px clamp(24px, 4vw, 56px);
}
.reader-body iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  flex: 0 0 auto;
}
.reader-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.reader-meta .status-pill {
  width: max-content;
}
.mail-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s3);
  font-weight: 700;
}
.mail-brand svg { width: 28px; height: 28px; }
.reader-body h3 {
  margin: 0 0 var(--s2);
  font-size: 26px;
  line-height: 1.25;
}
.reader-body p {
  margin: 0 0 var(--s2);
  color: var(--muted);
}
.code-card {
  width: min(260px, 100%);
  margin: var(--s3) 0;
  padding: 16px;
  background: var(--brand);
  border-radius: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
}
.activity-card {
  margin: var(--s3) 0;
  padding: 16px 18px;
  background: var(--white);
  border-radius: 12px;
}
.activity-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.activity-card div:first-child { border-top: 0; }
.demo-fake-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 16px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.demo-notice {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Light page — Recurly cream after the wave */
.light-section,
.faq-section {
  padding: var(--s7) 0;
  background: var(--warm);
  color: var(--ink);
}
.light-section { padding-top: 120px; }
.section-heading {
  max-width: 820px;
  margin: 0 auto 70px;
  text-align: center;
}
.section-heading .eyebrow + h2 { margin-top: 24px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, var(--h2));
  line-height: 1.08;
  letter-spacing: -1px;
  text-wrap: balance;
}
.section-intro {
  margin: 24px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.journey-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  background: var(--surface);
  border-radius: 999px;
}
.journey-step {
  padding: 26px 24px 24px;
  text-align: left;
}
.journey-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--cream);
}
.journey-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
}
.journey-step:first-child .journey-mark {
  background: var(--brand);
  box-shadow: none;
}
.journey-step h3 {
  margin: 0 0 8px;
  font-size: var(--h3);
}
.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.feature-window {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 22px 56px rgba(13, 13, 11, 0.1);
}
.feature-sidebar {
  padding: 32px 28px;
  background: var(--ink);
  color: var(--white);
}
.feature-sidebar .mini-brand {
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
}
.feature-sidebar ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.feature-sidebar li {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mist);
}
.feature-sidebar li:first-child {
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
}
.feature-main {
  padding: clamp(32px, 5vw, 64px);
}
.feature-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin-bottom: 28px;
}
.feature-metrics strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1;
}
.feature-metrics span {
  color: var(--muted);
  font-size: 13px;
}
.feature-main h3 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}
.feature-main > p {
  max-width: 560px;
  margin: 20px 0 32px;
  color: var(--muted);
  font-size: 18px;
}
.identity-ledger { border-top: 1px solid var(--line); }
.identity-ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.7fr) auto;
  gap: var(--s2);
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.identity-ledger strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity-ledger span:not(.status-pill) { color: var(--muted); }
.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.use-cases {
  padding: var(--s7) 0;
  background: var(--white);
  color: var(--ink);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.case-card {
  min-height: 280px;
  padding: 32px 28px;
  background: var(--warm);
  border-radius: var(--radius-card);
}
.case-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--brand);
}
.case-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
}
.case-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.case-card p {
  margin: 0;
  color: var(--muted);
}
.case-link {
  display: inline-flex;
  margin-top: 22px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: 20px;
  font-weight: 700;
}
.faq-list details p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
}
.final-cta {
  padding: var(--s7) 0;
  background: var(--ink);
  color: var(--white);
}
.final-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.final-cta h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
}
.final-cta-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: none;
}
.final-cta-actions .button,
.page-hero-actions .button {
  min-height: 48px;
}
.page-hero-actions {
  margin-top: 32px;
}
.page-hero-actions .button-ghost,
.final-cta-actions .button-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
}
.page-hero-actions .button-ghost:hover,
.final-cta-actions .button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.site-footer {
  padding: var(--s6) 0 var(--s4);
  background: var(--night);
  color: var(--white);
}
.site-footer .footer-brand img,
.site-footer .brand img {
  content: url("tmpfox-mark-inverse.svg");
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s3) 24px;
}
.footer-group {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--night-soft);
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  grid-column: 1 / 4;
  grid-row: 1;
}
.footer-brand img { width: 32px; }
.footer-brand strong {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.footer-brand p {
  flex: 1 1 100%;
  max-width: none;
  margin: 8px 0 0;
  color: var(--mist);
}
.footer-group h2 {
  margin: 0 0 var(--s2);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-group a {
  display: block;
  margin-top: 8px;
  color: var(--mist);
}
.footer-group a:hover { color: var(--brand); }
.footer-contact-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  grid-column: 4 / -1;
  grid-row: 1;
  gap: 8px 10px;
  align-items: center;
  max-width: none;
  width: 100%;
  margin-top: 0;
  align-self: end;
}
.footer-contact-form label {
  grid-column: 1 / -1;
  color: var(--mist);
  white-space: nowrap;
}
.footer-contact-form input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--night-soft);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.footer-contact-form button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
}
.footer-bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--night-soft);
  color: var(--mist);
  font-size: 14px;
}
.toast {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  width: max-content;
  max-width: min(430px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: var(--radius-control);
  text-align: center;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .float-deck { display: none; }
  .mailbox-stage { width: 100%; margin-top: 28px; }
}
@media (max-width: 980px) {
  .primary-nav,
  .header-actions > .header-login,
  .header-actions > .header-create { display: none; }
  .nav-toggle { display: block; }
  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    z-index: 39;
    top: var(--header-h);
    right: 16px;
    width: min(300px, calc(100vw - 32px));
    padding: 12px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(13, 13, 11, 0.16);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
  }
  .nav-drawer.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-drawer a,
  .nav-drawer .lang-trigger {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
  }
  .nav-drawer .lang-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 12px;
  }
  .journey-rail {
    grid-template-columns: 1fr 1fr;
    border-radius: 28px;
  }
  .feature-metrics { max-width: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-contact-form {
    grid-column: auto;
    grid-row: auto;
    margin-top: 8px;
  }
}
@media (max-width: 700px) {
  :root {
    --h1: 40px;
    --h2: 36px;
    --body: 18px;
    --s6: 72px;
    --s7: 88px;
  }
  .wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .header-actions > .lang-switch { display: none; }
  .hero { padding-top: 40px; }
  .proof-marks { gap: 10px 16px; }
  .hero h1 {
    font-size: clamp(32px, 9vw, 56px);
    letter-spacing: -0.8px;
  }
  .hero-lede { margin-top: 20px; }
  .proof-row { margin-top: 36px; }
  .hero-stage { width: calc(100% - 24px); margin-top: 36px; }
  .mailbox-stage {
    min-height: 0;
    margin-bottom: 56px;
    border-radius: var(--radius-card);
  }
  .stage-top {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .address-group {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .address-value {
    flex-basis: calc(100% - 84px);
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  .stage-tools {
    overflow-x: auto;
    padding: 0 14px 14px;
  }
  .tool-button { flex: 0 0 auto; }
  .inbox-grid {
    min-height: 0;
    display: block;
  }
  .mail-list { max-height: none; }
  .reader { display: none; }
  .reader.is-open {
    position: fixed;
    z-index: 80;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    background: var(--warm);
  }
  .reader.is-open .reader-head {
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    flex-wrap: wrap;
    background: var(--warm);
  }
  .reader.is-open .reader-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .reader.is-open .reader-close,
  .reader.is-open [data-delete-mail] {
    display: inline-flex;
  }
  .reader.is-open .reader-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .light-section { padding-top: 88px; }
  .journey-rail,
  .feature-window,
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .journey-rail { border-radius: 24px; }
  .journey-step:not(:last-child)::after { display: none; }
  .feature-sidebar { display: none; }
  .case-card { min-height: 0; }
  .final-cta .wrap { flex-direction: column; align-items: flex-start; }
  .final-cta-actions,
  .page-hero-actions { width: 100%; }
  .final-cta-actions .button,
  .page-hero-actions .button { min-width: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
body.reader-open,
body:has(.reader.is-open) {
  overflow: hidden;
}
body.reader-open .light-section,
body.reader-open .faq-section,
body.reader-open .journey-rail,
body.reader-open .journey-mark,
body.reader-open .journey-mark::before,
body.reader-open .journey-mark::after,
body.reader-open .case-mark,
body.reader-open .case-mark::before,
body.reader-open .case-mark::after,
body:has(.reader.is-open) .light-section,
body:has(.reader.is-open) .faq-section,
body:has(.reader.is-open) .journey-rail,
body:has(.reader.is-open) .journey-mark,
body:has(.reader.is-open) .journey-mark::before,
body:has(.reader.is-open) .journey-mark::after,
body:has(.reader.is-open) .case-mark,
body:has(.reader.is-open) .case-mark::before,
body:has(.reader.is-open) .case-mark::after {
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 701px) {
  .reader-close { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
