:root {
  --ink: #171717;
  --ink-soft: #3d3d3d;
  --muted: #6b7280;
  --paper: #fffdf7;
  --card: #ffffff;
  --line: #e8e5dc;
  --accent: #f4c430;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 50;
}

.skip-link:focus {
  left: 12px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 25px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 24px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 12px;
  transition: background 140ms ease, color 140ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-small {
  padding: 10px 16px;
  font-size: 13px;
}

.cta-short {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 72px;
  padding: 88px 0 80px;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
}

h1 {
  margin: 20px 0 24px;
  font-size: clamp(44px, 6.2vw, 74px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

h1 .mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 0.05em;
}

.lede {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.link-quiet {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.link-quiet:hover {
  border-color: var(--accent);
}

.hero-note {
  margin: 28px 0 0;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* Product panel */

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px -32px rgba(23, 23, 23, 0.28);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 14px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-row strong {
  white-space: nowrap;
}

.panel-row > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.panel-row strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-row .note {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 62px;
  text-align: right;
}

.panel-foot {
  padding: 15px 22px;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Statement band */

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

.band p {
  max-width: 920px;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.band em {
  font-style: normal;
  color: var(--accent);
}

/* Sections */

.section {
  padding: 88px 0;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 430px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* Product rows */

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

.rows li {
  display: grid;
  grid-template-columns: 52px 1.05fr 1.55fr 132px;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.rows .num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.rows .title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rows .desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.rows .who {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* Institution section */

.institution {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.institution .section-copy p {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 400px;
}

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

.role {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.role strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.role span {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.step .num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Contact */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.contact-copy {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.contact-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

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

.footer-brand img {
  display: block;
  height: 22px;
  width: auto;
}

.footer-brand p {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

/* Legal pages */

.legal {
  padding: 64px 0 96px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4.5vw, 52px);
}

.legal .updated {
  margin: 0 0 44px;
  font-size: 12px;
  color: var(--muted);
}

.legal h2 {
  margin: 38px 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.legal ul {
  margin: 8px 0;
  padding-left: 20px;
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal-intro {
  font-size: 16px !important;
  color: var(--ink-soft);
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-summary {
  margin: 0 0 32px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}

.legal-summary p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.legal-summary p + p {
  margin-top: 10px;
}

.toc {
  margin: 0 0 40px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.toc-title {
  margin: 0 0 10px !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 36px;
}

.toc li {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.5;
}

.toc a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.toc a:hover {
  border-bottom-color: var(--accent);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 13.5px;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.legal th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
}

.legal td strong {
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.table-scroll table {
  margin: 0;
  min-width: 520px;
}

.table-scroll th:first-child,
.table-scroll td:first-child {
  padding-left: 16px;
}

.contact-block {
  margin-top: 12px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-block p {
  margin: 0;
}

.contact-block p + p {
  margin-top: 6px;
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 60px;
    padding-bottom: 56px;
  }

  .hero-panel {
    max-width: 560px;
    width: 100%;
  }

  .institution {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .rows li {
    grid-template-columns: 40px 1fr;
    gap: 8px 18px;
  }

  .rows .desc,
  .rows .who {
    grid-column: 2;
  }

  .rows .who {
    text-align: left;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section {
    padding: 64px 0;
  }

  .legal {
    padding: 52px 0 80px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 0;
  }

  .brand img {
    height: 22px;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn-small {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  h1 {
    margin: 20px 0 22px;
    font-size: clamp(34px, 7vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: clamp(26px, 5.4vw, 34px);
  }

  .lede {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 26px;
  }

  .hero-actions {
    gap: 16px;
  }

  .band {
    padding: 42px 0;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }

  .rows li {
    padding: 20px 0;
  }

  .role {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }

  .role span {
    max-width: none;
    text-align: left;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 26px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .contact-note {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
  }

  .legal {
    padding: 40px 0 64px;
  }

  .legal .updated {
    margin-bottom: 32px;
  }

  .legal h2 {
    margin-top: 30px;
  }

  .legal a {
    overflow-wrap: anywhere;
  }

  .toc,
  .legal-summary,
  .contact-block {
    padding: 18px;
  }

  .toc ol {
    columns: 1;
  }

  .legal th,
  .legal td {
    padding: 9px 10px;
  }

  .table-scroll {
    overflow: visible;
    border: 0;
  }

  .table-scroll table {
    min-width: 0;
  }

  .table-scroll thead {
    display: none;
  }

  .table-scroll tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .table-scroll td {
    display: block;
    padding: 0 0 8px;
    border: 0;
  }

  .table-scroll td:last-child {
    padding-bottom: 0;
  }

  .table-scroll td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (max-width: 520px) {
  .hero {
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .link-quiet {
    align-self: flex-start;
  }

  .hero-panel {
    border-radius: 14px;
  }

  .panel-head {
    padding: 14px 16px;
  }

  .panel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 16px;
  }

  .panel-row strong {
    font-size: 17px;
  }

  .panel-row .note {
    display: none;
  }

  .panel-foot {
    padding: 13px 16px;
  }

  .rows li {
    grid-template-columns: 32px 1fr;
    gap: 6px 14px;
  }

  .rows .title {
    font-size: 16.5px;
  }

  .rows .desc {
    font-size: 13.5px;
  }

  .contact-card {
    padding: 22px;
  }

  .legal {
    padding: 34px 0 56px;
  }

  .legal p,
  .legal li {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 8px;
  }

  .brand img {
    height: 20px;
  }

  .btn-small {
    padding: 8px 10px;
  }

  h1 {
    font-size: 32px;
  }

  .panel-row strong {
    font-size: 16px;
  }
}
