/* Ski AI site. The app's own system (Theme.swift): cool snow page, white cards, deep navy ink,
   SF Pro (SF Pro Rounded for big numbers), and three meaning colours. */

:root {
  /* The app's Home palette (HomeTabView.swift): a cool snow page, white cards, and one colour per
     kind of number. sky = Flow and progress, glacier = mountain numbers, sun = coaching and streaks. */
  --page: #eef3f9;
  --tile: #f4f7fb;
  --card: #ffffff;
  --ink: #0d1a2b;
  --ink-soft: rgba(13, 26, 43, 0.62);
  --ink-faint: rgba(13, 26, 43, 0.38);
  --line: #e1e7ef;
  --track: #e4eaf2;
  --blue: #1872e0;
  --blue-press: #105fc2;
  --blue-soft: rgba(24, 114, 224, 0.12);
  --sky: #1872e0;      --sky-tint: #e2eefc;
  --glacier: #0e9aae;  --glacier-deep: #0a7686; --glacier-tint: #dcf2f5;
  --sun: #f28a1c;      --sun-deep: #b85e00; --sun-tint: #fff2e2;
  --bad: #e5383b;
  --bezel: #0e0e10;
  --shadow: 0 6px 14px rgba(27, 58, 92, 0.10);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
  --gutter: 24px;
  --r-card: 22px;
  --r-btn: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Snow ---------- */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .snow { position: absolute; z-index: 1; }
main, footer, .nav { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.on-photo:not(.is-scrolled) .brand,
.nav.on-photo:not(.is-scrolled) .nav-links a:not(.btn) { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25); }
.nav.is-scrolled {
  background: color-mix(in srgb, var(--page) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: color 0.2s, background-size 0.3s var(--ease);
  padding: 4px 0;
}
.nav-links a:not(.btn):hover { color: var(--ink); background-size: 100% 1.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-btn);
  font: 600 17px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background-color 0.2s, transform 0.15s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -8px rgba(22, 112, 224, 0.7); }
.btn-primary:hover { background: var(--blue-press); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(22, 112, 224, 0.8); }
.btn-primary:active { transform: scale(0.97); }
.btn-quiet { background: var(--tile); color: var(--ink); }
.btn-quiet:hover { background: var(--track); transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; background: var(--sky);
}
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  transform-origin: 62% 55%; animation: drift 18s ease-in-out infinite alternate;
}
.hero-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(6, 30, 70, 0.55), rgba(6, 30, 70, 0.18) 45%, rgba(6, 30, 70, 0) 65%);
}
@keyframes drift { from { transform: scale(1.04) translateX(8px); } to { transform: scale(1.12) translateX(-4px); } }
.hero-copy { position: relative; z-index: 2; color: #fff; padding-bottom: clamp(56px, 10vh, 112px); }
.hero h1 {
  font-size: clamp(44px, 7vw, 88px); line-height: 1.0; font-weight: 700; letter-spacing: -0.035em;
  max-width: 11ch; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}
.hero-sub { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-quiet { background: rgba(255, 255, 255, 0.2); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-actions .btn-quiet:hover { background: rgba(255, 255, 255, 0.3); }
.hero-actions .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
.hero-actions .btn-primary:hover { background: #f1f6fd; }
.hero-fact { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
@media (max-aspect-ratio: 1/1) {
  /* Phones: the photo fills the top, the copy sits below it on the app's sky blue. */
  .hero-photo { bottom: auto; height: 56%; }
  .hero-photo img { object-position: 72% 50%; }
  .hero-photo::before { display: none; }
  .hero-photo::after { height: 38%; background: linear-gradient(to bottom, rgba(24, 114, 224, 0), var(--sky)); }
  .hero h1 { text-shadow: none; }
}

/* One entrance on load */
[data-enter] > * { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
[data-enter] > *:nth-child(2) { animation-delay: 0.09s; }
[data-enter] > *:nth-child(3) { animation-delay: 0.18s; }
[data-enter] > *:nth-child(4) { animation-delay: 0.27s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section.block { padding: clamp(88px, 12vh, 140px) 0; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.lede { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 32em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Phone */
.phone {
  position: relative; width: min(330px, 100%);
  border-radius: 52px; padding: 11px; background: var(--bezel);
  box-shadow: 0 40px 80px -40px rgba(14, 14, 16, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { width: 100%; height: auto; border-radius: 42px; }
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%);
  background: #000; border-radius: 20px; z-index: 2;
}

/* Day: three moments */
.moments { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.moment { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.moment:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -36px rgba(14, 14, 16, 0.35); }
.moment-visual { position: relative; height: 260px; background: var(--sky-tint); display: grid; place-items: center; overflow: hidden; }
.moment-copy { padding: 26px 28px 30px; }
.moment-copy h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.moment-copy p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

/* 1: the Ski button */
.v-start { align-content: center; gap: 22px; }
.ski-btn { position: relative; width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; }
.ski-btn img { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 14px 30px -12px rgba(22, 112, 224, 0.7); }
.ski-btn .pulse { position: absolute; inset: 0; border-radius: 28px; border: 2px solid var(--blue); opacity: 0; animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.rec { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: blink 2s ease-in-out infinite; }
.rec-time { font: 600 15px/1 var(--round); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
@keyframes blink { 50% { opacity: 0.3; } }

/* 2: the turn track */
.v-track { background: var(--glacier-tint); grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 26px; }
.track-svg { width: 100%; height: 210px; overflow: visible; }
.track-svg path { fill: none; stroke-linecap: round; }
.track-ghost { stroke: rgba(31, 157, 85, 0.18); stroke-width: 6; }
.track-line { stroke: var(--glacier); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: carve 3.6s var(--ease) infinite; }
@keyframes carve { 0% { stroke-dashoffset: 1; } 70%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.readout { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; width: 100%; }
.readout span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.readout i { display: block; height: 7px; border-radius: 4px; background: rgba(31, 157, 85, 0.16); position: relative; overflow: hidden; }
.readout i::after { content: ""; position: absolute; inset: 0; background: var(--glacier); border-radius: 4px; transform-origin: left; transform: scaleX(0); animation: fill 3.6s var(--ease) infinite; }
.readout li:nth-child(2) i::after { animation-delay: 0.12s; }
.readout li:nth-child(3) i::after { animation-delay: 0.24s; }
@keyframes fill { 0% { transform: scaleX(0); } 55%, 88% { transform: scaleX(var(--v)); opacity: 1; } 100% { transform: scaleX(var(--v)); opacity: 0; } }

/* 3: the coach on the chairlift */
.v-lift { background: var(--sun-tint); padding: 0 22px; }
.note {
  width: 100%; max-width: 300px; padding: 14px 16px 16px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(242, 138, 28, 0.18);
  box-shadow: 0 18px 40px -26px rgba(14, 14, 16, 0.4);
  animation: drop 4s var(--ease) infinite;
}
@keyframes drop { 0% { transform: translateY(-16px); opacity: 0; } 12%, 86% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.note-head img { width: 22px; height: 22px; border-radius: 6px; }
.note-head time { margin-left: auto; font-weight: 400; color: var(--ink-faint); }
.note p { margin-top: 8px; font-size: 15px; line-height: 1.4; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 12px; }
.wave i { flex: 1; max-width: 5px; height: 100%; border-radius: 3px; background: var(--sun); transform: scaleY(0.25); animation: talk 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -0.3s; } .wave i:nth-child(3n+1) { animation-delay: -0.65s; } .wave i:nth-child(4n) { animation-delay: -0.9s; animation-duration: 0.9s; }
@keyframes talk { 50% { transform: scaleY(1); } }

/* Flow */
.flow-section { background: #fff; }
.flow-section .card { border-color: var(--line); }
.flow { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.card { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--r-card); box-shadow: var(--shadow); }
.ring-card {
  padding: 36px; display: grid; justify-items: center; align-content: center; gap: 22px;
  background: var(--sky); color: #fff; border: 0 !important;
  box-shadow: 0 24px 48px -28px rgba(24, 114, 224, 0.75);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ring-card.is-weak { background: var(--sun); box-shadow: 0 24px 48px -28px rgba(242, 138, 28, 0.8); }
.ring { position: relative; width: min(300px, 70vw); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255, 255, 255, 0.24); }
.ring .arc { stroke: #fff !important; transition: stroke-dashoffset 1.1s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font: 600 clamp(72px, 9vw, 104px)/1 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ring-of { font-size: 15px; color: rgba(255, 255, 255, 0.8); margin-top: 4px; }
.ring-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; min-height: 1.5em; }

.skill-card { padding: 28px; display: flex; flex-direction: column; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skill-list button {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 500 15px/1.2 var(--sans); text-align: left; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.skill-list button:hover { background: var(--tile); }
.skill-list button:active { transform: scale(0.98); }
.skill-list button[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); }
.skill-list .score { font: 600 16px/1 var(--round); font-variant-numeric: tabular-nums; }
.skill-list .low .score { color: var(--sun-deep); }
.skill-list .low button[aria-pressed="true"] { background: var(--sun-tint); border-color: var(--sun); }
.skill-list .all { grid-column: 1 / -1; }
.verdict { margin-top: auto; border-left: 3px solid var(--blue); padding: 2px 0 2px 16px; }
.verdict.weak { border-left-color: var(--sun); }
.skill-card .verdict { margin-top: 24px; }
.verdict-line { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.verdict-try { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }
.verdict-try strong { color: var(--ink); font-weight: 600; }
.verdict > * { transition: opacity 0.25s, transform 0.35s var(--ease); }
.verdict.swap > * { opacity: 0; transform: translateY(6px); }
.flow-note { margin-top: 16px; font-size: 14px; color: var(--ink-faint); text-align: center; }

/* Progress */
.progress { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.phones { display: flex; gap: clamp(16px, 3vw, 32px); justify-content: center; align-items: flex-start; }
.phones .phone { width: min(280px, 46%); border-radius: 44px; padding: 9px; }
.phones .phone img { border-radius: 36px; }
.phones .phone::before { top: 18px; height: 22px; }
.phones .phone:nth-child(2) { margin-top: 64px; }
.tiles { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; }
.tile { border-radius: 18px; padding: 16px 18px; }
.tile b { display: block; font: 600 34px/1.05 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tile span { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: rgba(13, 27, 42, 0.68); }
.tile.sun { background: var(--sun-tint); } .tile.sun b { color: var(--sun-deep); }
.tile.glacier { background: var(--glacier-tint); } .tile.glacier b { color: var(--glacier-deep); }
.tile.sky { background: var(--sky-tint); } .tile.sky b { color: var(--sky); }
.tiles-note { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }

/* Close */
.close { padding: 0; }
.close-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: #fff; }
.close-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(24px, 6vw, 96px); }
.close-copy .btn { align-self: flex-start; margin-top: 34px; }
.close-photo { position: relative; overflow: hidden; }
.close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 0.8s var(--ease); }
.close-photo:hover img { transform: scale(1.025); }

/* Footer */
footer { padding: 32px 0 40px; font-size: 14px; color: var(--ink-soft); background: var(--page); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Signup page ---------- */
.signup-page { min-height: 100svh; display: flex; flex-direction: column; }
.signup-top { position: relative; height: 38svh; min-height: 260px; overflow: hidden; }
.signup-top img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transform-origin: 45% 30%; animation: drift 18s ease-in-out infinite alternate; }
.signup-top::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(238, 243, 249, 0) 55%, var(--page));
}
.signup-main { position: relative; z-index: 2; flex: 1; margin-top: -120px; padding-bottom: 72px; }
.signup-card { width: 100%; max-width: 460px; margin: 0 auto; padding: 40px 36px 36px; text-align: center; box-shadow: 0 30px 60px -40px rgba(14, 14, 16, 0.35); }
.signup-card .app-icon { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 22px; box-shadow: 0 10px 24px -12px rgba(22, 112, 224, 0.6); }
.signup-card h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.signup-card .lede { margin: 12px auto 0; font-size: 17px; }
.form { margin-top: 30px; display: grid; gap: 16px; text-align: left; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--page); color: var(--ink);
  font: 400 17px/1 var(--sans);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:hover { border-color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 4px var(--blue-soft); }
.field.has-error input { border-color: var(--bad); }
.field-error { margin-top: 6px; font-size: 14px; color: var(--bad); min-height: 0; }
.field-error:empty { display: none; }
.form .btn { width: 100%; margin-top: 6px; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-error { font-size: 14px; color: var(--bad); text-align: center; }
.form-error:empty { display: none; }
.privacy { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shake { animation: shake 0.36s ease-in-out; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

.done { display: none; }
.signup-card.is-done .form-wrap { display: none; }
.signup-card.is-done .done { display: block; animation: rise 0.6s var(--ease) both; }
.done-ring { width: 112px; height: 112px; margin: 4px auto 22px; }
.done-ring svg { width: 100%; height: 100%; }
.done-ring .track { stroke: var(--track); }
.done-ring .arc { stroke: var(--blue); stroke-dasharray: 302; stroke-dashoffset: 302; transform: rotate(-90deg); transform-origin: 50% 50%; }
.done-ring .tick { stroke: var(--blue); stroke-dasharray: 40; stroke-dashoffset: 40; }
.is-done .done-ring .arc { animation: draw 0.9s var(--ease) 0.1s forwards; }
.is-done .done-ring .tick { animation: draw 0.4s var(--ease) 0.75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: 30px; }
.done .btn { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .progress { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .flow { grid-template-columns: 1fr; }
  .close-inner { grid-template-columns: 1fr; }
  .close-photo { min-height: 420px; order: -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-actions .btn { width: 100%; }
  .moment-visual { height: 230px; }
  .skill-list { grid-template-columns: 1fr; }
  .ring-card, .skill-card { padding: 24px 18px; }
  .phones .phone:nth-child(2) { margin-top: 40px; }
  .close-copy .btn { align-self: stretch; }
  .signup-card { padding: 32px 20px 28px; }
  .signup-main { margin-top: -90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Three phones, and the Friends section (phones on the left) ---------- */
.phones-3 .phone { width: min(230px, 31%); }
.phones-3 .phone:nth-child(2) { margin-top: 48px; }
.phones-3 .phone:nth-child(3) { margin-top: 96px; }
.friends { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.friends .tiles { grid-template-columns: 1fr 1fr; }
@media (max-width: 920px) {
  .friends { grid-template-columns: 1fr; }
  .friends > div:first-child { order: 2; }
}
@media (max-width: 640px) {
  .phones-3 .phone { width: 32%; border-radius: 26px; padding: 5px; }
  .phones-3 .phone img { border-radius: 22px; }
  .phones-3 .phone::before { display: none; }
  .phones-3 .phone:nth-child(2) { margin-top: 28px; }
  .phones-3 .phone:nth-child(3) { margin-top: 56px; }
}
