/* The Ski Crew website (public #45, rebuilt for public #77): the home page and one page per part of the app, all on
   this one sheet. The app's own look: Barlow Condensed for display type, cool snow, the piste colours. No emojis:
   icons come from the app (js/icons.js, filled in where data-icon is). */
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; src: url('./vendor/fonts/barlow-condensed-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; src: url('./vendor/fonts/barlow-condensed-600.woff2') format('woff2'); font-display: swap; }
:root {
  --snow: #f5f8fb;      /* cool snow, not cream */
  --ink: #0f172a;       /* the black piste and the text */
  --ink-2: #334155;
  --muted: #5b6b80;
  --blue: #1d64d8;      /* easy piste */
  --red: #d62828;       /* intermediate piste */
  --lift: #16a34a;      /* an open lift */
  --line: rgba(15, 23, 42, .1);
  --card: #fff;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--snow); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.i svg, .btn svg { width: 20px; height: 20px; }
.i { display: inline-flex; }

/* top bar: the brand, the five parts of the site, and the one action */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(245, 248, 251, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 23px var(--display); text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar .mainnav { display: flex; gap: 20px; }
.mainnav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 14px; font-weight: 650; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn.go { background: var(--ink); color: #fff; }
.btn.go:hover { background: #1e293b; }
.btn.soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.bar .btn { padding: 9px 15px; font-size: 15px; border-radius: 11px; }
/* on a phone the parts sit in a row under the bar that scrolls sideways: always in sight, no menu to open */
.bar .subnav { display: none; }

/* type */
h1 { font: 700 clamp(50px, 7vw, 92px)/.92 var(--display); letter-spacing: -.01em; margin: 0 0 22px; text-wrap: balance; }
h2 { font: 700 clamp(36px, 5vw, 58px)/.95 var(--display); margin: 0 0 14px; text-wrap: balance; }
h3 { font: 700 30px/1.05 var(--display); margin: 0 0 8px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 31em; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }
figure { margin: 0; }
section { scroll-margin-top: 80px; }

/* home hero: a real day drawn over the real pistes */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-block: 56px 30px; }
.stage-col { justify-self: center; width: 100%; }
.stage { position: relative; aspect-ratio: 800 / 1040; max-height: 640px; width: 100%; }
.stage .map { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; background: #e9edf1; box-shadow: 0 30px 70px -40px rgba(15, 23, 42, .55), 0 0 0 1px var(--line); }
.stage .map img, .stage .map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.stage .attrib { position: absolute; right: 8px; bottom: 6px; z-index: 1; font-size: 10.5px; color: var(--ink-2); background: rgba(255, 255, 255, .8); padding: 1px 6px; border-radius: 6px; }
.day { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.4s cubic-bezier(.45, .05, .35, 1) .4s forwards; }
.dot { opacity: 0; animation: pop .4s ease-out 3.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
.tally { display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: baseline; padding: 16px 4px 0; }
.tally b { font: 700 40px/1 var(--display); }
.tally span { color: var(--muted); font-size: 14px; }
.tally .where { flex-basis: 100%; color: var(--ink-2); font-size: 14px; margin-top: 2px; }

/* phones: real screens in a dark frame */
.phone { background: var(--ink); padding: 9px; border-radius: 38px; box-shadow: 0 34px 60px -26px rgba(29, 100, 216, .45), 0 2px 6px rgba(15, 23, 42, .2); }
.phone img { border-radius: 30px; width: 100%; }
.win { position: relative; aspect-ratio: 9 / 13; overflow: hidden; border-radius: 30px; }
.win img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 0; }
.card-shot img { border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .55); }

/* the three parts of the app, as doors to their pages */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 30px 0 10px; border-top: 1px solid var(--line); margin-top: 26px; }
.pillar { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .15s; }
.pillar:hover { box-shadow: 0 0 0 1.5px var(--ink-2), 0 18px 40px -28px rgba(15, 23, 42, .5); }
.pillar .i { width: 42px; height: 42px; border-radius: 12px; place-items: center; display: grid; color: #fff; }
.pillar .i svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 28px; margin: 6px 0 0; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.pillar .more { margin-top: auto; padding-top: 8px; font-weight: 650; font-size: 15px; color: var(--blue); }
.c-blue { background: var(--blue); } .c-red { background: var(--red); } .c-ink { background: var(--ink); } .c-green { background: var(--lift); }

/* a ski day, in order: the timeline is a lift line with its stations */
.day-intro { padding: 80px 0 10px; }
.day-intro p { color: var(--ink-2); max-width: 34em; margin: 0; font-size: 18px; }
.stops { position: relative; margin: 44px 0 0; padding: 0; list-style: none; }
.stops::before { content: ''; position: absolute; left: 61px; top: 26px; bottom: 60px; border-left: 3px dotted var(--lift); }
.stop { display: grid; grid-template-columns: 124px minmax(0, 1fr) minmax(220px, 300px); gap: 28px; align-items: start; padding: 0 0 72px; }
.time { position: relative; font: 700 34px/1 var(--display); padding: 8px 0 4px; background: var(--snow); }
.time::after { content: ''; position: absolute; left: 54px; top: 46px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--lift); }
.stop h3 { font-size: 34px; margin: 4px 0 10px; }
.stop p { margin: 0 0 12px; color: var(--ink-2); max-width: 32em; }
.stop ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.stop li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.stop li .i { color: var(--blue); flex: none; margin-top: 2px; }
.stop .shot { justify-self: end; width: 100%; max-width: 290px; }
.stop .go-on { display: inline-block; margin-top: 8px; font-weight: 650; color: var(--blue); text-decoration: none; }

/* a feature page: the promise and the screen, then everything it does */
.page-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: 52px 40px; }
.page-hero .phone { max-width: 320px; justify-self: center; width: 100%; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.crumb .dotc { width: 10px; height: 10px; border-radius: 50%; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; padding: 10px 0 40px; margin: 0; list-style: none; }
.feats li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.feats li .i { color: var(--blue); margin-top: 2px; }
.feats b { display: block; font-weight: 650; margin-bottom: 2px; }
.feats span { color: var(--ink-2); font-size: 15.5px; }
.feats .tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--blue); background: rgba(29, 100, 216, .1); padding: 1px 7px; border-radius: 99px; vertical-align: 2px; }
.section-head { padding: 54px 0 6px; max-width: 760px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
/* how it works: only where it really is a sequence */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0 10px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 19px var(--display); margin-bottom: 12px; }
.steps b { display: block; font: 700 24px/1.1 var(--display); margin-bottom: 6px; }
.steps span { color: var(--ink-2); font-size: 15.5px; }
/* a second screen with its story */
.band { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; padding-block: 40px; }
.band .phone { max-width: 300px; justify-self: center; width: 100%; }
.band p { color: var(--ink-2); font-size: 18px; max-width: 30em; }
.band ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.band li { display: flex; gap: 10px; padding: 5px 0; }
.band li .i { color: var(--blue); flex: none; margin-top: 2px; }
.note { margin: 6px 0 30px; padding: 16px 20px; border-radius: 16px; background: rgba(29, 100, 216, .07); color: var(--ink-2); font-size: 15.5px; max-width: 760px; }

/* the other parts, so no page is a dead end */
.next { padding-block: 40px 10px; } /* block only: .wrap keeps the sides (public #77) */
.next .pillars { border-top: 0; margin-top: 10px; padding-top: 0; }

/* plans */
.premium { padding: 84px 0; background: var(--ink); color: #fff; }
.premium .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.premium h2 { color: #fff; }
.premium .sub { color: #cbd5e1; max-width: 30em; margin: 0 0 26px; }
.perks { list-style: none; margin: 0; padding: 0; }
.perks li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.perks li .i { color: #7aa7ff; }
.perks b { display: block; font-weight: 650; }
.perks span { color: #a8b4c6; font-size: 15px; }
.plans { display: grid; gap: 12px; }
.plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 22px 24px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); text-decoration: none; color: #fff; }
.plan.best { background: #fff; color: var(--ink); box-shadow: none; }
.plan strong { font: 700 30px/1 var(--display); }
.plan .per { color: inherit; opacity: .72; font-size: 14px; }
.plan .price { grid-row: span 2; text-align: right; font: 700 40px/1 var(--display); }
.plan .price small { display: block; font: 500 13px -apple-system, sans-serif; opacity: .72; margin-top: 4px; }
.plan.soon { opacity: .8; }
.free-line { color: #a8b4c6; font-size: 15px; margin: 18px 0 0; }
.premium .btn.go { background: #fff; color: var(--ink); margin-top: 20px; }
/* the plans on the light pricing page */
.plans.light .plan { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.plans.light .plan.best { background: var(--ink); color: #fff; }
.compare { width: 100%; border-collapse: collapse; margin: 18px 0 10px; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 13px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font: 700 22px var(--display); }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 110px; }
.compare .yes { color: var(--lift); } .compare .no { color: var(--muted); }
.compare .yes svg, .compare .no svg { width: 20px; height: 20px; }
.compare th span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }
.compare th { font-weight: 600; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 20px 0 10px; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 26px 18px 0 0; border-top: 3px solid var(--blue); }
.timeline li::before { content: ''; position: absolute; left: 0; top: -9px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline b { display: block; font: 700 24px/1.1 var(--display); margin-bottom: 4px; }
.timeline span { color: var(--ink-2); font-size: 15.5px; }

/* built with skiers */
.built { padding-block: 84px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.built p { color: var(--ink-2); max-width: 30em; margin: 0 0 18px; font-size: 18px; }
.asked { list-style: none; margin: 0; padding: 0; }
.asked li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.asked li:last-child { border-bottom: 1px solid var(--line); }
.asked .i { color: var(--blue); }
.asked b { display: block; font-weight: 650; }
.asked span { color: var(--ink-2); font-size: 15px; }
/* The ideas page (public #77): the wish, what was built, when. */
.ideas-built span { display: block; margin-top: 3px; }
.ideas-built small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.ideas-hero { grid-template-columns: minmax(0, 1fr); }

/* questions */
.faq { padding-block: 40px 70px; }
.faq > * { max-width: 760px; }
.faq h2 { font-size: 40px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 700 26px/1 var(--display); color: var(--muted); }
details[open] summary::after { content: '\2212'; }
details p { margin: 10px 0 0; color: var(--ink-2); max-width: 40em; }

/* the last word on every page: one action */
.end { margin: 30px 0 0; padding: 64px 0; background: linear-gradient(180deg, rgba(29, 100, 216, .07), rgba(29, 100, 216, 0)); border-top: 1px solid var(--line); }
.end .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.end h2 { margin: 0; max-width: 14em; }
.end p { margin: 8px 0 0; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 34px 0 max(30px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
footer .brand { font-size: 21px; color: var(--ink); margin: 0 0 6px; }
footer p { margin: 0; max-width: 24em; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 3px 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer b { display: block; color: var(--ink); margin-bottom: 6px; font-weight: 650; }

@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .bar .mainnav { display: none; }
  .bar .subnav { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); padding: 7px 13px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .subnav a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
  .hero, .page-hero, .band { grid-template-columns: 1fr; padding-top: 30px; gap: 28px; }
  .band .phone { order: 2; }
  .stage { max-height: 680px; aspect-ratio: 800 / 1040; }
  .stop { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding-bottom: 56px; }
  .stop .shot { grid-column: 2; justify-self: start; max-width: 250px; margin-top: 8px; }
  .stops::before { left: 30px; }
  .time { font-size: 26px; }
  .time::after { left: 22px; top: 38px; }
  .premium .wrap, .built { grid-template-columns: 1fr; }
  .pillars, .feats, .steps, .timeline { grid-template-columns: 1fr; }
  .timeline li { border-top: 0; border-left: 3px solid var(--blue); padding: 0 0 22px 22px; }
  .timeline li::before { left: -9px; top: 2px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tally b { font-size: 34px; }
  .compare td:nth-child(n+2), .compare th:nth-child(n+2) { width: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .day { animation: none; stroke-dashoffset: 0; }
  .dot { animation: none; opacity: 1; }
  .pillar { transition: none; }
}
