/* ============================================================
   STEPLY — LANDING PAGE STYLES
   ============================================================ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #000; color: #fff; font-family: -apple-system, "SF Pro Display", ui-rounded, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #34C759; text-decoration: none; }

@keyframes stepFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ringDraw { from { stroke-dashoffset: 478; } to { stroke-dashoffset: 124; } }

/* ── Utilities ── */
.text-green { color: #34C759; }
.text-blue { color: #0A84FF; }
.text-purple { color: #BF5AF2; }

.heading { font-family: ui-rounded, -apple-system, system-ui; font-weight: 700; text-wrap: balance; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #34C759; margin-bottom: 14px; }
.lede { font-size: 17px; line-height: 1.5; color: rgba(235,235,245,0.6); text-wrap: pretty; }

/* ── Page wrapper ── */
.page { background: #000; color: #fff; font-family: -apple-system, 'SF Pro Display', ui-rounded, system-ui, sans-serif; overflow-x: hidden; }

/* ── Buttons ── */
.btn-pill { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 9999px; background: #34C759; color: #000; font-size: 15px; font-weight: 600; }
.btn-pill:hover { background: #6EDC8B; }

.btn-store { display: inline-flex; align-items: center; gap: 12px; border-radius: 14px; background: #34C759; color: #000; font-weight: 700; }
.btn-store:hover { background: #6EDC8B; }
.btn-store--hero { height: 56px; padding: 0 26px; font-size: 17px; box-shadow: 0 8px 24px rgba(52,199,89,0.25); }
.btn-store--large { height: 58px; padding: 0 30px; box-shadow: 0 8px 28px rgba(52,199,89,0.3); }
.btn-store__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store__small { font-size: 11px; font-weight: 600; opacity: 0.7; }
.btn-store__big { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }

.btn-outline { display: inline-flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 14px; border: 1px solid rgba(84,84,88,0.7); color: #fff; font-weight: 600; font-size: 16px; }
.btn-outline:hover { background: #1C1C1E; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: rgba(0,0,0,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(84,84,88,0.4); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { display: block; border-radius: 7px; }
.brand__name { font-family: ui-rounded, -apple-system, system-ui; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { font-size: 15px; font-weight: 500; color: rgba(235,235,245,0.6); }

/* ── Hero ── */
.hero { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 80px 24px 72px; }
.hero__glow { position: absolute; top: -120px; left: -80px; width: 520px; height: 520px; border-radius: 9999px; background: radial-gradient(circle, rgba(52,199,89,0.18), rgba(52,199,89,0) 68%); pointer-events: none; }
.hero__copy { position: relative; min-width: 0; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px; background: rgba(52,199,89,0.12); color: #34C759; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 22px; }
.hero__title { font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -2px; margin-bottom: 20px; }
.hero__lede { font-size: 19px; line-height: 1.5; color: rgba(235,235,245,0.6); max-width: 460px; text-wrap: pretty; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero__note { font-size: 13px; color: rgba(235,235,245,0.3); }
.hero__visual { position: relative; display: flex; justify-content: center; min-width: 0; }
.hero__visual-glow { position: absolute; inset: auto; width: 360px; height: 360px; border-radius: 9999px; background: radial-gradient(circle, rgba(52,199,89,0.22), rgba(52,199,89,0) 70%); top: 60px; }

/* ── Phone frame ── */
.phone { border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #3A3A3C, #1C1C1E 45%, #2C2C2E); }
.phone--hero { position: relative; width: 300px; box-shadow: 0 30px 70px rgba(0,0,0,0.8); animation: stepFloat 7s ease-in-out infinite; }
.phone--feature { width: 100%; max-width: 300px; box-shadow: 0 24px 60px rgba(0,0,0,0.7); }
.phone__screen { border-radius: 36px; background: #000; overflow: hidden; }
.phone--hero .phone__screen { padding: 14px 16px 18px; }
.phone__shot { display: block; width: 100%; height: auto; }

/* ── Today screen mock (hero phone) ── */
.mock-status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: #fff; padding: 4px 6px 14px; }
.mock-status__day { color: rgba(235,235,245,0.6); font-size: 11px; }

.ring-wrap { display: flex; justify-content: center; padding-bottom: 18px; }
.ring { position: relative; width: 170px; height: 170px; }
.ring__svg { display: block; transform: rotate(-90deg); }
.ring__progress { animation: ringDraw 1.6s cubic-bezier(.2,.8,.3,1) both; }
.ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring__value { font-family: ui-rounded, -apple-system, system-ui; font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.ring__unit { font-size: 12px; color: rgba(235,235,245,0.6); }
.ring__goal { font-size: 11px; color: #34C759; font-weight: 600; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 12px; }
.mini-stat { background: #1C1C1E; border-radius: 12px; padding: 10px 8px; text-align: center; }
.mini-stat__value { font-size: 15px; font-weight: 700; }
.mini-stat__unit { font-size: 11px; }
.mini-stat__label { font-size: 10px; color: rgba(235,235,245,0.6); padding-top: 2px; }

.week-card { background: #1C1C1E; border-radius: 14px; padding: 12px; }
.week-card__title { font-size: 12px; font-weight: 600; padding-bottom: 10px; }
.week-card__bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.week-card__bar { flex: 1; background: #34C759; border-radius: 4px 4px 2px 2px; }
.week-card__bar--dim { background: rgba(52,199,89,0.45); }
.week-card__axis { display: flex; justify-content: space-between; font-size: 10px; color: rgba(235,235,245,0.3); padding-top: 8px; }

/* ── Features ── */
.features { max-width: 1180px; margin: 0 auto; padding: 64px 24px 24px; }
.features__intro { max-width: 640px; margin-bottom: 44px; }
.features__title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -1.2px; margin-bottom: 14px; }
.features__list { display: flex; flex-direction: column; gap: 20px; }

.feature { background: #1C1C1E; border-radius: 24px; padding: clamp(18px, 4vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px; align-items: center; }
.feature--red { --accent: #FF453A; --accent-bg: rgba(255,69,58,0.14); }
.feature--indigo { --accent: #7D7AFF; --accent-bg: rgba(94,92,230,0.2); }
.feature--orange { --accent: #FF9F0A; --accent-bg: rgba(255,159,10,0.16); }
.feature__copy, .feature__visual { min-width: 0; }
.feature__visual--centered { display: flex; justify-content: center; }
.feature__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 9999px; background: var(--accent-bg); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.feature__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -0.8px; margin-bottom: 14px; }
.feature__text { font-size: 16px; line-height: 1.55; color: rgba(235,235,245,0.6); text-wrap: pretty; margin-bottom: 18px; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist__item { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.checklist__mark { color: var(--accent); font-weight: 700; }

/* ── Calendar mock ── */
.calendar { background: #000; border-radius: 20px; padding: 18px; min-width: 0; width: 100%; max-width: 440px; justify-self: center; }
.calendar__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calendar__month { font-size: 15px; font-weight: 700; }
.calendar__legend { display: flex; gap: 12px; font-size: 11px; color: rgba(235,235,245,0.6); }
.calendar__swatch { display: inline-block; border-radius: 2px; margin-right: 4px; }
.calendar__swatch--steps { width: 8px; height: 8px; background: #34C759; }
.calendar__swatch--heart { width: 10px; height: 3px; background: #FF453A; vertical-align: middle; }
.calendar__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 6px; }
.calendar__weekday { font-size: 10px; font-weight: 600; color: rgba(235,235,245,0.3); text-align: center; }
.calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }

/* Each day sets --steps (green fill opacity) and --heart (heart-rate bar width) inline. */
.cal-day { position: relative; aspect-ratio: 1; border-radius: 8px; background: rgba(52,199,89,var(--steps)); display: flex; flex-direction: column; justify-content: space-between; padding: 4px 5px; min-width: 0; }
.cal-day--selected { box-shadow: 0 0 0 2px #fff; }
.cal-day__num { font-size: 10px; font-weight: 600; color: #fff; }
.cal-day--bright .cal-day__num { color: #000; }
.cal-day__heart { display: block; height: 3px; width: var(--heart); border-radius: 2px; background: #FF453A; }

.day-detail { background: #1C1C1E; border-radius: 14px; padding: 14px; }
.day-detail__header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.day-detail__date { font-size: 13px; font-weight: 700; }
.day-detail__stats { font-size: 12px; }
.day-detail__steps { color: #34C759; font-weight: 700; }
.day-detail__sep { color: rgba(235,235,245,0.3); }
.day-detail__heart { color: #FF453A; font-weight: 700; }
.day-detail__chart { display: block; }
.day-detail__axis { display: flex; justify-content: space-between; font-size: 10px; color: rgba(235,235,245,0.3); padding-top: 4px; }

/* ── Share mock ── */
/* Carousel: js/main.js moves each card between the prev / active / next positions. */
.share-stack { position: relative; height: 220px; max-width: 340px; margin: 0 auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.share-card { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,0.6); overflow: hidden; border: 1px solid rgba(84,84,88,0.5); transition: transform .5s cubic-bezier(.2,.8,.3,1), opacity .5s; }
.share-card--prev { transform: translateX(-58px) rotate(-10deg); z-index: 1; cursor: pointer; }
.share-card--active { transform: translateX(0px) rotate(0deg); z-index: 3; }
.share-card--next { transform: translateX(58px) rotate(10deg); z-index: 2; cursor: pointer; }
.share-card--hidden { transform: scale(0.8); z-index: 0; opacity: 0; pointer-events: none; }
.share-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-action { display: flex; justify-content: center; margin-top: 8px; }
.share-action__button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 9999px; background: #34C759; color: #000; font-size: 15px; font-weight: 700; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.pager__dot { position: relative; width: 6px; height: 6px; border: 0; border-radius: 9999px; background: rgba(235,235,245,0.3); cursor: pointer; transition: width .3s, background-color .3s; }
.pager__dot::after { content: ''; position: absolute; inset: -9px -3px; }
.pager__dot:focus-visible { outline: 2px solid #34C759; outline-offset: 3px; }
.pager__dot--active { width: 18px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .share-card, .pager__dot { transition: none; }
}

/* ── Stats strip ── */
.stats { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: rgba(84,84,88,0.4); border-radius: 20px; overflow: hidden; }
.stat { background: #0B0B0C; padding: 30px 26px; }
.stat__value { font-family: ui-rounded, -apple-system, system-ui; font-size: 40px; font-weight: 700; color: #34C759; letter-spacing: -1.5px; }
.stat__label { font-size: 15px; color: rgba(235,235,245,0.6); padding-top: 8px; }

/* ── Privacy ── */
.privacy { max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; }
.privacy__panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; background: linear-gradient(140deg, rgba(52,199,89,0.14), rgba(52,199,89,0.02)); border: 1px solid rgba(52,199,89,0.25); border-radius: 24px; padding: 44px 40px; }
.privacy__copy { min-width: 0; }
.privacy__title { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -1px; margin-bottom: 16px; }
.privacy__points { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.privacy__point { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.5); border-radius: 14px; padding: 16px 18px; }
.privacy__check { color: #34C759; font-size: 17px; font-weight: 700; }
.privacy__point-text { font-size: 15px; }
.privacy__link { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; color: #34C759; }
.privacy__link:hover { color: #6EDC8B; }

/* ── Privacy policy page ── */
.brand--link { color: #fff; }
.policy { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; }
.policy__title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -1.4px; margin-bottom: 12px; }
.policy__updated { font-size: 15px; color: rgba(235,235,245,0.3); }
.policy h2 { font-family: ui-rounded, -apple-system, system-ui; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.5px; margin: 48px 0 14px; }
.policy h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
.policy p, .policy li { font-size: 16px; line-height: 1.6; color: rgba(235,235,245,0.6); text-wrap: pretty; }
.policy p + p, .policy p + ul, .policy ul + p { margin-top: 14px; }
.policy ul { padding-left: 22px; }
.policy li + li { margin-top: 10px; }
.policy li::marker { color: #34C759; }
.policy strong { color: #fff; font-weight: 600; }
.policy a { color: #34C759; overflow-wrap: anywhere; }
.policy a:hover { color: #6EDC8B; }

/* ── Closing call to action ── */
.cta { position: relative; text-align: center; max-width: 760px; margin: 0 auto; padding: 40px 24px 88px; }
.cta__logo { display: block; margin: 0 auto 26px; border-radius: 17px; box-shadow: 0 12px 40px rgba(52,199,89,0.3); }
.cta__title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -1.4px; margin-bottom: 16px; }
.cta__text { font-size: 18px; line-height: 1.5; color: rgba(235,235,245,0.6); max-width: 460px; margin: 0 auto 30px; text-wrap: pretty; }
.cta__actions { display: flex; justify-content: center; }

/* ── Footer ── */
.site-footer { border-top: 1px solid rgba(84,84,88,0.4); padding: 28px 24px 40px; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer__logo { display: block; border-radius: 6px; }
.site-footer__copyright { font-size: 14px; color: rgba(235,235,245,0.3); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__link { font-size: 14px; color: rgba(235,235,245,0.6); }

/* ── "Made with Claude Design" badge ── */
#design-credit { position: fixed; right: 16px; bottom: 16px; z-index: 2147483646; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 5px 0 10px; border-radius: 999px; font-family: "Anthropic Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 12.5px; font-weight: 400; line-height: 1; letter-spacing: normal; text-transform: none; color: #141413; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 0 0 .5px rgba(31,30,29,.14), 0 2px 10px rgba(0,0,0,.09); }
#design-credit * { box-sizing: border-box; margin: 0; }
#design-credit a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
#design-credit a:hover span { text-decoration: underline; }
#design-credit svg { flex: none; }
#design-credit a svg { color: #D97757; }
#design-credit button { width: 20px; height: 20px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: currentColor; opacity: .55; border: 0; background: none; cursor: pointer; flex: none; font: inherit; transition: opacity .14s; }
#design-credit button:hover { opacity: 1; background: rgba(127,127,127,.22); }

/* ── Print ── */
@media print {
  @page { margin: 0.5cm; }
  *, *::before, *::after {
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    animation-delay: -99s !important; animation-duration: .001s !important;
    animation-iteration-count: 1 !important; animation-fill-mode: both !important;
    animation-play-state: running !important; transition-duration: 0s !important;
  }
  #design-credit { display: none; }
}
