/* Wrinkledot homepage, 2026-11-11 second redesign ("wayfinding").
   One typeface (Overpass, a descendant of the US highway sign face), white paper, black ink.
   Blue belongs to the guide sign (hero) and the start panel; buttons are ink.
   The one bold element is the sign board: this week's busiest cities, filled live by /proof.js.
   Everything else stays quiet: no cards, no shadows, no monospace, no all caps.
   Every section header sits on the hero's 7/5 grid. No inline styles (CSP style-src 'self'). */

@font-face { font-family: "Overpass"; src: url("/fonts/overpass.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff; --paper-2: #f4f5f7; --tile: #ffffff;
  --ink: #000000; --body: #33363d; --soft: #5b5f69;
  --rule: #dcdde0; --rule-strong: #000000;
  --link: #2531c4; --on-blue: #ffffff;
  --sign: #1f2fb8; --sign-line: #ffffff;
  --dot: #f2a516;
  --focus: #2d3ae0;
  --logo-f: #7f89ff; --logo-k: #2d3ae0; --logo-d: #f2a516;
  --font: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px; --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 128px);
  --col: clamp(40px, 6vw, 96px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0f1a; --paper-2: #151829; --tile: #1e2238;
    --ink: #f4f5f8; --body: #c9ccd6; --soft: #a2a6b4;
    --rule: rgba(255, 255, 255, .16); --rule-strong: #f4f5f8;
    --link: #a9b0ff;
    --sign: #2433c4;
    --focus: #a9b0ff;
    --logo-f: #4c57d6; --logo-k: #9aa2ff; --logo-d: #f2b23a;
    color-scheme: dark;
  }
}

/* ---- base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 1.125rem/1.6 var(--font); overflow-x: clip; font-kerning: normal; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
time, .sign-n, .big-n b, .timeline time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.logo { width: 30px; height: 30px; flex: none; }
.logo .lf { fill: var(--logo-f); } .logo .lk { fill: var(--logo-k); } .logo .ld { fill: var(--logo-d); }

main > section, .bar-in, .foot-in { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
main > section { padding-block: var(--sec) 0; }

/* ---- type ------------------------------------------------------------------ */
.hero-title, .h2, .start-title, .prod-line, .big-n b { color: var(--ink); font-weight: 820; letter-spacing: -.022em; text-wrap: balance; }
.h2 { font-size: clamp(2.125rem, 4.2vw, 3.5rem); line-height: 1.04; max-width: 16ch; }
.h3 { color: var(--ink); font-size: 1.25rem; line-height: 1.3; font-weight: 750; letter-spacing: -.005em; text-wrap: balance; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 981px) { .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--col); align-items: end; } }
.sec-lede { font-size: 1.1875rem; line-height: 1.55; max-width: 36em; text-wrap: pretty; }
.fine { font-size: .9375rem; line-height: 1.6; color: var(--soft); max-width: 60em; margin-top: 40px; }
.fine a, .terms a, .start-alt a, .apps-launcher a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.fine a { display: inline-block; padding-block: 3px; }

/* ---- buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px 11px; border-radius: 10px; font: 700 1.0625rem/1.2 var(--font); text-decoration: none; letter-spacing: -.005em; transition: background-color .15s, color .15s, border-color .15s; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--sign); color: #fff; }
.btn-line { border: 2px solid var(--rule-strong); color: var(--ink); padding: 11px 20px 9px; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.more { font-weight: 700; color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 2px; padding-block: 8px; }

/* ---- header ----------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.bar-cta { min-height: 44px; padding: 11px 18px 9px; font-size: 1rem; }
@media (max-width: 820px) { .nav { display: none; } .bar-cta { margin-left: auto; } .bar-in { min-height: 64px; } }

/* ---- hero: title, lede and buttons on the left, the sign board on the right -- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr; column-gap: var(--col); padding-top: clamp(48px, 7vw, 96px) !important; }
.hero-title { grid-column: 1; font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 1; letter-spacing: -.03em; max-width: 13ch; margin-bottom: 32px; }
.hero-lede { grid-column: 1; font-size: 1.25rem; line-height: 1.6; max-width: 31em; text-wrap: pretty; }
.hero-ctas { grid-column: 1; align-self: start; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.signs { grid-column: 2; grid-row: 1 / span 3; align-self: start; display: grid; gap: 12px; padding-top: 8px; }
.signs-title { font-size: 1rem; font-weight: 700; color: var(--soft); }

/* The guide sign: one blue board, white inset border, white lettering, a white rule between its two panels. */
.board { background: var(--sign); color: var(--on-blue); border-radius: 16px; outline: 2.5px solid var(--sign-line); outline-offset: -9px; padding-block: 6px; }
.sign { padding: 18px 26px 14px; }
.sign + .sign { margin-inline: 9px; padding-inline: 17px; border-top: 2.5px solid var(--sign-line); }
.sign-head { display: flex; align-items: center; gap: 12px; line-height: 1.2; }
.sign-head img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.sign-head b { font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; }
.sign-what { display: block; font-size: 1rem; font-weight: 600; }
.sign-rows { display: grid; padding: 10px 0 2px; }
.sign-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 700; line-height: 1.45; letter-spacing: -.005em; }
.sign-n { font-weight: 800; }
.sign-foot { padding-top: 6px; font-size: .9375rem; font-weight: 600; }
.sign-foot a { color: var(--on-blue); text-underline-offset: 3px; display: inline-block; padding-block: 4px; }
.board :focus-visible { outline-color: #fff; }
.signs-note { font-size: .875rem; line-height: 1.5; color: var(--soft); }

/* ---- products: the two on the sign get full rows; the other two share a row -- */
.prod { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 4.5vw, 56px); border-top: 1px solid var(--rule); }
.sec-head + .prod { border-top: 0; padding-top: 0; }
.prod:nth-of-type(2) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.prod:nth-of-type(2) .prod-shot { order: 2; }
.prod-shot { display: block; border-radius: 14px; overflow: hidden; background: #0b0f2a; aspect-ratio: 1200 / 750; }
.prod-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .prod-shot:hover img { transform: scale(1.015); } }
.prod-name { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.prod-name img { width: 36px; height: 36px; border-radius: 9px; }
.prod-line { font-size: clamp(1.75rem, 2.7vw, 2.375rem); line-height: 1.1; margin-bottom: 16px; }
.prod-body { max-width: 30em; text-wrap: pretty; }
.prod-price { margin-top: 16px; font-weight: 700; color: var(--ink); }
.prod-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
@media (min-width: 861px) {
  .products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col); }
  .products > .sec-head, .products > .fine, .prod:nth-of-type(-n+2) { grid-column: 1 / -1; }
  .prod:nth-of-type(n+3) { grid-template-columns: 1fr; align-content: start; align-items: start; gap: 28px; }
  .prod:nth-of-type(n+3) .prod-line { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
}

/* ---- how it runs: the org, the checks, the days ----------------------------- */
.org { display: grid; justify-items: center; padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 40px); background: var(--paper-2); border-radius: 16px; }
.org-top { text-align: center; border: 2px solid var(--rule-strong); border-radius: 12px; padding: 16px 28px 14px; background: var(--tile); }
.org-who { color: var(--ink); font-weight: 800; font-size: 1.375rem; letter-spacing: -.01em; }
.org-does { font-size: 1rem; color: var(--body); }
.org-teams { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 920px; margin-top: 56px; }
/* the wires: one stem down from James, a bus across, a drop to each team (bus ends on the outer drops) */
.org-teams::before { content: ""; position: absolute; left: calc(50% - 1px); top: -56px; height: 28px; border-left: 2px solid var(--rule-strong); }
.org-teams::after { content: ""; position: absolute; top: -28px; left: calc((100% - 48px) / 8 - 1px); right: calc((100% - 48px) / 8 - 1px); border-top: 2px solid var(--rule-strong); }
.org-teams li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 10px 16px; background: var(--tile); border: 1px solid var(--rule); border-radius: 12px; font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.org-teams li::before { content: ""; position: absolute; top: -29px; left: calc(50% - 1px); height: 28px; border-left: 2px solid var(--rule-strong); }
.org-teams img { width: 44px; height: 44px; border-radius: 11px; }
.org-shared { margin-top: 16px; width: 100%; max-width: 920px; text-align: center; padding: 14px 16px 12px; border: 2px dashed var(--rule-strong); border-radius: 12px; font-weight: 600; color: var(--ink); font-size: 1rem; }
@media (prefers-color-scheme: dark) { .prod-name img, .org-teams img, .sign-head img { outline: 1px solid rgba(255, 255, 255, .22); outline-offset: -1px; } }

.how-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col); margin-top: clamp(48px, 6vw, 80px); }
.how-grid .h3 { margin-bottom: 18px; }
.check-list > div { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 4px 24px; padding: 16px 0 14px; border-top: 1px solid var(--rule); }
.check-list dt { color: var(--ink); font-weight: 750; }
.timeline li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 16px 0 14px; border-top: 1px solid var(--rule); }
.timeline time, .tl-day { color: var(--soft); font-weight: 600; }
.timeline li span:last-child { color: var(--ink); font-weight: 700; }
.tl-now .tl-day { color: var(--ink); position: relative; }
.tl-now .tl-day::before { content: ""; position: absolute; left: -18px; top: calc(50% - 6px); width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }

/* ---- track record ---------------------------------------------------------------- */
.apps-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--col); row-gap: 24px; margin-bottom: 48px; }
.big-n { display: grid; gap: 6px; }
.big-n b { font-size: clamp(3rem, 6vw, 4.5rem); line-height: .95; letter-spacing: -.03em; }
.big-n span { font-weight: 600; color: var(--body); }
.app-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 28px 16px; }
@media (min-width: 981px) { .app-row { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 28px 12px; } }
.app-row a { display: grid; justify-items: center; gap: 10px; text-align: center; text-decoration: none; font-size: .875rem; line-height: 1.3; font-weight: 600; color: var(--body); }
.app-row img { width: 72px; height: 72px; border-radius: 17px; background: var(--paper-2); }
.app-row a:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.apps-launcher { margin-top: 48px; max-width: 46em; }

/* ---- work with us --------------------------------------------------------------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.offers li { border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.offers .h3 { margin-bottom: 10px; }
.steps-title { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 18px; }
.steps { counter-reset: s; max-width: 62em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 13em) minmax(0, 1fr); column-gap: 24px; padding: 16px 0 14px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-size: 1.375rem; font-weight: 800; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps b { color: var(--ink); font-weight: 750; }
.terms { margin-top: 36px; max-width: 46em; }

.start { margin-top: clamp(72px, 9vw, 120px); background: var(--sign); color: var(--on-blue); border-radius: 20px; padding: clamp(40px, 6vw, 80px); outline: 3px solid var(--sign-line); outline-offset: -12px; }
.start-title { color: var(--on-blue); font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1; max-width: 14ch; }
.start-lede { font-size: 1.25rem; line-height: 1.5; margin-top: 20px; max-width: 30em; }
.start-mail { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.start .btn-solid { background: #fff; color: #1a2699; }
.start .btn-solid:hover { background: #e9ebff; color: #1a2699; }
.contact { gap: .3em; }
.btn-big, .contact-copy { min-height: 58px; font-size: 1.1875rem; padding: 16px 24px 13px; }
.contact-copy { border-radius: 10px; border: 2px solid #fff; background: transparent; color: #fff; font-family: var(--font); font-weight: 700; line-height: 1.2; cursor: pointer; }
.contact-copy:hover { background: rgba(255, 255, 255, .12); }
.start :focus-visible { outline-color: #fff; }
.start-alt { margin-top: 28px; font-size: 1rem; }
.start .start-alt a { color: #fff; }

/* ---- footer -------------------------------------------------------------------- */
.foot { margin-top: clamp(64px, 7vw, 96px); border-top: 1px solid var(--rule); padding-block: 56px 48px; font-size: 1rem; }
.foot-in { display: grid; grid-template-columns: 1fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-col { display: grid; align-content: start; gap: 4px; }
.foot-col h2 { font-size: 1rem; font-weight: 750; color: var(--ink); margin-bottom: 6px; }
.foot-col a { text-decoration: none; color: var(--body); padding-block: 3px; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .brand { align-self: start; }
.foot-copy { grid-column: 1 / -1; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--soft); }

/* ---- narrower screens ------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: none; }
  .hero-title, .hero-lede, .hero-ctas, .signs { grid-column: 1; grid-row: auto; }
  .signs { max-width: 560px; margin-top: 36px; }
  .how-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .prod, .prod:nth-of-type(2) { grid-template-columns: 1fr; gap: 24px; }
  .prod:nth-of-type(2) .prod-shot { order: 0; }
  .offers { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .hero-lede, .sec-lede, .start-lede { font-size: 1.125rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .sign { padding: 16px 22px 12px; }
  .sign + .sign { padding-inline: 13px; }
  .org-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .org-teams::before, .org-teams::after, .org-teams li::before { display: none; }
  .check-list > div { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 7.5em minmax(0, 1fr); }
  .apps-top { grid-template-columns: 1fr; }
  .steps li { display: block; position: relative; padding-left: 2.5rem; }
  .steps li::before { position: absolute; left: 0; top: 16px; }
  .steps b { display: block; margin-bottom: 4px; }
  .start { padding: 40px 24px; outline-offset: -9px; }
  .btn-big, .contact-copy { font-size: 1.0625rem; padding-inline: 18px; }
  .contact { flex-wrap: wrap; text-align: center; }
  .contact-e { overflow-wrap: anywhere; }
  .start-mail .btn, .contact-copy { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
