/* SmartPhDs — shared styles.
   Look: a marked-up resume. Highlighter yellow marks what industry reads; cobalt ink for actions. */
:root {
  --paper: #FFFFFF;
  --panel: #F5F7FB;
  --ink: #13203B;
  --muted: #56607A;
  --line: #DCE0EA;
  --accent: #2647B8;
  --accent-ink: #FFFFFF;
  --mark: #FFE24D;
  --mark-ink: #13203B;
  --strike: #A23B3B;
  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; }
.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.label {
  font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark {
  background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%);
  color: var(--mark-ink); padding: 0 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Header */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; font-family: var(--f-display); font-size: 1rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.3rem; border-radius: 6px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34rem; }
.form-note { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }

.redline {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.5rem; display: grid; gap: 1.1rem; min-width: 0;
  box-shadow: 0 18px 40px -24px rgba(19,32,59,.35);
}
.redline .row { display: grid; gap: 0.35rem; }
.redline .before { font-size: 1rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--strike); text-decoration-thickness: 2px; }
.redline .after { font-size: 1.05rem; }
.redline hr { border: 0; border-top: 1px dashed var(--line); margin: 0; }
.redline .note { font-family: var(--f-mono); font-size: 0.78rem; color: var(--strike); }

/* Section heads */
.section-head { display: grid; gap: 0.8rem; max-width: 40rem; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.role { padding: 1.3rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.4rem; align-content: start; }
.role:not(:nth-child(3n+1)) { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.role p { font-size: 1rem; color: var(--muted); }
.role .label { color: var(--accent); }

/* Product ladder */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: end; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.4rem; display: flex; flex-direction: column; gap: 0.8rem;
}
.step:nth-child(1) { min-height: 19rem; }
.step:nth-child(2) { min-height: 21rem; }
.step:nth-child(3) { min-height: 23rem; border: 2px solid var(--accent); }
.step:nth-child(4) { min-height: 25rem; }
.price { font-family: var(--f-display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.step ul { margin: 0; padding-left: 1.1rem; font-size: 0.98rem; color: var(--muted); display: grid; gap: 0.3rem; }
.step .btn { margin-top: auto; }
.tag { align-self: flex-start; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--mark); color: var(--mark-ink); padding: 0.15rem 0.5rem; border-radius: 3px; }
.soon { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); margin-top: auto; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cv { margin: 0; border-left: 3px solid var(--mark); padding-left: 1.2rem; display: grid; gap: 0.9rem; font-family: var(--f-mono); font-size: 0.92rem; }
.cv dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cv dd { margin: 0.1rem 0 0; }
.about-copy { display: grid; gap: 1rem; max-width: 38rem; }

/* Guide list */
.guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.guides li { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-family: var(--f-display); font-size: 1.1rem; font-weight: 500; }
.guides li > span:first-child { min-width: 0; }
.guides a { color: var(--ink); text-decoration: none; }
.guides a:hover { color: var(--accent); }
.guides li.upcoming { color: var(--muted); }
.guides .label { white-space: nowrap; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* CTA band */
.cta { background: var(--ink); color: var(--paper); }
.cta .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { color: var(--paper); }
.cta p { color: var(--paper); opacity: 0.8; }
.cta .btn { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }

/* Article / checklist pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; display: grid; gap: 1rem; max-width: 46rem; }
.page-head .lede { max-width: 40rem; }
.prose { max-width: 42rem; padding-bottom: 4rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 3px solid var(--mark); background: var(--panel); }
.callout { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 1.3rem; display: grid; gap: 0.8rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0; counter-reset: c; display: grid; gap: 0; }
.checks li { counter-increment: c; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.checks li::before { content: counter(c, decimal-leading-zero); font-family: var(--f-mono); color: var(--accent); font-size: 0.95rem; padding-top: 0.15rem; }
.checks strong { font-family: var(--f-display); font-weight: 600; display: block; }
.checks span { color: var(--muted); font-size: 1rem; }

.keywords { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.keywords div { border-top: 2px solid var(--ink); padding-top: 0.6rem; }
.keywords p { font-family: var(--f-mono); font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }

footer { padding-block: 2rem; font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .cta .wrap { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(n) { min-height: 0; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .role:nth-child(n) { padding-left: 0; border-left: 0; }
  .role:nth-child(2n) { padding-left: 1.2rem; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ladder, .roles, .guides, .keywords { grid-template-columns: 1fr; }
  .role:nth-child(n) { padding-left: 0; border-left: 0; }
  nav ul { gap: 1rem; font-size: 0.95rem; }
}

@media print {
  header.top, footer, .no-print { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { max-width: none; padding: 0; }
  .checks li { break-inside: avoid; }
}

/* Logo mark */
.brand { display: inline-flex; align-items: center; letter-spacing: -0.025em; }
.brand-mark { width: 2rem; height: 2rem; flex: none; margin-right: 0.5rem; }

/* ===== Homepage v2: dark hero band ===== */
.hero-band {
  position: relative; overflow: hidden;
  background-color: #0E1322;
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(38,71,184,.55), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 2 L27 9.5 L27 24.5 L14 32 L1 24.5 L1 9.5 Z' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  color: #F3F5FA;
}
.top.on-dark { border-bottom-color: rgba(255,255,255,.08); --ink: #FFFFFF; --accent: #8FA7FF; }
.top.on-dark .brand { color: #FFFFFF; }
.top.on-dark .brand span { color: #8FA7FF; }
.top.on-dark nav a { color: #DDE2EE; }
.top.on-dark nav a:hover { color: #FFE24D; }

.hero-band .hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-band .hero h1 { color: #FFFFFF; font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
.hero-band .label { color: #A9B1C6; }
.hero-band .lede { color: #C3CADB; }
.hero-band .form-note { color: #A9B1C6; }
.hero-mark { position: absolute; right: -6rem; top: -4rem; width: 34rem; height: 34rem; color: #8FA7FF; opacity: .14; pointer-events: none; }

mark.sweep {
  background: linear-gradient(#FFE24D, #FFE24D) no-repeat 0 55% / 100% 76%;
  color: #13203B; padding: 0 .12em;
  animation: sweep 900ms 250ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes sweep { from { background-size: 0% 76%; color: #FFFFFF; } to { background-size: 100% 76%; color: #13203B; } }

.btn-mark { background: #FFE24D; border-color: #FFE24D; color: #13203B; }
.btn-line { background: transparent; border-color: rgba(255,255,255,.35); color: #FFFFFF; }
.btn-line:hover { border-color: #FFFFFF; }
.hero-band .btn:focus-visible { outline-color: #FFE24D; }

/* Redline card on the dark hero: fixed light paper in both themes */
.hero-band .redline { background: #FFFFFF; color: #13203B; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transform: rotate(-1deg); }
.hero-band .redline .label { color: #56607A; }
.hero-band .redline .before { color: #56607A; text-decoration-color: #A23B3B; }
.hero-band .redline hr { border-top-color: #DCE0EA; }
.hero-band .redline .note { color: #A23B3B; }
.hero-band .redline mark { background: linear-gradient(transparent 12%, #FFE24D 12%, #FFE24D 88%, transparent 88%); color: #13203B; }
.redline-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.redline-nav { display: flex; align-items: center; gap: .3rem; }
.redline-nav .label { font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: center; }
.icon-btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid #DCE0EA; background: #FFFFFF; color: #13203B; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: #2647B8; color: #2647B8; }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.ex { display: grid; gap: 1.1rem; min-height: 11.5rem; align-content: start; }
.ex.enter .after mark { animation: sweep-light 700ms cubic-bezier(.2,.7,.2,1) both; }
.ex.enter .before { animation: fade-in 400ms ease both; }
@keyframes sweep-light { from { background-size: 0% 100%; background-repeat: no-repeat; } to { background-size: 100% 100%; } }
@keyframes fade-in { from { opacity: .3; } to { opacity: 1; } }

/* Stage strip */
.stages { border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.stages ol { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 0; }
.stages li { padding: 1.1rem 1rem 1.2rem 0; display: grid; gap: .15rem; position: relative; }
.stages li + li { padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,.08); }
.stages a { color: #FFFFFF; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.stages a:hover { color: #FFE24D; }
.stages .label { color: #8FA7FF; }

/* Role finder */
.finder-section { background: var(--panel); }
.finder { display: grid; grid-template-columns: 1fr; gap: 0; }
.finder-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.finder-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.finder-form legend { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; margin-bottom: .6rem; padding: 0; }
.finder-form label {
  display: flex; gap: .7rem; align-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem; font-size: 1rem; line-height: 1.35;
  background: var(--paper); transition: border-color .15s, background-color .15s;
}
.finder-form label:hover { border-color: var(--accent); }
.finder-form input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex: none; margin: 0; }
.finder-form label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--paper)); }
.finder-form label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.finder-result {
  margin-top: 2rem; border-radius: 10px; padding: 1.6rem 1.8rem; min-height: 9rem;
  background: #0E1322; color: #F3F5FA; display: grid;
}
.finder-result > div { display: grid; gap: .7rem; align-content: start; }
.finder-result .label { color: #A9B1C6; }
.finder-result h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #FFE24D; }
.finder-result p { max-width: 46rem; }
.result-wait { color: #C3CADB; }
.progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); max-width: 22rem; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: #FFE24D; transition: width .3s ease; }
.finder-result .btn { background: #FFE24D; border-color: #FFE24D; color: #13203B; }
.finder-result .btn.ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.35); }
.finder-result .btn:focus-visible { outline-color: #FFE24D; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.why > div { display: grid; gap: .6rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 1rem; }
.why p { color: var(--muted); font-size: 1.02rem; }
.cta-copy { display: grid; gap: .8rem; }

@media (max-width: 900px) {
  .finder-form { grid-template-columns: 1fr; gap: 1.6rem; }
  .why { grid-template-columns: 1fr; gap: 1.4rem; }
  .stages ol { grid-template-columns: repeat(2, 1fr); }
  .stages li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stages li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .hero-band .redline { transform: none; }
  .hero-mark { width: 22rem; height: 22rem; right: -8rem; top: -3rem; }
}
@media (max-width: 560px) {
  .ex { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  mark.sweep, .ex.enter .after mark, .ex.enter .before { animation: none; }
  .progress span, .finder-form label { transition: none; }
}
[hidden] { display: none !important; }
.hero-band .hero .wrap { position: relative; z-index: 1; }

/* ===== White version of the homepage ===== */
.hero-band {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(50rem 26rem at 90% -10%, rgba(38,71,184,.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 2 L27 9.5 L27 24.5 L14 32 L1 24.5 L1 9.5 Z' fill='none' stroke='%2313203B' stroke-opacity='.05'/%3E%3C/svg%3E");
  color: var(--ink);
}
.hero-band .hero h1 { color: var(--ink); }
.hero-band .label, .hero-band .form-note { color: var(--muted); }
.hero-band .lede { color: var(--muted); }
.hero-mark { color: var(--accent); opacity: .08; }
@keyframes sweep { from { background-size: 0% 76%; } to { background-size: 100% 76%; } }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.hero-band .btn:focus-visible { outline-color: var(--accent); }
.hero-band .redline { border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(19,32,59,.35); }
.stages { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.stages li + li { border-left-color: var(--line); }
.stages a { color: var(--ink); }
.stages a:hover { color: var(--accent); }
.stages .label { color: var(--accent); }
.finder-form label { background: #FFFFFF; }
.cta { background: var(--panel); color: var(--ink); border-top: 1px solid var(--line); }
.cta h2 { color: var(--ink); }
.cta p { color: var(--muted); opacity: 1; }
@media (max-width: 900px) { .stages li:nth-child(n+3) { border-top-color: var(--line); } }

/* Bigger logo in the header */
.brand { font-size: 1.9rem; letter-spacing: -0.03em; }
.brand-mark { width: 2.8rem; height: 2.8rem; margin-right: 0.6rem; }
header.top .wrap { padding-block: 1.1rem; }
@media (max-width: 560px) {
  .brand { font-size: 1.6rem; }
  .brand-mark { width: 2.3rem; height: 2.3rem; }
}
