:root {
  color-scheme: light;
  --ink: #17221b;
  --muted: #607066;
  --paper: #f5f6ef;
  --card: #fffef8;
  --line: #d8ded3;
  --green: #0d6b43;
  --green-dark: #084a30;
  --lime: #d9ff72;
  --peach: #ffcfad;
  --blue: #cce8ff;
  --shadow: 0 22px 60px rgba(23, 34, 27, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1rem, 5vw, 5rem); background: rgba(245, 246, 239, .88); border-bottom: 1px solid rgba(216, 222, 211, .75); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--ink); color: var(--lime); font-size: .8rem; }
nav { display: flex; align-items: center; gap: 1.25rem; font-size: .98rem; font-weight: 750; }
nav a, .link-button { text-decoration: none; color: var(--muted); }
.link-button { border: 0; background: transparent; cursor: pointer; padding: 0; }
nav a:hover, nav a:focus-visible, .link-button:hover, .link-button:focus-visible { color: var(--green); }

.hero { min-height: 700px; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; width: 36rem; height: 36rem; border-radius: 50%; right: -12rem; top: 3rem; background: radial-gradient(circle at center, rgba(217,255,114,.8), rgba(217,255,114,0) 68%); pointer-events: none; }
.hero-copy, .hero-panel { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .7rem; color: var(--green); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; line-height: 1.03; }
h1 { margin: 0; max-width: 850px; font-size: clamp(3.3rem, 7.5vw, 7.4rem); font-weight: 500; }
h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 500; }
h3 { margin: 0; font-size: 1.55rem; }
.hero-lead { max-width: 720px; margin: 1.75rem 0; color: #4e5e54; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.hero-actions, .result-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .8rem 1.2rem; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 850; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,34,27,.12); }
.button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: transparent; color: var(--ink); }
.button.large { min-height: 56px; padding-inline: 1.6rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--muted); font-size: .88rem; }
.trust-list li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: .45rem; }
.hero-panel { border: 1px solid var(--ink); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.4rem); transform: rotate(1.2deg); }
.panel-label { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.hero-panel ol { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.hero-panel li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.hero-panel li > span { color: var(--green); font-weight: 900; }
.hero-panel strong, .hero-panel small { display: block; }
.hero-panel small { margin-top: .2rem; color: var(--muted); }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); background: var(--lime); }
.proof-strip div { padding: 1.5rem clamp(1rem, 3vw, 3rem); border-right: 1px solid var(--ink); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { display: block; font-size: 2rem; line-height: 1; }
.proof-strip span { color: var(--green-dark); font-size: .9rem; font-weight: 800; }

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.section-heading, .result-heading { display: grid; grid-template-columns: 1fr minmax(280px, .55fr); gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-heading > p, .result-heading > div > p { color: #435248; max-width: 590px; font-size: 1.06rem; line-height: 1.65; }
.finder-section { background: #eceee5; }
.finder-card { padding: clamp(1.25rem, 3vw, 3rem); border: 1px solid var(--ink); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { width: 100%; margin-bottom: 1.1rem; font-size: 1.05rem; font-weight: 900; }
legend > span { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; margin-right: .55rem; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: .75rem; }
legend small { color: var(--muted); font-weight: 600; }
.question { padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; }
.question.full { margin-bottom: 1.25rem; }
.question-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.option-grid { display: grid; gap: .8rem; }
.outcome-grid { grid-template-columns: repeat(3, 1fr); }
.option-stack { display: grid; gap: .55rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: block; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; transition: border .15s ease, background .15s ease, transform .15s ease; }
.choice-body strong, .choice-body small { display: block; }
.choice-body small { margin-top: .25rem; color: #4e5e54; }
.choice input:checked + .choice-body { border-color: var(--green); background: #ecf9e9; box-shadow: inset 0 0 0 1px var(--green); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice:hover .choice-body { transform: translateY(-1px); border-color: #8fa195; }
.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-list .choice-body { border-radius: 999px; padding: .55rem .85rem; font-size: .88rem; }
.optional-question { background: #fafaf5; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-actions p { max-width: 580px; color: #4e5e54; font-size: .95rem; }
.error-summary { margin-bottom: 1rem; padding: 1rem; color: #72221e; background: #ffe9e5; border: 1px solid #d68a82; border-radius: 12px; }

.result-section { background: var(--ink); color: white; }
.result-section .eyebrow { color: var(--lime); }
.result-heading { align-items: start; }
.result-heading > div > p { color: #bdc8c0; }
.result-section .button.secondary { border-color: white; color: white; }
.result-section .button.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.method-note { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid #516158; border-radius: 14px; color: #cdd7d0; }
.method-note p { margin: 0; }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stack-card { display: flex; flex-direction: column; min-width: 0; padding: 1.4rem; border: 1px solid #d8ded3; border-radius: 20px; background: white; color: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.stack-card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.stack-card .category, .pill { display: inline-flex; padding: .3rem .6rem; border-radius: 999px; background: #e9eee8; color: var(--green-dark); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.stack-card h3 { margin-top: .8rem; }
.stack-card p { color: #4e5e54; font-size: .95rem; }
.reason-list { padding-left: 1.1rem; font-size: .87rem; }
.caveat { padding: .8rem; background: #fff5e8; border-radius: 10px; font-size: .88rem !important; }
.tool-link { font-weight: 850; color: var(--green); }
.favorite { border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; color: #748077; }
.favorite.active { color: #d66b2c; }
.alternatives { margin-top: 2rem; }
.alternatives details { border-top: 1px solid #4b5c52; padding: 1rem 0; }
.alternatives summary { cursor: pointer; font-weight: 850; }
.alt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: .8rem; }
.alt-card { padding: 1rem; border: 1px solid #4b5c52; border-radius: 12px; color: #d3ddd6; }
.alt-card strong { display: block; color: white; }
.workflow-detail { margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: 24px; background: var(--lime); color: var(--ink); }
.workflow-detail header { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.workflow-detail p { max-width: 800px; }
.workflow-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.workflow-steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; padding: 0; list-style: none; }
.workflow-steps li { position: relative; padding: 1.1rem 1.1rem 1.1rem 3.6rem; border: 1px solid var(--ink); border-radius: 14px; background: rgba(255,255,255,.45); }
.workflow-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: .75rem; font-weight: 900; }
.workflow-steps strong, .workflow-steps small { display: block; }
.workflow-steps small { margin-top: .4rem; color: var(--green-dark); }
.checkpoints { padding: 1rem; border: 1px dashed var(--ink); border-radius: 14px; }
.checkpoints ul { margin-bottom: 0; }
.offer-bridge { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2rem; padding: 1.5rem; border: 1px solid #526157; border-radius: 18px; }
.offer-bridge p { color: #c5d0c8; max-width: 780px; }

.vault-section { background: var(--peach); }
.catalog-section { background: var(--card); }
.vault-toolbar { display: flex; gap: 1rem; margin-bottom: 2rem; }
.vault-toolbar label { display: grid; gap: .35rem; min-width: min(100%, 280px); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.vault-toolbar input, .vault-toolbar select { min-height: 46px; border: 1px solid var(--ink); border-radius: 10px; background: white; padding: .7rem .8rem; text-transform: none; letter-spacing: 0; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.workflow-card { display: flex; flex-direction: column; min-height: 350px; min-width: 0; padding: 1.4rem; border: 1px solid var(--ink); border-radius: 20px; background: var(--card); box-shadow: 0 10px 28px rgba(23,34,27,.06); }
.workflow-card h3 { margin: .9rem 0; font-size: 1.8rem; }
.workflow-card p { color: #4e5e54; }
.workflow-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.text-action { border: 0; background: none; color: var(--green); cursor: pointer; font-weight: 900; padding: .4rem 0; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.tool-card { display: flex; flex-direction: column; min-height: 280px; min-width: 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 28px rgba(23,34,27,.05); }
.tool-card h3 { margin: .7rem 0; font-size: 1.55rem; }
.tool-card p { color: #435248; font-size: .96rem; }
.tool-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.catalog-more { display: flex; justify-content: center; margin-top: 2rem; }
.empty { grid-column: 1 / -1; padding: 2rem; border: 1px dashed var(--ink); border-radius: 14px; text-align: center; }

.principles { background: var(--blue); }
.principles h2 { max-width: 900px; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.principle-grid article { min-height: 240px; padding: 1.3rem; border: 1px solid var(--ink); border-radius: 18px; background: rgba(255,255,255,.45); }
.principle-grid span { color: var(--green); font-weight: 900; }
.principle-grid h3 { margin-top: 2rem; }

footer { display: grid; grid-template-columns: .45fr 1fr; gap: 3rem; padding: 3rem clamp(1.25rem, 7vw, 8rem); background: var(--ink); color: white; }
footer p { color: #cbd5ce; font-size: .94rem; line-height: 1.65; }
.footer-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

dialog { width: min(850px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; border: 1px solid var(--ink); border-radius: 22px; padding: 2rem; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 20, 14, .72); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; float: right; top: 0; border: 1px solid var(--ink); border-radius: 50%; width: 2.3rem; height: 2.3rem; background: white; cursor: pointer; font-size: 1.3rem; }
.dialog-section { margin-top: 1.5rem; }
.dialog-section li { margin-bottom: .5rem; }
.notice { padding: 1rem; border-radius: 12px; background: #eef2e8; }
.noscript { margin: 0; padding: 1rem; background: #ffe7aa; text-align: center; }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 650px; transform: none; }
  .outcome-grid, .stack-grid, .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid, .principle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { align-items: center; padding-block: .8rem; }
  nav { gap: .85rem; font-size: .9rem; flex-wrap: wrap; justify-content: flex-end; }
  nav a:nth-child(2) { display: none; }
  .hero { min-height: 0; gap: 3.25rem; padding-top: 4.75rem; padding-bottom: 4.5rem; }
  .hero-lead { margin-block: 1.4rem; font-size: 1.05rem; }
  .hero-actions { gap: .65rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-panel { padding: 1.35rem; }
  .hero-panel li { padding: .9rem 0; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  h2 { font-size: clamp(2.3rem, 11vw, 3.7rem); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div { min-height: 108px; padding: 1.2rem; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .proof-strip span { display: block; margin-top: .35rem; font-size: .82rem; line-height: 1.25; }
  .section-heading, .result-heading, .question-grid, .outcome-grid, .tool-grid, .principle-grid, footer, .footer-copy { grid-template-columns: 1fr; }
  .section-heading, .result-heading { gap: 1.15rem; margin-bottom: 2rem; align-items: start; }
  .section-heading > p, .result-heading > div > p { font-size: 1rem; }
  .form-actions, .offer-bridge { align-items: stretch; flex-direction: column; }
  .form-actions .button, .offer-bridge .button { width: 100%; }
  .method-note { grid-template-columns: 1fr; }
  .workflow-steps, .alt-grid { grid-template-columns: 1fr; }
  .workflow-detail header { grid-template-columns: 1fr; }
  .vault-toolbar { flex-direction: column; }
  .vault-toolbar label { width: 100%; }
  .section { padding-block: 4.25rem; }
  .result-section { overflow: hidden; }
  .stack-grid, .workflow-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(88vw, 360px); grid-template-columns: none; gap: .85rem; margin-inline: -1.25rem; padding: .25rem 1.25rem 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
  .stack-card, .workflow-card { min-height: 0; scroll-snap-align: start; }
  .stack-card p, .tool-card p { line-height: 1.5; }
  .workflow-detail { padding: 1.2rem; }
  .workflow-steps li { padding-right: .9rem; }
  .question { padding: 1.05rem; }
  .choice-body { padding: .85rem; }
  .button { min-height: 50px; }
  .chip-list { max-height: 180px; overflow: auto; padding-right: .25rem; }
  .chip-list .choice-body { padding: .7rem .9rem; }
  .tool-card { min-height: 0; }
  .tool-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .principle-grid article { min-height: 0; }
  footer { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
