/* D2Skill brand site — petrol blue, saffron, sage on warm paper. Independent from product palettes. */
:root {
  /* D2Skill brand: petrol blue (trust), saffron (accent), sage (support), warm paper. */
  --paper: #f7f6f2;
  --surface: #ffffff;
  --ink: #142329;
  --muted: #4b5d63;
  --line: #dde3e4;
  --brand: #0e4a5c;
  --brand-strong: #0a3542;
  --brand-soft: #e6eff1;
  --tint: #eef2f2;
  --accent: #e3a33b;
  --accent-ink: #8a5a0e;
  --accent-soft: #fbf1df;
  --sage: #3f6b52;
  --sage-soft: #e7efea;
  --danger: #b42318;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 41, .06), 0 10px 28px rgba(20, 35, 41, .08);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 2rem; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { color: var(--brand-strong); border-color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff; font: 700 .95rem/1 var(--sans); letter-spacing: -.02em;
}
.brand-name { font: 700 1.2rem/1 var(--sans); letter-spacing: -.01em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .9rem; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.lead { margin-top: 22px; font-size: 1.13rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.reassure { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.reassure li::before { content: "✓"; color: var(--sage); font-weight: 700; margin-right: 6px; }
.hero-visual { margin: 0; }
.hero-visual img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-accent { background: var(--brand); color: #fff; }

.pain-grid, .feature-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.pain-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pain, .feature, .audience-card, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.pain h3, .feature h3, .audience-card h3 { margin-bottom: 10px; }
.pain p, .feature p, .audience-card p { color: var(--muted); }
.pain { border-left: 4px solid var(--accent); }

.modules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: mod; }
.modules li {
  counter-increment: mod;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
}
.modules li::before { content: "0" counter(mod); color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.mod-name { font: 600 1.45rem/1.2 var(--serif); }
.mod-name::before { content: "D2Skill "; font: 500 .8rem/1 var(--sans); color: var(--muted); display: block; margin-bottom: 4px; }
.mod-verb { color: var(--brand); font-weight: 600; }

.feature-grid { grid-template-columns: repeat(2, 1fr); }
.feature { position: relative; padding-left: 56px; }
.feature::before {
  content: ""; position: absolute; left: 26px; top: 33px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand);
}
.feature:nth-child(even)::before { background: var(--accent); }
.feature-wide { grid-column: 1 / -1; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.audience-card h3 { font: 600 1.35rem/1.25 var(--serif); }

/* Pilot */
.pilot-grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.pilot-text > p { color: var(--muted); }
.list-title { margin-top: 22px; font-weight: 600; color: var(--ink) !important; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage); font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.pilot-img { margin-top: 32px; border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.form { position: sticky; top: 92px; padding: 30px; box-shadow: var(--shadow); }
.form h3 { font: 600 1.4rem/1.2 var(--serif); margin-bottom: 20px; }
.field { margin: 0 0 18px; border: 0; padding: 0; }
.field > label:not(.choice), .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.field input[type="email"] {
  width: 100%; padding: .8em .95em; font: inherit; color: var(--ink);
  border: 1.5px solid #c3cdd0; border-radius: var(--radius-sm); background: #fff;
}
.field input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; font-size: .97rem; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.field-err { color: var(--danger); font-size: .88rem; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--danger); }
.fine { margin-top: 14px; font-size: .8rem; line-height: 1.5; color: var(--muted); }

/* Contact */
.contact { text-align: center; }
.contact h2 { margin-bottom: 14px; }
.contact p { color: #d5e4e8; font-size: 1.08rem; }
.contact-mail { margin: 18px 0 26px; }
.contact-mail a { color: #fff; font: 600 1.5rem/1.2 var(--serif); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .pilot-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .form { position: static; }
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 60px 0; }
  .feature-grid, .audience { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modules li { padding: 18px 16px; }
  .mod-name { font-size: 1.2rem; }
  .pain, .feature, .audience-card { padding: 22px; }
  .feature { padding-left: 52px; }
  .feature::before { left: 22px; top: 29px; }
  .form { padding: 22px; }
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 1.1rem; }
}
