/* Homepage. Loaded only by index.html, on top of global.css + styles.css
   (which still style the shared nav and footer). */

body.home {
    --ink: #1d1d1f;
    --ink-soft: #424245;
    --muted: #6e6e73;
    --muted-dark: #86868b;
    --line: #d2d2d7;
    --bg-alt: #f5f5f7;
    --lime: #A4FF00;
    --lime-deep: #4f7d00;
    --pad-x: 24px;
    --inner: 1120px;
    --screen: calc(100svh / var(--z, 1));

    background: #fff;
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.home main {
    display: block;
    width: 100%;
}

.home .nav-gradient {
    display: none;
}

/* ---------- Layout ---------- */

.h-section {
    position: relative;
    box-sizing: border-box;
    padding: 160px var(--pad-x);
    overflow: hidden;
}

.h-full {
    min-height: var(--screen);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
}

.h-alt {
    background: var(--bg-alt);
}

.h-dark {
    background: #000;
    color: #f5f5f7;
}

.h-inner {
    width: 100%;
    max-width: var(--inner);
    margin: 0 auto;
}

.h-center {
    text-align: center;
}

.h-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.h-split--flip .h-split__media {
    order: -1;
}

.h-split__media {
    display: flex;
    justify-content: center;
}

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

.h-eyebrow {
    display: block;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--lime-deep);
    margin-bottom: 16px;
}

.h-dark .h-eyebrow {
    color: var(--lime);
}

.h-title {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(2.75rem, 5.6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}

.h-dark .h-title {
    color: #f5f5f7;
}

.h-lede {
    font-size: clamp(1.1875rem, 1.5vw, 1.5rem);
    line-height: 1.42;
    color: var(--muted);
    max-width: 34ch;
    margin-top: 24px;
    text-wrap: pretty;
}

.h-center .h-lede {
    margin-left: auto;
    margin-right: auto;
}

.h-dark .h-lede {
    color: var(--muted-dark);
}

.h-lede strong {
    color: var(--ink);
    font-weight: 700;
}

.h-dark .h-lede strong {
    color: #f5f5f7;
}

.h-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 28px;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--lime-deep);
    text-decoration: none;
}

.h-link:hover {
    text-decoration: underline;
}

.h-dark .h-link {
    color: var(--lime);
}

/* Feature details under a headline */
.h-points {
    list-style: none;
    display: grid;
    gap: 22px;
    margin-top: 44px;
}

.h-points li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
}

.h-points strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--ink);
    margin-bottom: 2px;
}

.h-points span:not(.h-chip) {
    display: block;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.45;
}

.h-dark .h-points strong {
    color: #f5f5f7;
}

.h-dark .h-points span:not(.h-chip) {
    color: var(--muted-dark);
}

.h-chip {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--lime);
    color: #000;
    font-size: 1.375rem;
}

/* ---------- App Store button ---------- */

.h-store {
    display: inline-block;
    line-height: 0;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h-store img {
    height: 56px;
    width: auto;
}

.h-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.h-store:focus-visible {
    outline: 3px solid var(--lime-deep);
    outline-offset: 3px;
}

/* ---------- iPhone mockup ---------- */

.phone {
    --w: 300px;
    position: relative;
    width: var(--w);
    padding: calc(var(--w) * 0.034);
    border-radius: calc(var(--w) * 0.175);
    background: linear-gradient(150deg, #4a4a4e 0%, #1d1d1f 22%, #2b2b2e 60%, #49494d 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 0 0 calc(var(--w) * 0.012) #0b0b0c,
        0 60px 90px -30px rgba(0, 0, 0, 0.45),
        0 24px 40px -24px rgba(0, 0, 0, 0.35);
    transform-style: preserve-3d;
    flex: none;
}

/* Side buttons */
.phone::before,
.phone::after {
    content: '';
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #2b2b2e;
}

.phone::before {
    left: -2px;
    top: 21%;
    height: 5.5%;
    box-shadow: 0 calc(var(--w) * 0.2) 0 #2b2b2e, 0 calc(var(--w) * 0.36) 0 #2b2b2e;
}

.phone::after {
    right: -2px;
    top: 30%;
    height: 11%;
}

.phone__screen {
    position: relative;
    aspect-ratio: 1206 / 2622;
    border-radius: calc(var(--w) * 0.142);
    overflow: hidden;
    background: #000;
    transform: translateZ(0.1px);
}

.phone__screen > img,
.phone__screen > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.phone__island {
    position: absolute;
    z-index: 3;
    top: calc(var(--w) * 0.064);
    left: 50%;
    width: 31%;
    height: calc(var(--w) * 0.088);
    border-radius: 999px;
    background: #000;
    transform: translateX(-50%) translateZ(0.2px);
}

/* Stacked layers behind the face read as the phone's edge when it tilts. */
.phone__depth {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #232325;
    transform: translateZ(calc(var(--d) * -2.5px));
}

.phone__glare {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent calc(var(--glare, 50%) - 30%),
        rgba(255, 255, 255, 0.16) var(--glare, 50%),
        transparent calc(var(--glare, 50%) + 30%));
    mix-blend-mode: screen;
}

/* 3D phones (components/home3d.js). The CSS frame is hidden while the 3D
   model loads; if 3D fails, `js-3d` is removed and the frame shows again. */
.js-3d .phone {
    background: none;
    box-shadow: none;
}

.js-3d .phone::before,
.js-3d .phone::after {
    display: none;
}

.js-3d .phone > :not(.phone-3d) {
    opacity: 0;
}

.js-3d .tilt__body {
    transform: none;
}

.js-3d .tilt__float {
    animation: none;
}

/* Overhangs the placeholder so the phone can turn and rise without clipping. */
.phone-3d {
    position: absolute;
    left: -25%;
    top: -20%;
    width: 150%;
    height: 140%;
    pointer-events: none;
    filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.2));
}

.h-dark .phone-3d {
    filter: none;
}

/* Two phones, one tucked behind the other */
.h-duo {
    position: relative;
    display: flex;
    justify-content: center;
    padding-left: 110px;
}

.h-duo .phone--back {
    position: absolute;
    left: 0;
    top: 8%;
    --w: 250px;
    opacity: 0.96;
}

.h-duo .phone--front {
    --w: 290px;
}

/* iPad */
.ipad {
    width: min(100%, 400px);
    padding: 12px;
    border-radius: 32px;
    background: #1c1c1e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.ipad__screen {
    aspect-ratio: 1668 / 2420;
    border-radius: 21px;
    overflow: hidden;
}

.ipad__screen img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Visible to screen readers only */
.h-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Hero tilt wrapper */
.tilt {
    position: relative;
    perspective: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tilt__float {
    animation: h-float 7s ease-in-out infinite;
    transform-style: preserve-3d;
}

.tilt__body {
    transform-style: preserve-3d;
    transform: rotateX(calc(6deg + var(--rx, 0deg))) rotateY(calc(-16deg + var(--ry, 0deg)));
}

/* Out of the layout, so the phone itself lines up with the text. */
.tilt__shadow {
    position: absolute;
    top: 100%;
    left: 15%;
    width: 70%;
    height: 34px;
    margin-top: 28px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.22), transparent);
    animation: h-shadow 7s ease-in-out infinite;
}

@keyframes h-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes h-shadow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.88); opacity: 0.7; }
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

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

.h-hero {
    min-height: var(--screen);
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(42% 52% at 76% 54%, rgba(164, 255, 0, 0.34), rgba(164, 255, 0, 0) 70%),
        #fff;
}

.h-hero .h-split {
    grid-template-columns: 1.15fr 0.85fr;
}

.h-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(79, 125, 0, 0.25);
    margin-bottom: 28px;
}

.h-hero h1 {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(3.25rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
}

.h-hero .h-lede {
    max-width: 36ch;
    margin-top: 28px;
}

.h-hero__cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 40px;
}

.h-hero__note {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.4;
}

.h-hero__note strong {
    display: block;
    color: var(--ink);
}

/* Sized by height too, so the phone and its shadow fit on short screens. */
.h-hero .phone {
    --w: clamp(220px, min(23vw, (var(--screen) - 260px) / 2.1), 320px);
}

/* ---------- Statement ---------- */

.h-statement {
    height: calc(var(--screen) * 2.4);
    background: #fff;
}

.h-statement__stage {
    position: sticky;
    top: 0;
    height: var(--screen);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) var(--pad-x) 0;
    text-align: center;
}

.h-statement__lines {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(3rem, 8.4vw, 8.5rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.h-statement__lines span[data-words-text] {
    display: block;
}

.word {
    color: #e3e3e8;
    transition: color 0.35s ease;
}

.word.is-lit {
    color: var(--ink);
}

.h-statement .h-lede {
    margin-top: 40px;
    max-width: 40ch;
}

/* ---------- Logging steps (pinned) ---------- */

/* 1 screen for the stage + 0.08 lead + 0.8 for the middle step + 0.08 tail
   (STEP_LEAD / STEP_HOLD in home.js). */
.h-steps {
    height: calc(var(--screen) * 1.96);
    background: #000;
    color: #f5f5f7;
}

.h-steps__stage {
    position: sticky;
    top: 0;
    height: var(--screen);
    display: flex;
    align-items: center;
    padding: var(--nav-height) var(--pad-x) 0;
}

.h-steps__list {
    list-style: none;
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.h-steps__list li {
    opacity: 0.28;
    transition: opacity 0.5s ease;
}

.h-steps__list li.is-active {
    opacity: 1;
}

.h-steps__list h3 {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.1;
    color: #f5f5f7;
}

.h-steps__list p {
    margin-top: 8px;
    font-size: 1.0625rem;
    color: var(--muted-dark);
    max-width: 36ch;
}

.h-steps__num {
    display: inline-block;
    color: var(--lime);
    margin-right: 6px;
}

.h-steps .phone {
    --w: clamp(240px, 22vw, 300px);
}

.h-steps .phone__screen > img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.h-steps .phone__screen > img.is-active {
    opacity: 1;
}

/* ---------- Big number (exercise library) ---------- */

.h-big {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(6rem, 18vw, 15rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #1d1d1f 30%, #6e6e73 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h-dark .h-big {
    background: linear-gradient(180deg, #A4FF00 20%, #4f7d00 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.h-marquee {
    position: relative;
    margin-top: 72px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.h-marquee__track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: h-marquee 60s linear infinite;
}

.h-marquee:hover .h-marquee__track {
    animation-play-state: paused;
}

.h-marquee__track--reverse {
    animation-direction: reverse;
    margin-top: 20px;
}

@keyframes h-marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Muscles ---------- */

.h-muscles {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    margin-top: 72px;
}

.h-muscle {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #e8e9ee;
    text-decoration: none;
    aspect-ratio: 1;
}

.h-muscle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.h-muscle span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 10px 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.h-muscle:hover img {
    transform: scale(1.06);
}

.h-muscle:focus-visible {
    outline: 3px solid var(--lime-deep);
    outline-offset: 3px;
}

/* ---------- Bento tiles ---------- */

.h-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 72px;
    text-align: left;
}

.h-tile {
    grid-column: span 2;
    padding: 36px 32px;
    border-radius: 28px;
    background: #fff;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.h-tile--wide {
    grid-column: span 3;
}

.h-alt .h-tile {
    background: #fff;
}

.h-section:not(.h-alt):not(.h-dark) .h-tile {
    background: var(--bg-alt);
}

.h-dark .h-tile {
    background: #161617;
}

.h-tile .ti {
    font-size: 2.5rem;
    color: var(--ink);
    line-height: 1;
}

.h-dark .h-tile .ti {
    color: var(--lime);
}

.h-tile h3 {
    margin-top: auto;
    padding-top: 40px;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 1.625rem;
    line-height: 1.1;
    color: var(--ink);
}

.h-dark .h-tile h3 {
    color: #f5f5f7;
}

.h-tile p {
    margin-top: 10px;
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.45;
}

.h-dark .h-tile p {
    color: var(--muted-dark);
}

.h-bento--4 {
    grid-template-columns: repeat(4, 1fr);
}

.h-bento--4 .h-tile {
    grid-column: span 1;
    min-height: 0;
}

.h-bento--4 .h-tile h3 {
    margin-top: 0;
    padding-top: 36px;
}

/* Tiles with a device: text on top, device anchored to the bottom edge */
.h-tile--media {
    padding-bottom: 0;
    overflow: hidden;
}

.h-tile--media h3 {
    margin-top: 0;
    padding-top: 28px;
}

.h-tile--media p {
    max-width: 36ch;
}

.h-tile__media {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 36px;
}

.h-tile__media--crop {
    height: 340px;
    align-items: flex-start;
    padding-bottom: 0;
    overflow: hidden;
}

.phone--tile {
    --w: 240px;
}

/* ---------- Price comparison ---------- */

.h-prices {
    list-style: none;
    display: grid;
    gap: 28px;
    margin: 80px auto 0;
    max-width: 900px;
    text-align: left;
}

.h-prices li {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    align-items: center;
    gap: 28px;
    font-size: 1.375rem;
    color: var(--muted);
}

.h-prices__bar {
    height: 20px;
    border-radius: 999px;
    background: var(--line);
    width: var(--v);
    min-width: 14px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.h-prices.is-visible .h-prices__bar {
    transform: scaleX(1);
}

.h-prices__price {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
}

.h-prices__ours {
    color: var(--ink);
    font-weight: 700;
}

.h-prices__ours .h-prices__price {
    color: var(--lime-deep);
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 1.75rem;
}

.h-prices__ours .h-prices__bar {
    background: var(--lime);
}

.h-footnote {
    margin-top: 28px;
    font-size: 0.875rem;
    color: var(--muted);
}

.h-footnote a {
    color: inherit;
}

/* ---------- Reviews ---------- */

.h-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 72px;
    text-align: left;
}

.h-review {
    padding: 36px 32px;
    border-radius: 28px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.h-review__stars {
    color: #ffb800;
    font-size: 1rem;
    letter-spacing: 2px;
}

.h-review blockquote {
    margin: 18px 0 28px;
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--ink);
}

.h-review figcaption {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--ink-soft);
}

.h-review figcaption img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ---------- FAQ ---------- */

.h-faq {
    max-width: 820px;
    margin: 64px auto 0;
    text-align: left;
}

.h-faq details {
    border-bottom: 1px solid var(--line);
}

.h-faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

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

.h-faq summary::after {
    content: '+';
    flex: none;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--muted);
    transition: transform 0.25s ease;
}

.h-faq details[open] summary::after {
    transform: rotate(45deg);
}

.h-faq summary:focus-visible {
    outline: 3px solid var(--lime-deep);
    outline-offset: 4px;
}

.h-faq details p {
    padding: 0 48px 28px 0;
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ---------- Final call to action ---------- */

.h-final {
    background:
        radial-gradient(50% 60% at 50% 100%, rgba(164, 255, 0, 0.32), rgba(164, 255, 0, 0) 70%),
        #fff;
}

.h-final__icon {
    width: 128px;
    height: 128px;
    border-radius: 29px;
    box-shadow: 0 20px 50px rgba(79, 125, 0, 0.3);
    margin: 0 auto 44px;
    display: block;
}

.h-final .h-store {
    margin-top: 44px;
}

.h-final .h-hero__note {
    margin-top: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1068px) {
    .h-muscles {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .h-section {
        padding: 120px var(--pad-x);
    }

    .h-split,
    .h-hero .h-split {
        grid-template-columns: 1fr;
        gap: 64px;
        text-align: center;
    }

    .h-split--flip .h-split__media {
        order: 0;
    }

    .h-lede,
    .h-hero .h-lede {
        margin-left: auto;
        margin-right: auto;
    }

    .h-hero__icon {
        margin-left: auto;
        margin-right: auto;
    }

    .h-hero__cta {
        justify-content: center;
    }

    .h-points {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .h-bento,
    .h-bento--4 {
        grid-template-columns: 1fr 1fr;
    }

    .h-tile,
    .h-tile--wide {
        grid-column: span 1;
    }

    .h-tile--wide {
        grid-column: span 2;
    }

    .h-duo {
        padding-left: 90px;
    }

    .h-duo .phone--back {
        --w: 210px;
    }

    .h-duo .phone--front {
        --w: 250px;
    }

    .h-reviews {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Pinned steps: phone on top, only the current step's text below. */
    .h-steps__stage .h-split {
        gap: 28px;
    }

    .h-steps__stage .h-split > div:first-child .h-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .h-steps__stage .h-split__media {
        order: -1;
    }

    .h-steps .phone {
        --w: min(200px, 26vh);
    }

    .h-steps__list {
        display: grid;
        margin-top: 20px;
    }

    .h-steps__list li {
        grid-area: 1 / 1;
        opacity: 0;
    }

    .h-steps__list p {
        margin-left: auto;
        margin-right: auto;
    }

    .h-steps .h-eyebrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .h-section {
        padding: 96px 20px;
    }

    .h-hero {
        padding-top: calc(var(--nav-height) + 24px);
    }

    .h-hero .phone {
        --w: 240px;
    }

    .h-bento {
        grid-template-columns: 1fr;
    }

    .h-tile--wide {
        grid-column: span 1;
    }

    .h-tile {
        min-height: 0;
        padding: 30px 26px;
    }

    .h-tile--media {
        padding-bottom: 0;
    }

    .h-bento--4 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .h-bento--4 .h-tile {
        padding: 24px 20px;
    }

    .h-bento--4 .h-tile h3 {
        font-size: 1.25rem;
    }

    .h-bento--4 .h-tile p {
        font-size: 0.9375rem;
    }

    .h-tile__media--crop {
        height: 280px;
    }

    .h-duo {
        padding-left: 70px;
    }

    .h-duo .phone--back {
        --w: 170px;
    }

    .h-duo .phone--front {
        --w: 210px;
    }

    .h-tile h3 {
        padding-top: 28px;
    }

    .h-muscles {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .h-muscle {
        border-radius: 12px;
    }

    .h-muscle span {
        font-size: 0.75rem;
        padding: 18px 6px 6px;
    }

    .h-prices li {
        grid-template-columns: 84px 1fr 88px;
        gap: 12px;
        font-size: 0.9375rem;
    }

    .h-faq summary {
        font-size: 1.125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tilt__float,
    .tilt__shadow,
    .h-marquee__track {
        animation: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .h-prices__bar {
        transform: none;
        transition: none;
    }
}

/* ---------- Pricing: 3D coin stacks (components/home-coins.js) ---------- */

.h-coins {
    display: none;
    max-width: 900px;
    margin: 56px auto 0;
}

.has-coins .h-coins {
    display: block;
}

.has-coins .h-prices {
    display: none;
}

.h-coins__canvas {
    display: block;
    width: 100%;
    aspect-ratio: 900 / 480;
}

.h-coins__labels {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 20px;
    text-align: center;
}

.h-coins__labels strong {
    display: block;
    font-size: 1.125rem;
    color: var(--ink);
}

.h-coins__labels span {
    display: block;
    margin-top: 2px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
}

.h-coins__labels small {
    display: block;
    margin-top: 2px;
    font-size: 0.875rem;
    color: var(--muted);
}

.h-coins__ours span {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 1.375rem;
    line-height: 1.2;
    color: var(--lime-deep);
}

@media (max-width: 600px) {
    .h-coins__labels strong {
        font-size: 0.875rem;
    }

    .h-coins__labels span {
        font-size: 0.875rem;
    }

    .h-coins__ours span {
        font-size: 1rem;
    }

    .h-coins__labels small {
        font-size: 0.75rem;
    }
}

/* Hero Apple Watch (drawn by home3d.js), overlapping the phone's lower left. */
.hero-watch {
    position: absolute;
    left: -34%;
    bottom: -7.2%;   /* the band's lowest visible point sits above the slot's bottom */
    width: 50%;
    aspect-ratio: 0.43;
    z-index: 2;
    pointer-events: none;
}

/* Apple Watch tile: two 3D watches, cropped by the tile's bottom edge. */
.h-tile__media--watches {
    height: 300px;
    padding-top: 24px;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 0;
    overflow: hidden;
}

.tile-watch {
    position: relative;
    height: 360px;
    aspect-ratio: 0.43;
    flex: none;
}

.tile-watch--small {
    height: 300px;
    margin-top: 30px;
}

@media (max-width: 600px) {
    .h-tile__media--watches {
        height: 260px;
    }

    .tile-watch {
        height: 310px;
    }

    .tile-watch--small {
        height: 260px;
        margin-top: 26px;
    }
}
