:root {
  --sage: #dfe2d3;
  --sage-deep: #cfd4c1;
  --parchment: #f1ecdb;
  --parchment-soft: #e9ecdf;
  --ink: #354239;
  --ink-soft: #4e5d4d;
  --moss: #69725e;
  --moss-soft: #8b937c;
  --terracotta: #a26047;
  --terracotta-deep: #8c5138;
  --line: #a3ae98;
  --line-soft: rgba(97, 88, 67, 0.18);
  --card: #f3efe1;
  --shadow: 0 18px 40px -24px rgba(53, 66, 57, 0.45);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --wrap: 1120px;
}

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

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

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

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--terracotta-deep);
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--parchment);
  color: var(--ink);
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.section-lede {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5ch;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

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

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #467969;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--terracotta);
  color: #fdf6ee;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
}

.btn-ghost {
  background: var(--parchment-soft);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--parchment);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(223, 226, 211, 0.82);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(97, 88, 67, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

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

.brand-mark {
  width: 38px;
  height: 28px;
  color: var(--moss);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--terracotta-deep);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.lang-switch a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--moss);
  padding: 0.32rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.lang-switch a:hover {
  color: var(--terracotta-deep);
}

.lang-switch a[aria-current="page"] {
  background: var(--parchment);
  color: var(--ink);
  border-color: var(--line);
}

.header-cta {
  margin-left: 0.4rem;
  padding: 0.72rem 1.3rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(97, 88, 67, 0.12);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(223, 226, 211, 0) 38%, rgba(223, 226, 211, 0.82) 88%),
    linear-gradient(180deg, rgba(223, 226, 211, 0.55) 0%, rgba(223, 226, 211, 0.2) 30%, rgba(223, 226, 211, 0.9) 100%);
}

.hero-copy {
  position: relative;
  padding-block: clamp(4rem, 12vh, 8rem);
  max-width: min(100% - 2.5rem, 760px);
}

.hero-copy h1 {
  color: #2c382f;
  text-wrap: balance;
}

.hero-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--terracotta-deep);
  letter-spacing: 0.04em;
  margin: 0.4rem 0 1.2rem;
}

.hero-lede {
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--moss);
  margin: 0;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-tint {
  background: linear-gradient(180deg, rgba(241, 236, 219, 0.55), rgba(207, 212, 193, 0.55));
  border-block: 1px solid rgba(97, 88, 67, 0.12);
}

.section h2 {
  margin-bottom: 0.6rem;
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid rgba(97, 88, 67, 0.16);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Pricing */
.pricing-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(97, 88, 67, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-card-featured {
  background: var(--parchment);
  border-color: var(--terracotta);
  box-shadow: var(--shadow);
}

.price-badge {
  align-self: flex-start;
  background: var(--terracotta);
  color: #fdf6ee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  margin: 0 0 0.6rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5ch;
  margin: 0.4rem 0 0.2rem;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--ink);
}

.price-period {
  color: var(--moss);
  font-size: 0.95rem;
}

.price-desc {
  color: var(--ink-soft);
  font-size: 0.96rem;
  min-height: 2.6em;
}

.price-list {
  list-style: none;
  margin: 1rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.96rem;
}

.price-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--terracotta);
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-note {
  margin-top: 1.6rem;
  color: var(--moss);
  font-size: 0.9rem;
}

/* Download */
.download-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.download-card {
  background: var(--card);
  border: 1px solid rgba(97, 88, 67, 0.16);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.download-meta {
  color: var(--moss);
  font-size: 0.92rem;
  margin: 0 0 1.3rem;
}

.download-card .btn {
  align-self: flex-start;
}

/* FAQ */
.faq {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--card);
  border: 1px solid rgba(97, 88, 67, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.35rem 1.2rem;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--terracotta);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--sage);
  padding-block: 3rem 1.6rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand .brand-name {
  color: var(--parchment);
}

.footer-brand .brand-mark {
  color: var(--sage-deep);
}

.footer-brand {
  display: grid;
  gap: 0.4rem;
}

.footer-motto {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage-deep);
  margin: 0.3rem 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.footer-nav a {
  color: var(--sage);
  text-decoration: none;
  opacity: 0.85;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(223, 226, 211, 0.2);
  font-size: 0.85rem;
  color: var(--sage-deep);
}

.footer-legal p {
  margin: 0;
}

.noscript {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.1rem;
  max-width: 90vw;
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-block: 4.5rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(223, 226, 211, 0.94) 0%, rgba(223, 226, 211, 0.72) 45%, rgba(223, 226, 211, 0.95) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .feature-card {
    transition: none;
  }
}
