:root {
  --ink: #0b1f33;
  --ink-2: #17344d;
  --paper: #f5f7f8;
  --white: #ffffff;
  --orange: #ff7043;
  --orange-dark: #d94d25;
  --blue: #a7d8f4;
  --muted: #647380;
  --line: #d7dee3;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11,31,51,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 920px; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .65rem 1rem; background: var(--orange); color: var(--ink); font-weight: 800; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 30; color: white; background: rgba(11,31,51,.97); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; line-height: 1.1; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: .25rem; color: #b8c6d1; font-size: .72rem; letter-spacing: .025em; }
.brand-mark { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--orange); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 2px; height: 14px; background: var(--orange); transform-origin: bottom; }
.brand-mark::before { transform: translate(-5px,-1px) rotate(26deg); }
.brand-mark::after { transform: translate(5px,-1px) rotate(-26deg); }
.brand-mark span { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); transform: translateY(8px); }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a { color: #dce6ed; text-decoration: none; font-weight: 650; font-size: .9rem; }
.site-nav a:hover { color: white; }
.site-nav .nav-action { padding: .65rem 1rem; color: var(--ink); background: var(--orange); border-radius: 999px; }
.menu-button { display: none; color: white; border: 0; background: transparent; padding: .5rem; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 4px 0; background: currentColor; }
.menu-button b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hero { position: relative; min-height: 690px; overflow: hidden; color: white; background: var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,24,39,.99) 0%, rgba(7,24,39,.96) 34%, rgba(7,24,39,.56) 58%, rgba(7,24,39,.08) 84%); }
.hero-photo { position: absolute; inset: 0; background: url('hero-driving-lesson.png') center right / cover no-repeat; filter: saturate(.83) contrast(1.04); }
.hero-grid { position: relative; z-index: 2; min-height: 690px; display: grid; align-items: center; grid-template-columns: minmax(0, 630px) 1fr; }
.hero-copy { padding: 5rem 0 4rem; }
.hero h1 { max-width: 760px; margin: .8rem 0 1.25rem; font-size: clamp(3.2rem, 6.4vw, 6.5rem); line-height: .91; letter-spacing: -.065em; }
.hero-copy > p:not(.eyebrow) { max-width: 590px; color: #dce6ed; font-size: 1.16rem; line-height: 1.6; }
.eyebrow { margin: 0 0 .7rem; color: var(--orange-dark); font-size: .73rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .9rem; }
.button.primary { color: var(--ink); background: var(--orange); }
.button.primary:hover { background: #ff8a65; }
.button.ghost { color: white; border-color: rgba(255,255,255,.35); background: rgba(11,31,51,.24); }
.button.ghost:hover { border-color: white; }
.dark-button { color: white; background: var(--ink); }
.full { width: 100%; }
.hero-note { max-width: 480px; display: grid; grid-template-columns: 50px 1fr; gap: 1rem; align-items: start; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.24); }
.hero-note > span { color: var(--orange); font-size: .82rem; font-weight: 900; }
.hero-note p { margin: 0; color: #c6d3dc; font-size: .85rem; }
.hero-note strong { display: block; color: white; font-size: .9rem; }

.quick-start, .latest, .content-section, .article-wrap { padding: 6rem 0; }
.section-heading { margin-bottom: 2rem; }
.section-heading.row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading h2, .route-section h2, .faq-section h2 { max-width: 680px; margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.05em; }
.section-heading.row > p { max-width: 520px; margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { position: relative; min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; overflow: hidden; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: auto; color: white; background: var(--ink); border-radius: 50%; }
.feature-card .card-number { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--muted); font-size: .8rem; font-weight: 900; }
.feature-card h3 { margin: 1.8rem 0 .5rem; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.035em; }
.feature-card p { margin: 0 0 1.2rem; color: var(--muted); }
.feature-card.accent { background: var(--orange); border-color: var(--orange); }
.feature-card.accent .icon { color: var(--ink); background: white; }
.feature-card.accent p, .feature-card.accent .card-number { color: #5e2a1d; }
.feature-card.dark { color: white; background: var(--ink); border-color: var(--ink); }
.feature-card.dark .icon { color: var(--ink); background: var(--blue); }
.feature-card.dark p, .feature-card.dark .card-number { color: #b9cad6; }
.text-link { color: var(--orange-dark); text-decoration: none; font-weight: 850; }
.accent .text-link { color: var(--ink); }
.dark .text-link { color: var(--blue); }

.route-section { padding: 6rem 0; color: white; background: var(--ink); background-image: repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.025) 75px 76px); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); }
.large-text { max-width: 510px; color: #c4d1da; font-size: 1.08rem; }
.route-section .button { margin-top: 1.2rem; background: var(--orange); color: var(--ink); }
.route-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.route-list li { display: grid; grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.route-list li > span { color: var(--orange); font-size: .76rem; font-weight: 900; }
.route-list strong { font-size: 1.05rem; }
.route-list p { margin: .2rem 0 0; color: #b8c6d1; font-size: .9rem; }
.numbers { padding: 2.2rem 0; color: var(--ink); background: var(--orange); }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.numbers-grid > div { display: flex; align-items: center; gap: 1rem; padding: .5rem 1.5rem; border-right: 1px solid rgba(11,31,51,.2); }
.numbers-grid > div:last-child { border: 0; }
.numbers strong { font-size: 2.4rem; line-height: 1; letter-spacing: -.05em; }
.numbers span { max-width: 180px; font-size: .82rem; font-weight: 750; line-height: 1.25; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-grid.full-grid { grid-template-columns: repeat(2, 1fr); }
.article-card { position: relative; min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.article-card:nth-child(4n+2), .article-card:nth-child(4n+3) { background: #e9f3f8; }
.article-index { margin-bottom: auto; color: var(--orange-dark); font-size: 2.1rem; font-weight: 900; letter-spacing: -.06em; }
.article-kicker { margin: 2rem 0 .5rem; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.article-card h2, .article-card h3 { margin: 0 0 .65rem; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.035em; }
.article-card h2 a, .article-card h3 a { text-decoration: none; }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--orange-dark); }
.article-card > p:not(.article-kicker) { margin: 0 0 1.3rem; color: var(--muted); font-size: .93rem; }
.article-card .text-link { margin-top: auto; }
.faq-section { padding: 6rem 0; background: #dfeaf0; }
.faq-layout > div:first-child > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid #aebdc7; }
.faq-list details { border-bottom: 1px solid #aebdc7; }
.faq-list summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .2rem; top: 1.05rem; color: var(--orange-dark); font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -.2rem 0 1.35rem; color: #445665; }

.page-head { padding: 4.2rem 0 3.2rem; color: white; background: var(--ink); background-image: radial-gradient(circle at 86% 18%, rgba(255,112,67,.18), transparent 28%), repeating-linear-gradient(90deg, transparent 0 89px, rgba(255,255,255,.025) 90px 91px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; color: #a9bbc8; font-size: .75rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.crumb-sep { color: var(--orange); }
.page-head h1 { max-width: 870px; margin: .65rem 0 1.2rem; font-size: clamp(2.55rem, 5.2vw, 5.25rem); line-height: .98; letter-spacing: -.06em; }
.page-lead { max-width: 780px; margin: 0; color: #cbd7df; font-size: 1.14rem; }
.article-meta { margin-top: 1.3rem; color: var(--blue); font-size: .8rem; font-weight: 750; letter-spacing: .04em; }
.content-with-aside { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); align-items: start; gap: clamp(2.5rem, 7vw, 6.5rem); }
.prose { min-width: 0; }
.prose section { position: relative; margin-bottom: 4.5rem; }
.prose h2 { margin: .2rem 0 1.3rem; font-size: clamp(1.8rem, 3.3vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.prose p { color: #344957; }
.prose ul, .prose ol { margin: 1.6rem 0; padding: 0; list-style: none; }
.prose ul li, .prose ol li { position: relative; margin: .65rem 0; padding: .8rem 1rem .8rem 3.1rem; background: white; border: 1px solid var(--line); border-radius: 10px; }
.prose ul li::before { content: ""; position: absolute; top: 1.25rem; left: 1.25rem; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; }
.prose ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 1rem; color: var(--orange-dark); font-size: .72rem; font-weight: 900; }
.section-count { color: var(--orange-dark); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.callout { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; margin: 1rem 0 0; padding: 1.3rem; color: white; background: var(--ink); border-radius: var(--radius); }
.callout span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--orange); border-radius: 50%; }
.callout p { margin: 0; color: #e2eaf0; }
.side-card { padding: 1.4rem; background: white; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); }
.side-card.sticky { position: sticky; top: 110px; }
.side-card h2 { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.03em; }
.side-card > a:not(.button) { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 750; }
.side-card > a:not(.button):hover { color: var(--orange-dark); }
.side-card ul { margin: 0 0 1.3rem; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.article-lead { margin: 0 0 3.7rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); color: var(--ink) !important; font-size: 1.17rem; line-height: 1.75; }
.semantic-bridge { margin: -1.5rem 0 4rem; padding: 1.35rem 1.45rem; background: #e9f3f8; border-left: 5px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
.semantic-bridge > span { display: block; margin-bottom: .55rem; color: var(--orange-dark); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.semantic-bridge p { margin: .55rem 0; color: #294354; font-size: .96rem; }
.article-prose p { line-height: 1.75; }
.article-faq { padding-top: 1rem; }
.article-faq .faq-list { margin-top: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filters span { padding: .45rem .8rem; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 750; }
.filters span:first-child { color: white; background: var(--ink); border-color: var(--ink); }
.not-found { min-height: 70vh; display: grid; place-items: center; padding: 6rem 0; text-align: center; }
.error-code { margin: 0; color: var(--orange); font-size: clamp(6rem, 20vw, 14rem); font-weight: 900; line-height: .8; letter-spacing: -.08em; }
.not-found h1 { margin: 1rem 0; font-size: clamp(2rem, 5vw, 4rem); }
.not-found .hero-actions { justify-content: center; }

.site-footer { padding: 4rem 0 1.5rem; color: #c3d0d9; background: #071827; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 4rem; }
.brand-footer { color: white; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.footer-grid a:not(.brand) { color: #c3d0d9; text-decoration: none; font-size: .88rem; }
.footer-grid a:hover { color: white; }
.footer-grid p { max-width: 340px; margin: 0; color: #91a3b0; font-size: .78rem; }
.footer-grid .footer-title { color: white; font-weight: 800; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #8195a3; font-size: .72rem; }

@media (max-width: 940px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .7rem 20px 1.2rem; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav .nav-action { margin-top: .7rem; padding: .8rem 1rem; text-align: center; border: 0; }
  .hero, .hero-grid { min-height: 650px; }
  .hero::after { background: linear-gradient(90deg, rgba(7,24,39,.98), rgba(7,24,39,.72)); }
  .hero-photo { opacity: .55; background-position: 54% center; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1 / -1; min-height: 270px; }
  .split, .content-with-aside { grid-template-columns: 1fr; gap: 3rem; }
  .side-card { max-width: 620px; }
  .side-card.sticky { position: static; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 70px; }
  .site-nav { top: 70px; }
  .brand small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .hero, .hero-grid { min-height: 620px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.7rem); }
  .hero-copy { padding: 4rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-note { margin-top: 2rem; }
  .quick-start, .latest, .content-section, .article-wrap, .route-section, .faq-section { padding: 4rem 0; }
  .section-heading.row { display: block; }
  .section-heading.row > p, .section-heading.row > a { display: block; margin-top: 1rem; }
  .feature-grid, .article-grid, .article-grid.full-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:last-child { grid-column: auto; min-height: 300px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .numbers-grid > div { border-right: 0; border-bottom: 1px solid rgba(11,31,51,.2); }
  .page-head { padding: 3rem 0 2.6rem; }
  .page-head h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .content-with-aside { gap: 2rem; }
  .prose section { margin-bottom: 3.5rem; }
  .prose ul li, .prose ol li { padding-left: 2.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
