/* Setworks — site styles
   Palette and type follow the locked Setworks design system (June 2026). */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --indigo-deep: #1F2262;
  --indigo-core: #3546B2;
  --indigo-light: #8C97D6;
  --indigo-soft: #BEC5EC;
  --stone-white: #F5F0E8;
  --stone-mid: #E0D9CC;
  --stone-grey: #6F6964; /* darkened from #928C88 for AA contrast on stone */
  --ink: #1A1828;
  --vermillion: #C43426;
  --vermillion-deep: #7E1E14;
  --white: #FFFDF9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo-core); text-underline-offset: 3px; }
a:hover { color: var(--indigo-deep); }
:focus-visible { outline: 3px solid var(--indigo-core); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--stone-white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; }
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 420; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 640px; }
.muted { color: var(--stone-grey); }
.small { font-size: 0.9rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-core);
  margin-bottom: 18px;
}
.on-dark .eyebrow { color: var(--indigo-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-mid);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo {
  font-family: var(--font-display); font-variation-settings: "opsz" 72;
  font-weight: 600; font-size: 1.6rem; color: var(--indigo-deep); text-decoration: none; letter-spacing: -0.01em;
}
.logo span { color: var(--vermillion); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--indigo-core); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--vermillion); text-decoration-thickness: 2px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--stone-mid); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--stone-white); border-bottom: 1px solid var(--stone-mid);
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 24px; gap: 16px;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  line-height: 1.2;
}
.btn-primary { background: var(--indigo-deep); color: var(--stone-white); }
.btn-primary:hover { background: var(--indigo-core); color: var(--white); }
.btn-accent { background: var(--vermillion); color: var(--stone-white); }
.btn-accent:hover { background: var(--vermillion-deep); color: var(--stone-white); }
.btn-ghost { background: transparent; color: var(--indigo-deep); border-color: var(--indigo-deep); }
.btn-ghost:hover { background: var(--indigo-deep); color: var(--stone-white); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.on-dark .btn-ghost, .card-dark .btn-ghost { color: var(--stone-white); border-color: var(--stone-white); }
.on-dark .btn-ghost:hover, .card-dark .btn-ghost:hover { background: var(--stone-white); color: var(--indigo-deep); }
.on-dark .btn-primary, .card-dark .btn-primary { background: var(--stone-white); color: var(--indigo-deep); }
.on-dark .btn-primary:hover, .card-dark .btn-primary:hover { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.bg-mid { background: var(--stone-mid); }
.bg-white { background: var(--white); }
.on-dark { background: var(--indigo-deep); color: var(--indigo-soft); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--stone-white); }
.on-dark a:not(.btn) { color: var(--stone-white); }
.on-accent { background: var(--vermillion); color: var(--stone-white); }
.on-accent h2, .on-accent h3, .on-accent .eyebrow { color: var(--stone-white); }
.section-head { max-width: 720px; margin-bottom: 52px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-graphic { background: var(--indigo-deep); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--stone-mid); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { font-family: var(--font-display); font-style: italic; font-weight: 420; color: var(--vermillion); font-size: 1.1rem; margin-bottom: 10px; }
.card-dark { background: var(--indigo-deep); border-color: var(--indigo-deep); color: var(--indigo-soft); }
.card-dark h3 { color: var(--stone-white); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .card-cta { margin-top: 24px; }

.path-card { padding: 40px; min-height: 100%; }
.path-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.path-card .tag { font-weight: 600; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vermillion); margin-bottom: 14px; }
.card-dark .tag { color: var(--indigo-soft); }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px;
  border-left: 2px solid var(--indigo-core); border-bottom: 2px solid var(--indigo-core); transform: rotate(-45deg);
}
.card-dark ul.ticks li::before, .on-dark ul.ticks li::before { border-color: var(--indigo-soft); }

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--stone-mid); }
.step:last-child { border-bottom: 1px solid var(--stone-mid); }
.step .when { font-family: var(--font-display); font-style: italic; font-weight: 420; font-size: 1.25rem; color: var(--vermillion); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Pricing ---------- */
.price { font-family: var(--font-display); font-variation-settings: "opsz" 72; font-weight: 560; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--ink); margin: 6px 0 4px; }
.card-dark .price { color: var(--stone-white); }
.price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--stone-grey); }
.card-dark .price small { color: var(--indigo-soft); }
.price-note { font-size: 0.9rem; color: var(--stone-grey); margin-bottom: 20px; }
.card-dark .price-note { color: var(--indigo-soft); }
.strike { text-decoration: line-through; color: var(--stone-grey); font-size: 0.55em; margin-left: 8px; font-weight: 420; }

.offer-banner {
  background: var(--vermillion); color: var(--stone-white); border-radius: var(--radius);
  padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.offer-banner h3 { color: var(--stone-white); margin: 0 0 4px; }
.offer-banner p { margin: 0; }
.offer-banner .btn { background: var(--stone-white); color: var(--vermillion-deep); }
.offer-banner .btn:hover { background: var(--white); }

/* ---------- Stats / proof strip ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--stone-mid); }
.stat strong { display: block; font-family: var(--font-display); font-variation-settings: "opsz" 72; font-weight: 560; font-size: 2rem; line-height: 1.1; color: var(--indigo-deep); }
.stat span { font-size: 0.92rem; color: var(--stone-grey); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--stone-mid); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--stone-mid); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--indigo-core); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; max-width: 720px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--stone-mid); border-radius: 10px; padding: 13px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo-core); box-shadow: 0 0 0 3px rgba(53, 70, 178, .18); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.85rem; color: var(--stone-grey); margin: 0; }
.form-success { display: none; background: var(--white); border: 1px solid var(--stone-mid); border-left: 4px solid var(--indigo-core); border-radius: var(--radius); padding: 28px; }
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 8px; }

/* ---------- Scorecard ---------- */
.scorecard { background: var(--white); border: 1px solid var(--stone-mid); border-radius: 22px; padding: clamp(24px, 4vw, 48px); }
.sc-progress { height: 6px; background: var(--stone-mid); border-radius: 99px; overflow: hidden; margin: 10px 0 28px; }
.sc-progress div { height: 100%; width: 10%; background: var(--indigo-core); transition: width .25s; }
.sc-options { display: grid; gap: 12px; margin: 22px 0 28px; }
.sc-option {
  text-align: left; font: inherit; font-size: 1rem; color: var(--ink); background: var(--stone-white);
  border: 1.5px solid var(--stone-mid); border-radius: 12px; padding: 16px 18px; cursor: pointer;
}
.sc-option:hover { border-color: var(--indigo-light); }
.sc-option[aria-pressed="true"] { border-color: var(--indigo-core); background: #EEF0FA; font-weight: 600; }
.sc-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-score { font-family: var(--font-display); font-variation-settings: "opsz" 72; font-weight: 560; font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--indigo-deep); }
.sc-score span { color: var(--vermillion); }
.sc-focus { counter-reset: f; list-style: none; padding: 0; }
.sc-focus li { counter-increment: f; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--stone-mid); }
.sc-focus li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--font-display); font-style: italic; color: var(--vermillion); font-size: 1.2rem; }
[hidden] { display: none !important; }

/* ---------- Blog list ---------- */
.post { display: flex; flex-direction: column; }
.post .cat { font-weight: 600; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vermillion); margin-bottom: 10px; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--indigo-core); }
.post .read { margin-top: auto; font-weight: 600; text-decoration: none; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait { aspect-ratio: 4/5; border-radius: 18px; background: var(--indigo-deep); overflow: hidden; display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { font-family: var(--font-display); font-style: italic; font-size: 5rem; color: var(--stone-white); }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .portrait { max-width: 280px; } }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.4em; }
.draft-note { background: #FBEDE9; border: 1px solid #EDC3BB; color: var(--vermillion-deep); border-radius: 10px; padding: 14px 18px; font-size: 0.92rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #BDB7C9; padding: 72px 0 36px; font-size: 0.95rem; }
.site-footer a { color: #E9E4F2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo-light); margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .logo { color: var(--stone-white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #34314A; font-size: 0.85rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.social { display: flex; gap: 16px; margin-top: 18px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pill { display: inline-block; background: var(--stone-mid); color: var(--ink); font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; }
.pill-accent { background: var(--vermillion); color: var(--stone-white); }
#sc-result, #scorecard, .form-success, section[id] { scroll-margin-top: 96px; }

/* ---------- Article ---------- */
.article-body { font-size: 1.08rem; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.article-body ol.small li { margin-bottom: 0.3em; }
