/* LoadWise marketing site — mobile first. Palette and type from the brand brief. */
:root {
  --blue: #239DD0;
  --blue-dark: #1A82AE;
  --navy: #173B59;
  --navy-deep: #10293F;
  --light-blue: #EAF6FC;
  --white: #FFFFFF;
  --bg: #F7F9FB;
  --text: #17212B;
  --muted: #667085;
  --line: #E4E9EF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 59, 89, 0.10);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; border-radius: 12px;
  padding: 12px 20px; border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: .95rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #C9D6E2; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--light-blue); }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: .6em; }
.eyebrow-light { color: #8FD3EF; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.brand-name span { color: var(--blue); }
.brand-light .brand-name { color: #fff; }

.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; flex-direction: column; gap: 4px; }
.site-nav.open { display: flex; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: 12px 4px; }
.site-nav a.btn { color: #fff; margin-top: 8px; padding: 12px 20px; }
.site-nav .nav-login { color: var(--blue-dark); }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; box-shadow: none; border: 0; background: transparent; }
  .site-nav a { padding: 6px 0; }
  .site-nav a:not(.btn):hover { color: var(--blue-dark); }
  .site-nav a.btn { margin-top: 0; padding: 8px 16px; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--light-blue) 0%, #fff 75%); padding: 44px 0 56px; }
.hero-inner { display: grid; gap: 36px; align-items: center; }
.hero h1 .accent { color: var(--blue); display: block; }
.lead { font-size: 1.1rem; color: #3E4C5B; max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.cta-row .btn { flex: 1 1 200px; }
.hero-note { font-size: .9rem; color: var(--muted); }
@media (min-width: 640px) { .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 1000px) {
  .hero { padding: 72px 0 84px; }
  .hero-inner { grid-template-columns: 1fr 1.15fr; gap: 48px; }
}

/* ---------- Screenshots (real app screenshots go in /assets/screens) ---------- */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.shot img { width: 100%; }
.shot.missing { min-height: 220px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #F1F5F9, #F1F5F9 12px, #E9EEF4 12px, #E9EEF4 24px); }
.shot.missing::after { content: "Screenshot needed: " attr(data-shot); max-width: 80%; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); background: #fff; padding: 10px 14px; border-radius: 10px; border: 1px dashed #B8C4D2; }
.shot-hero.missing { min-height: 300px; }
.shot-phone { max-width: 320px; margin: 0 auto; border-radius: 28px; border: 8px solid var(--navy-deep); }
.shot-phone.missing { min-height: 560px; }

/* ---------- Value ---------- */
.value { padding: 56px 0; border-bottom: 1px solid var(--line); }
.value-statement { text-align: center; font-size: clamp(1.4rem, 4vw, 2rem); max-width: 26em; margin: 0 auto 40px; }
.value-statement span { color: var(--blue); }
.value-grid { display: grid; gap: 24px; }
.value-item { text-align: center; padding: 8px; }
.value-item p { color: var(--muted); margin: 0; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }

.icon-circle { width: 52px; height: 52px; border-radius: 14px; background: var(--light-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-circle svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* ---------- How it works ---------- */
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.stage { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stage p { color: #3E4C5B; margin: 0; }
.stage-num { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.id-example { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.id-chip { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; font-size: 1.05rem; color: var(--navy); background: var(--light-blue); border: 1px dashed var(--blue); border-radius: 8px; padding: 4px 10px; }
.id-example small { color: var(--muted); }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(2, 1fr); } .stage:last-child { grid-column: 1 / -1; } }

.journey { margin-top: 32px; background: var(--light-blue); border-radius: var(--radius); padding: 22px; }
.journey-steps { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.journey-steps li { background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid #C7E3F1; }
.journey-steps li:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--blue); }
.journey-steps li.done { background: var(--blue); border-color: var(--blue); color: #fff; }
.journey-note { margin: 0; color: #3E4C5B; font-size: .95rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Guide ---------- */
.getting-started { background: var(--navy); color: #E7EEF5; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px; }
.getting-started h3 { color: #fff; }
.getting-started ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.getting-started a { color: #8FD3EF; font-weight: 700; }
.guide { display: grid; gap: 40px; margin-bottom: 40px; }
.guide-step { display: grid; gap: 20px; align-items: center; }
.guide-text ul, .guide-text ol { padding-left: 1.2em; margin: 0 0 1em; }
.guide-text li { margin-bottom: 4px; }
.step-tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--blue-dark); background: var(--light-blue); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.menu-path { font-weight: 700; color: var(--navy); font-size: .95rem; }
.tip { font-size: .93rem; color: var(--muted); border-left: 3px solid var(--blue); padding-left: 12px; }
@media (min-width: 900px) {
  .guide-step { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .guide-step:nth-child(even) .guide-text { order: 2; }
}

/* ---------- Tracking ---------- */
.section-dark { background: var(--navy); color: #DCE6F0; }
.section-dark h2 { color: #fff; }
.tracking-inner { display: grid; gap: 36px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.benefit { font-weight: 700; color: #fff; font-size: 1.05rem; }
.fineprint { font-size: .85rem; color: #A9BDD0; }
@media (min-width: 900px) { .tracking-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

/* ---------- Audience ---------- */
.audience-grid { display: grid; gap: 16px; }
.audience { border-radius: var(--radius); padding: 24px; background: linear-gradient(180deg, var(--light-blue), #fff); border: 1px solid #D6EAF4; }
.audience p { color: #3E4C5B; margin: 0; }
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 600; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #3E4C5B; padding-bottom: 16px; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; padding: 72px 0; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #E3F2FA; font-size: 1.1rem; }
.final-cta .btn { margin: 12px 0 18px; }
.cta-login { font-size: 1rem !important; }
.cta-login a { color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C8D6; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #DCE6F0; text-decoration: none; }
.site-footer a:hover { color: #8FD3EF; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.tagline { color: #8FD3EF; font-weight: 700; margin: 8px 0; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; } }

.shot-narrow { max-width: 460px; justify-self: center; }
