/*
 * The website's only stylesheet. The colours are the app's (apps/mobile/src/theme) and the brand orange of the
 * icon (apps/mobile/scripts/render-icons.mjs). System fonts only: the site loads nothing from anyone else.
 */

:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #c2410c;
  --on-primary: #ffffff;
  --tint: rgb(249 115 22 / 0.12);
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 18px 40px -18px rgb(15 23 42 / 0.25);
  --brand-light: #f97316;
  --brand: #c2410c;
  --brand-deep: #9a3412;
  --night: #0f172a;
  --radius: 20px;
  --font:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --surface-muted: #1e293b;
    --border: #1e293b;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --primary: #fb923c;
    --on-primary: #0f172a;
    --tint: rgb(251 146 60 / 0.14);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -18px rgb(0 0 0 / 0.7);
  }
}

*,
*::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;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

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

.container {
  width: min(100% - 32px, 1140px);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 64px, 1140px);
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 700;
}

.skip:focus {
  top: 16px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgb(154 52 18 / 0.6);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button--light {
  background: #fff;
  color: var(--brand-deep);
}

.button--ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 0.7);
  color: #fff;
}

.button--ghost:hover {
  background: rgb(255 255 255 / 0.1);
  box-shadow: none;
}

.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* The orange band at the top of every page: header, hero, and a ridge of snow into the page below */

.band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(55% 60% at 80% 42%, rgb(251 146 60 / 0.55), transparent 70%),
    linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.band a:not(.button) {
  color: inherit;
}

.ridge {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: clamp(48px, 8vw, 110px);
  color: var(--bg);
}

.site-header {
  position: relative;
  z-index: 2;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.nav a:not(.button) {
  text-decoration: none;
  opacity: 0.92;
}

.nav a:not(.button):hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .nav a:not(.button) {
    display: none;
  }
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  padding: 28px 0 clamp(36px, 6vw, 72px);
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 40px;
  }
}

.hero__text {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: rgb(255 255 255 / 0.94);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.88);
}

.hero__art {
  justify-self: center;
}

.hero__art img {
  width: min(330px, 78vw);
  height: auto;
  filter: drop-shadow(0 36px 40px rgb(67 20 7 / 0.45));
  rotate: 3deg;
}

@media (max-width: 919px) {
  .hero__art img {
    rotate: 0deg;
  }
}

/* Smaller band for the other pages */

.page-hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 46rem;
  padding: 32px 0 clamp(72px, 10vw, 128px);
}

.page-hero p {
  font-size: 1.2rem;
  color: rgb(255 255 255 / 0.94);
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--muted {
  background: var(--surface-muted);
}

.section__head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--primary);
}

.icon svg {
  width: 26px;
  height: 26px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  color: var(--text-muted);
}

/* "Your day, counted": the text beside two cards drawn like the app's screens */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
  }
}

.split__text {
  display: grid;
  gap: 20px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--brand);
}

.screens {
  display: grid;
  gap: 20px;
  justify-items: center;
}

@media (min-width: 560px) {
  .screens {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .screens .screen:last-child {
    margin-top: 72px;
  }
}

.screen {
  width: 100%;
  max-width: 340px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.screen__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.screen__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.screen__meta {
  color: var(--text-muted);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
  margin: 0 0 16px;
}

.stats div {
  display: grid;
  gap: 2px;
}

.stats dt {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.stats dd {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stats small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.rows li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rows strong {
  display: block;
  font-weight: 700;
}

.rows div > span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rows .value {
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
}

.piste {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.piste--red {
  background: #dc2626;
}

.piste--black {
  background: #111827;
  box-shadow:
    0 0 0 1.5px var(--surface),
    0 0 0 2.5px #64748b;
}

.piste--blue {
  background: #2563eb;
}

.piste--lift {
  border-radius: 3px;
  background: var(--text-muted);
}

/* One row that runs off the card's edge, as the app's chips scroll sideways on a narrow screen */
.chips {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}

.chip {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chip--on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.rank {
  width: 18px;
  text-align: center;
  font-weight: 800;
  color: var(--text-muted);
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.avatar--purple {
  background: #a855f7;
}

.avatar--pink {
  background: #ec4899;
}

.avatar--orange {
  background: #f97316;
}

.avatar--cyan {
  background: #06b6d4;
}

/* How it works */

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
}

.steps .card::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--brand-light), var(--brand));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

/* Pricing: the free first day, the trip passes, and what the free version keeps */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.trial {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--brand-light), var(--brand));
  color: #fff;
}

.trial .icon {
  flex: none;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
}

.trial div {
  display: grid;
  gap: 6px;
}

.trial p {
  color: rgb(255 255 255 / 0.92);
}

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  gap: 6px;
}

/* Two passes side by side on a phone, the price over its "per trip" */
@media (max-width: 560px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .plan {
    padding: 18px;
  }

  .plan__price strong {
    display: block;
    margin-bottom: 4px;
  }
}

.plan__size {
  font-weight: 600;
}

.card .plan__size {
  color: var(--text);
}

.plan__price {
  margin-top: 10px;
}

.card .plan__price {
  color: var(--text-muted);
}

.plan__price strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.card .plan__each {
  font-size: 0.9rem;
}

.plans__note {
  margin-top: 16px;
  color: var(--text-muted);
}

.compare {
  margin-top: 40px;
  padding: 8px 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
}

.compare caption {
  padding: 16px 0 8px;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 800;
}

.compare th,
.compare td {
  padding: 13px 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.compare th[scope='row'] {
  padding-left: 0;
  text-align: left;
  font-weight: 600;
}

.compare thead th {
  width: 26%;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare thead th:first-child {
  width: auto;
}

.compare td {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.compare td:last-child {
  color: var(--text);
  font-weight: 700;
}

.compare .yes::before,
.compare .no::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
}

.compare .yes::before {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 15px no-repeat,
    var(--brand);
}

.compare .no::before {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-muted);
  opacity: 0.6;
}

.compare__note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .compare {
    padding-inline: 16px;
  }

  .compare th,
  .compare td {
    padding-inline: 4px;
  }

  .trial {
    flex-direction: column;
  }
}

/* Private by design: a dark band */

.night {
  background: var(--night);
  color: #f8fafc;
}

@media (prefers-color-scheme: dark) {
  .night {
    border-block: 1px solid #1e293b;
  }
}

.night .eyebrow {
  color: #fb923c;
}

.night .lead,
.night .card p {
  color: #cbd5e1;
}

.night .card {
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(255 255 255 / 0.1);
}

.night .icon {
  background: rgb(251 146 60 / 0.16);
  color: #fb923c;
}

.night a {
  color: #fdba74;
  font-weight: 700;
}

.more {
  margin-top: 36px;
}

/* Get the app */

.platforms {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .platforms {
    grid-template-columns: 1fr 1fr;
  }
}

.platform {
  gap: 16px;
  padding: 30px;
}

.platform .button {
  justify-self: start;
  margin-top: 4px;
}

.platform__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.soon {
  justify-self: start;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-weight: 600;
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--tint);
}

.callout svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--primary);
}

/* Questions */

.faq {
  display: grid;
  gap: 12px;
  max-width: 48rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--text-muted);
}

/* Long-form text: the privacy page */

.prose {
  display: grid;
  gap: 18px;
  max-width: 46rem;
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 112px);
}

.prose h2 {
  margin-top: 28px;
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.8rem);
}

.prose ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.3em;
}

.prose li::marker {
  color: var(--primary);
}

.prose .summary {
  display: grid;
  gap: 12px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--tint);
}

.prose .summary h2 {
  margin: 0;
  font-size: 1.25rem;
}

.prose .updated {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
}

@media (min-width: 820px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer .brand {
  color: var(--text);
  font-size: 1.15rem;
}

.site-footer .brand img {
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
}

.site-footer nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer__small {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.875rem;
}

.site-footer__small a {
  color: inherit;
}
