:root {
  --navy: #1f3a5f;
  --navy-dark: #142740;
  --gold: #f4b860;
  --gold-dark: #d99a3c;
  --cream: #fbf7f0;
  --ink: #1d2433;
  --muted: #5d6677;
  --line: #e6e1d6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 39, 64, 0.12);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--navy-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 0.75em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--gold); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(244, 184, 96, 0.4); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 0.5em 1em; font-size: 0.9rem; background: var(--navy); color: #fff !important; }
.btn-large { font-size: 1.1rem; padding: 1em 2em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--navy-dark); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream), #fff); padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.95rem; }
.hero-points li::before { content: "✓ "; color: var(--gold-dark); font-weight: 700; }

/* Mock-up */
.mock { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transform: rotate(1deg); }
.mock-bar { background: #f3f1ec; padding: 10px 14px; display: flex; gap: 6px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9d4c9; }
.mock-body { padding: 22px; }
.mock-title { font-weight: 600; font-size: 1.1rem; }
.mock-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.mock-fa { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; font-size: 0.8rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mock-fa b { color: var(--navy); }
.mock-fa span { min-width: 0; }
.mock-fa i { font-style: normal; white-space: nowrap; }
.tag-empty { color: var(--muted); border: 1px dashed var(--line); }
.mock-row { display: grid; grid-template-columns: 1fr 90px; gap: 12px; align-items: center; font-size: 0.85rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mock-row b { display: block; height: 8px; border-radius: 99px; background: #eee; position: relative; overflow: hidden; }
.mock-row b::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--navy), #3d6aa3); border-radius: inherit; }
.mock-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 0.75rem; padding: 3px 9px; border-radius: 6px; }
.tag-a { background: #e3edf9; color: #1f4f8a; }
.tag-b { background: #fdeccf; color: #8a5a12; }
.tag-c { background: #e2f3e6; color: #24693a; }
.tag-d { background: #f1e4f6; color: #6b2f86; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--cream); }

/* Tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tabs button { font: inherit; font-weight: 600; padding: 0.7em 1.3em; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.panel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.pain { margin: 0; padding: 28px; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 8px; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy-dark); }
.pain span { display: block; margin-top: 12px; font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.feature .icon { font-size: 1.8rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: none; }
.steps li { text-align: center; }
.steps span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); }

/* Sample / signup */
.sample { background: var(--navy); color: #fff; }
.sample h2 { color: #fff; }
.sample p { color: #c9d4e3; }
.sample-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.signup { display: grid; gap: 12px; }
.signup input, .signup select { font: inherit; padding: 0.85em 1em; border-radius: 10px; border: 2px solid transparent; width: 100%; }
.signup input:focus, .signup select:focus { outline: none; border-color: var(--gold); }
.form-msg { min-height: 1.5em; margin: 0; font-weight: 500; color: var(--gold) !important; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; background: #fff; position: relative; }
.plan .checks { flex: 1; }
.plan .btn { text-align: center; }
.plan.featured { border: 2px solid var(--navy); box-shadow: var(--shadow); transform: translateY(-8px); }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-dark); font-size: 0.8rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin: 0; white-space: nowrap; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--navy-dark); margin: 0; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold-dark); }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* CTA + footer */
.cta { background: linear-gradient(135deg, var(--cream), #fff4e0); }
.cta .lead { max-width: 560px; margin: 0 auto 28px; }
.site-footer { background: var(--navy-dark); color: #c9d4e3; padding: 40px 0; }
.site-footer a { color: var(--gold); }
.site-footer strong { color: #fff; }
.footer-inner p { margin: 0 0 8px; }
.site-footer .muted { color: #8fa0b8; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .panel-grid, .sample-inner { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .mock { transform: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .panel { padding: 24px; }
  .hero { padding: 48px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Thank-you / download page */
.thanks .section:first-child { background: linear-gradient(180deg, var(--cream), #fff); }
.thanks-icon { font-size: 3rem; margin-bottom: 8px; }
.download-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 28px; margin-top: 32px; }
.download-card .form-msg { color: var(--navy) !important; margin-top: 12px; overflow-wrap: anywhere; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.guide-link { display: inline-block; margin-top: 16px; font-weight: 600; }
.guide-link[hidden] { display: none; }
.spinner { width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--navy); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Instagram */
[data-ig-show][hidden] { display: none !important; }
.nav-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--navy) !important; }
.nav-ig-text { display: none; }
@media (max-width: 720px) { .nav-ig-text { display: inline; } }
.ig-lead { max-width: 600px; margin-inline: auto; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 32px 0; }
.ig-grid:empty { display: none; }
.ig-post { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cream); }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ig-post:hover img { transform: scale(1.05); }
.ig-follow { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.ig-share { margin-top: 24px; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* How it works: the template's three connected parts */
.narrow-text { max-width: 640px; margin-inline: auto; }
.parts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.parts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.parts li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--gold-dark); font-size: 1.3rem; font-weight: 700; z-index: 1; }
.part-icon { font-size: 1.8rem; }
.parts h3 { margin: 8px 0 0; }
.part-role { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 10px; }
.parts p:last-child { color: var(--muted); margin: 0; }
.relation-note { max-width: 620px; margin: 32px auto 0; }
.relation-note b { background: var(--navy); color: #fff; padding: 1px 7px; border-radius: 5px; }

/* Uses */
.uses { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.uses li { border-top: 3px solid var(--navy); padding-top: 16px; }
.uses p { color: var(--muted); margin: 0; }

/* About */
.about h2 { margin-bottom: 0.6em; }
.about p:last-child { font-size: 1.1rem; }

/* Thank-you template rows */
.template-list { display: grid; gap: 16px; margin-top: 20px; }
.template-row { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.template-row:first-child { border-top: 0; padding-top: 0; }
.template-name { font-weight: 600; margin: 0; }
.template-row .download-actions { margin-top: 8px; }

@media (max-width: 900px) {
  .parts { grid-template-columns: 1fr; }
  .parts li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -22px; transform: translateX(50%); }
  .uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .uses { grid-template-columns: 1fr; }
  .mock-fa { grid-template-columns: 30px 1fr; }
  .mock-fa i { display: none; }
}

/* Terms & privacy */
.legal h1 { margin-bottom: 0.2em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal li { margin-bottom: 0.5em; }

/* Setup check (owner only) */
.setup-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; }
.setup-list li { border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; padding: 16px 20px; background: #fff; }
.setup-list p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.setup-tag { float: right; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 10px; border-radius: 999px; margin-left: 12px; }
.setup-ok { border-left-color: #2e8b57; }
.setup-ok .setup-tag { background: #e2f3e6; color: #24693a; }
.setup-todo { border-left-color: #c0392b; }
.setup-todo .setup-tag { background: #fbe4e1; color: #96281b; }
.setup-optional { border-left-color: var(--gold); }
.setup-optional .setup-tag { background: #fdeccf; color: #8a5a12; }
.btn-soon { background: var(--cream); color: var(--muted); border-color: var(--line); cursor: default; text-align: center; }
.btn-soon:hover { transform: none; }
