/* Calmavelo — website. Palette "Alpenglow", type Inter Tight Light + one Medium word. */

:root {
  --chalk: #FBFAF9;
  --mist: #EFECEF;
  --ink: #1A1520;
  --stone: #908A94;
  --signal: #E5336A;
  --signal-dark: #FF6F98;
  --sky: linear-gradient(180deg, #3D2C74 0%, #8C5A9E 52%, #FFB7C4 100%);
  --ease-in: cubic-bezier(.22, 1, .36, 1);
  --ease-turn: cubic-bezier(.76, 0, .24, 1);
  --beat: .667s;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--chalk);
  color: var(--ink);
  font: 400 17px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

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

.display, h1, h2, h3 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .98;
}
h1 { font-size: clamp(64px, 12vw, 176px); }
h2 { font-size: clamp(44px, 7vw, 104px); }
h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.08; }
b, strong { font-weight: 500; }
.display b, h1 b, h2 b, h3 b { letter-spacing: -.015em; }   /* the heavier weight needs air: "ri" in "ride" touched at -.045em */
.dot { color: var(--signal); font-weight: 500; }
.on-dark .dot, .dark .dot { color: var(--signal-dark); }
.lede { font-size: clamp(19px, 1.7vw, 22px); color: #4A4450; max-width: 34em; }
.on-dark .lede { color: rgba(255,255,255,.82); }
.eyebrow {
  font: 500 13px/1 Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 22px;
}
.small { font-size: 14px; color: var(--stone); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .5s, backdrop-filter .5s, color .5s;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 17px Inter, sans-serif; letter-spacing: -.01em; }
.brand .mark { width: 28px; flex: none; }
.nav ul { display: flex; gap: 28px; list-style: none; align-items: center; font-size: 15px; }
.nav ul a { text-decoration: none; opacity: .8; }
.nav ul a:hover { opacity: 1; }
.nav.light { color: #fff; }
.nav.solid { background: rgba(251,250,249,.78); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); color: var(--ink); box-shadow: 0 1px 0 rgba(26,21,32,.06); }
@media (max-width: 760px) { .nav ul li:not(:last-child) { display: none; } }

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 500 16px Inter, sans-serif; text-decoration: none;
  background: var(--ink); color: #fff;
  transition: transform .4s var(--ease-in), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.white { background: #fff; color: var(--ink); }
.btn.small-btn { padding: 9px 16px; font-size: 14px; }
/* Placeholder until the official "Download on the App Store" badge is dropped in. */
.store { display: inline-flex; align-items: center; gap: 10px; }
.store svg { width: 18px; height: 18px; }

/* ---------- Crank mark ---------- */

.mark .crank { transform-box: view-box; transform-origin: 33px 38px; }
.mark.spin .crank { animation: turn 3.5s infinite; }
.mark.riding .crank { animation: ride var(--beat) linear infinite; }
@keyframes turn { 0% { transform: rotate(0); animation-timing-function: var(--ease-turn); } 28.6%, 100% { transform: rotate(360deg); } }
@keyframes ride { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: end; color: #fff;
  background: #3D2C74;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.06); animation: settle 3.2s var(--ease-in) forwards;
}
@keyframes settle { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26,21,32,.42) 0%, rgba(26,21,32,.18) 38%, rgba(26,21,32,0) 62%),
    linear-gradient(180deg, rgba(26,21,32,.10) 0%, rgba(26,21,32,0) 35%, rgba(26,21,32,.35) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 0 0 clamp(48px, 9vh, 110px); }
.hero h1 { text-shadow: 0 2px 40px rgba(26,21,32,.25); }
.hero .lede { margin: 22px 0 34px; color: rgba(255,255,255,.9); text-shadow: 0 1px 20px rgba(26,21,32,.35); }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 22px; width: 1px; height: 42px; background: linear-gradient(#fff0, #fffa); animation: cue 2.4s var(--ease-in) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */

section { position: relative; }
.pad { padding: clamp(96px, 14vw, 180px) 0; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Subtract */
.subtract { background: var(--chalk); }
.subtract ul { list-style: none; font-family: "Inter Tight", sans-serif; font-weight: 300; letter-spacing: -.04em; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.12; }
.subtract li { position: relative; width: max-content; margin-inline: auto; color: var(--stone); transition: color 1.2s var(--ease-in); }
.subtract li::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: 3px; border-radius: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-turn);
}
.subtract li.struck { color: #C9C3CB; }
.subtract li.struck::after { transform: scaleX(1); }
.subtract .answer { margin-top: 56px; font-size: clamp(44px, 7vw, 104px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.step { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; background: var(--mist); color: #fff; }
.step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-in); }
.step:hover img { transform: scale(1.04); }
.step::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,21,32,0) 45%, rgba(26,21,32,.55)); }
.step .t { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; }
.step .n { font: 500 13px Inter; letter-spacing: .14em; opacity: .8; }
.step h3 { font-size: clamp(40px, 4.4vw, 60px); margin: 8px 0 6px; }
.step p { font-size: 15px; opacity: .88; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { aspect-ratio: 5/4; } }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 26px; }
.split .lede + .lede { margin-top: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Device frames (CSS only, no Apple artwork) */
.phone {
  width: min(360px, 82vw); margin-inline: auto; padding: 11px; border-radius: 58px;
  background: linear-gradient(145deg, #2A2530, #0E0B12);
  box-shadow: 0 1px 0 1px #3B3542 inset, 0 50px 90px -30px rgba(61,44,116,.45), 0 20px 40px -20px rgba(26,21,32,.4);
}
.phone .screen { border-radius: 47px; overflow: hidden; background: #000; aspect-ratio: 689/1500; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

.watch {
  width: 200px; padding: 14px; border-radius: 62px;
  background: linear-gradient(145deg, #2A2530, #0E0B12);
  box-shadow: 0 1px 0 1px #3B3542 inset, 0 40px 70px -30px rgba(61,44,116,.5);
  position: relative;
}
.watch::before { content: ""; position: absolute; right: -6px; top: 32%; width: 7px; height: 38px; border-radius: 4px; background: #2A2530; }
.watch .screen { border-radius: 48px; overflow: hidden; background: #000; aspect-ratio: 416/496; }
.watch .screen img { width: 100%; height: 100%; object-fit: cover; }

/* Power */
.power { background: linear-gradient(180deg, var(--chalk), var(--mist)); overflow: hidden; }
.bignum {
  font-family: "Inter Tight", sans-serif; font-weight: 200; letter-spacing: -.06em; line-height: .85;
  font-size: clamp(120px, 20vw, 300px); color: var(--signal); font-variant-numeric: tabular-nums;
}
.bignum small { font-size: .28em; letter-spacing: -.02em; font-weight: 300; margin-left: .1em; }
.pedal-orbit { position: relative; width: 120px; height: 120px; margin: 0 0 28px; }
.pedal-orbit svg { width: 100%; height: 100%; overflow: visible; }

/* Watch row */
.wrist { background: var(--ink); color: #fff; overflow: hidden; }
.wrist .lede { color: rgba(255,255,255,.75); }
.watches { display: flex; gap: 28px; justify-content: center; margin-top: 72px; flex-wrap: wrap; }
.watches .watch:nth-child(even) { transform: translateY(36px); }
@media (max-width: 700px) { .watch { width: 150px; padding: 10px; border-radius: 46px; } .watch .screen { border-radius: 37px; } .watches .watch:nth-child(even) { transform: none; } }

/* Modes */
.modes-list { display: grid; gap: 22px; margin-top: 36px; }
.modes-list div { padding-top: 20px; border-top: 1px solid rgba(26,21,32,.12); }
.modes-list b { display: block; font: 500 20px "Inter Tight", sans-serif; letter-spacing: -.02em; margin-bottom: 4px; }
.modes-list span { color: #4A4450; }
.control-shot { border-radius: 26px; overflow: hidden; background: #1A1520; padding: 22px; box-shadow: 0 40px 80px -36px rgba(61,44,116,.55); }
.control-shot img { width: 100%; }

/* Posters */
.posters { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.poster { position: relative; border-radius: 28px; overflow: hidden; min-height: 560px; color: #fff; background: var(--sky); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster .t { position: absolute; z-index: 1; left: 34px; right: 34px; top: 34px; }
.poster h3 { font-size: clamp(38px, 4.4vw, 62px); letter-spacing: -.045em; line-height: 1; text-shadow: 0 2px 30px rgba(26,21,32,.25); }
.poster .logo { position: absolute; z-index: 1; right: 28px; bottom: 26px; width: 44px; }
.poster.ink { color: var(--ink); }
.poster.ink .logo { color: var(--ink); }
.poster.ink h3 { text-shadow: none; }
.posters .tall { grid-row: span 2; min-height: 760px; }
.posters .wide { grid-column: 1 / -1; min-height: 520px; }
@media (max-width: 860px) { .posters { grid-template-columns: 1fr; } .posters .tall { grid-row: auto; min-height: 640px; } }

/* Health */
.health-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.pill { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(26,21,32,.08); font-size: 14px; }

/* Dusk */
.dusk { min-height: 92svh; color: #fff; overflow: hidden; display: grid; align-items: start; }
.dusk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.dusk .wrap { position: relative; z-index: 1; padding-top: clamp(96px, 16vh, 180px); }
.dusk h2 { text-shadow: 0 2px 40px rgba(26,21,32,.3); }

/* Price */
.price { background: var(--sky); color: #fff; overflow: hidden; }
.price .mark { width: 96px; margin: 0 auto 42px; }
.price ul { list-style: none; display: flex; gap: 12px 34px; justify-content: center; flex-wrap: wrap; margin: 34px 0 42px; font-size: 18px; }
.price ul li::before { content: "—"; margin-right: 10px; opacity: .6; }

/* FAQ */
.faq { max-width: 820px; margin: 56px auto 0; }
.faq details { border-top: 1px solid rgba(26,21,32,.12); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(26,21,32,.12); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 400 21px/1.3 "Inter Tight", sans-serif; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: .8; transition: transform .5s var(--ease-in); color: var(--stone); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: #4A4450; max-width: 40em; }

/* Footer */
footer { padding: 72px 0 48px; font-size: 14px; color: var(--stone); }
footer .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
footer .brand { color: var(--ink); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .legal { margin-top: 36px; font-size: 12px; max-width: 60em; line-height: 1.6; }

/* Plain pages */
.page { padding: 150px 0 96px; }
.page h1 { font-size: clamp(56px, 9vw, 120px); margin-bottom: 28px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 32px; letter-spacing: -.03em; margin: 52px 0 14px; line-height: 1.1; }
.prose p, .prose li { color: #3D3743; margin-bottom: 12px; }
.prose ul { padding-left: 1.2em; }

/* ---------- Motion: soft blur-drift entrances ---------- */

.reveal { opacity: 0; transform: translateY(22px); filter: blur(8px); transition: opacity 1.3s var(--ease-in), transform 1.3s var(--ease-in), filter 1.3s var(--ease-in); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .167s; } .reveal.d2 { transition-delay: .333s; } .reveal.d3 { transition-delay: .5s; } .reveal.d4 { transition-delay: .667s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .mark .crank, .hero img.bg, .scroll-cue { animation: none !important; transform: none; }
  .subtract li::after { transition: none; }
}
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Language menu ---------- */

.lang { position: relative; font-size: 13px; }
.lang summary { cursor: pointer; list-style: none; letter-spacing: .1em; font-weight: 500; opacity: .8; padding: 6px 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { opacity: 1; }
.lang div { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 8px; border-radius: 16px; display: grid; background: rgba(251,250,249,.94); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 8px 32px rgba(26,21,32,.16); }
.lang div a { color: var(--ink); text-decoration: none; opacity: 1; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.lang div a:hover { background: var(--mist); }
.lang div a[aria-current] { color: var(--signal); font-weight: 500; }
footer .langs { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 28px; }
footer .langs a { text-decoration: none; }
footer .langs a:hover { color: var(--ink); }
footer .langs a[aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Unlock ---------- */

.unlock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; margin: 56px auto 0; }
.unlock-grid article { background: var(--mist); border-radius: 28px; padding: 32px 32px 34px; }
.unlock-grid .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 14px Inter, sans-serif; margin-bottom: 20px; }
.unlock-grid h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.unlock-grid p { color: #4A4450; font-size: 16px; }
.unlock-grid .family { background: var(--sky); color: #fff; }
.unlock-grid .family .n { background: rgba(255,255,255,.2); }
.unlock-grid .family p { color: rgba(255,255,255,.88); }
.lede.center { margin-inline: auto; }
@media (max-width: 760px) { .unlock-grid { grid-template-columns: 1fr; } }

.brand .tm { font-size: 12px; font-weight: 500; margin-left: -7px; align-self: flex-start; margin-top: 2px; opacity: .85; }
