/* Spanner Link's website. One stylesheet, no build step, nothing loaded from anywhere else.
   It follows the device: light on a light one, dark on a dark one, as the app's public pages do.
   Phone first: everything is laid out for 390 px, and wider screens get more room further down. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #4b4b50;
  --ink-3: #6e6e73;
  --hair: rgba(0, 0, 0, .1);
  --blue: #0b63ce;
  --blue-hi: #2a7be0;
  --blue-ink: #084a9b;
  --blue-wash: #e9f2fd;
  --device: #1d1d1f;
  --shadow: 0 1px 2px rgba(20, 20, 45, .05), 0 30px 60px -30px rgba(20, 20, 45, .35);
  --wrap: 1120px;
  --gutter: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --paper: #131417;
    --ink: #f5f5f7;
    --ink-2: #c3c3c8;
    --ink-3: #98989d;
    --hair: rgba(255, 255, 255, .16);
    --blue: #2a7be0;
    --blue-hi: #4c93ea;
    --blue-ink: #8cc4ef;
    --blue-wash: #0d1a2b;
    --device: #2a2b30;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 12px; z-index: 20; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; border-radius: 8px; }

/* ---------- The bar at the top ---------- */

.top { background: color-mix(in srgb, var(--ground) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; padding-block: 8px 0; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 148px; }
.top nav { order: 3; flex: 1 0 100%; display: flex; justify-content: space-between; margin-inline: -10px; }
.top nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.top nav a:hover { color: var(--ink); }

.night-only { display: none; }
@media (prefers-color-scheme: dark) {
  .day-only { display: none; }
  .night-only { display: block; }
}

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hi); }
.btn.quiet { background: var(--paper); color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--hair); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.on-blue { background: #fff; color: #084a9b; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--blue-ink); }
.more:hover { text-decoration: underline; }

/* ---------- Type ---------- */

.label { color: var(--blue-ink); font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.display { font-size: clamp(38px, 11.4vw, 104px); line-height: .98; letter-spacing: -.05em; font-weight: 800; }
.headline { font-size: clamp(34px, 8.6vw, 64px); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.title { font-size: clamp(28px, 6.6vw, 44px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.lead { font-size: clamp(19px, 4.6vw, 24px); line-height: 1.38; letter-spacing: -.015em; color: var(--ink-2); text-wrap: pretty; }
.fine { color: var(--ink-3); font-size: 15px; }
.soft { color: var(--ink-3); }

/* ---------- The opening ---------- */

.hero { padding-block: 52px 0; text-align: center; }
.hero .label { margin-bottom: 14px; }
.hero .lead { max-width: 21em; margin: 22px auto 0; }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 28px; }
.hero .fine { margin-top: 8px; }
.hero-art { position: relative; margin-top: 44px; display: flex; justify-content: center; }
.hero-art .pc { display: none; }

/* ---------- Device frames ---------- */

.phone { width: min(290px, 74vw); flex: none; padding: 9px; border-radius: 46px; background: var(--device); box-shadow: var(--shadow); }
.phone img { width: 100%; border-radius: 37px; }
.pc { border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--hair); }
.pc::before { content: ""; display: block; height: 30px; background: radial-gradient(circle at 18px 15px, var(--hair) 5px, transparent 6px), radial-gradient(circle at 36px 15px, var(--hair) 5px, transparent 6px), radial-gradient(circle at 54px 15px, var(--hair) 5px, transparent 6px); border-bottom: 1px solid var(--hair); }
.pc img { width: 100%; }

/* ---------- A band: one idea ---------- */

.band { padding-block: 84px; }
.band.paper { background: var(--paper); }
.band-head { max-width: 760px; }
.band-head.centre { margin-inline: auto; text-align: center; }
.band-head .label { margin-bottom: 12px; }
.band-head .lead { margin-top: 18px; }

/* ---------- The day: one car, stop by stop, on one line ---------- */

.day { position: relative; margin-top: 56px; }
.stop { position: relative; padding: 0 0 72px 34px; }
.stop::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: -14px; width: 2px; background: var(--hair); }
.stop:last-child { padding-bottom: 0; }
.stop:last-child::before { display: none; }
.stop::after { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 3px var(--blue); }
.band.paper .stop::after { background: var(--paper); }
.when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; font-weight: 700; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.when span { color: var(--ink-3); font-weight: 500; }
.stop .title { margin-top: 10px; }
.stop .say { margin-top: 12px; color: var(--ink-2); font-size: 19px; line-height: 1.42; letter-spacing: -.012em; max-width: 26em; text-wrap: pretty; }
.stop figure { margin-top: 28px; display: flex; flex-direction: column; align-items: center; margin-left: -34px; }
/* Two phones, one a step in front of the other. */
.stop figure.pair { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.stop figure.pair .phone { width: min(224px, 54%); padding: 7px; border-radius: 38px; }
.stop figure.pair .phone img { border-radius: 31px; }
.stop figure.pair .phone + .phone { margin: 64px 0 0 -12%; position: relative; }
.stop figure.pair figcaption { flex: 1 0 100%; margin-inline: auto; }
figcaption { margin-top: 18px; max-width: 30em; font-size: 15px; line-height: 1.45; color: var(--ink-3); text-align: center; text-wrap: pretty; }
figcaption strong { color: var(--ink); font-weight: 650; }

/* ---------- Same app, more room ---------- */

.wide-art { margin-top: 44px; }
.wide-art figcaption { margin-inline: auto; }
.wide-art.lead-art { margin: 24px 0 36px; }

/* ---------- Who sees what ---------- */

.roles { margin-top: 40px; display: grid; gap: 10px; }
.roles li { background: var(--paper); border-radius: 22px; padding: 20px 22px; }
.band.paper .roles li { background: var(--ground); }
.roles strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.roles span { color: var(--ink-2); }

/* ---------- Short rules, four to a row ---------- */

.rules { margin-top: 40px; display: grid; gap: 10px; }
.rules > div { background: var(--paper); border-radius: 22px; padding: 22px; }
.band.paper .rules > div { background: var(--ground); }
.rules h3 { font-size: 19px; letter-spacing: -.02em; }
.rules p { margin-top: 6px; color: var(--ink-2); text-wrap: pretty; }
.rules + p { margin-top: 18px; }

/* ---------- The price, said once ---------- */

.price-card { margin-top: 40px; background: var(--paper); border-radius: 28px; padding: 30px 24px; text-align: center; box-shadow: var(--shadow); }
.band.paper .price-card { background: var(--ground); box-shadow: none; }
.price-card .from { font-size: clamp(40px, 10vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.price-card p { margin-top: 12px; color: var(--ink-2); }
.price-card .btn { margin-top: 22px; }

/* ---------- The close ---------- */

.close { text-align: center; padding-block: 92px; background: linear-gradient(160deg, #0b63ce 0%, #084590 100%); color: #fff; }
.close .lead { color: rgba(255, 255, 255, .86); max-width: 22em; margin: 18px auto 0; }
.close .btn { margin-top: 30px; }
.close .fine { color: rgba(255, 255, 255, .78); margin-top: 16px; }
.close .mark { width: 54px; margin: 0 auto 26px; }

/* ---------- Inside pages ---------- */

.page-head { padding-block: 56px 20px; }
.page-head .label { margin-bottom: 12px; }
.page-head .lead { margin-top: 18px; max-width: 30em; }
.page-head.lone { padding-block: 84px; }
.page-head.lone .btn { margin-top: 30px; }
.top-gap { margin-top: 84px; }
.points.one { grid-template-columns: 1fr; }

.group { padding-block: 44px; border-top: 1px solid var(--hair); }
.group:first-of-type { border-top: 0; }
.group-art { margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
.points { margin-top: 26px; display: grid; gap: 24px; }
.points h3 { font-size: 19px; letter-spacing: -.02em; }
.points p { margin-top: 6px; color: var(--ink-2); text-wrap: pretty; }
.honest { margin-top: 28px; padding: 16px 20px; border-radius: 18px; background: var(--blue-wash); color: var(--ink-2); font-size: 15px; }
.honest strong { color: var(--ink); }

/* Prices */
.rates { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates caption { text-align: left; padding-bottom: 14px; }
.rates th, .rates td { padding: 16px 0 16px 14px; border-bottom: 1px solid var(--hair); text-align: right; font-size: 18px; letter-spacing: -.015em; }
.rates td { white-space: nowrap; }
.rates th:first-child { text-align: left; padding-left: 0; }
.rates thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; padding-block: 0 10px; }
.rates tbody th { font-weight: 500; }
.rates tbody td:nth-child(2) { font-weight: 750; }
.rates tbody td:last-child { color: var(--ink-2); }
.sheet { background: var(--paper); border-radius: 28px; padding: 26px 22px 18px; box-shadow: var(--shadow); }
.sheet .fine { margin-top: 14px; }

/* Questions */
.asks { margin-top: 8px; }
.asks details { border-bottom: 1px solid var(--hair); }
.asks summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 14px; cursor: pointer; font-size: 19px; font-weight: 650; letter-spacing: -.02em; list-style: none; }
.asks summary::-webkit-details-marker { display: none; }
.asks summary::after { content: "+"; flex: none; color: var(--blue-ink); font-size: 26px; font-weight: 400; line-height: 1; }
.asks details[open] summary::after { content: "\2212"; }
.asks details p { padding: 0 0 20px; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.asks h2 { margin-top: 48px; font-size: 15px; font-weight: 700; color: var(--blue-ink); letter-spacing: -.005em; }
.asks h2:first-child { margin-top: 0; }

/* Contact */
.reach { margin-top: 12px; display: grid; gap: 14px; }
.reach > div { background: var(--paper); border-radius: 24px; padding: 24px 22px; }
.reach h2 { font-size: 22px; letter-spacing: -.025em; }
.reach p { margin-top: 8px; color: var(--ink-2); }
.reach .btn, .reach .more { margin-top: 14px; }
.address { font-size: 19px; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }

/* ---------- The foot ---------- */

.foot { padding-block: 44px 56px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--hair); }
.foot .wrap { display: grid; gap: 22px; }
.foot .brand img { width: 128px; }
.foot nav { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.foot nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 10px; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot p { max-width: 46em; }
.foot p + p { margin-top: 8px; }

/* ---------- Coming into view ---------- */

@media (prefers-reduced-motion: no-preference) {
  .moves .rise { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .moves .rise.seen { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- More room ---------- */

@media (min-width: 720px) {
  :root { --gutter: 36px; }
  .top { position: sticky; top: 0; z-index: 10; }
  .top .wrap { flex-wrap: nowrap; padding-block: 8px; }
  .top nav { order: 0; flex: 0 1 auto; margin-inline: auto 6px; justify-content: flex-end; gap: 6px; }
  .hero { padding-top: 84px; }
  .hero .cta { flex-direction: row; justify-content: center; gap: 22px; }
  .band { padding-block: 120px; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .points:not(.one) { grid-template-columns: repeat(2, 1fr); gap: 30px 44px; }
  .reach { grid-template-columns: repeat(2, 1fr); }
  .sheet { padding: 34px 36px 24px; }
  .price-card { padding: 44px; }
  .foot .wrap { grid-template-columns: 1fr auto; align-items: start; }
  .foot .legal { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
  .hero-art { margin-top: 64px; padding-bottom: 0; justify-content: flex-start; }
  .hero-art .pc { display: block; width: 86%; }
  .hero-art .phone { position: absolute; right: 0; bottom: -44px; width: 250px; }
  .hero { padding-bottom: 44px; }

  /* The line moves to the middle, and the stops take sides in turn. */
  .day { margin-top: 96px; }
  .stop { display: grid; grid-template-columns: 1fr 1fr; column-gap: 112px; align-items: center; padding: 0 0 132px; }
  .stop::before { left: 50%; margin-left: -1px; top: 0; bottom: 0; }
  .stop:first-child::before { top: 50%; }
  .stop:last-child::before { display: block; bottom: 50%; }
  .stop:last-child { padding-bottom: 0; }
  .stop::after { left: 50%; top: 50%; margin: -9px 0 0 -9px; width: 18px; height: 18px; box-shadow: inset 0 0 0 4px var(--blue); }
  .stop:not(:last-child)::after { top: calc(50% - 66px); }
  .stop > div { justify-self: end; max-width: 430px; width: 100%; }
  .stop figure { margin: 0; justify-self: start; align-items: center; width: 100%; max-width: 430px; }
  .stop:nth-child(even) > div { order: 2; justify-self: start; }
  .stop:nth-child(even) figure { order: 1; justify-self: end; }
  .stop .say { font-size: 21px; }
  .roles { grid-template-columns: repeat(5, 1fr); }
  .roles li { padding: 22px 18px; }
  .rules { grid-template-columns: repeat(4, 1fr); }
  .points:not(.one) { grid-template-columns: repeat(3, 1fr); }
  /* A group of features: its picture on the left, its name and points on the right. */
  .group { display: grid; grid-template-columns: 290px 1fr; column-gap: 84px; padding-block: 84px; align-items: start; }
  .group > * { grid-column: 2; }
  .group > .group-art { grid-column: 1; grid-row: 1 / span 4; margin-top: 0; }
  .group > .group-head { margin-bottom: 34px; }
  .group .points { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
  .group.plain > .group-head { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .split { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 72px; align-items: start; }
  .split .points.one { margin-top: 12px; }
  .page-head { padding-block: 96px 36px; }
  .page-head.lone { padding-block: 140px; }
}
