/* Pillion's website. The page is one sky, from night at the top to morning at the bottom: the app colours every
   ride by the sky it was ridden under, and is bright by day and dark at night. Type is the app's own. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --night: #0B0E14;
  --ink: #F5F7FA;
  --soft: #C3CAD6;
  --muted: #98A2B3;
  --orange: #FF7A1A;
  --on-orange: #16100A;
  --day-ink: #10131A;
  --day-soft: #3F4856;
  --day-muted: #5A6473;
  --dash: #191D21;
  --dash-ink: #D6ECEE;
  --dash-strip: #262C32;
  --line: rgba(245, 247, 250, .14);
  --day-line: rgba(16, 19, 26, .14);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--text); font-size: 1.0625rem;
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--day-ink); padding: 8px 14px;
  border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ---------- the sky ---------- */
.sky { position: relative; }
.sky > section { padding-block: clamp(64px, 9vw, 128px); }
.sky > section + section { padding-top: 0; }
.sky-night { background: linear-gradient(to bottom, #090B11 0%, #0E1119 55%, #131829 100%); }
.sky-blue-hour { background: linear-gradient(to bottom, #131829 0%, #181D38 45%, #2B2148 100%); }
.sky-dawn { background: linear-gradient(to bottom, #2B2148 0%, #3A2652 30%, #6A395E 56%, #B45F50 76%, #E8995F 90%, #F3C79C 100%); }
.sky-morning { background: linear-gradient(to bottom, #F3C79C 0, #F6E2C9 150px, #F5F0E8 440px, #EEF1F4 100%); color: var(--day-ink); }
.sky-day { background: linear-gradient(to bottom, #EEF1F4 0%, #E1EBF6 100%); color: var(--day-ink); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-stretch: 92%; font-weight: 650; letter-spacing: -0.008em; margin: 0;
  text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); line-height: 1; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2rem, 4.1vw, 3.25rem); line-height: 1.04; font-variation-settings: "opsz" 72; }
h2.narrow { max-width: 17ch; }
h3 { font-size: 1.15rem; line-height: 1.25; font-stretch: 96%; font-weight: 620; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.prose { max-width: 34rem; }
.prose.wide { max-width: 44rem; }
.prose p { margin-top: 1.1em; color: var(--soft); }
.sky-morning .prose p, .sky-day .prose p { color: var(--day-soft); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--soft); margin-top: 1.4rem; max-width: 30rem; }
.fine { font-size: .9rem; line-height: 1.5; color: var(--muted); margin-top: 1.25rem; max-width: 34rem; }
.fine.onlight { color: var(--day-muted); }
kbd { font-family: var(--text); font-size: .85em; font-weight: 600; border: 1px solid currentColor; border-radius: 5px;
  padding: 0 .35em; opacity: .9; }

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px; }
.brand svg { height: 34px; width: 105px; color: var(--ink); }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--soft); padding: 6px 2px; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.top nav a.pill { color: var(--ink); border: 1px solid rgba(245, 247, 250, .35); border-radius: 999px; padding: 8px 16px; }
.top nav a.pill:hover { border-color: var(--ink); }
@media (max-width: 800px) { .top nav a:not(.pill) { display: none; } }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--orange); color: var(--on-orange); font: 600 1.05rem/1 var(--text); border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.button:hover { background: #FF8D3A; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .6; cursor: default; }
.quiet-link { color: var(--soft); text-underline-offset: 4px; }
.quiet-link:hover { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 2rem; }

/* ---------- hero ---------- */
.sky-night > .hero { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; padding-top: clamp(120px, 16vw, 190px);
  padding-bottom: clamp(64px, 9vw, 120px); min-height: min(100svh, 900px); }
@media (min-width: 940px) { .sky-night > .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero-show { margin: 0; justify-self: center; width: min(66vw, 290px); }
.hero-show .phone { margin-top: 0; border-radius: 34px; border-width: 7px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
@media (min-width: 940px) { .hero-show { width: 330px; } }
.duo { margin: 0; display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 22px); }
.duo .phone { width: min(46%, 250px); margin-top: 0; border-radius: 26px; border-width: 5px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.duo .phone + .phone { margin-top: 52px; }
.hero-dash { margin: 0; justify-self: center; width: 100%; max-width: 620px; }
.hero-dash figcaption { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }
.hero-dash .dash { margin-inline: auto; box-shadow: 0 0 0 1px rgba(214, 236, 238, .06), 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(120, 190, 200, .08); }

/* ---------- the dash ---------- */
.dash { font-family: var(--text); font-stretch: 86%; font-size: clamp(15px, 1.45vw, 19px); color: var(--dash-ink);
  background: var(--dash); border-radius: 1.05em; padding: 1.05em 1.2em; width: min(100%, 17.2em);
  box-shadow: 0 0 0 1px rgba(214, 236, 238, .06), 0 18px 40px rgba(0, 0, 0, .35); line-height: 1.25; }
.dash-xl { font-size: clamp(21px, 2.75vw, 35px); }
.dash-lg { font-size: clamp(19px, 2.3vw, 29px); }
.dash-main { display: flex; align-items: center; gap: 1.05em; }
.dash-arrow { width: 3.4em; height: 3.9em; flex: none; }
.dash-text { min-width: 0; flex: 1; }
.dash-road { white-space: nowrap; overflow: hidden; }
.dash-dist { font-size: 1.95em; font-weight: 700; line-height: 1.06; font-variant-numeric: tabular-nums; letter-spacing: .005em; }
.dash-next { font-weight: 700; min-height: 1.25em; white-space: nowrap; }
.dash-eta { display: flex; align-items: center; gap: .5em; }
.dash-eta svg { width: .82em; height: .82em; flex: none; }
.dash-strip { margin-top: .9em; background: var(--dash-strip); border-radius: .42em; padding: .32em .7em; font-size: .84em;
  white-space: pre; overflow: hidden; font-variant-numeric: tabular-nums; min-height: 1.9em; }
.dash-strip[hidden] { display: none; }
.dash.blink .dash-arrow { animation: blink .9s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dash.stale .dash-dist { opacity: .42; }
.dash.mark-next .dash-next span { background: linear-gradient(to top, rgba(255, 122, 26, .7) .14em, transparent .14em);
  padding-bottom: .08em; }
.dash .swap { animation: swap .45s ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }

/* ---------- two-column sections ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.flip > .prose { order: 2; }
}
.single { margin: 0; display: flex; justify-content: center; }

/* ---------- 50 or 0 ---------- */
.scrub figure { margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 22px); }
.pair figcaption { font-size: .88rem; line-height: 1.3; color: var(--muted); margin-bottom: 10px; min-height: 2.6em;
  display: flex; align-items: flex-end; }
.pair figcaption.ours { color: var(--ink); font-weight: 600; }
.pair figcaption.ours::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
  margin: 0 9px .42em 0; flex: none; }
.pair .dash { font-size: clamp(12px, 2.9vw, 19px); width: 100%; }
@media (min-width: 940px) { .pair .dash { font-size: clamp(13px, 1.32vw, 17.5px); } }
.ride { display: block; margin-top: 30px; }
.ride-label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.ride-ends { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.ride-ends output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent;
  cursor: pointer; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--orange) var(--p), rgba(245, 247, 250, .22) var(--p)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--orange) var(--p), rgba(245, 247, 250, .22) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px;
  border-radius: 50%; background: var(--orange); border: 5px solid #181D38; box-shadow: 0 0 0 1px var(--orange); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--orange);
  border: 5px solid #181D38; box-shadow: 0 0 0 1px var(--orange); }

/* ---------- three smaller things ---------- */
.trio { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio figure { margin: 0; }
.trio .dash { font-size: clamp(15px, 1.35vw, 18px); }
.trio figcaption { margin-top: 18px; color: var(--soft); max-width: 22rem; }
.trio figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- the phone ---------- */
.phones { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 4px clamp(20px, 4vw, 40px) 28px; display: flex;
  gap: clamp(18px, 2.2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * clamp(20px, 4vw, 40px));
  scrollbar-width: thin; scrollbar-color: rgba(245, 247, 250, .3) transparent; }
.phones li { flex: 0 0 min(66vw, 236px); scroll-snap-align: center; display: flex; flex-direction: column; }
.phones p { font-size: .92rem; line-height: 1.42; color: #E4DCE9; min-height: 7.2em; }
.phones p strong { display: block; color: #fff; font-weight: 600; font-size: 1.02rem; margin-bottom: 3px; }
.phone { width: 100%; height: auto; border-radius: 30px; border: 6px solid #090B10; background: #090B10;
  box-shadow: 0 30px 60px rgba(20, 8, 30, .45); margin-top: 14px; }
@media (min-width: 1120px) {
  .phones { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .phones li { flex: 1 1 0; }
  .phones li:nth-child(even) { margin-top: 56px; }
  .phones.four { justify-content: center; }
  .phones.four li { flex: 0 1 236px; }
}

/* ---------- bikes ---------- */
.bikes { display: grid; gap: 34px clamp(36px, 6vw, 80px); margin-top: clamp(32px, 5vw, 52px); align-items: start; }
.bikes .col { display: grid; gap: 34px; }
@media (min-width: 860px) { .bikes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 859px) { .bikes .col { display: contents; } .tier.t1 { order: 1; } .tier.t2 { order: 2; } .tier.t3 { order: 3; } .tier.t4 { order: 4; } }
.tier h3 { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--day-ink); }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { padding: 12px 0; border-bottom: 1px solid var(--day-line); }
.tier li b { font-weight: 600; display: block; }
.tier li span { color: var(--day-muted); font-size: .93rem; }
.mark { width: 15px; height: 15px; border-radius: 50%; flex: none; }
.mark-yes { background: var(--orange); }
.mark-same { border: 3px solid var(--orange); }
.mark-maybe { border: 2px dashed #8A6A55; }
.mark-no { border-radius: 2px; height: 3px; background: #7B8696; }

/* ---------- testers ---------- */
.steps { margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; padding: 11px 0;
  border-top: 1px solid var(--day-line); color: var(--day-ink); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 650; font-size: 1.2rem; color: #C2530A; }
.signup { background: #fff; border-radius: 22px; padding: clamp(22px, 3.4vw, 36px); box-shadow: 0 1px 0 rgba(16, 19, 26, .06), 0 30px 60px rgba(40, 60, 90, .14);
  align-self: start; }
.signup h3 { font-size: 1.5rem; font-stretch: 92%; font-weight: 650; margin-bottom: 18px; }
.field { margin-bottom: 16px; min-width: 0; flex: 1; }
.field.small { flex: 0 0 38%; }
.row { display: flex; gap: 14px; }
@media (max-width: 460px) { .row { flex-direction: column; gap: 0; } .field.small { flex: 1; } }
.signup label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; color: var(--day-ink); }
.opt { font-weight: 400; color: var(--day-muted); margin-left: 6px; }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: 400 1rem/1.3 var(--text); color: var(--day-ink);
  background: #F7F9FB; border: 1.5px solid #CBD3DE; border-radius: 11px; padding: 13px 14px; min-height: 50px; }
textarea { resize: vertical; min-height: 76px; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2310131A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff; }
input::placeholder { color: #8892A0; }
.field.bad input, .field.bad select { border-color: #C62828; }
.hint { font-size: .84rem; color: var(--day-muted); margin-top: 6px; }
.signup .button { width: 100%; margin-top: 6px; }
.status { margin-top: 12px; font-weight: 600; color: var(--day-ink); }
.status:empty { display: none; }
.status.bad { color: #B3261E; }

/* ---------- questions ---------- */
.faq h2 { margin-bottom: clamp(20px, 3vw, 34px); }
.qa { max-width: 46rem; border-top: 1.5px solid var(--day-ink); }
.qa details { border-bottom: 1px solid var(--day-line); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa details p { padding: 0 0 20px; color: var(--day-soft); max-width: 40rem; }

/* ---------- footer ---------- */
.foot { background: #10131A; color: var(--muted); padding: 56px 0 64px; font-size: .9rem; }
.brand-foot { height: 30px; width: 93px; color: var(--ink); margin-bottom: 22px; }
.foot p { max-width: 46rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; color: var(--soft); }

/* ---------- the policy page ---------- */
.policy { padding-block: clamp(110px, 14vw, 160px) clamp(64px, 9vw, 110px); }
.policy main { max-width: 44rem; }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.policy h2 { font-size: 1.5rem; margin-top: 2.4rem; font-variation-settings: "opsz" 36; }
.policy p, .policy li { color: var(--day-soft); }
.policy p { margin-top: .9em; }
.policy ul { padding-left: 1.2em; margin: .8em 0 0; }
.policy li { margin-top: .55em; }
.policy .meta { color: var(--day-muted); font-size: .92rem; }
.top.onlight .brand svg { color: var(--day-ink); }
.top.onlight nav a { color: var(--day-soft); }
.top.onlight nav a.pill { color: var(--day-ink); border-color: rgba(16, 19, 26, .35); }

/* ---------- updates: the list, and one page per update ---------- */
.updates { padding-block: clamp(110px, 14vw, 160px) clamp(64px, 9vw, 110px); }
.updates main { max-width: 44rem; }
.updates h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.updates .lede { color: var(--day-soft); }
.update-list { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 24px; }
.update-card { display: block; text-decoration: none; color: var(--day-ink); background: #FBFCFD; border-radius: 22px;
  overflow: hidden; box-shadow: 0 1px 0 rgba(16, 19, 26, .05), 0 18px 40px rgba(40, 52, 80, .13); }
.update-card img { width: 100%; height: auto; }
.update-card-text { display: block; padding: 20px clamp(18px, 3vw, 26px) 24px; }
.update-card time { display: block; font-size: .9rem; color: var(--day-muted); }
.update-card-title { display: block; margin-top: 4px; font-family: var(--display); font-stretch: 92%; font-weight: 650;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.1; font-variation-settings: "opsz" 48; }
.update-card-sum { display: block; margin-top: 10px; color: var(--day-soft); }
.update-card:hover .update-card-title { text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px; }
.update-card:focus-visible { border-radius: 22px; outline-offset: 4px; }
.update-back { font-size: .95rem; margin-bottom: 16px; }
.update-back a { color: var(--day-soft); }
.update .meta { color: var(--day-muted); font-size: .92rem; margin-top: 14px; }
.update-intro { margin-top: 1.1rem; color: var(--day-soft); }
.update h2 { font-size: 1.6rem; line-height: 1.15; margin-top: 3rem; padding-left: 14px; border-left: 4px solid var(--orange);
  font-variation-settings: "opsz" 36; }
.update h3 { margin-top: 1.9rem; }
.update h2 + h3 { margin-top: 1.3rem; }
.update h3 + p { margin-top: .35em; color: var(--day-soft); }
.update img { width: 100%; height: auto; margin-top: 16px; border-radius: 16px; }
.update-outro { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--day-line); color: var(--day-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dash.blink .dash-arrow, .dash .swap { animation: none; }
  .button, .qa summary::after { transition: none; }
}
