/* DLI marketing site. Colours follow the app's design tokens (DliColors). */
:root {
  --brand: #2446C9;
  --brand-deep: #18318F;
  --accent: #0EA5A4;
  --ink-dark: #0F1424;
  --ink: #131A2A;
  --ink-soft: #5A6378;
  --canvas: #F7F8FB;
  --card: #FFFFFF;
  --line: #E2E6EF;
  --chip: #EEF1F8;
  --ok: #0F7A55;
  --warn-bg: #FBEFD9;
  --warn: #8A5A00;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 20, 36, .06), 0 12px 32px -12px rgba(15, 20, 36, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin-top: 12px; max-width: 22ch; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 20, 36, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 96px; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { height: 84px; width: auto; }
.brand-foot { margin-bottom: 12px; }
.brand-foot img { height: 84px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(36, 70, 201, .7); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 16px 30px -12px rgba(36, 70, 201, .8); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); background-color: #fff; }
.btn-ghost:hover { border-color: var(--brand); }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.text-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(36, 70, 201, .14), rgba(36, 70, 201, 0));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero art: a record card whose steps tick in turn */
.hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.record-card {
  position: relative; width: min(420px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px 24px 26px; box-shadow: var(--shadow); z-index: 1;
  animation: float 7s ease-in-out infinite;
}
.record-head { display: flex; gap: 6px; margin-bottom: 18px; }
.record-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.record-head .dot:first-child { background: #F3A4A4; }
.record-head .dot:nth-child(2) { background: #F5D48C; }
.record-head .dot:nth-child(3) { background: #A8E2C8; }
.record-steps { list-style: none; display: grid; gap: 14px; }
.record-steps li {
  display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateX(-8px); animation: tick-in .6s var(--ease) forwards;
  animation-delay: calc(.5s + var(--i) * .55s);
}
.tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--chip); position: relative;
}
.tick::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0; animation: check-in .4s var(--ease) forwards; animation-delay: calc(.85s + var(--i, 0) * .55s);
}
.record-steps li:nth-child(1) .tick { background: var(--ok); }
.record-steps li:nth-child(2) .tick { background: var(--ok); }
.record-steps li:nth-child(3) .tick { background: var(--ok); }
.record-steps li:nth-child(4) .tick { background: var(--ok); }
.record-bar { margin-top: 20px; height: 8px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.record-bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  animation: fill 3.2s var(--ease) .6s forwards;
}
.orbit {
  position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(36, 70, 201, .25); animation: spin 40s linear infinite; pointer-events: none;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick-in { to { opacity: 1; transform: none; } }
@keyframes check-in { to { opacity: 1; } }
@keyframes fill { to { width: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Scroll reveal and hero intro */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 80ms); transition: none; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: #fff; border-block: 1px solid var(--line); }
.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card p { color: var(--ink-soft); margin-top: 10px; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover, .door:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9D2EA; }
.door { display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.door-link { margin-top: auto; color: var(--brand); font-weight: 700; }
.status { align-self: flex-start; font-size: .8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.status-open { background: #DDF5EC; color: var(--ok); }
.status-soon { background: var(--warn-bg); color: var(--warn); }

/* Steps */
.steps { list-style: none; margin-top: 44px; display: grid; gap: 18px; counter-reset: none; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.step p { color: var(--ink-soft); margin-top: 6px; max-width: 70ch; }
.step-num {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 10px 22px -12px rgba(36, 70, 201, .8);
}
.step-num::before { content: ""; }

/* Rules */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.rule-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.rule-col h3 { margin-bottom: 14px; }
.check, .cross { list-style: none; display: grid; gap: 14px; }
.check li, .cross li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.check li::before, .cross li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
}
.check li::before { background: #DDF5EC; box-shadow: inset 0 0 0 1px #A8E2C8; }
.check li::after {
  content: ""; position: absolute; left: 8px; top: 9px; width: 6px; height: 10px;
  border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cross li::before { background: #FDECEA; box-shadow: inset 0 0 0 1px #F3B8B2; }
.cross li::after {
  content: "×"; position: absolute; left: 0; top: -1px; width: 22px; text-align: center; color: #B42318; font-weight: 800;
}
.rule-col-no { background: #FFFBFA; }

/* Questions */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin-top: 12px; }

/* Closing band */
.band { background: var(--ink-dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { color: #fff; max-width: 18ch; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-title { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--brand); }

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 24px; }
.prose { padding: 8px 0 80px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 10px; max-width: none; }
.prose p, .prose li { color: var(--ink-soft); max-width: 72ch; }
.prose ul { padding-left: 20px; margin-top: 8px; display: grid; gap: 8px; }
.timeline { list-style: none; display: grid; gap: 22px; margin-top: 36px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--accent)); opacity: .35; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; position: relative; }
.timeline .dot-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: #fff; border: 2px solid var(--brand); color: var(--brand); position: relative; z-index: 1;
}
.timeline p { color: var(--ink-soft); margin-top: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .cards.three { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner { height: 80px; }
  .brand img { height: 68px; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 20px; transform: translateY(-120%);
    transition: transform .4s var(--ease); box-shadow: var(--shadow); visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { display: none; }
  .step { grid-template-columns: 44px 1fr; padding: 18px; }
  .step-num { width: 44px; height: 44px; font-size: 1rem; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .actions .btn { width: 100%; }
  .band-inner .btn { width: 100%; }
}

/* Motion: respect the user's setting */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .record-steps li { opacity: 1 !important; transform: none !important; }
  .tick::after { opacity: 1 !important; }
  .record-bar span { width: 100% !important; }
}

/* ---- Shared components for the site pages ---- */
.notice { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; font-weight: 600; line-height: 1.5; }
.notice-soon { background: var(--warn-bg); color: var(--warn); }
.notice-draft { background: #EEF1F8; color: var(--brand-deep); }
.notice-info { background: #E7F6F5; color: #0B6E6D; }
.empty-state { border: 1px dashed #B9C2D6; border-radius: var(--radius); padding: 56px 24px; text-align: center; color: var(--ink-soft); background: #fff; }
.empty-state p { margin: 0; font-weight: 600; }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 32px; }
.narrow > h2 + p { margin-top: 14px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: 10px; }
.page-hero .lead { margin-top: 14px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.contact-grid .card h3 { margin-bottom: 6px; }
.facts { display: grid; gap: 0; margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); }
.plain { margin-top: 24px; padding-left: 22px; display: grid; gap: 12px; color: var(--ink-soft); }
.plain li { padding-left: 4px; }
.numbered { list-style: decimal; }
.help-text { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }
.links-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-list a { color: var(--brand); text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.verify-form { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field-label { display: block; font-weight: 700; margin-bottom: 8px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row input { flex: 1 1 260px; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid #B9C2D6; min-height: 48px; background: #fff; color: var(--ink); }
.field-row input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--brand); }
.result { margin-top: 16px; font-weight: 600; color: var(--ink); min-height: 1.5em; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--chip); color: var(--ink); font-weight: 700; }
td { color: var(--ink-soft); }
.prose { color: var(--ink-soft); }
.prose h2 { color: var(--ink); font-size: 1.35rem; margin: 40px 0 10px; max-width: none; }
.prose h3 { color: var(--ink); font-size: 1.05rem; margin: 24px 0 8px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 8px; }
.prose code { background: var(--chip); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.plain-timeline { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 22px; }
.narrow > .check { margin-top: 24px; }
.plain-timeline::before { display: none; }
.plain-timeline li { display: block; border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; }
.plain-timeline .when { display: block; }
.plain-timeline p { color: var(--ink-soft); margin-top: 4px; }
.plain-timeline .when { font-weight: 800; color: var(--brand); font-size: .9rem; letter-spacing: .02em; }
.section .narrow > .faq { margin-top: 28px; }
@media (max-width: 760px) {
  .cards.two, .contact-grid { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .field-row .btn { width: 100%; }
}

/* ---- Pass 2: page heroes, icons, legal table of contents, two-column checks ---- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 100%); padding: clamp(56px, 8vw, 96px) 0 40px; }
.page-hero::after {
  content: ""; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 70, 201, .12), rgba(36, 70, 201, 0)); pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--chip); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.checks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 112px; font-size: .92rem; }
.toc-title { font-weight: 800; color: var(--ink); margin-bottom: 12px; letter-spacing: .02em; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--brand); border-left-color: var(--brand); }
.legal-layout .prose { max-width: none; padding-bottom: 40px; }
.legal-layout .prose h2 { scroll-margin-top: 110px; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
  .toc ol { border-left: 0; gap: 0; }
  .toc a { padding: 8px 0; margin-left: 0; }
}
@media (max-width: 760px) {
  .checks-grid { grid-template-columns: 1fr; }
}
