:root {
  color-scheme: light;
  --ink: #10241f;
  --ink-soft: #33423d;
  --muted: #6d7772;
  --line: #d9ded8;
  --paper: #f7f8f3;
  --white: #ffffff;
  --green: #1f6f5b;
  --green-dark: #143b33;
  --clay: #c95f3d;
  --gold: #d5b23d;
  --blue: #2d5d88;
  --shadow: 0 24px 70px rgba(16, 36, 31, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 76px;
  z-index: -1;
  background: rgba(247, 248, 243, 0.86);
  border-bottom: 1px solid rgba(16, 36, 31, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.compact {
  margin-bottom: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

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

.site-nav a {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(31, 111, 91, 0.1);
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.74fr);
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(52px, 8vw, 106px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-text {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.3vw, 24px);
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

h1 span {
  display: block;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 36, 31, 0.15);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary,
.plan-button {
  background: var(--white);
  color: var(--ink);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 241, 236, 0.98)),
    repeating-linear-gradient(90deg, rgba(16, 36, 31, 0.04) 0 1px, transparent 1px 42px);
  border: 1px solid rgba(16, 36, 31, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: 26px;
  width: 86px;
  height: 86px;
  background: var(--clay);
  border: 9px solid var(--paper);
  border-radius: 50%;
  opacity: 0.94;
}

.panel-top,
.api-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.panel-top span:last-child,
.api-line span {
  color: #bcd0c8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.metric-grid article {
  min-height: 130px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-grid small,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid strong {
  display: block;
  margin: 14px 0 2px;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.usage-visual {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  height: 210px;
  margin: 14px 0;
  padding: 18px;
  background:
    linear-gradient(rgba(16, 36, 31, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 31, 0.06) 1px, transparent 1px);
  background-size: 100% 42px, 42px 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-visual span {
  display: block;
  height: var(--h);
  min-height: 32px;
  background: linear-gradient(180deg, var(--green), var(--gold));
  border: 1px solid rgba(16, 36, 31, 0.2);
  border-radius: 6px 6px 2px 2px;
}

.notice-band {
  background: var(--green-dark);
  color: var(--white);
  border-block: 1px solid rgba(255, 255, 255, 0.14);
}

.notice-band p {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 800;
}

.section {
  padding: 84px 0;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-heading,
.plan-grid,
.timeline,
.policy-grid,
.two-column,
.contact-band,
.support-notes > .section-heading {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 38px;
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-heading p:not(.eyebrow),
.section-dark .timeline p {
  color: #c2cec8;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.plan-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-card.featured {
  background: #f0f5ef;
  border-color: rgba(31, 111, 91, 0.35);
  box-shadow: 0 18px 48px rgba(31, 111, 91, 0.12);
}

.plan-code {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.price {
  margin: 10px 0 14px;
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.plan-card p:not(.price):not(.plan-code) {
  color: var(--ink-soft);
}

.plan-card ul,
.legal-page ul {
  padding-left: 20px;
}

.plan-card li,
.legal-page li {
  margin-bottom: 8px;
}

.plan-card .button {
  margin-top: auto;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline article {
  min-height: 260px;
  padding: 24px;
  background: var(--ink);
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.copy-block {
  color: var(--ink-soft);
  font-size: 19px;
}

.policy-section {
  background:
    linear-gradient(90deg, rgba(45, 93, 136, 0.08) 0 1px, transparent 1px 42px),
    var(--paper);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.policy-link {
  min-height: 190px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.policy-link span {
  display: block;
  margin-bottom: 28px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-link strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
}

.policy-link:hover,
.policy-link:focus {
  border-color: var(--green);
  box-shadow: 0 16px 34px rgba(16, 36, 31, 0.11);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 54px 0;
}

.contact-band h2 {
  font-size: clamp(32px, 5vw, 50px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px max(16px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
  color: #becbc5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.fine-print {
  grid-column: 1 / -1;
  font-size: 13px;
}

.legal-page,
.contact-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto 80px;
}

.legal-page {
  padding: 54px 0 24px;
}

.legal-page h1,
.contact-hero h1 {
  font-size: clamp(46px, 7vw, 84px);
}

.legal-page h2 {
  margin-top: 36px;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

.legal-page p,
.legal-page li,
.contact-hero p,
.contact-grid p {
  color: var(--ink-soft);
  font-size: 18px;
}

.legal-page a,
.contact-page a {
  color: var(--green);
  font-weight: 800;
}

.contact-hero {
  padding: 54px 0 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}

.contact-grid article {
  min-height: 230px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-grid span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-grid h2 {
  margin-top: 20px;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.15;
}

@media (max-width: 980px) {
  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .plan-grid,
  .timeline,
  .policy-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    width: min(100% - 24px, var(--max));
    padding-block: 12px;
  }

  .site-header::before {
    height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    width: min(100% - 24px, var(--max));
    padding: 42px 0 36px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 13vw, 52px);
    line-height: 0.96;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid article {
    min-height: auto;
  }

  .hero-panel::after {
    width: 58px;
    height: 58px;
    right: 8px;
    bottom: 18px;
    border-width: 6px;
  }

  .panel-top,
  .api-line {
    flex-wrap: wrap;
  }

  .hero-panel {
    width: 100%;
  }

  .panel-top span,
  .api-line code,
  .api-line span,
  .trust-row span {
    min-width: 0;
    max-width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading,
  .plan-grid,
  .timeline,
  .policy-grid,
  .two-column,
  .contact-band,
  .support-notes > .section-heading {
    width: min(100% - 24px, var(--max));
  }

  .section-heading {
    margin-left: 12px;
  }

  .plan-grid,
  .timeline,
  .policy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .plan-card,
  .timeline article,
  .policy-link {
    min-height: auto;
  }

  .timeline span {
    margin-bottom: 24px;
  }

  .contact-band {
    display: block;
  }

  .contact-actions {
    margin-top: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

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