@font-face {
  font-family: "Commissioner Harken";
  src: url("/assets/fonts/commissioner-variable.woff2") format("woff2-variations");
  font-style: oblique -12deg 0deg;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Literata Harken";
  src: url("/assets/fonts/literata-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Literata Harken";
  src: url("/assets/fonts/literata-variable-italic.woff2") format("woff2-variations");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Recursive Harken";
  src: url("/assets/fonts/recursive-variable.woff2") format("woff2-variations");
  font-style: oblique -15deg 0deg;
  font-weight: 300 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --paper-raised: #fbfaf6;
  --paper-deep: #ece5d8;
  --ink: #1b1916;
  --ink-soft: #44403a;
  --muted: #68625a;
  --faint: #746e65;
  --rule: rgba(27, 25, 22, 0.15);
  --rule-strong: rgba(27, 25, 22, 0.28);
  --focus: #5b574f;
  --surface: var(--paper-raised);
  --maxw: 1180px;
  --reading: 740px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: "Commissioner Harken", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  --font-language: "Literata Harken", "Noto Serif", "Noto Naskh Arabic", "Noto Serif Devanagari", "Songti SC", "Yu Mincho", serif;
  --font-editorial: var(--font-language);
  --font-ui: "Commissioner Harken", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans CJK SC", sans-serif;
  --font-metrics: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  --font-mono: "Recursive Harken", "SFMono-Regular", "SF Mono", "Noto Sans Mono", Menlo, Consolas, monospace;
  --font-mono-settings: "MONO" 1, "CASL" 0, "CRSV" 0;
  --shadow-border:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 2px 5px rgba(0, 0, 0, 0.035);
  --shadow-border-hover:
    0 0 0 1px rgba(0, 0, 0, 0.09),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.05);
  font-family: var(--font-ui);
  font-size: 16px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  transform: translateY(-80px);
  transition-property: transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
}

.nav {
  width: min(var(--maxw), calc(100vw - (2 * var(--gutter))));
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.nav-links a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition-property: color, background-color, box-shadow, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(27, 25, 22, 0.055);
}

.button {
  color: var(--ink);
  background: var(--paper-raised);
  box-shadow: var(--shadow-border);
}

.button:hover {
  box-shadow: var(--shadow-border-hover);
}

.button:active {
  transform: scale(0.96);
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
}

.button.primary:hover {
  background: #000;
  box-shadow: none;
}

.button[aria-disabled="true"],
.button-disabled,
button:disabled {
  cursor: not-allowed;
  color: var(--faint);
  background: rgba(27, 25, 22, 0.04);
  box-shadow: none;
  opacity: 0.72;
}

/* Page structure */
.page {
  width: min(var(--maxw), calc(100vw - (2 * var(--gutter))));
  margin: 0 auto;
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
  padding: clamp(72px, 10vw, 128px) 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-title h1,
.section h2,
.legal-document h2,
.auth-card h1,
.signin-panel h1,
.panel > h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "FLAR" 68, "VOLM" 28;
}

.hero h1,
.page-title h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(50px, 7vw, 82px);
  font-weight: 450;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero > div > p:not(.eyebrow):not(.hero-kicker),
.page-title > p:not(.eyebrow),
.section-lead {
  max-width: 660px;
  color: var(--ink-soft);
  font-family: var(--font-language);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.52;
  text-wrap: pretty;
}

.hero > div > p:not(.eyebrow):not(.hero-kicker),
.page-title > p:not(.eyebrow) {
  margin: 24px 0 0;
}

.section-lead {
  margin: 18px 0 0;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-kicker {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-figure {
  margin: 0;
}

.hero-art {
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: clamp(38px, 6vw, 72px);
  background: var(--paper-deep);
  overflow: hidden;
}

.hero-art img {
  width: min(340px, 78%);
  height: auto;
  display: block;
  border-radius: 24%;
  mix-blend-mode: multiply;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.hero-figure figcaption {
  max-width: 52ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

.page-title {
  max-width: 940px;
  padding: clamp(70px, 9vw, 112px) 0 clamp(58px, 7vw, 88px);
}

.page-title h1 {
  font-size: clamp(44px, 6vw, 68px);
}

.section {
  padding: clamp(70px, 8vw, 104px) 0;
  border-top: 1px solid var(--rule);
}

.section h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.status-strip,
.proof-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.status-strip {
  margin-top: 28px;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.available,
.badge.focus {
  color: var(--ink-soft);
}

/* Editorial content and grids */
.mode-row,
.tier-row,
.feature-grid,
.card-grid,
.account-grid,
.use-case-grid,
.steps-grid,
.review-grid,
.operator-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

.mode-row,
.feature-grid,
.steps-grid,
.operator-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-grid,
.card-grid,
.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tier-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.feature-grid,
.card-grid,
.use-case-grid,
.steps-grid,
.review-grid,
.operator-grid,
.contact-grid {
  margin-top: 34px;
}

.card,
.mode,
.trust-item {
  min-width: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule-strong);
  background: transparent;
}

.card strong,
.mode strong,
.trust-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p,
.mode p,
.trust-item,
.tier p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.58;
  text-wrap: pretty;
}

.card.compact {
  min-height: 112px;
}

.step-number {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--font-metrics);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.check-list,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
}

.split-section,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.42fr);
  gap: 56px;
  align-items: start;
}

.review-note,
.billing-note {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
}

.review-note strong,
.billing-note strong {
  color: var(--ink);
  font-weight: 650;
}

.billing-note p {
  margin: 0;
  color: var(--muted);
}

.billing-note a,
.page-title a,
.panel a:not(.button),
.card a:not(.button),
.review-note a,
.legal-document a,
.legal-summary a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Pricing and functional panels */
.tier,
.panel {
  min-width: 0;
  padding: 26px;
  border-radius: 18px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-border);
}

.tier.highlight {
  box-shadow:
    0 0 0 1px rgba(27, 25, 22, 0.35),
    0 8px 26px rgba(27, 25, 22, 0.07);
}

.tier > strong,
.panel > strong {
  display: block;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 650;
}

.tier .price {
  margin: 18px 0 8px;
  color: var(--ink);
  font-family: var(--font-metrics);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.price-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.tier ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.tier li {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.46;
  text-wrap: pretty;
}

.tier li.locked {
  color: var(--faint);
}

.panel > h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 475;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 34px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
}

thead,
tbody,
tr {
  width: 100%;
}

th,
td {
  min-width: 150px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}

tr:last-child td {
  border-bottom: 0;
}

/* Legal reading surfaces */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(44px, 7vw, 84px);
  align-items: start;
}

.legal-document {
  max-width: var(--reading);
}

.legal-document h2 {
  margin: 48px 0 12px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 520;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: var(--font-language);
  font-size: 18px;
  line-height: 1.68;
}

.legal-document ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.legal-summary {
  position: sticky;
  top: 24px;
  padding-left: 22px;
  border-left: 1px solid var(--rule-strong);
  background: transparent;
  box-shadow: none;
}

.legal-summary strong:not(:first-child) {
  margin-top: 22px;
}

.legal-summary p {
  margin-top: 8px;
  font-size: 14px;
}

code {
  font-family: var(--font-mono);
  font-variation-settings: var(--font-mono-settings);
  font-size: 0.9em;
}

/* Trust and support */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.trust-item {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 550;
}

.contact-method {
  padding: 22px 0 0;
  border-top: 1px solid var(--rule-strong);
}

.contact-method strong {
  display: block;
  margin-bottom: 8px;
}

.contact-method a,
.site-footer a.email-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Forms */
.support-form,
.auth-fields,
.signin-form {
  display: grid;
  gap: 12px;
}

.support-form label,
.signin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.support-form input,
.support-form select,
.support-form textarea,
.auth-fields input,
.signin-form input,
input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper-raised);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0;
}

.support-form textarea {
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus,
.auth-fields input:focus,
.signin-form input:focus,
input:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(27, 25, 22, 0.18);
  outline-offset: 2px;
}

.status-note {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
}

.status-note[data-tone="error"] {
  color: #8b2f25;
}

/* Authentication */
.auth-header .nav-links {
  display: none;
}

.auth-wrap,
.signin-wrap {
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  padding: 64px 0 88px;
}

.auth-card,
.signin-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 22px;
  padding: 34px;
}

.auth-card h1,
.signin-panel h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 475;
  line-height: 1;
  letter-spacing: -0.035em;
}

.auth-fields .button,
.signin-form .button {
  width: 100%;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--rule);
}

.auth-email-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.auth-link,
.link-button {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-switch {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Account application surfaces */
.account-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-top: 24px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.identity-name {
  color: var(--ink);
  font-weight: 650;
}

.identity-email {
  color: var(--muted);
  font-size: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
}

.metric-list {
  display: grid;
  margin-top: 16px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 14px;
}

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

.metric span:first-child {
  color: var(--muted);
}

.metric span:last-child {
  color: var(--ink);
  font-family: var(--font-metrics);
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.feature-list,
.item-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
}

.feature.locked {
  color: var(--faint);
}

.storage-bar {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(27, 25, 22, 0.1);
}

.storage-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.cloud-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.thumb {
  width: 64px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--font-mono);
  font-variation-settings: var(--font-mono-settings);
  font-size: 11px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.item-title {
  width: 100%;
  min-height: 32px;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-weight: 650;
}

.item-meta {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
}

.delete-actions {
  display: grid;
}

.plan-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.plan-choice {
  min-height: 78px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  text-align: left;
}

.plan-choice strong,
.plan-choice span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-choice span {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  width: min(var(--maxw), calc(100vw - (2 * var(--gutter))));
  min-height: 112px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero > div:first-child {
    max-width: 760px;
  }

  .hero-figure {
    max-width: 720px;
  }

  .tier-row,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0 10px;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav-links a,
  .nav-links .button {
    flex: 0 1 auto;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-art {
    min-height: 360px;
  }

  .mode-row,
  .feature-grid,
  .steps-grid,
  .operator-grid,
  .use-case-grid,
  .card-grid,
  .review-grid,
  .contact-grid,
  .split-section,
  .legal-layout,
  .tier-row,
  .trust-strip,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
    padding: 22px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .account-grid {
    gap: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .page-title h1 {
    letter-spacing: -0.035em;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .actions .button {
    width: 100%;
  }

  .hero-art {
    min-height: 300px;
  }

  .tier,
  .panel,
  .auth-card,
  .signin-panel {
    padding: 22px;
    border-radius: 15px;
  }

  .plan-choices {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .button,
  .nav-links a {
    transition-duration: 0.01ms;
  }
}
