:root {
  color-scheme: light;
  --ink: #10201d;
  --ink-soft: #43514d;
  --paper: #f2efe9;
  --paper-light: #faf8f4;
  --forest: #062f29;
  --forest-deep: #031f1c;
  --teal: #2e9d83;
  --teal-light: #8ed0be;
  --line: rgba(16, 32, 29, 0.16);
  --line-dark: rgba(255, 255, 255, 0.16);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(46, 157, 131, 0.08), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--ink);
  font-weight: 650;
}

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

.site-header,
.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  gap: 24px;
}

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

.brand img {
  width: 104px;
  height: auto;
  mix-blend-mode: multiply;
}

.brand__product {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.login-link::after {
  content: "\2197";
  color: var(--teal);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.login-link:hover::after {
  transform: translate(2px, -2px);
}

.hero {
  width: min(1400px, calc(100% - 32px));
  min-height: min(720px, calc(100vh - 144px));
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--forest-deep);
  color: #f6f2eb;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: inherit;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(48px, 7vw, 104px);
  background:
    linear-gradient(135deg, rgba(46, 157, 131, 0.11), transparent 44%),
    radial-gradient(circle at 10% 95%, rgba(46, 157, 131, 0.18), transparent 30rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--teal-light);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 760px;
  margin: 48px 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.2vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero__product {
  margin: clamp(70px, 12vh, 140px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.hero__product-name {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.hero__status {
  margin: 0;
  color: rgba(246, 242, 235, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #e9e5de;
}

.hero__visual::after {
  position: absolute;
  inset: 0;
  box-shadow: inset 30px 0 60px rgba(3, 31, 28, 0.12);
  content: "";
  pointer-events: none;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 36px;
  padding-block: 48px 56px;
}

.footer__identity p,
.footer__identity small {
  margin: 0;
}

.footer__identity p {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer__identity small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Legal and trust pages */
.legal-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto 72px;
  border-top: 1px solid var(--line);
}

.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(48px, 8vw, 112px);
  padding-top: clamp(54px, 8vw, 94px);
}

.legal-nav {
  position: sticky;
  top: 32px;
  align-self: start;
}

.legal-nav p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-nav a[aria-current="page"],
.legal-nav a:hover {
  color: var(--ink);
}

.legal-document h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.legal-document .meta {
  margin: 18px 0 58px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.legal-document h2 {
  margin: 46px 0 10px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: #33413d;
}

.legal-document p {
  margin: 0 0 18px;
}

.legal-document table {
  width: 100%;
  margin: 20px 0 32px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

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

.legal-document th {
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-version {
  margin-top: 60px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 104px);
  padding: 48px 24px;
  text-align: center;
}

.not-found__mark {
  width: min(210px, 50vw);
  margin: 0 auto 32px;
  border-radius: 12px;
}

.not-found h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.not-found p {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.not-found a {
  font-weight: 650;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    min-height: 560px;
  }

  .hero__visual {
    min-height: auto;
    aspect-ratio: 1 / 0.88;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .legal-nav {
    position: static;
  }

  .legal-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .legal-shell {
    width: min(100% - 32px, 1240px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand img {
    width: 88px;
  }

  .brand__product {
    display: none;
  }

  .hero {
    width: calc(100% - 16px);
    margin-bottom: 8px;
  }

  .hero__copy {
    min-height: 520px;
    padding: 42px 28px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .hero__product {
    margin-top: 80px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding-block: 38px 44px;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .legal-shell {
    margin-top: 12px;
  }

  .legal-grid {
    padding-top: 42px;
  }

  .legal-document .meta {
    margin-bottom: 42px;
  }

  .legal-document table,
  .legal-document tbody,
  .legal-document tr,
  .legal-document th,
  .legal-document td {
    display: block;
  }

  .legal-document thead {
    display: none;
  }

  .legal-document tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-document td {
    padding: 3px 0;
    border: 0;
  }

  .legal-document td::before {
    display: block;
    margin-top: 8px;
    color: var(--ink-soft);
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
