/* taishoku-mail — design tokens
   Signature: hero の inbox UI mock。退職代行最大の不安「本当に届くのか」を
   会社人事の受信ボックス mock で物理的に可視化して解消する。
   全体の見え方は「クール / 透明 / 実機感」。煽らない、装飾しない。 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0B0F1A;
  --ink-2: #1E2533;
  --ink-3: #3D4759;
  --gray-1: #6B7384;
  --gray-2: #8B92A3;
  --gray-3: #B5BBC8;
  --line: #E4E7EE;
  --line-2: #EDEFF4;
  --bg: #FAFBFC;
  --bg-2: #F4F6F9;
  --paper: #FFFFFF;

  --blue: #1D4ED8;
  --blue-deep: #1E3A8A;
  --blue-soft: #EFF4FF;
  --blue-line: #C7D7F5;

  --amber: #F59E0B;
  --amber-soft: #FEF3C7;
  --green: #047857;
  --green-soft: #ECFDF5;
  --red: #BE2C2C;

  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif;
  --font-jp: 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --radius: 6px;
  --radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); }
button { font-family: inherit; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ─────────── Top nav ─────────── */
.topnav { background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.topnav-inner { display: flex; justify-content: space-between; align-items: center; }
.topnav-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-jp); font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.topnav-logo .logo-icon { flex-shrink: 0; width: 26px; height: 26px; }
.topnav-logo small { font-family: var(--font-jp); font-weight: 500; font-size: 11px; color: var(--gray-2); margin-left: 4px; letter-spacing: 0; }
.topnav-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--gray-1); font-family: var(--font-mono); }
.topnav-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px var(--green-soft); }
.topnav-cta { font-family: var(--font-jp); font-weight: 600; font-size: 13px; color: var(--paper); background: var(--blue); padding: 8px 14px; border-radius: 6px; text-decoration: none; transition: background 0.15s ease; }
.topnav-cta:hover { background: var(--blue-deep); }

/* ─────────── Hero ─────────── */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.hero-text .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-text .eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--blue); }

.hero-text h1 {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-text h1 .em { background: linear-gradient(transparent 70%, #FFE773 70%); padding: 0 2px; }

.hero-text .lead {
  font-size: 15px; color: var(--ink-3); line-height: 1.95;
  margin-bottom: 28px; max-width: 540px;
}
.hero-text .lead br { display: inline; }
@media (max-width: 480px) {
  .hero-text .lead { font-size: 14px; line-height: 2; }
}

.hero-bits { display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.hero-bits span { padding: 0 14px; border-right: 1px solid var(--line); letter-spacing: 0.04em; }
.hero-bits span:first-child { padding-left: 0; }
.hero-bits span:last-child { border-right: none; }
.hero-bits b { font-family: var(--font-sans); color: var(--ink); font-weight: 700; font-size: 13px; margin-right: 4px; }

.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; background: var(--blue); color: var(--paper);
  text-decoration: none; font-family: var(--font-jp);
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  border-radius: 8px; border: none; cursor: pointer;
  transition: background 0.18s ease, transform 0.06s ease;
  box-shadow: 0 1px 0 rgba(11,15,26,0.08), 0 8px 20px -8px rgba(29,78,216,0.4);
}
.cta-primary:hover { background: var(--blue-deep); color: var(--paper); }
.cta-primary:active { transform: translateY(1px); }
.cta-primary:disabled { background: var(--gray-2); cursor: not-allowed; }
.cta-primary .arrow { font-family: var(--font-mono); font-weight: 400; }
.cta-meta { font-family: var(--font-mono); font-size: 11px; color: var(--gray-1); }

/* ─────────── Inbox mock ─────────── */
.inbox {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 12px 32px -16px rgba(11,15,26,0.12);
  position: relative;
}
.inbox-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--gray-1);
}
.inbox-bar .dots { display: flex; gap: 5px; }
.inbox-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.inbox-bar .dots span:nth-child(1) { background: #F57272; }
.inbox-bar .dots span:nth-child(2) { background: #F5C772; }
.inbox-bar .dots span:nth-child(3) { background: #7AC994; }
.inbox-bar .addr { margin-left: 8px; }
.inbox-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.inbox-head h3 { font-family: var(--font-jp); font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -0.005em; }
.inbox-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--gray-1); }
.inbox-list { padding: 4px 0; }
.mail {
  display: grid; grid-template-columns: 16px 110px 1fr 56px; gap: 12px;
  padding: 11px 18px; align-items: baseline; font-size: 13px;
  border-bottom: 1px solid var(--line-2); color: var(--gray-1);
}
.mail:last-child { border-bottom: none; }
.mail .dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; margin-top: 5px; }
.mail .from { font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .time { font-family: var(--font-mono); font-size: 11px; color: var(--gray-2); text-align: right; }

.mail.unread { color: var(--ink); }
.mail.unread .dot { background: var(--blue); }
.mail.unread .from { color: var(--ink); font-weight: 700; }
.mail.unread .subject { color: var(--ink); font-weight: 600; }

.mail.target { background: var(--amber-soft); border-left: 3px solid var(--amber); padding-left: 15px; position: relative; }
.mail.target::after {
  content: "↑ あなたの退職通知メール";
  position: absolute; right: 18px; top: -2px;
  font-family: var(--font-mono); font-size: 10px; color: var(--amber);
  background: var(--paper); padding: 2px 8px; border: 1px solid var(--amber); border-radius: 100px;
  font-weight: 600; letter-spacing: 0.04em;
}

.inbox-foot {
  padding: 12px 18px; background: var(--bg-2); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; color: var(--gray-1);
  display: flex; justify-content: space-between; letter-spacing: 0.05em;
}

/* ─────────── Section ─────────── */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--gray-1); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-family: var(--font-jp); font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
.section-head p { font-size: 14px; color: var(--ink-3); max-width: 620px; line-height: 1.85; }

/* ─────────── How it works ─────────── */
.flow { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-row { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.flow-row:last-child { border-bottom: none; }
.flow-num { font-family: var(--font-mono); font-size: 13px; color: var(--gray-2); letter-spacing: 0.05em; }
.flow-row h3 { font-family: var(--font-jp); font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); letter-spacing: -0.005em; }
.flow-row p { font-size: 14px; color: var(--ink-3); line-height: 1.85; max-width: 640px; }
.flow-row .tag { display: inline-block; margin-top: 10px; padding: 3px 10px; background: var(--bg-2); border-radius: 100px; font-family: var(--font-mono); font-size: 11px; color: var(--gray-1); letter-spacing: 0.05em; }

/* ─────────── Scope ─────────── */
.scope { display: grid; gap: 24px; }
@media (min-width: 700px) { .scope { grid-template-columns: 1fr 1fr; } }
.scope-card { padding: 24px; border-radius: var(--radius-lg); }
.scope-card.do { background: var(--green-soft); border: 1px solid #BBF7D0; }
.scope-card.dont { background: var(--bg-2); border: 1px solid var(--line); }
.scope-head-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.scope-head-row .marker {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
}
.scope-card.do .marker { background: var(--green); color: var(--paper); }
.scope-card.dont .marker { background: var(--gray-2); color: var(--paper); }
.scope-head-row h3 { font-family: var(--font-jp); font-size: 14px; font-weight: 700; letter-spacing: -0.005em; }
.scope-card.do h3 { color: #064E3B; }
.scope-card.dont h3 { color: var(--ink-2); }
.scope-card ul { list-style: none; }
.scope-card li { padding: 7px 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.scope-card.dont li { color: var(--gray-1); }

.scope-note {
  margin-top: 24px; padding: 16px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  font-size: 13px; line-height: 1.85; color: var(--ink-3);
}
.scope-note strong { color: var(--ink); font-weight: 700; }

/* ─────────── FAQ ─────────── */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-q { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; font-family: var(--font-jp); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.005em; }
.faq-q .qtag { font-family: var(--font-mono); font-size: 10px; color: var(--gray-2); letter-spacing: 0.12em; font-weight: 500; }
.faq-a { font-size: 14px; line-height: 1.95; color: var(--ink-3); }
.faq-a a { color: var(--blue); }

/* ─────────── Form ─────────── */
form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px; }
@media (min-width: 600px) { form { padding: 40px 36px; } }

.field { margin-bottom: 22px; }
.field-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-split { grid-template-columns: 1fr; } }
.fieldlabel { display: block; font-family: var(--font-jp); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.fieldlabel .req { color: var(--red); margin-left: 3px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: 15px; color: var(--ink);
  border-radius: var(--radius); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--bg-2); }
textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236B7384' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.hint { font-size: 12px; color: var(--gray-1); margin-top: 6px; line-height: 1.7; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); line-height: 1.75; }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ink); }
.consent a { color: var(--blue); }

.option-row { padding: 14px 16px; background: var(--bg-2); border-radius: var(--radius); border: 1px solid var(--line); }
.option-row .opt-sub { display: block; color: var(--gray-1); font-size: 12px; margin-top: 3px; line-height: 1.6; }

.cta-foot { text-align: center; font-size: 12px; color: var(--gray-1); margin-top: 12px; font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ─────────── Preview page ─────────── */
.steps-bar { padding: 16px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.steps-bar .container { display: flex; gap: 0; font-family: var(--font-mono); font-size: 11px; color: var(--gray-2); letter-spacing: 0.05em; }
.steps-bar .s { display: flex; align-items: center; gap: 8px; padding-right: 16px; }
.steps-bar .s::after { content: "→"; margin-left: 16px; color: var(--line); }
.steps-bar .s:last-child::after { content: ""; }
.steps-bar .s .n { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 500; }
.steps-bar .s.done .n { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.steps-bar .s.now { color: var(--ink); font-weight: 700; }
.steps-bar .s.now .n { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.notice { padding: 16px 18px; background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: var(--radius); font-size: 13px; color: var(--ink-3); line-height: 1.8; margin-bottom: 24px; }
.notice strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }

.mail-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.mail-meta { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.mail-meta dt { font-family: var(--font-mono); color: var(--gray-1); font-size: 11px; padding-top: 2px; letter-spacing: 0.05em; }
.mail-meta dd { color: var(--ink); word-break: break-all; }
.mail-subject { font-family: var(--font-jp); font-size: 17px; font-weight: 700; padding: 10px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; letter-spacing: -0.005em; }
.mail-body { font-size: 14px; line-height: 2; white-space: pre-wrap; color: var(--ink); }
.mail-attach { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mail-attach h4 { font-family: var(--font-mono); font-size: 10px; color: var(--gray-1); letter-spacing: 0.12em; margin-bottom: 10px; text-transform: uppercase; }
.mail-attach ul { list-style: none; }
.mail-attach li { padding: 5px 0; font-size: 13px; color: var(--ink); }
.mail-attach li::before { content: "📎  "; color: var(--gray-2); }

.amount { padding: 20px; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius-lg); display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.amount-l .lbl { font-family: var(--font-mono); font-size: 10px; color: var(--gray-1); letter-spacing: 0.12em; text-transform: uppercase; }
.amount-l .sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.amount-r { font-family: var(--font-sans); font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 480px) { .actions { grid-template-columns: 1fr; } }
.btn-secondary { padding: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; font-family: var(--font-jp); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.btn-secondary:hover { background: var(--bg-2); }
.btn-primary { padding: 16px; background: var(--blue); border: none; color: var(--paper); border-radius: 8px; font-family: var(--font-jp); font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.18s ease; box-shadow: 0 8px 20px -8px rgba(29,78,216,0.4); }
.btn-primary:hover { background: var(--blue-deep); }
.ticket-line { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--gray-1); margin-top: 16px; letter-spacing: 0.05em; }

/* ─────────── Sent page ─────────── */
.sent-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--bg-2); }
.sent-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 32px; max-width: 540px; width: 100%; }
.sent-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--green-soft); color: var(--green); border-radius: 100px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 20px; }
.sent-tag .pip { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.sent-card h1 { font-family: var(--font-jp); font-size: 24px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.sent-sub { font-size: 14px; color: var(--ink-3); line-height: 1.9; margin-bottom: 28px; }
.sent-receipt { padding: 16px 20px; background: var(--bg-2); border-radius: var(--radius); display: grid; grid-template-columns: 80px 1fr; gap: 8px 14px; font-size: 13px; margin-bottom: 28px; }
.sent-receipt dt { color: var(--gray-1); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; padding-top: 1px; }
.sent-receipt dd { color: var(--ink); font-weight: 500; word-break: break-all; }
.sent-next { padding-top: 24px; border-top: 1px solid var(--line); }
.sent-next h3 { font-family: var(--font-mono); font-size: 11px; color: var(--gray-1); letter-spacing: 0.15em; margin-bottom: 14px; text-transform: uppercase; }
.sent-next ol { padding-left: 22px; }
.sent-next li { font-size: 13px; color: var(--ink-2); line-height: 1.85; padding: 5px 0; }
.sent-next li::marker { color: var(--gray-2); font-family: var(--font-mono); font-weight: 700; }

/* ─────────── Document pages ─────────── */
.doc-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.doc-head .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gray-1); text-transform: uppercase; margin-bottom: 12px; }
.doc-head h1 { font-family: var(--font-jp); font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.doc main { padding: 40px 0 80px; }
.doc h2 { font-family: var(--font-jp); font-size: 17px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.005em; color: var(--ink); }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.doc ol, .doc ul { margin: 8px 0 8px 24px; }
.doc li { margin-bottom: 4px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; }
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; background: var(--bg-2); width: 28%; }
.doc-lead { padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; line-height: 1.85; margin-bottom: 28px; color: var(--ink-2); }
.doc-lead strong { color: var(--ink); font-weight: 700; }
.doc-meta { font-family: var(--font-mono); font-size: 11px; color: var(--gray-1); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.9; letter-spacing: 0.03em; }
.doc-meta a { color: var(--blue); font-family: var(--font-jp); }

/* ─────────── Footer ─────────── */
footer { background: var(--ink); color: var(--gray-3); padding: 48px 0 36px; font-size: 13px; }
footer .container { display: grid; gap: 20px; }
footer .foot-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; }
footer .foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-jp); font-size: 18px; font-weight: 800; color: var(--paper); letter-spacing: -0.01em; }
footer .foot-brand .logo-icon { flex-shrink: 0; width: 28px; height: 28px; }
footer .foot-brand small { font-family: var(--font-jp); font-weight: 500; font-size: 11px; color: var(--gray-2); margin-left: 4px; letter-spacing: 0; }
footer .foot-links a { color: var(--gray-3); text-decoration: none; margin-left: 20px; font-size: 13px; }
footer .foot-links a:hover { color: var(--paper); }
footer .foot-note { padding-top: 20px; border-top: 1px solid #2A3142; font-size: 11px; color: var(--gray-1); line-height: 1.8; max-width: 720px; }

/* ─────────── Mobile sticky CTA ─────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px 16px; z-index: 40;
  box-shadow: 0 -4px 16px rgba(11,15,26,0.06);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 18px; background: var(--blue); color: var(--paper);
  text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 8px;
}
.sticky-cta a .arrow { font-family: var(--font-mono); font-weight: 400; }
.sticky-cta a:hover { background: var(--blue-deep); }

@media (min-width: 720px) { .sticky-cta { display: none; } }
@media (max-width: 720px) {
  .topnav-meta { display: none; }
  .topnav-logo small { display: none; }
  .topnav-cta { padding: 7px 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .hero { padding-bottom: 96px; }
  .hero-bits { font-size: 11px; }
  .hero-bits span { padding: 0 8px; }
  .hero-bits b { font-size: 12px; }
  .hero-text h1 { font-size: 26px; line-height: 1.45; }
  .section-head h2 { font-size: 22px; }
  .flow-row { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 0; }
  .flow-num { font-size: 11px; }
}

/* ─────────── Top page redesign 2026-06-19 ─────────── */
/* Hero */
.hero { padding: 36px 0 64px; background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

.hero-text { max-width: 560px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--paper);
  color: var(--ink-3); border: 1px solid var(--line);
  border-radius: 100px; font-size: 11.5px; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.02em;
}
.hero-tag i { font-size: 13px; color: var(--blue); }

.hero-text h1 {
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-feature-settings: 'palt' 1;
}
.hero-text h1 .em {
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(transparent 60%, #FFE773 60%);
  padding: 0 3px;
}
.hero-text h1::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--ink);
  margin-bottom: 20px;
}

.lead-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 100px;
  letter-spacing: 0.02em;
}

.hero-text .lead {
  font-size: 15.5px; color: var(--ink-3); line-height: 1.95;
  margin-bottom: 36px;
  padding-left: 14px;
  border-left: 2px solid var(--blue-line);
  max-width: 540px;
}
.hero-text .lead br { display: inline; }

.kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi-cell {
  padding: 18px 4px 18px 0;
  border-right: 1px solid var(--line);
}
.kpi-cell:last-child { border-right: none; padding-left: 20px; padding-right: 0; }
.kpi-cell:not(:first-child):not(:last-child) { padding-left: 20px; }
.kpi-cell .val { font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 6px; }
.kpi-cell .val small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.kpi-cell .sub { font-size: 11.5px; color: var(--gray-1); font-weight: 500; letter-spacing: 0.02em; line-height: 1.5; }

/* Hero visual — using .hero-mail to avoid conflict with preview page .mail-card */
.hero-visual { display: grid; gap: 14px; }
.hero-mail {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 30px;
  box-shadow: 0 1px 0 var(--line), 0 16px 36px -18px rgba(11,15,26,0.12);
}
.hero-mail-head {
  font-size: 11.5px; color: var(--gray-1); line-height: 1.85;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.hero-mail-subj {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 18px; line-height: 1.55; letter-spacing: -0.005em;
}
.hero-mail-body {
  font-size: 13.5px; line-height: 2.1; color: var(--ink-2);
  white-space: pre-line;
}
.hero-attach-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-attach {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-attach i { font-size: 24px; color: var(--blue); }
.hero-attach .meta { font-size: 11.5px; color: var(--gray-1); line-height: 1.55; }
.hero-attach .meta b { display: block; color: var(--ink); font-weight: 700; font-size: 13px; margin-bottom: 2px; letter-spacing: -0.005em; }

/* Section (redesign — overrides existing .section-head) */
section { padding: 72px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
.section-head {
  margin-bottom: 40px; position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
}
.section-head .num {
  font-size: 44px; font-weight: 800; color: var(--gray-3);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  line-height: 1; padding-top: 4px;
}
.section-head .num::after {
  content: ""; display: block;
  width: 100%; height: 2px;
  background: var(--ink);
  margin-top: 10px;
}
.section-head .head-body { padding-top: 0; }
.section-head h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 14px; line-height: 1.45;
  font-feature-settings: 'palt' 1;
}
.section-head h2 .accent {
  background: linear-gradient(transparent 60%, #FFE773 60%);
  padding: 0 3px;
  display: inline-block;
  white-space: nowrap;
}
.section-head p { font-size: 14.5px; color: var(--ink-3); max-width: 620px; line-height: 1.95; }
.section-head .eyebrow { display: none; }

/* How it works (flow card grid — overrides .flow / .flow-row) */
.flow-redesign {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  border: none;
}
@media (max-width: 720px) { .flow-redesign { grid-template-columns: 1fr; } }
.flow-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 30px;
  position: relative;
  transition: border-color 0.18s ease;
}
.flow-card::before {
  content: ""; position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 3px; background: var(--blue-line);
  border-radius: 0 3px 3px 0;
}
.flow-card:hover { border-color: var(--blue-line); }
.flow-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.flow-card-top .n {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.flow-card-top i { font-size: 20px; color: var(--gray-1); }
.flow-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--ink); letter-spacing: -0.005em; line-height: 1.5; }
.flow-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.95; margin: 0; }

/* Scope (overrides existing .scope / .scope-card) */
.scope { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .scope { grid-template-columns: 1fr; } }
.scope-card { padding: 32px 30px; border-radius: 12px; border: none; }
.scope-card.do { background: var(--blue-soft); }
.scope-card.dont { background: var(--bg-2); }
.scope-card h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 18px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.005em;
}
.scope-card.do h3 { color: var(--ink); }
.scope-card.dont h3 { color: var(--ink); }
.scope-card.do h3 i { color: var(--blue); font-size: 20px; }
.scope-card.dont h3 i { color: var(--gray-2); font-size: 20px; }
.scope-card ul { list-style: none; }
.scope-card li { font-size: 14px; color: var(--ink-2); padding: 7px 0; line-height: 1.7; }
.scope-card.dont li { color: var(--gray-1); }
.scope-card .scope-head-row { display: none; }

.scope-note {
  margin-top: 22px; padding: 20px 24px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; font-size: 13.5px;
  line-height: 1.9; color: var(--ink-3);
}
.scope-note strong { color: var(--ink); font-weight: 700; }

/* CTA banner */
.cta-banner-redesign {
  padding: 56px 0; background: var(--ink);
  text-align: center; color: var(--paper);
}
.cta-banner-redesign h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.005em; color: var(--paper); }
.cta-banner-redesign p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.cta-banner-redesign .cta-primary { background: var(--paper); color: var(--ink); }
.cta-banner-redesign .cta-primary:hover { background: var(--bg); color: var(--ink); }
