/* Corelinksys DPDP — shared styles.
   Layout: a calm compliance-office look. Serif headlines, plain sans body, monospace for Act references and the countdown. One teal accent; amber is reserved for the deadline. */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #18213a;
  --ink-2: #4d566d;
  --line: #dbe0ea;
  --accent: #0e6b66;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1ef;
  --deadline: #a8640a;
  --deadline-soft: #fbf0dc;
  --night: #18213a;
  --night-ink: #f1f3f8;
  --night-2: #aeb6cb;
  --good: #1f7a3f;
  --bad: #b3261e;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10141f; --surface: #171d2b; --ink: #e6e9f2; --ink-2: #a3abc0; --line: #2a3246;
    --accent: #4fc2b8; --accent-ink: #0c1a19; --accent-soft: #15302f;
    --deadline: #e6a94a; --deadline-soft: #34280f;
    --night: #0b0e16; --night-ink: #e6e9f2; --night-2: #98a1b8;
    --good: #5fcf86; --bad: #f08a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10141f; --surface: #171d2b; --ink: #e6e9f2; --ink-2: #a3abc0; --line: #2a3246;
  --accent: #4fc2b8; --accent-ink: #0c1a19; --accent-soft: #15302f;
  --deadline: #e6a94a; --deadline-soft: #34280f;
  --night: #0b0e16; --night-ink: #e6e9f2; --night-2: #98a1b8;
  --good: #5fcf86; --bad: #f08a80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* Deadline strip */
.strip { background: var(--night); color: var(--night-ink); font-size: 13.5px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding-block: 8px; text-align: center; }
.strip b { font-family: var(--font-mono); font-weight: 500; color: var(--deadline); font-variant-numeric: tabular-nums; }
.strip a { color: var(--night-ink); font-weight: 600; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .strip { border-bottom: 1px solid var(--line); } }
:root[data-theme="dark"] .strip { border-bottom: 1px solid var(--line); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.wordmark b { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: 14.5px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a.btn { color: var(--accent-ink); border-bottom: 0; padding: 8px 14px; }
@media (max-width: 760px) {
  .site-head { position: static; }
  .site-nav { width: 100%; gap: 4px 16px; font-size: 14px; }
  .site-nav a.btn { margin-left: auto; }
}

/* Buttons */
.btn { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 6px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn:hover { filter: brightness(1.06); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 21px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 16px 0 0; }
.muted { color: var(--ink-2); }
.ref { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); letter-spacing: .02em; }
section.block { padding-block: 64px; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; max-width: 70ch; margin-bottom: 32px; }
.section-head p { margin: 0; color: var(--ink-2); }

/* Hero */
.hero { padding-block: 56px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Countdown */
.countdown { background: var(--night); color: var(--night-ink); border-radius: 10px; padding: 26px 26px 22px; }
.countdown .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--deadline); margin: 0; }
.cd-units { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 8px; margin: 14px 0 16px; }
.cd-unit { display: grid; gap: 2px; }
.cd-unit .n { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: clamp(30px, 4.4vw, 44px); line-height: 1; }
.cd-unit:first-child .n { font-size: clamp(54px, 8vw, 84px); color: var(--deadline); }
.cd-unit:first-child { align-self: end; }
.cd-unit .u { font-size: 12.5px; color: var(--night-2); text-transform: uppercase; letter-spacing: .1em; }
.cd-units .cd-unit:not(:first-child) { align-self: end; padding-bottom: 6px; }
.countdown .date { font-family: var(--font-display); font-size: 20px; margin: 0; }
.countdown .what { font-size: 14px; color: var(--night-2); margin: 6px 0 0; }
.countdown .track { position: relative; height: 4px; background: rgba(255,255,255,.14); border-radius: 2px; margin-top: 18px; }
.countdown .track span { position: absolute; inset: 0 auto 0 0; background: var(--deadline); border-radius: 2px; }
.countdown .ends { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--night-2); margin-top: 6px; }

/* Phases timeline */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.phase { padding: 18px 20px; border-left: 1px solid var(--line); }
.phase:first-child { border-left: 0; }
.phase .when { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.phase h3 { font-size: 18px; margin-top: 4px; }
.phase p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.phase.now { background: var(--deadline-soft); }
.phase.now .when { color: var(--deadline); font-weight: 500; }
.phase.done .when::after { content: " · in force"; }
@media (max-width: 760px) { .phases { grid-template-columns: minmax(0, 1fr); } .phase { border-left: 0; border-top: 1px solid var(--line); } .phase:first-child { border-top: 0; } }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: stage; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; }
.stage .num { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.stage h3 { font-size: 22px; }
.stage p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.offer { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 14px; }
.offer div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.tag.free { color: var(--good); }
.tag.paid { color: var(--accent); }
@media (max-width: 980px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .journey { grid-template-columns: minmax(0, 1fr); } }

/* Cards / packages */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card.feature { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pkg { grid-template-rows: auto auto auto 1fr auto; }
.price { font-family: var(--font-display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 13.5px; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.price .from { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0 0 2px; }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
ul.ticks li { padding-left: 22px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.badge { justify-self: start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); padding: 3px 8px; border-radius: 4px; }
.badge.deadline { background: var(--deadline-soft); color: var(--deadline); }

/* Split + list */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.ledger { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ledger > div:last-child { border-bottom: 0; }
.ledger .ref { align-self: center; white-space: nowrap; }
@media (max-width: 480px) { .ledger > div { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.band { background: var(--night); color: var(--night-ink); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 48px; }
.band h2 { max-width: 24ch; }
.band p { color: var(--night-2); margin: 10px 0 0; max-width: 56ch; }
.band .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn.ghost { color: var(--night-ink); border-color: var(--night-2); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding-block: 14px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.form .consent input { margin-top: 4px; }
.form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status { font-size: 14px; }
.status.ok { color: var(--good); }
.status.err { color: var(--bad); }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Page head (inner pages) */
.page-head { padding-block: 48px 40px; border-bottom: 1px solid var(--line); background: var(--surface); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 24px 40px; padding-block: 40px 28px; }
.site-foot h4 { font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin: 0 0 10px; color: var(--ink-2); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12.5px; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.founder { display: flex; align-items: center; gap: 16px; }
.founder h2 { margin: 0; }
.founder .ref { margin: 4px 0 0; }
.monogram { flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 24px; border: 1px solid var(--accent); }
.portrait { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 480px) { .portrait { width: 80px; height: 80px; } }

/* Apple-style typography: SF Pro on Apple devices, Inter elsewhere. */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.011em; }
h1, h2, h3, .wordmark, .price, .countdown .date { font-weight: 600; letter-spacing: -0.022em; }
h1 { letter-spacing: -0.03em; line-height: 1.08; }
.wordmark b { font-weight: 600; }
.eyebrow { font-family: var(--font-body); text-transform: none; letter-spacing: -0.01em; font-size: 15px; font-weight: 600; }
.strip b { font-family: var(--font-body); font-weight: 600; }
.countdown .label, .cd-unit .u, .site-foot h4, .price .from, .badge, .tag, .stage .num { font-family: var(--font-body); letter-spacing: 0.02em; font-weight: 600; }
.cd-unit .n { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
.ref, .countdown .ends, .phase .when { font-family: var(--font-body); letter-spacing: 0; }

/* Guide articles */
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); }
.byline { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }
.byline a { color: var(--ink); font-weight: 600; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-grid .side { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-grid .side { position: static; } }
.prose { max-width: 72ch; font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose .tbl { overflow-x: auto; margin: 0 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13.5px; color: var(--ink-2); background: var(--bg); }
.prose .callout { background: var(--accent-soft); border-radius: 10px; padding: 16px 18px; margin: 0 0 22px; font-size: 16px; }
.prose ol.checklist { list-style: none; padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); counter-reset: ck; }
.prose ol.checklist li { counter-increment: ck; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; }
.prose ol.checklist li:last-child { border-bottom: 0; }
.prose ol.checklist li::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 4px; margin-top: 2px; }
.prose ol.checklist .ref { white-space: nowrap; align-self: start; padding-top: 2px; }
@media (max-width: 560px) { .prose ol.checklist li { grid-template-columns: 24px minmax(0, 1fr); } .prose ol.checklist .ref { grid-column: 2; } }
.prose .disclaimer { font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.prose .keypoints { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 22px 8px; margin: 0 0 28px; }
.prose .keypoints h2 { font-size: 18px; margin: 0 0 10px; }
.prose .keypoints ul { font-size: 16px; gap: 6px; }
/* Package cards: content at top, button pinned to the bottom */
.card.pkg { display: flex; flex-direction: column; gap: 10px; }
.card.pkg > .btn { margin-top: auto; align-self: flex-start; }
.card.pkg > .badge { align-self: flex-start; }
