/* Landing page (/) and the sign-in screen on the same page: "plow-light on a Labrador night".
   Twilight ink background, snow-white text, glacier-ice for quiet details, ONE amber accent (the plow beacon).
   The palette is scoped to body.theme-north, so the app screens keep their own tokens until a refresh is approved. */

@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400 800; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-var.woff2) format('woff2'); }

body.theme-north {
  display: block; background: var(--bg); color: var(--text);
}
body.theme-north #root { display: flex; }
body.theme-north #root[hidden] { display: none; }
body.theme-north a { color: var(--accent2); }
body.theme-north :focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
body.theme-north .btn { border-radius: 12px; }
body.theme-north .btn-primary { background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); font-weight: 700; }
body.theme-north .btn-primary:hover { background: #2a343b; border-color: #2a343b; }
body.theme-north .btn-primary[disabled] { background: #c9d4db; border-color: #c9d4db; color: #6b7c87; opacity: 1; }
body.theme-north .btn-ghost { background: transparent; border-color: rgba(var(--ink-rgb), 0.3); color: var(--text); }
body.theme-north .btn-ghost:hover { border-color: var(--text); background: rgba(var(--ink-rgb), 0.06); }
body.theme-north .btn-lg { padding: 15px 28px; font-size: 1.02rem; min-height: 52px; }
body.theme-north .seg input:checked + span { background: var(--accent); color: var(--on-accent); }
body.theme-north .auth-title, body.theme-north .step-title, body.theme-north .auth-brand-name { font-family: var(--display); letter-spacing: 0; }
body.theme-north .auth-title { font-size: 1.9rem; font-weight: 700; }
body.theme-north .auth-brand-name { font-weight: 700; }
body.theme-north .panel { background: var(--card); border-color: var(--border); border-radius: 20px; }
body.theme-north .otp-box:not(:placeholder-shown) { border-color: var(--accent2); background: rgba(var(--ink-rgb), 0.05); }
body.theme-north .otp-box:focus, body.theme-north input:focus, body.theme-north select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14); }
body.theme-north .link-btn { color: var(--accent2); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; background: var(--accent); color: var(--on-accent); padding: 0 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.landing { width: 100%; }
.landing[hidden], #root[hidden] { display: none; }
.l-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.landing .ic { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.l-noscript { padding: 14px 24px; background: #1a1204; color: #ffd48a; font-size: 0.9rem; }

/* ---------- header: clear at the top, a floating glass bar once the page is scrolled ---------- */
.l-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: 10px; pointer-events: none; }
.l-header > .l-wrap { pointer-events: none; }
.l-header-in {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 0 8px 0 12px;
  border: 1px solid transparent; border-radius: 16px; background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.l-header.scrolled .l-header-in { background: rgba(255, 255, 255, 0.9); border-color: var(--hairline); box-shadow: 0 8px 30px rgba(20, 50, 70, 0.12); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .l-header.scrolled .l-header-in { background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
}
.l-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); margin-right: auto; min-height: 44px; }
.landing .l-brand .l-logo { width: 26px; height: 26px; color: var(--accent2); stroke-width: 1.6; }
.l-brand-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.005em; line-height: 1; }
.l-brand-name span { color: var(--accent2); }
.l-nav { display: none; gap: 4px; }
.l-nav a { color: var(--text-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 10px 14px; border-radius: 10px; transition: color 0.2s, background-color 0.2s; }
.l-nav a:hover { color: var(--text); background: rgba(var(--ink-rgb), 0.06); }
.l-nav a[aria-current="true"] { color: var(--accent); }
.l-actions { display: flex; align-items: center; gap: 8px; }
.l-actions .btn { min-height: 44px; white-space: nowrap; }
@media (min-width: 901px) { .l-nav { display: flex; } }

/* ---------- hero ---------- */
.l-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-start; min-height: min(100svh, 880px); padding: clamp(112px, 17vh, 190px) 0 56px; }
.l-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 70%; z-index: -2; }
.l-hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 19, 26, 0.84) 0%, rgba(7, 19, 26, 0.5) 42%, rgba(7, 19, 26, 0.4) 70%, var(--bg) 100%),
              linear-gradient(90deg, rgba(7, 19, 26, 0.78) 0%, rgba(7, 19, 26, 0.4) 45%, rgba(7, 19, 26, 0) 72%); }
.l-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: start; }
.l-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); line-height: 0.96; letter-spacing: -0.005em; text-wrap: balance; max-width: 9em; }
.l-hero h1 span { color: var(--accent2); }
.l-lead { color: var(--text-soft); font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.5; max-width: 26em; margin-top: 20px; }
.l-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.l-from { color: var(--text-soft); font-size: 0.95rem; }
.l-from[hidden] { display: none; }
.l-from strong { color: var(--text); font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.l-from small { color: var(--muted); }
.l-drive-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--text-soft); font-weight: 500; font-size: 0.95rem; text-underline-offset: 4px; }
.l-drive-link:hover { color: var(--text); }

/* the live-tracking card: the product's real strength, shown as an example */
.l-live { align-self: end; justify-self: end; width: 100%; max-width: 380px; padding: 16px; border: 1px solid var(--hairline); border-radius: 22px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-lift); }
.l-live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; }
.l-live-state { display: inline-flex; align-items: center; gap: 8px; }
.l-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }
.l-live-tag { color: var(--muted); font-size: 0.75rem; font-weight: 500; border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 9px; }
.l-live-map { display: block; width: 100%; height: auto; border-radius: 14px; background: rgba(44, 84, 112, 0.06); }
.l-streets path { stroke: rgba(44, 84, 112, 0.2); stroke-width: 5; }
.l-route { stroke: var(--accent); stroke-width: 3; }
.l-home circle { fill: rgba(var(--accent-rgb), 0.08); stroke: var(--accent); stroke-width: 1.5; }
.l-home path { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.l-truck { transform: translate(172px, 74px); }
.l-truck-dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.l-truck-pulse { fill: rgba(var(--accent-rgb), 0.18); }
.l-live-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.l-live-metrics div { display: flex; flex-direction: column; gap: 2px; }
.l-live-metrics strong { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.l-live-metrics span { color: var(--muted); font-size: 0.8rem; }
/* The truck starts driving a moment AFTER the page has loaded (landing.js adds .is-live), so nothing animates while the page is still loading. */
@media (prefers-reduced-motion: no-preference) {
  .l-live.is-live .l-truck { animation: drive 14s ease-in-out infinite; }
  .l-live.is-live .l-truck-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
}
@keyframes drive {
  0% { transform: translate(30px, 168px); } 22% { transform: translate(62px, 128px); } 40% { transform: translate(120px, 128px); }
  62% { transform: translate(172px, 74px); } 76% { transform: translate(214px, 64px); } 90%, 100% { transform: translate(264px, 40px); }
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- sections ---------- */
.l-section { padding: clamp(64px, 11vw, 120px) 0; }
.l-tint { background: var(--frost); border-block: 1px solid var(--hairline); }
.l-narrow { max-width: 820px; }
.l-h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.02; letter-spacing: 0; margin-bottom: clamp(28px, 5vw, 48px); text-wrap: balance; }
.l-h2-sm { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 6px; }
.l-muted { color: var(--muted); }
.l-big { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; max-width: 18em; margin-bottom: 14px; }

/* how it works: a real sequence, so quiet numerals */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 22px; border-top: 1px solid var(--hairline); }
.step::before { content: "0" counter(step); position: absolute; top: 18px; right: 0; font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--muted); }
.step .ic { width: 30px; height: 30px; color: var(--accent2); margin-bottom: 20px; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 1rem; max-width: 20em; }

/* prices (filled from the database): hairlines and big numbers, no boxes */
.price-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.price-card { display: flex; flex-direction: column; padding-top: 24px; border-top: 1px solid var(--hairline); }
.price-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.05; }
.price-desc { color: var(--muted); font-size: 0.95rem; margin: 8px 0 18px; min-height: 2.9em; }
.price-amt { display: flex; align-items: baseline; gap: 10px; }
.price-amt span { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.price-amt small { color: var(--muted); font-size: 0.85rem; }
.price-time { color: var(--muted); font-size: 0.9rem; margin: 6px 0 22px; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-note { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; border-top: 1px solid var(--hairline); }
.price-note .btn { margin-top: 14px; }

/* built for Labrador winters */
.l-north-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.l-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--deep); box-shadow: var(--shadow-lift); }
.l-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; display: block; }
.l-stat { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--text-soft); max-width: 14em; line-height: 1.3; margin-bottom: 34px; }
.l-stat strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 11vw, 7.5rem); line-height: 0.9; color: var(--accent2); margin-bottom: 8px; }
.l-stat sup { font-size: 0.6em; margin-left: 3px; }
.l-points { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.l-points li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.l-points .ic { color: var(--accent); }

/* service area */
.l-area-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 48px; align-items: center; }
.l-rings { width: 100%; max-width: 320px; height: auto; justify-self: end; }
.l-rings circle { fill: none; stroke: rgba(44, 84, 112, 0.32); stroke-width: 1.2; }
.l-rings circle:nth-child(2) { stroke: rgba(44, 84, 112, 0.2); }
.l-rings circle:nth-child(3) { stroke: rgba(44, 84, 112, 0.12); }
.l-rings .l-ring-dot { fill: var(--accent); stroke: none; }
.l-rings text { fill: var(--muted); font-family: var(--display); font-size: 12px; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 4px; cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.8rem; font-weight: 500; line-height: 1; color: var(--accent2); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding: 0 4px 22px; max-width: 38em; }
.faq a { color: var(--accent2); display: inline-flex; align-items: center; min-height: 44px; }

/* driver band and footer */
.l-band { padding: clamp(44px, 7vw, 72px) 0; }
.l-band-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.landing .l-band .btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.landing .l-band .btn:hover { background: #2a343b; border-color: #2a343b; }
.l-footer { border-top: 1px solid var(--hairline); padding: 44px 0 36px; color: var(--muted); font-size: 0.9rem; }
.l-foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.l-foot-brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.l-foot-brand span { color: var(--accent2); }
.l-foot-line { margin: 2px 0; }
.l-foot-line a, .l-foot-nav a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.l-foot-line a:hover, .l-foot-nav a:hover { color: var(--text); }
.l-foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.l-copy { margin-top: 28px; font-size: 0.78rem; line-height: 1.5; color: var(--muted); }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .l-header-in, .l-nav a { transition: none; } }

/* ---------- tablet and phone ---------- */
@media (max-width: 960px) {
  .l-hero { min-height: 0; padding-bottom: 40px; }
  .l-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .l-live { justify-self: start; max-width: 420px; }
  .steps, .price-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-desc { min-height: 0; }
  .l-north-in, .l-area-in { grid-template-columns: 1fr; }
  .l-photo { aspect-ratio: 5 / 4; max-height: 420px; }
  .l-rings { justify-self: start; max-width: 240px; }
}
@media (max-width: 480px) {
  .l-wrap { padding: 0 18px; }
  .l-header > .l-wrap { padding: 0 10px; }
  .l-header-in { gap: 8px; padding: 0 6px 0 10px; }
  .l-brand { gap: 7px; }
  .l-brand-name { font-size: 1.25rem; }
  .l-actions { gap: 6px; }
  .l-actions .btn { padding: 8px 12px; font-size: 0.85rem; }
  .l-hero { padding-top: 104px; }
  .l-cta .btn-lg { width: 100%; }
  .l-live { padding: 14px; }
}



/* ---------- Snow look (TAD 22.13): white hero with a faint frost, the photo as a framed picture, no dark overlay ---------- */
.l-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: clamp(104px, 15vh, 150px) 0 clamp(24px, 4vw, 48px); background: radial-gradient(120% 70% at 50% 0%, var(--frost) 0%, var(--bg) 64%); }
.l-hero picture { order: 3; display: block; width: 100%; max-width: 1180px; margin: clamp(36px, 6vw, 64px) auto 0; padding: 0 24px; }
.l-hero-img { position: static; display: block; width: 100%; height: clamp(240px, 38vw, 460px); border-radius: 28px; object-position: 55% 65%; z-index: auto; box-shadow: var(--shadow-lift); }
.l-hero-shade { display: none; }
.l-live-map { background: var(--frost); }
.landing .l-brand .l-logo { color: var(--text); }
.l-brand-name span, .l-foot-brand span { color: var(--accent2); }
.l-nav a[aria-current="true"] { color: var(--text); background: rgba(var(--ink-rgb), 0.06); }
@media (max-width: 480px) { .l-hero picture { padding: 0 18px; } .l-hero-img { border-radius: 20px; } }

/* Wide screens: the photo sits beside the headline (visible without scrolling) and the live-tracking card rests on it */
@media (min-width: 961px) {
  .l-hero { min-height: min(100svh, 820px); overflow: visible; padding-bottom: 72px; }
  .l-hero picture { position: absolute; z-index: 0; top: clamp(96px, 14vh, 130px); right: max(24px, calc((100vw - 1180px) / 2 + 24px)); width: min(50%, 580px); max-width: none; margin: 0; padding: 0; }
  .l-hero-img { height: clamp(420px, 62vh, 560px); }
  .l-hero-in { position: relative; z-index: 1; }
  .l-live { margin-bottom: -28px; }
}
