:root {
  --bg: #f3eee6;
  --bg-band: #ebe3d6;
  --surface: #fffdf8;
  --ink: #1c1712;
  --ink-soft: #5e564e;
  --ink-faint: #8a8176;
  --line: #e4dacd;
  --line-strong: #d3c6b6;
  --accent: #7a3126;
  --accent-hover: #5f241c;
  --accent-soft: #f6e8e3;
  --ok: #1e6b4a;
  --ok-soft: #e6f4ee;
  --warn: #8a4b12;
  --warn-soft: #f8eedf;
  --shadow: 0 1px 2px rgba(28, 23, 18, 0.04), 0 18px 40px rgba(28, 23, 18, 0.07);
  --radius: 16px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", "ui-monospace", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #f7efe4 0%, transparent 60%),
    var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand-mark span { color: var(--accent); }
.brand-sub { color: var(--ink-faint); font-size: 0.82rem; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.hero, .article-hero {
  padding: 12px 0 28px;
}
.hero h1, .article-hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 16ch;
}
.lede {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 22px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fffdf8;
  font: inherit;
  font-weight: 500;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { background: var(--accent-hover); color: #fffdf8; }
.btn:focus-visible { outline: 3px solid #c9897c; outline-offset: 2px; }
.btn-secondary, .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover, .btn.ghost:hover { background: #fff; color: var(--ink); }
.btn-small { padding: 7px 12px; font-size: 0.88rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}

fieldset {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}
legend, .section-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  padding: 0;
}
.section-kicker {
  display: block;
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.hint { color: var(--ink-soft); margin: 0 0 18px; font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.grid .full { grid-column: 1 / -1; }

label.field, .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}
.req::after { content: " *"; color: var(--accent); font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid #ead3cb;
  border-color: var(--accent);
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-weight: 400;
}
.checks label, .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.95rem;
}
.subfields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 12px;
  padding: 14px;
  background: #faf6f0;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

.sku-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 14px;
  background: #fffcf7;
}
.sku-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.sku-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  position: sticky;
  bottom: 16px;
  z-index: 5;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  margin: 8px 0 28px;
}
.error {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 16px;
  display: none;
}
.error.show { display: block; }

.results { margin: 10px 0 48px; }
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.tab {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  color: var(--ink-soft);
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: #fffdf8;
  border-color: var(--ink);
}
.result-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.toast {
  font-size: 0.88rem;
  color: var(--ok);
  min-height: 1.2em;
}
.output {
  background: #1c1712;
  color: #f4efe6;
  border-radius: 14px;
  padding: 18px 18px 16px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 560px;
}
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table.spec, table.check {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
  min-width: 900px;
}
table.spec th, table.spec td, table.check th, table.check td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  background: #fff;
}
table.spec th, table.check th { background: #f6f0e8; font-weight: 600; }
.shared-list { margin: 16px 0 0; padding: 0; list-style: none; }
.shared-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.shared-list strong { display: inline-block; min-width: 180px; }

.site-footer {
  padding: 18px 0 40px;
  color: var(--ink-faint);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

/* Article */
.article {
  width: min(740px, calc(100% - 40px));
  margin: 0 auto 64px;
}
.article-hero { width: min(740px, calc(100% - 40px)); margin: 0 auto; padding-top: 8px; }
.article-hero h1 { max-width: none; font-size: clamp(2rem, 4vw, 3rem); }
.article h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.02em;
}
.article h3 {
  font-size: 1.1rem;
  margin: 1.6em 0 0.45em;
}
.article p, .article li { color: var(--ink); }
.article li { margin: 0.3em 0; }
.article pre {
  background: #1c1712;
  color: #f4efe6;
  padding: 16px 18px;
  border-radius: 14px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.article strong { font-weight: 650; }
.cta-box {
  margin-top: 2.5em;
  padding: 22px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hidden { display: none !important; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .grid, .subfields, .sku-card .grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .brand-sub { display: none; }
  .hero h1 { max-width: none; }
}

/* Guides hub, related links, breadcrumbs, pricing */
.crumbs {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.related {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; }
.related ul { padding-left: 1.15em; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 8px 0 40px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 140px;
}
.guide-card:hover { border-color: var(--line-strong); }
.guide-card .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.guide-card h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.group-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 1.6em 0 0.7em;
  letter-spacing: -0.02em;
}
.disclaimer {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: #faf6f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 1.4em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 36px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card.featured { border-color: #c9b4a8; background: #fff9f4; }
.price-card h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.price-amount {
  font-family: var(--serif);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin: 0;
}
.price-amount span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font); }
.price-card ul { margin: 8px 0 16px; padding-left: 1.15em; }
.price-card li { margin: 0.35em 0; }
.price-cta { margin-top: auto; }
.waitlist {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
}
.waitlist strong { display: block; margin-bottom: 4px; }
#paypal-button-container { min-height: 150px; margin-top: 6px; }
.thanks {
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 12px;
  padding: 16px;
}
.thanks code { font-family: var(--mono); font-size: 0.88rem; }
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
