:root {
  --paper: #faf7f2;
  --paper-soft: #f3ede3;
  --paper-deep: #e8e2d5;
  --ink: #1a1714;
  --ink-soft: #6b6256;
  --ink-faint: #9a9183;
  --border: #d4ccbc;
  --border-soft: #efeae0;
  --terracotta: #c8553d;
  --terracotta-dark: #b14a34;
  --terracotta-soft: #f5e5df;
  --ai: #3d5a6c;
  --ai-soft: #e3e9ed;
  --premium: #d4a056;
  --premium-soft: #f7edda;
  --olive: #7a8b5c;
  --olive-soft: #eaeedf;
  --shadow: 0 24px 70px rgba(26, 23, 20, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

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

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

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

  * {
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 160, 86, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(61, 90, 108, 0.14), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 30%, var(--paper-soft) 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.legal-card,
.notice,
.page-intro,
.section,
.link-card {
  scroll-margin-top: 96px;
}

a {
  color: var(--ai);
  text-decoration-color: rgba(61, 90, 108, 0.4);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--terracotta-dark);
}

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

.page-shell {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(250, 247, 242, 0.86);
  border-bottom: 1px solid rgba(212, 204, 188, 0.5);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--terracotta) 0%, #db7d61 100%);
  color: var(--paper);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(200, 85, 61, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.brand__title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(232, 226, 213, 0.72);
  color: var(--ink);
}

.hero {
  padding: 72px 0 28px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 30px;
  align-items: stretch;
}

.hero__content,
.hero__panel,
.surface-card,
.legal-card,
.notice,
.feature-card,
.link-card {
  border: 1px solid rgba(212, 204, 188, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 242, 0.92)),
    var(--paper);
}

.hero__badge,
.section-badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 85, 61, 0.16);
  background: rgba(245, 229, 223, 0.88);
  color: var(--terracotta-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 18px 0 18px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.9rem, 4.8vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, #dc7658 100%);
  color: var(--paper);
  box-shadow: 0 18px 32px rgba(200, 85, 61, 0.24);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border: 1px solid rgba(212, 204, 188, 0.85);
}

.hero__panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.96), rgba(43, 38, 34, 0.94));
  color: var(--paper);
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 86, 0.35) 0%, transparent 70%);
}

.quote-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 28px;
  background: rgba(247, 237, 218, 0.92);
  color: var(--ink);
}

.quote-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--premium);
}

.quote-card__text {
  margin: 14px 0 18px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.28;
  font-style: italic;
}

.quote-card__author {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero__stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero__stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--paper);
}

.hero__stat span {
  color: rgba(240, 235, 224, 0.78);
  font-size: 0.88rem;
}

.section {
  padding: 26px 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section__head h2,
.content-block h2,
.legal-card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  line-height: 1.05;
}

.section__head p,
.content-block p,
.legal-card p,
.legal-card li,
.notice p,
.link-card p {
  color: var(--ink-soft);
}

.features-grid,
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.link-card,
.surface-card,
.legal-card {
  background: rgba(255, 255, 255, 0.84);
}

.feature-card {
  padding: 24px;
}

.feature-card--ai {
  background: linear-gradient(180deg, rgba(227, 233, 237, 0.88), rgba(255, 255, 255, 0.88));
}

.feature-card--premium {
  background: linear-gradient(180deg, rgba(247, 237, 218, 0.92), rgba(255, 255, 255, 0.88));
}

.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card__icon--primary {
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.feature-card__icon--ai {
  background: var(--ai-soft);
  color: var(--ai);
}

.feature-card__icon--premium {
  background: var(--premium-soft);
  color: #a3732c;
}

.feature-card h3,
.link-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p,
.link-card p {
  margin: 0;
}

.links-grid {
  margin-top: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.link-card a {
  font-weight: 700;
  text-decoration: none;
}

.surface-card {
  padding: 28px;
}

.content-block {
  max-width: 74ch;
}

.content-block h2 + p,
.legal-card h2 + p {
  margin-top: 12px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 56px 0 72px;
}

.legal-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 22px;
  border: 1px solid rgba(212, 204, 188, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.legal-sidebar h2 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.legal-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-soft);
}

.legal-sidebar a:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

.legal-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-intro {
  padding: 30px 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(245, 229, 223, 0.94), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(212, 204, 188, 0.72);
  box-shadow: var(--shadow);
}

.page-intro p {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
}

.page-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.meta-pill {
  border-color: rgba(61, 90, 108, 0.1);
  background: rgba(227, 233, 237, 0.9);
  color: var(--ai);
  letter-spacing: 0.08em;
}

.legal-card {
  padding: 26px 28px;
}

.legal-card ul,
.legal-card ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.notice {
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(234, 238, 223, 0.96), rgba(255, 255, 255, 0.88));
}

.notice--warm {
  background: linear-gradient(180deg, rgba(247, 237, 218, 0.94), rgba(255, 255, 255, 0.88));
}

.site-footer {
  padding: 24px 0 56px;
}

.site-footer__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border: 1px solid rgba(212, 204, 188, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.site-footer__card p {
  margin: 0;
  color: var(--ink-soft);
}

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

.legal-card h3 {
  margin: 22px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.legal-card h3:first-of-type {
  margin-top: 16px;
}

.legal-card h3 + p,
.legal-card h3 + ul {
  margin-top: 8px;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(212, 204, 188, 0.28);
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.table-scroll {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.plan-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.plan-table th,
.plan-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-soft);
}

.plan-table thead th {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(243, 237, 227, 0.7);
}

.plan-table tbody td:first-child {
  color: var(--ink);
  font-weight: 500;
}

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

.plan-table a,
.legal-card a,
.notice a,
.link-card a {
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid,
  .legal-layout,
  .features-grid,
  .links-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-layout {
    gap: 16px;
    padding: 28px 0 56px;
  }

  .legal-sidebar {
    position: static;
    padding: 18px;
    border-radius: 22px;
  }

  .legal-sidebar h2 {
    margin-bottom: 10px;
  }

  .legal-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .legal-sidebar a {
    padding: 7px 12px;
    border: 1px solid rgba(212, 204, 188, 0.75);
    border-radius: 999px;
    background: rgba(250, 247, 242, 0.8);
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section__head p {
    margin: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --radius-xl: 24px;
    --shadow: 0 14px 34px rgba(26, 23, 20, 0.07);
  }

  .page-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header {
    position: static;
    backdrop-filter: none;
  }

  .site-header__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 12px 0 10px;
  }

  .brand {
    gap: 11px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 24px;
    box-shadow: 0 10px 22px rgba(200, 85, 61, 0.24);
  }

  .brand__title {
    font-size: 1.12rem;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 8px 13px;
    border: 1px solid rgba(212, 204, 188, 0.6);
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
  }

  .hero {
    padding: 30px 0 20px;
  }

  .hero__grid {
    gap: 16px;
  }

  .hero__content,
  .hero__panel,
  .surface-card,
  .legal-card,
  .page-intro,
  .notice {
    padding: 22px 20px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
    line-height: 1.02;
    margin: 16px 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero__actions {
    margin-top: 22px;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .quote-card {
    padding: 22px 20px;
  }

  .quote-card__text {
    font-size: 1.24rem;
  }

  .hero__stats {
    gap: 10px;
  }

  .hero__stat {
    padding: 13px 14px;
    border-radius: 16px;
  }

  .hero__stat strong {
    font-size: 1.16rem;
  }

  .hero__stat span {
    font-size: 0.84rem;
  }

  .section {
    padding: 16px 0;
  }

  .section__head {
    margin-bottom: 16px;
  }

  .legal-layout {
    padding: 20px 0 44px;
  }

  .legal-main {
    gap: 14px;
  }

  .page-meta {
    gap: 8px;
    margin-top: 16px;
  }

  .hero__badge,
  .section-badge,
  .meta-pill {
    max-width: 100%;
    min-height: 30px;
    padding: 5px 13px;
    letter-spacing: 0.12em;
    line-height: 1.35;
  }

  .meta-pill {
    padding: 4px 12px;
    font-size: 0.68rem;
  }

  .site-footer {
    padding: 16px 0 40px;
  }

  .site-footer__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }

  .legal-card,
  .notice,
  .page-intro,
  .section,
  .link-card {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .table-scroll {
    margin-top: 14px;
    overflow-x: visible;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .plan-table,
  .plan-table tbody,
  .plan-table tr,
  .plan-table td {
    display: block;
  }

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

  .plan-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .plan-table tr {
    padding: 15px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
  }

  .plan-table tr:last-child {
    margin-bottom: 0;
  }

  .plan-table td {
    padding: 0;
    border: none;
  }

  .plan-table td + td {
    margin-top: 10px;
  }

  .plan-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .plan-table tbody td:first-child {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
  }

  .plan-table tbody td:first-child::before {
    display: none;
  }
}

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

  .hero__content,
  .hero__panel,
  .surface-card,
  .legal-card,
  .page-intro,
  .notice {
    padding: 20px 16px;
  }

  .legal-card ul,
  .legal-card ol {
    padding-left: 18px;
  }

  .brand__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .quote-card {
    padding: 20px 16px;
  }
}
