:root {
  --paper: #ffffff;
  --paper-soft: #f4f7fb;
  --ink: #202733;
  --muted: #657084;
  --line: #c8d5e3;
  --line-soft: #e5ebf2;
  --navy: #102d63;
  --navy-deep: #091f49;
  --blue: #2d62b5;
  --blue-soft: #dce9fa;
  --accent: #a64f45;
  --success: #277359;
  --white-muted: #dbe6f4;
  --wrap: 1190px;
  --header-h: 62px;
  --h1: clamp(3.375rem, 5vw, 4.5rem);
  --h2: clamp(2.5rem, 4vw, 3.5rem);
  --h3: clamp(1.5rem, 2.4vw, 2rem);
  --body: 1rem;
  --radius-control: 999px;
  --radius-card: 20px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 80px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.63;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
summary {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.announcement strong {
  padding: 2px 10px;
  border: 1px solid var(--success);
  border-radius: var(--radius-control);
  color: var(--paper);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-h);
  background: var(--paper);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  display: inline;
}

.demo-brand-mark {
  flex: none;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
}

.primary-nav > a {
  padding: 9px 11px;
  border-radius: var(--radius-control);
  white-space: nowrap;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--navy-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.lang-switch {
  position: relative;
}

.lang-trigger,
.header-login,
.header-create {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}

.header-create {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 168px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.lang-switch.is-open .lang-menu {
  display: grid;
}

.lang-menu a {
  padding: 8px 10px;
  border-radius: 8px;
}

.lang-menu a:hover,
.lang-menu a[aria-current="page"] {
  background: var(--paper-soft);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-drawer {
  display: none;
}

.hero {
  padding: 22px 0 var(--s6);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 920px;
  padding: 64px;
  border-radius: var(--radius-card);
  background: var(--navy-deep);
  color: var(--paper);
}

.hero-card::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(690px, 70%);
}

.eyebrow {
  width: fit-content;
  min-width: 0;
  max-width: min(100%, calc(100vw - 48px));
  margin: 0 0 20px;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero .eyebrow {
  padding: 9px 16px;
  border: 1px solid var(--white-muted);
  border-radius: var(--radius-control);
  color: var(--paper);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: var(--h1);
  letter-spacing: -2.16px;
}

h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.section-heading > h2,
.path-layout > div > h2,
.dark-band h2,
.check-band h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--white-muted);
  font-size: 1.08rem;
}

.mode-tabs {
  display: flex;
  gap: 10px;
}

.mode-tab,
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--paper);
  border-radius: var(--radius-control);
  font-weight: 800;
}

.mode-tab {
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
}

.mode-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
}

.hero-tool {
  position: relative;
  z-index: 3;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-soft);
  color: var(--ink);
}

.address-stage {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.address-label,
.address-timer {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.address-label {
  margin-bottom: 8px;
}

.address-value {
  margin: 0;
  overflow: hidden;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  white-space: nowrap;
}

.address-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-tools button,
.inbox-refresh,
.mail-delete {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.address-tools button:first-of-type {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.inbox-shell {
  min-height: 628px;
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
}

.inbox-list-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
}

.inbox-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.inbox-toolbar h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.inbox-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.mail-list {
  max-height: 562px;
  overflow-y: auto;
}

.mail-row {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.mail-row:hover,
.mail-row[aria-selected="true"] {
  background: var(--paper);
}

.mail-row[aria-selected="true"] {
  box-shadow: inset 4px 0 0 var(--accent);
}

.unread-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.mail-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
}

.mail-row strong,
.mail-row small {
  display: block;
}

.mail-row strong {
  margin-bottom: 4px;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-time {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.reader {
  min-width: 0;
  max-height: 628px;
  overflow-y: auto;
  background: var(--paper);
}

.reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
}

.reader-head h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.reader-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.reader-body {
  padding: 28px;
}

.reader-badge {
  width: max-content;
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-control);
  background: var(--blue-soft);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 800;
}

.reader:not(.mobile-reader) [data-reader-close] {
  display: none;
}

.reader-close {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.cid-note {
  margin: 0 28px 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--navy-deep);
  font-size: 0.86rem;
}

.demo-mail {
  width: min(100%, 560px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  background: var(--paper-soft);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
}

.demo-content {
  padding: 28px 22px;
}

.demo-content h4 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.demo-code {
  margin: 22px 0;
  padding: 18px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--navy-deep);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-align: center;
}

.demo-action {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--navy);
  color: var(--paper);
  font-weight: 800;
}

.demo-mail .demo-note,
.reader-body .demo-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.relay-panel {
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 48px;
  text-align: center;
}

.relay-panel > div {
  max-width: 620px;
}

.relay-panel .cta-group {
  margin-top: 24px;
}

.relay-panel .button {
  background: var(--navy);
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

.section {
  padding: var(--s6) 0;
}

.section-intro {
  max-width: 720px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 830px;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  min-height: 190px;
  padding: 34px 26px;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.fact span {
  color: var(--muted);
  font-weight: 700;
}

.feature-grid,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.feature-card,
.scenario-card {
  min-height: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  transition: transform 180ms ease;
}

.feature-card:hover,
.scenario-card:hover {
  transform: translateY(-4px);
}

.feature-number {
  display: block;
  margin-bottom: 58px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-card h3,
.feature-card p,
.scenario-card h3,
.scenario-card p {
  overflow-wrap: anywhere;
}

.feature-card p,
.scenario-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.dark-band {
  padding: var(--s6) 0;
  background: var(--navy-deep);
  color: var(--paper);
}

.dark-band .section-intro,
.dark-band .path-step p {
  color: var(--paper);
}

.dark-band .eyebrow,
.check-band .eyebrow {
  padding: 7px 12px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-control);
  background: var(--navy-deep);
  color: var(--paper);
}

.path-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 64px;
}

.path-steps {
  border-top: 1px solid var(--line);
}

.path-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.path-step b {
  color: var(--accent);
  font-size: 1.6rem;
}

.path-step h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.path-step p {
  margin: 0;
  color: var(--muted);
}

.scenario-card:nth-child(2) {
  background: var(--navy);
  color: var(--paper);
}

.scenario-card:nth-child(2) p {
  color: var(--white-muted);
}

.scenario-card:nth-child(3) {
  background: var(--accent);
  color: var(--paper);
}

.scenario-card:nth-child(3) p {
  color: var(--paper);
}

.compare-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.compare-column {
  padding: 46px;
}

.compare-column:first-child {
  background: var(--navy);
  color: var(--paper);
}

.compare-column:first-child p,
.compare-column:first-child li {
  color: var(--white-muted);
}

.compare-column ul {
  margin: 24px 0 0;
  padding-left: 20px;
}

.compare-column li + li {
  margin-top: 12px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.6rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
}

.pre-footer {
  padding: var(--s6) 0 var(--s7);
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 46px;
  border-radius: var(--radius-card);
  background: var(--blue-soft);
}

.cta-card h2 {
  margin: 0;
}

.cta-card .button {
  margin-top: 24px;
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.site-footer {
  padding: 58px 0 28px;
  background: var(--navy-deep);
  color: var(--paper);
}
.site-footer .brand img,
.site-footer .footer-brand img {
  content: url("mark-inverse.svg");
}

.footer-mast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px;
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0;
  color: var(--white-muted);
}

.footer-brand a {
  color: var(--paper);
  font-weight: 800;
}

.footer-contact {
  margin-top: 16px;
}

.footer-contact button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--paper);
  font-weight: 800;
}

.footer-col h2 {
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--white-muted);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--blue);
  color: var(--white-muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-drawer {
    position: fixed;
    z-index: 45;
    inset: calc(42px + var(--header-h)) 0 0;
    padding: 24px;
    background: var(--paper);
  }

  .nav-drawer.is-open {
    display: grid;
    align-content: start;
    gap: 8px;
  }

  .nav-drawer a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 800;
  }

  .hero-card {
    padding: 48px;
  }

  .hero-copy {
    width: 88%;
  }

  .address-stage {
    grid-template-columns: 1fr;
  }

  .address-tools {
    justify-content: space-between;
  }

  .path-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, var(--wrap));
  }

  .announcement {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.74rem;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .header-login,
  .header-create {
    display: none;
  }

  .lang-trigger {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-card {
    min-height: 0;
    padding: 32px 18px 18px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.35rem, 11.2vw, 3rem);
    letter-spacing: -1.2px;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mode-tab {
    min-width: 0;
    padding-inline: 12px;
  }

  .hero-tool {
    margin-top: 34px;
  }

  .address-stage {
    padding: 20px;
  }

  .address-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .address-tools button {
    justify-content: center;
  }

  .address-timer {
    grid-column: 1 / -1;
    text-align: left;
  }

  .inbox-shell {
    min-height: 0;
    display: block;
  }

  .inbox-list-pane {
    border-right: 0;
  }

  .mail-list {
    max-height: none;
  }

  .reader {
    position: fixed;
    z-index: 80;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    display: none;
    overflow-y: auto;
    border-radius: 0;
  }

  .reader.is-open {
    display: block;
  }

  .reader-close {
    display: inline-flex;
    align-items: center;
  }

  .reader-body {
    padding: 22px;
  }

  .fact-row,
  .feature-grid,
  .scenario-grid,
  .compare-card,
  .cta-card,
  .footer-mast {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .feature-number {
    margin-bottom: 34px;
  }

  .compare-column,
  .cta-card {
    padding: 30px 24px;
  }

  .cta-card .button {
    width: 100%;
  }

  .footer-mast {
    gap: 32px;
  }
}

.access-main,
.access-auth {
  min-width: 0;
}

.access-auth.section {
  padding-top: 72px;
}

.access-hero {
  padding: 72px 0;
  background: var(--navy-deep);
  color: var(--paper);
}

.access-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 64px;
}

.access-hero h1 {
  margin-bottom: 28px;
}

.access-hero .section-intro {
  color: var(--white-muted);
}

.route-visual {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 12px;
  padding: 36px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-card);
  background: var(--navy);
}

.route-visual span {
  padding: 18px 22px;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.route-visual b {
  align-self: center;
  color: var(--white-muted);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  gap: 0;
}

.auth-facts {
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.auth-facts li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.auth-facts b,
.step-count {
  color: var(--accent);
  font-weight: 800;
}

.auth-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.auth-notice {
  padding: 16px 24px;
  background: var(--blue-soft);
  color: var(--navy-deep);
  font-weight: 700;
}

.auth-step {
  display: flow-root;
  padding: 36px;
}

.auth-step h2 {
  margin: 10px 0 28px;
  font-size: 2rem;
}

.auth-step label,
.alias-compose label,
.twofa-setup label,
.twofa-disable label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--muted);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--ink);
}

.auth-step input {
  margin-bottom: 20px;
}

.button-primary {
  margin-top: 24px;
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.button-outline {
  border-color: var(--line);
  background: transparent;
  color: inherit;
}

.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-actions {
  margin-top: 24px;
}

.form-actions .button-primary {
  margin-top: 0;
}

.alias-compose .form-actions {
  margin-bottom: 40px;
}

.alias-compose .form-actions .button,
.alias-compose .form-actions .text-button {
  min-height: 50px;
  margin-top: 0;
}

.text-button,
.row-actions button,
.archive-filter button,
.archive-detail header button,
.attachment-chip {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.route-workspace {
  padding: 72px 0 96px;
  background: var(--paper-soft);
}

.workspace-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.route-stack {
  display: grid;
  gap: 32px;
}

.alias-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--navy-deep);
  color: var(--paper);
}

.board-copy {
  padding: 42px;
}

.board-copy p {
  color: var(--white-muted);
}

.quota-stamp {
  display: inline-flex;
  margin-top: 28px;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-control);
}

.alias-actions {
  min-width: 0;
  padding: 42px;
  background: var(--paper);
  color: var(--ink);
}

.alias-compose {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.alias-compose > .button {
  margin-top: 14px;
}

.alias-field {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
}

.alias-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.alias-field:focus-within input {
  outline: none;
}

.alias-field input {
  flex: 1;
  border-radius: 12px 0 0 12px;
}

.alias-field span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: var(--paper-soft);
  white-space: nowrap;
}

.empty-state {
  margin-top: 24px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.table-scroll {
  margin-top: 24px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

td small {
  display: block;
  color: var(--muted);
}

td:nth-child(2),
td:nth-child(3) {
  white-space: nowrap;
}

.archive-ledger {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.ledger-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
}

.ledger-head > div:first-child {
  max-width: 700px;
}

.archive-filter {
  position: relative;
  flex: none;
}

.archive-filter > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-right: 36px;
}

.archive-filter > button span {
  display: none;
}

.archive-filter > button::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.archive-options {
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.archive-options button {
  width: 100%;
  display: block;
  border: 0;
  text-align: left;
}

.archive-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.archive-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.archive-row > span:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.archive-row small {
  display: block;
  color: var(--muted);
}

.status-pill {
  width: max-content;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-control);
  background: var(--blue-soft);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.is-active {
  background: var(--blue-soft);
  color: var(--navy-deep);
}

.status-pill.is-paused {
  background: var(--line-soft);
  color: var(--muted);
}

.archive-detail {
  min-width: 0;
  max-width: 100%;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.archive-detail header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.archive-detail h3 {
  margin: 12px 0 8px;
}

.archive-detail iframe {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 520px;
  border: 0;
}

.delivery-note {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--navy-deep);
}

.twofa-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  padding: 36px;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--paper);
}

.twofa-ribbon p {
  color: var(--paper);
}
.twofa-ribbon .eyebrow::before {
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.twofa-idle {
  display: grid;
  gap: 12px;
}

.twofa-idle-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.twofa-idle-steps li {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.twofa-idle-steps strong {
  display: block;
  margin-bottom: 4px;
}

.twofa-idle-steps p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
}

.twofa-ribbon:has([data-twofa-setup]:not([hidden])) .twofa-idle,
.twofa-ribbon:has([data-twofa-disable]:not([hidden])) .twofa-idle {
  display: none;
}

.twofa-ribbon:has([data-twofa-setup]:not([hidden])) [data-twofa-start],
.twofa-ribbon:has([data-twofa-disable]:not([hidden])) [data-twofa-start] {
  display: none;
}

.twofa-qr-plate {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.twofa-qr-plate figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.twofa-howto {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.twofa-howto li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.twofa-setup,
.twofa-disable {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 18px 24px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.twofa-setup .secret-line,
.twofa-setup label,
.twofa-setup input,
.twofa-setup .button,
.twofa-disable label,
.twofa-disable input,
.twofa-disable .button {
  grid-column: 1 / -1;
}

.twofa-setup .button,
.twofa-disable .button {
  margin-top: 14px;
}

.twofa-setup img {
  border-radius: 12px;
  background: var(--paper);
}

.twofa-setup code {
  overflow-wrap: anywhere;
}

.secret-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.secret-line code {
  flex: 1;
  min-width: 0;
}

.secret-copy {
  flex: none;
}

@media (max-width: 900px) {
  .access-hero-grid,
  .auth-layout,
  .alias-board,
  .twofa-ribbon {
    grid-template-columns: minmax(0, 1fr);
  }

  .twofa-setup,
  .twofa-disable {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-visual {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .access-hero {
    padding: 44px 0;
  }

  .route-visual,
  .auth-step,
  .board-copy,
  .alias-actions,
  .archive-ledger,
  .twofa-ribbon {
    padding: 24px;
  }

  .workspace-head,
  .ledger-head {
    display: grid;
  }

  .alias-field {
    display: grid;
  }

  .alias-field input,
  .alias-field span {
    border-radius: 12px;
    border: 1px solid var(--line);
  }

  .alias-field span {
    min-height: 44px;
    margin-top: 8px;
  }

  .archive-row {
    align-items: start;
  }
}

.page-hero {
  padding: 72px 0 48px;
}

.page-hero-inner {
  max-width: var(--wrap);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(3rem, 5vw, 4rem);
}

.page-hero .section-intro {
  max-width: 760px;
  margin-top: 20px;
}

.section-heading {
  margin-bottom: 40px;
}

.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 {
  margin-top: 20px;
}

.feature-card .button,
.matrix-card .button,
.overview-card .button,
.card-actions,
.cta-group {
  margin-top: 24px;
}

.legal-glance,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.overview-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.overview-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.25rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  align-items: start;
  gap: 64px;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.legal-nav h2 {
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 0;
}

.legal-nav a {
  display: block;
  padding: 7px 0;
  color: var(--navy);
  font-weight: 700;
}

.legal-prose section {
  padding: 0 0 40px;
}

.legal-prose section + section {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.legal-prose h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.legal-prose p,
.legal-prose li {
  color: var(--muted);
}

.table-scroll.legal-table {
  margin: 8px 0 48px;
}

.legal-table table {
  min-width: 680px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.permission-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.permission-card:first-child {
  background: var(--blue-soft);
}

.permission-card:last-child {
  background: var(--navy-deep);
  color: var(--paper);
}

.permission-card:last-child p,
.permission-card:last-child li {
  color: var(--white-muted);
}

.permission-card h2 {
  font-size: 2rem;
}

.seo-hero-card {
  padding: 64px;
  border-radius: var(--radius-card);
  background: var(--navy-deep);
  color: var(--paper);
}

.seo-hero-card .section-intro {
  color: var(--white-muted);
}

.seo-hero-card .cta-group {
  margin-top: 32px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.matrix-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.matrix-card.recommended {
  background: var(--navy);
  color: var(--paper);
}

.matrix-card.recommended p,
.matrix-card.recommended li {
  color: var(--white-muted);
}

.matrix-card p,
.matrix-card li {
  color: var(--muted);
}

.decision-table {
  min-width: 760px;
}

.decision-table th:first-child {
  width: 28%;
}

.check-band {
  padding: var(--s6) 0;
  background: var(--ink);
  color: var(--paper);
}

.check-band .section-intro,
.check-band li {
  color: var(--white-muted);
}

@media (max-width: 760px) {
  .legal-glance,
  .overview-grid,
  .legal-layout,
  .permission-grid,
  .matrix-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-nav {
    position: static;
  }

  .seo-hero-card {
    padding: 32px 24px;
  }
}

body > main h2 {
  max-width: 100%;
}

.card-actions > .button,
.cta-group > .button,
.card-cta > .button {
  margin-top: 0;
}

.card-cta {
  padding-top: 28px;
}

.section-intro + .button,
p + .button,
ul + .button,
article .button,
.twofa-ribbon .button {
  margin-top: 24px;
}

.feature-card > a.button,
.matrix-card > a.button,
.overview-card > a.button,
.relay-panel a.button {
  display: inline-flex;
  margin-top: 24px;
}

.section-heading > h2,
.page-hero h2,
.dark-band h2,
.check-band h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.blog-card {
  position: relative;
}

.blog-card > a:first-child {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.blog-count {
  margin: 20px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.breadcrumb {
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.article-page {
  padding: 32px 0 112px;
}

.article-hero {
  max-width: 900px;
  padding: 64px;
  border-radius: var(--radius-card);
  background: var(--navy-deep);
  color: var(--paper);
}

.article-hero h1 {
  max-width: 780px;
  margin: 20px 0 24px;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-hero .section-intro {
  color: var(--white-muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.article-meta span,
.toc-count {
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.article-meta span {
  border-color: var(--blue);
  color: var(--paper);
}

.article-layout {
  max-width: 1140px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  margin-top: 64px;
}

.article-toc {
  position: sticky;
  z-index: 2;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.article-toc h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: 0;
}

.article-toc ol {
  margin: 0;
  padding-left: 22px;
}

.article-toc li {
  margin: 0 0 8px;
  color: var(--navy);
}

.toc-count {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.article-prose {
  min-width: 0;
}

.article-prose > p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.18rem;
}

.article-prose section {
  padding-top: 44px;
}

.article-prose h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-prose p,
.article-prose li {
  color: var(--muted);
}

.article-prose p {
  margin: 0 0 18px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose a:not(.button) {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-cta {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--blue-soft);
  color: var(--navy);
}

.article-cta svg {
  width: 56px;
}

.article-cta h2 {
  font-size: 1.65rem;
}

.article-cta p {
  color: var(--ink);
}

.article-cta .button {
  margin-top: 18px;
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.recommend-float {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 24px;
  width: min(320px, calc(100vw - 32px));
  padding: 22px 48px 22px 22px;
  border-radius: 16px;
  background: var(--navy-deep);
  color: var(--paper);
}

.recommend-float span {
  display: block;
  margin-bottom: 6px;
  color: var(--white-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recommend-float a {
  font-weight: 800;
}

.recommend-float-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
}

@media (max-width: 760px) {
  .article-page {
    padding-top: 24px;
  }

  .article-hero {
    width: min(100% - 32px, 900px);
    padding: 36px 24px;
  }

  .article-layout {
    width: min(100% - 32px, 1140px);
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 32px;
  }

  .article-toc {
    position: static;
  }

  .article-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommend-float {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
