:root {
  --ink: #0f1b2d;
  --ink-2: #1b2b44;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --alt: #f2efe8;
  --text: #17202e;
  --muted: #5d6675;
  --line: #e2ddd2;
  --brass: #e8a33d;
  --brass-text: #a3600d;
  --accent: #c97a14;
  --ok: #1f7a4d;
  --warn: #a35a00;
  --bad: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 27 45 / .06), 0 8px 24px rgb(15 27 45 / .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1522;
    --surface: #131f31;
    --alt: #101b2b;
    --text: #e8ebf0;
    --muted: #9aa5b5;
    --line: #23324a;
    --brass-text: #f0b862;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    --ok: #5cc98e;
    --warn: #f0b862;
    --bad: #ff8a80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code { font: .95em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.25rem/1 var(--serif); letter-spacing: .01em; }
.logo-mark { width: 28px; height: 28px; color: var(--brass); flex: none; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: #d6dce6; font-size: .95rem; }
.site-nav a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.site-nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .12); }
.site-nav .nav-account { border: 1px solid rgb(255 255 255 / .25); margin-left: 8px; }
.nav-toggle, .nav-button { display: none; }

@media (max-width: 860px) {
  .nav-button { display: block; margin-left: auto; width: 40px; height: 40px; cursor: pointer; position: relative; }
  .nav-button span, .nav-button span::before, .nav-button span::after {
    content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; border-radius: 2px;
  }
  .nav-button span { top: 19px; }
  .nav-button span::before { top: -7px; left: 0; right: 0; }
  .nav-button span::after { top: 7px; left: 0; right: 0; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 40px; height: 40px; right: 16px; margin: 0; cursor: pointer; z-index: 2; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--ink);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav .nav-account { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--brass); color: #1a1205; }
.button-primary:hover { background: #f0b14f; }
.button-ghost { border-color: currentColor; background: transparent; color: inherit; }
.button-light { background: #fff; color: var(--ink); }
.button-paypal { background: #ffc439; color: #111; }
.button-paypal:hover { background: #f5b82e; }
.text-link { color: var(--brass-text); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions.center { justify-content: center; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brass-text); margin-bottom: 12px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #24406a 0%, transparent 60%), var(--ink); color: #fff; padding: clamp(56px, 9vw, 120px) 0; overflow: hidden; }
.hero .lead { color: #c3cbd8; }
.hero .eyebrow { color: var(--brass); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-art { position: relative; min-height: 340px; }
.hero-wheel { position: absolute; inset: 0; display: grid; place-items: center; opacity: .12; }
.hero-wheel .logo-mark { width: 340px; height: 340px; color: var(--brass); animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-wheel .logo-mark { animation: none; } html { scroll-behavior: auto; } }
.hero-card {
  position: absolute; display: flex; gap: 16px; align-items: center; padding: 16px 20px 16px 16px;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: 18px;
  backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgb(0 0 0 / .25);
}
.hero-card strong { display: block; font: 600 1.2rem var(--serif); }
.hero-card span { color: #c3cbd8; font-size: .92rem; }
.hero-card-a { top: 40px; left: 0; }
.hero-card-b { bottom: 40px; right: 0; }
.product-icon { border-radius: 22%; flex: none; }

.hero-product { padding: clamp(48px, 7vw, 88px) 0; }
.product-hero { display: flex; gap: 36px; align-items: center; }
.product-hero h1 { margin-bottom: .2em; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; }
  .hero-wheel .logo-mark { width: 240px; height: 240px; }
  .product-hero { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 480px) {
  .hero-card { position: relative; inset: auto; margin-bottom: 12px; }
  .hero-art { min-height: 0; }
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.product-card {
  display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--brass); }
.product-card .product-icon { margin-bottom: 20px; }
.product-card h3 { font-size: 1.6rem; }
.product-card small { font: 500 .85rem var(--sans); color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; margin-top: 32px; }
.feature { border-top: 2px solid var(--brass); padding-top: 16px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }
.requirements { margin-top: 32px; }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.principles em { color: var(--brass-text); }
.principle-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.principle-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.principle-list strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.section-cta { background: var(--ink); color: #fff; }
.cta { text-align: center; }
.cta p { color: #c3cbd8; }

/* Pricing */
.store-head { padding-bottom: 32px; }
.pricing { text-align: center; }
.iv-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 8px 0 32px; }
.iv-switch input { position: absolute; opacity: 0; pointer-events: none; }
.iv-switch label { padding: 8px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.iv-switch input:checked + label { background: var(--ink); color: #fff; }
.iv-switch input:focus-visible + label { outline: 3px solid var(--brass); }
@media (prefers-color-scheme: dark) { .iv-switch input:checked + label { background: var(--brass); color: #1a1205; } }

.pricing:has(input[value="year"]:checked) [data-iv="month"],
.pricing:has(input[value="month"]:checked) [data-iv="year"] { display: none; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; text-align: left; }
.pricing .price-card { text-align: left; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.price-card p { margin: 0; }
.price-card .button { margin-top: auto; }
.price-card .text-link { text-align: center; }
.price-card-head { display: flex; gap: 16px; align-items: center; }
.price-card-head h2, .price-card-head h3 { margin: 0; font-size: 1.5rem; }
.price-card-head p { margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price strong { font: 600 2.4rem/1 var(--serif); }
.price span { color: var(--muted); }
.saving { font-size: .85rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 3px 10px; border-radius: 999px; }
.saving:empty { display: none; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.pricing.narrow { margin-inline: auto; }
.pricing.narrow .price-card { max-width: 480px; margin: 0 auto 16px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Checkout & forms */
.checkout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.checkout-summary .product-icon { margin-bottom: 20px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; gap: 24px; } }
fieldset { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
legend { font-weight: 700; margin-bottom: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 8%, transparent); }
.option input { margin-top: 5px; accent-color: var(--accent); }
.option span span { display: block; }
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field > span { font-weight: 700; }
input[type="email"], input[type="text"], input:not([type]) {
  font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 30%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .94rem; }
.check input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.check a, .notice a, .prose a, .small a { color: var(--brass-text); }
.pay-buttons { display: grid; gap: 10px; margin: 24px 0 12px; }
.pay-buttons .button { width: 100%; }
.notice { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--brass) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); }
.notice-error { background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

.thanks { text-align: center; }
.thanks .product-icon { margin: 0 auto 20px; }
.license code { display: inline-block; font-size: clamp(1rem, 3.4vw, 1.35rem); letter-spacing: .06em; padding: 14px 20px; border-radius: 10px; background: var(--alt); border: 1px dashed var(--brass); word-break: break-all; }
.spinner { width: 40px; height: 40px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brass); animation: turn 1s linear infinite; }

.account-card .details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 24px 0 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.status { font-weight: 700; }
.status-active { color: var(--ok); }
.status-past_due, .status-pending { color: var(--warn); }
.status-canceled { color: var(--bad); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 32px 0; }
.contact-grid h2 { font-size: 1.25rem; }
.contact-grid a { color: var(--brass-text); font-weight: 600; }

.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p { color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.orders { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); }
.orders th, .orders td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* Footer */
.site-footer { background: var(--ink); color: #c3cbd8; padding: 56px 0 24px; font-size: .94rem; }
.site-footer .muted { color: #8d98a9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; padding: 3px 0; overflow-wrap: anywhere; }
.footer-grid a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.footer-title { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--brass); margin-bottom: 10px; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Banner cookie */
[hidden] { display: none !important; }
.cookie-banner {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 640px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgb(15 27 45 / .22); padding: 20px 52px 20px 20px; font-size: .94rem;
}
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner p strong { display: block; font: 600 1.1rem var(--serif); margin-bottom: 4px; }
.cookie-banner a { color: var(--brass-text); }
.cookie-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.cookie-close:hover { background: var(--alt); color: var(--text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-actions .button { min-height: 40px; padding: 8px 18px; font-size: .94rem; }
.cookie-options { display: none; gap: 10px; margin: 0 0 14px; }
.cookie-banner.is-custom .cookie-options { display: grid; }
.cookie-custom-only, .cookie-banner.is-custom .cookie-hide-custom { display: none; }
.cookie-banner.is-custom .cookie-custom-only { display: inline-flex; }
.cookie-option { display: flex; gap: 10px; align-items: flex-start; }
.cookie-option input { margin-top: 4px; accent-color: var(--accent); }
.cookie-option .muted { display: block; font-size: .88rem; }
@media (max-width: 480px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px 44px 16px 16px; }
  .cookie-actions .button { flex: 1 1 auto; }
}
.footer-link { display: block; }
.footer-link, .inline-link { font: inherit; color: inherit; background: none; border: 0; padding: 3px 0; cursor: pointer; text-align: left; }
.footer-link:hover { color: #fff; }
.inline-link { color: var(--brass-text); text-decoration: underline; padding: 0; }
.cookie-table td { white-space: normal; min-width: 90px; }
