/* Lammark styles: mobile first, plain CSS.
   The idea: a transit line map. One red route line is the only repeating device:
   it shows up in the hero picture and as the three stops in "How it works".
   Everything else is flat, calm and signage-like.
   Shape rule: panels 16px, form fields 12px, buttons are pills. */

/* ---------- Fonts (hosted on this site) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colours: change them here ---------- */
:root {
  --ink: #14213D;         /* text, headings, footer */
  --muted: #4A5568;       /* secondary text */
  --bg: #FFFFFF;
  --tint: #F2F4F8;        /* alternate sections */
  --line: #D5DAE3;        /* hairlines */
  --route: #C8381D;       /* the route line, Apply buttons */
  --route-dark: #A52D16;
  --route-tint: #FDEDE8;
  --green: #2A8C6B;       /* ticks */
  --green-tint: #E3F3EC;
  --field-border: #6B7690;
  --radius: 16px;
  --radius-field: 12px;
  --max: 1120px;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Archivo", "Figtree", -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
main a:not(.btn):hover, .site-header a:not(.btn):hover { color: var(--route-dark); }

h1, h2, h3 { font-family: var(--font-head); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 8.5vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }

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

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.nav { display: none; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 2px; }
.nav a:hover { color: var(--route-dark); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--route);
  color: #fff;
  font: inherit; font-weight: 700;
  padding: 14px 28px;
  min-height: 48px;
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--route-dark); color: #fff; }
.btn:active { background: #8A2411; }
.btn-small { padding: 10px 18px; min-height: 44px; font-size: 0.95rem; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.accent { color: var(--route); }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.6em; max-width: 34em; }
.small-note { margin: 16px 0 0; color: var(--muted); }

.hero-visual { width: 100%; max-width: 520px; margin: 0 auto; }
.hero-visual svg { display: block; width: 100%; height: auto; }
.v-tangle { fill: none; stroke: #8A93A6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v-route { fill: none; stroke: var(--route); stroke-width: 8; stroke-linecap: round; }
.v-stop circle { fill: #fff; stroke: var(--ink); stroke-width: 6; }
.v-label text { font-family: var(--font-head); font-weight: 700; font-size: 24px; fill: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.tint { background: var(--tint); }

/* Two-column layout: heading on the left, content on the right (stacks on phones) */
.split { display: grid; gap: 28px; }
.split-head p { color: var(--muted); max-width: 30em; }

/* Pain points */
.closing { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.4; font-weight: 600; color: var(--ink) !important; }
.pain-list { list-style: none; margin: 0; padding: 0; }
.pain-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pain-list li:first-child { padding-top: 4px; }
.pain-list li:last-child { border-bottom: 0; }
.pain-list h3 { margin-bottom: 0.3em; }
.pain-list p { margin: 0; color: var(--muted); max-width: 34em; }

/* How it works: a vertical route with a stop for each step (a row on wider screens) */
.route { list-style: none; margin: 32px 0 0; padding: 0; position: relative; display: grid; gap: 32px; }
.route::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 4px; background: var(--route); border-radius: 2px; }
.route li { position: relative; padding-left: 70px; }
.stop {
  position: absolute; left: 0; top: -2px;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 5px solid var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.route h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.route p { margin: 0; color: var(--muted); max-width: 32em; }

/* Pilot panels */
.panels { display: grid; gap: 16px; margin: 28px 0 40px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin-bottom: 0.7em; }
.panel ul { margin: 0; padding-left: 1.2em; }
.panel li { margin-bottom: 0.6em; }
.panel li:last-child { margin-bottom: 0; }
.panel-get { background: var(--green-tint); border-color: transparent; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.3em; width: 10px; height: 18px; border: solid var(--green); border-width: 0 4px 4px 0; transform: rotate(40deg); }

.why-free { max-width: 46em; margin-bottom: 48px; }
.why-free p { margin: 0; color: var(--muted); }

/* Example table */
.example-label { display: inline-block; background: var(--route-tint); color: var(--route-dark); font-weight: 600; border-radius: 10px; padding: 6px 14px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; padding: 4px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-head); font-size: 1.05rem; background: var(--tint); }
th:last-child { color: var(--route-dark); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--muted); }
td:last-child { font-weight: 600; }

/* About */
.about-text { font-size: 1.15rem; max-width: 36em; }
.badges { list-style: none; margin: 1.4em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { background: var(--tint); border-radius: 999px; padding: 7px 18px; font-weight: 700; font-size: 0.95rem; }

/* Form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: #fff; border: 2px solid var(--field-border); border-radius: var(--radius-field);
}
textarea { resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
input:focus, textarea:focus { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--route); }
.privacy { font-size: 1rem; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-message { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius-field); font-weight: 600; }
.form-message[hidden] { display: none; }
.form-message.success { background: var(--green-tint); color: #12503B; border: 1px solid #A5D2BE; }
.form-message.error { background: var(--route-tint); color: #7A1F0E; border: 1px solid #F0B8AA; }
.form-message a { color: inherit; }

/* Field-level error lines (shown under the box that needs fixing) */
.field-error { margin: 6px 0 0; color: #7A1F0E; font-weight: 600; font-size: 1rem; }
.field-error[hidden] { display: none; }

/* FAQ */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
summary { position: relative; cursor: pointer; font-weight: 700; padding: 18px 44px 18px 0; min-height: 56px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--route); line-height: 1; }
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--route-dark); }
.faq-list details p { margin: 0; padding: 0 0 18px; color: var(--muted); max-width: 40em; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 44px 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 3px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-inner { display: grid; gap: 4px; }
.footer-inner p { margin: 0; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .nav { display: flex; }
  .hero { padding: 80px 0 96px; }
  .section { padding: 96px 0; }
  .split { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .split-head { position: sticky; top: 108px; }
  /* the route lies on its side: a line across the top with three stops */
  .route { grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 48px; }
  .route::before { left: 23px; right: 0; top: 21px; bottom: auto; width: auto; height: 4px; }
  .route li { padding-left: 0; padding-top: 70px; }
  .stop { top: 0; }
  .panels { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; }
  .panel-get { grid-row: 1 / span 2; padding: 36px; }
  .form { padding: 36px; }
  .footer-inner { grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; }
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}
