/* Public homepage. Semantic tokens aligned with packages/ui/src/styles/tokens.css. No app bundle. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vk-cream: #f5f0e7;
  --vk-card: #fffcf7;
  --vk-espresso: #28231f;
  --vk-muted: #62584e;
  --vk-tan: #c4b8a8;
  --vk-forest-700: #244a2e;
  --vk-forest-600: #2f5d3a;
  --vk-forest-300: #9bc09a;
  --vk-pale: #dce8dc;
  --vk-sage-wash: #e6eadc;
  --vk-outline: #857868;

  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --text-meta: 12px;
  --lh-meta: 16px;
  --text-body: 16px;
  --lh-body: 26px;
  --text-section: 18px;
  --lh-section: 28px;
  --text-header: 24px;
  --lh-header: 32px;
  --text-page: 40px;
  --lh-page: 48px;

  --space-2: 4px;
  --space-4: 8px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 24px;
  --space-8: 32px;
  --hit-desk: 24px;
  --hit-touch: 44px;
  --radius-md: 6px;
  --topbar-h: 56px;

  --bg-canvas: var(--vk-cream);
  --bg-surface: var(--vk-card);
  --bg-row-hover: #efe8dc;
  --fg-primary: var(--vk-espresso);
  --fg-secondary: var(--vk-muted);
  --fg-on-accent: var(--vk-card);
  --border-subtle: #e2d9cb;
  --border-strong: var(--vk-outline);
  --accent-brand: var(--vk-forest-600);
  --accent-brand-hover: var(--vk-forest-700);
  --accent-brand-text: var(--vk-forest-600);
  --focus-ring: var(--vk-forest-600);
  --status-warn: #8a5a00;
  --status-warn-soft: #f6e9cc;
  --status-warn-strong: #6b4500;
  --status-warn-strong-soft: #fff4d6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--fg-primary);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dt,
dd {
  margin: 0;
}

a {
  color: var(--accent-brand-text);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  background: var(--bg-surface);
  padding: var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--bg-canvas);
}

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

.top {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.top-inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg-primary);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--fg-primary);
  color: var(--bg-canvas);
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 -3px 0 var(--accent-brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-text {
  color: var(--fg-secondary);
  font-weight: 500;
  font-size: var(--text-body);
  text-decoration: none;
  min-height: var(--hit-touch);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-4);
  white-space: nowrap;
}
.nav-text:hover {
  color: var(--fg-primary);
}
.nav-text[aria-current='page'] {
  color: var(--accent-brand-text);
  font-weight: 600;
}

.trust-main {
  padding-bottom: var(--space-8);
}

.trust-hero {
  padding: 72px 0 40px;
}

.trust-section h2 {
  margin-bottom: var(--space-6);
}

.trust-h3 {
  font-size: var(--text-section);
  line-height: var(--lh-section);
  font-weight: 600;
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}

.trust-section > p {
  color: var(--fg-secondary);
  max-width: 42em;
  margin-bottom: var(--space-5);
}

.trust-section > p:last-child {
  margin-bottom: 0;
}

.trust-list {
  margin: var(--space-5) 0 0;
  padding-left: 1.25em;
  color: var(--fg-secondary);
  max-width: 42em;
}

.trust-list li + li {
  margin-top: var(--space-4);
}

.trust-table-wrap {
  margin-top: var(--space-6);
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.trust-caption {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-meta);
  line-height: var(--lh-meta);
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 22px;
}

.trust-table th,
.trust-table td {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

.trust-table thead th {
  font-weight: 600;
  color: var(--fg-primary);
  background: var(--vk-sage-wash);
}

.trust-table tbody tr:last-child th,
.trust-table tbody tr:last-child td {
  border-bottom: 0;
}

.trust-table code {
  font-size: 0.92em;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.mail-pair {
  color: var(--fg-secondary);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--hit-touch);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--fg-primary);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-row-hover);
}
.btn-primary {
  background: var(--accent-brand);
  border-color: var(--accent-brand);
  color: var(--fg-on-accent);
}
.btn-primary:hover {
  background: var(--accent-brand-hover);
  border-color: var(--accent-brand-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg-primary);
}
.btn-ghost:hover {
  background: var(--bg-row-hover);
}
.btn-touch {
  min-height: var(--hit-touch);
  padding: var(--space-4) var(--space-7);
  font-size: var(--text-section);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 80px 0 64px;
}

.eyebrow {
  font-size: var(--text-meta);
  line-height: var(--lh-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin-bottom: var(--space-5);
}

h1 {
  font-size: var(--text-page);
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  hyphens: none;
  text-wrap: balance;
}

.lead {
  margin-top: var(--space-6);
  font-size: var(--text-section);
  line-height: var(--lh-section);
  color: var(--fg-secondary);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.desk-mock {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-5);
  box-shadow: 0 16px 40px rgba(40, 35, 31, 0.08);
}

.desk-mock-banner,
.sample-label {
  display: inline-block;
  font-size: var(--text-meta);
  line-height: var(--lh-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: var(--space-4);
}

.desk-mock-chrome {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.desk-mock-title {
  font-size: 15px;
  font-weight: 600;
}

.desk-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.desk-tile {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--bg-canvas);
}

.desk-tile h2 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.desk-tile dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
}

.desk-tile dt {
  font-size: 11px;
  line-height: 14px;
  color: var(--fg-secondary);
}

.desk-tile dd {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.desk-waiting {
  grid-column: 1 / -1;
}

.desk-waiting dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.desk-pending-status {
  display: inline-block;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  color: var(--status-warn);
  background: var(--status-warn-soft);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  pointer-events: none;
}

.rule {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  height: 0;
  margin: 0 auto;
}

.block {
  padding: 48px 0;
}

.block h2 {
  font-size: var(--text-header);
  line-height: var(--lh-header);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.block > p {
  color: var(--fg-secondary);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  max-width: 38em;
  hyphens: none;
}

.block > .sample-label {
  font-size: var(--text-meta);
  line-height: var(--lh-meta);
  color: var(--fg-secondary);
}

.block > p + p {
  margin-top: var(--space-5);
}

.flow {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}

.flow-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border-subtle);
}

.flow-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.flow-copy .bands {
  max-width: none;
  gap: var(--space-5) 32px;
}

.flow-detail {
  margin: 0;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.flow-caption {
  font-size: var(--text-meta);
  line-height: var(--lh-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.flow-detail img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.flow-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.flow-zoom {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-meta);
  line-height: var(--lh-meta);
  color: var(--accent-brand-text);
  text-align: right;
  text-decoration: underline;
}

.flow-sample-caption {
  margin: var(--space-4) 0 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--fg-secondary);
}

.not-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  gap: var(--space-4);
  font-size: var(--text-section);
  line-height: var(--lh-section);
}

.desk-strip,
.gate-strip {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 0;
  display: grid;
}

.desk-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 1px;
  background: var(--border-subtle);
}

.gate-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1px;
  background: var(--accent-brand);
}

.desk-strip li,
.gate-strip li {
  min-width: 0;
  border: 0;
}

.desk-strip li {
  padding: 0 20px;
  background: var(--bg-canvas);
  text-align: left;
}

.desk-strip li:first-child {
  padding-left: 0;
}

.desk-strip li:last-child {
  padding-right: 0;
}

.gate-strip li {
  padding: 0 28px;
  background: var(--vk-sage-wash);
}

.gate-strip li:first-child {
  padding-left: 0;
}

.gate-strip li:last-child {
  padding-right: 0;
}

.strip-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 var(--space-5);
  border-radius: 50%;
  background: var(--vk-pale);
  color: var(--accent-brand);
}

.strip-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.strip-label {
  display: block;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.strip-line {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 22px;
  color: var(--fg-secondary);
}

.desk-strip .strip-line {
  max-width: 8.75em;
  min-height: 44px;
  text-wrap: balance;
}

.statement-band .block {
  padding: 80px 0 72px;
}

.statement-band .principal-statement {
  margin: 0;
  max-width: 22em;
  color: var(--fg-primary);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.gates-band {
  width: 100%;
  background: var(--vk-sage-wash);
  border-top: 1px solid var(--accent-brand);
  border-bottom: 1px solid var(--accent-brand);
}

.gates-band .block {
  padding: 56px 0 72px;
}

.gate-num {
  display: block;
  margin-bottom: var(--space-5);
  font-family: var(--font-serif);
  font-size: 68px;
  line-height: 72px;
  font-weight: 300;
  color: var(--accent-brand);
}

.gate-strip .strip-label {
  font-size: 20px;
  line-height: 26px;
}

.gate-strip .strip-line {
  margin-top: 4px;
  font-size: 16px;
  line-height: 24px;
}

.bands {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 48px;
  max-width: 75%;
  font-size: 16px;
  line-height: 22px;
  align-items: center;
}

.bands li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 10px;
  white-space: nowrap;
}

.cs-glyph {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 0;
  flex: 0 0 26px;
}

.cs-glyph-strong {
  border-radius: 50%;
  background: var(--accent-brand);
}

.cs-glyph-supportable {
  border-radius: 50%;
  background: var(--vk-forest-300);
}

.cs-glyph-mixed {
  border-radius: 50%;
  background: conic-gradient(var(--accent-brand) 0 180deg, transparent 180deg);
  box-shadow: inset 0 0 0 2px var(--accent-brand);
}

.cs-glyph-weak {
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--accent-brand);
}

.cs-glyph-insufficient {
  width: 26px;
  height: 2px;
  margin: 0;
  background: var(--accent-brand);
}

.cta {
  padding: 40px 0 64px;
  margin-bottom: 0;
  background: none;
  border: 0;
}

.cta h2 {
  margin-bottom: var(--space-4);
}

.foot {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-8) 0 64px;
  color: var(--fg-secondary);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.foot p + p {
  margin-top: var(--space-5);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-7);
  margin-top: var(--space-7);
}

.page-404 {
  padding: 96px 0;
}

@media (max-width: 1100px) {
  .desk-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .desk-strip li:nth-child(3n + 1) {
    padding-left: 0;
  }
  .desk-strip li:nth-child(3n) {
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 32px;
    line-height: 38px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
    gap: 32px;
  }
  .gate-strip {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1px;
  }
  .gate-strip li,
  .gate-strip li:first-child,
  .gate-strip li:last-child {
    padding: 20px 0;
  }
  .gate-strip li:first-child {
    padding-top: 0;
  }
  .gate-strip li:last-child {
    padding-bottom: 0;
  }
  .gate-num {
    font-size: 56px;
    line-height: 60px;
  }
  .gates-band .block {
    padding: 44px 0 56px;
  }
  .statement-band .block {
    padding: 56px 0 48px;
  }
  .statement-band .principal-statement {
    font-size: 28px;
    line-height: 36px;
  }
  .bands {
    max-width: none;
    gap: var(--space-6) 48px;
  }
  .flow-step {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 32px));
  }
  .top-inner {
    min-height: 56px;
    padding: var(--space-4) 0;
  }
  .desk-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: var(--space-7);
    background: none;
  }
  .desk-strip li,
  .desk-strip li:first-child,
  .desk-strip li:last-child,
  .desk-strip li:nth-child(3n + 1),
  .desk-strip li:nth-child(3n) {
    padding: 0 8px 0 0;
    background: none;
    border: 0;
  }
  .strip-icon {
    width: 40px;
    height: 40px;
  }
  .strip-icon svg {
    width: 20px;
    height: 20px;
  }
  .desk-mock-grid {
    grid-template-columns: 1fr;
  }
  .desk-pending-status {
    font-size: 12px;
    line-height: 16px;
    padding: 4px 10px;
    color: var(--status-warn-strong);
    background: var(--status-warn-strong-soft);
  }
  .statement-band .block {
    padding-bottom: 72px;
  }
  .bands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-7);
    max-width: none;
  }
  .bands li {
    min-width: 0;
  }
  .bands li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .nav .nav-text {
    display: none;
  }
  .brand {
    white-space: nowrap;
  }
}
