/* TrainWithCoach × Polina Zueva: pole landing at /pole.
   Polina's own world (polinazueva.com): near-black, warm white, gold,
   Bodoni Moda display over Inter light. The TrainWithCoach teal appears
   only in the logo and on the real app screens. */

:root {
    --bg: #0b0b0c;
    --bg-alt: #101011;
    --surface: #151516;
    --text: #ede9e3;
    --text-2: #b8b2aa;
    --muted: #8e8a83;
    --gold: #c8a15a;
    --gold-l: #e3c88f;
    --hair: rgba(237, 233, 227, .09);
    --hair-strong: rgba(237, 233, 227, .38);
    --serif: "Bodoni Moda", "Didot", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, sans-serif;
    --gutter: clamp(20px, 4vw, 56px);
    --section: clamp(72px, 9vw, 136px);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #3a3835 var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 300 1rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    caret-color: var(--gold);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3835; border: 3px solid var(--bg); border-radius: 10px; }
:focus-visible { outline: 1px solid var(--gold-l); outline-offset: 4px; }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 50;
    background: var(--gold); color: var(--bg); padding: 10px 16px;
    font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display {
    font: 400 clamp(2.6rem, 6.2vw, 5.4rem)/1.03 var(--serif);
    letter-spacing: -.015em;
    text-wrap: balance;
}
.display-sm { font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
.display em, .h2 em { font-style: italic; color: var(--gold-l); }
.h2 {
    font: 400 clamp(2rem, 3.6vw, 3rem)/1.1 var(--serif);
    letter-spacing: -.01em;
    text-wrap: balance;
}
.h3 { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--serif); }
.body { color: var(--text-2); font-size: 1.0625rem; max-width: 62ch; }
.small { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.credit { color: var(--muted); font-size: .75rem; line-height: 1.45; margin-top: 10px; }
.arrow { display: inline-block; transition: transform .4s var(--ease); }

/* Buttons and tags */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 30px;
    font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
    border: 1px solid transparent;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-sm { min-height: 44px; padding: 0 20px; letter-spacing: .18em; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-l); }
.btn-line { border-color: var(--hair-strong); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-l); }
.btn:hover .arrow, .link:hover .arrow, .course:hover .arrow { transform: translate(2px, -2px); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

.soon {
    display: inline-block;
    padding: 6px 11px 5px;
    border: 1px solid rgba(200, 161, 90, .55);
    color: var(--gold-l);
    font: 500 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
    white-space: nowrap;
}
.link {
    display: inline-flex; gap: 8px; align-items: center;
    color: var(--gold-l);
    font: 500 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
    padding: 14px 0; border-bottom: 1px solid rgba(200, 161, 90, .4);
}
.link:hover { border-color: var(--gold-l); }

/* Top bar: lies over the hero photograph */
.bar {
    position: absolute; inset: 0 0 auto; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font: 500 1rem/1 var(--sans); letter-spacing: .01em; }
.brand-x { color: var(--gold); font: 400 1.1rem/1 var(--serif); }
.brand-pz { font: 400 .95rem/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; }
.bar-nav { display: flex; gap: 30px; }
.bar-nav a, .bar-link {
    font: 400 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-2); padding: 15px 0;
    transition: color .3s var(--ease);
}
.bar-nav a:hover, .bar-link:hover { color: var(--gold-l); }
.bar-actions { display: flex; align-items: center; gap: 24px; }

/* Hero: Polina's photograph owns the first viewport */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: flex-end;
    overflow: hidden; isolation: isolate;
}
.hero-img {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
    left: 22%; width: 78%;
}
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, var(--bg) 22%, rgba(11, 11, 12, .82) 38%, rgba(11, 11, 12, .1) 64%, rgba(11, 11, 12, .35) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, 0) 34%),
        linear-gradient(180deg, rgba(11, 11, 12, .7) 0%, rgba(11, 11, 12, 0) 18%);
}
.hero-copy {
    width: 100%; max-width: 1280px; margin: 0 auto;
    padding: 140px var(--gutter) clamp(48px, 8vh, 96px);
}
.hero-copy > * { max-width: 40rem; }
.hero .display { margin-bottom: 28px; }
.hero-lede { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 36rem; margin-bottom: 36px; }
.ledger {
    display: flex; flex-wrap: wrap; gap: 14px 48px;
    margin-top: 44px; padding-top: 22px;
    border-top: 1px solid var(--hair);
}
.ledger div { display: flex; flex-direction: column; gap: 8px; }
.ledger dt { color: var(--muted); font: 400 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.ledger dd { font: 400 1.25rem/1.2 var(--serif); }

/* Load-in: the one orchestrated entrance, from an already-visible state */
@media (prefers-reduced-motion: no-preference) {
    .js .hero-img { animation: settle 2.4s var(--ease) both; }
    .js .hero-copy > * { animation: rise 1.2s var(--ease) both; }
    .js .hero-copy > :nth-child(2) { animation-delay: .12s; }
    .js .hero-copy > :nth-child(3) { animation-delay: .22s; }
    .js .hero-copy > :nth-child(4) { animation-delay: .32s; }
}
@keyframes settle { from { transform: scale(1.06); filter: brightness(.6); } }
@keyframes rise { from { transform: translateY(18px); opacity: .01; } }

/* The add-on */
.addon { padding: var(--section) 0; border-top: 1px solid var(--hair); }
.addon-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }

.turn {
    display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 96px);
    align-items: center;
    padding-bottom: clamp(56px, 7vw, 96px);
}
.turntable { position: relative; max-width: 340px; justify-self: center; width: 100%; }
.ticks .t-r { text-anchor: start; }
.turn-svg { width: 100%; height: auto; overflow: visible; }
.orbit { fill: none; stroke: var(--gold); stroke-width: 1; }
.orbit-back { stroke-opacity: .35; stroke-dasharray: 2 6; }
.orbit-front { stroke-opacity: .9; }
.orbit-dot circle { fill: var(--gold-l); }
.orbit-dot.is-behind circle { fill: var(--gold); opacity: .45; }
.ticks text {
    fill: var(--muted); font: 400 11px var(--sans); letter-spacing: .14em;
    text-anchor: middle;
}
.turn-copy .h3 { margin-bottom: 18px; }
.turn-copy .body { margin-bottom: 22px; }
.already {
    display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center;
    margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hair);
    max-width: 34rem;
}
.already img { border-radius: 14px; border: 1px solid var(--hair); }
.already-title { font: 400 1.25rem/1.25 var(--serif); margin-bottom: 6px; }

.acts { border-top: 1px solid var(--hair); }
.act {
    display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; gap: 16px 56px;
    align-items: baseline;
    padding: 36px 0; border-bottom: 1px solid var(--hair);
}
.act-name { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--serif); }
.act-text { color: var(--text-2); max-width: 58ch; }

/* Strength first: the free part, live today */
.strength { padding: var(--section) 0; background: var(--bg-alt); border-top: 1px solid var(--hair); }
.strength-grid { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: clamp(40px, 8vw, 128px); align-items: center; }
.strength .h2 { margin-bottom: 24px; }
.strength .body { margin-bottom: 28px; }
.ticks-list { margin-bottom: 40px; display: grid; gap: 12px; }
.ticks-list li { display: flex; gap: 16px; align-items: baseline; color: var(--text); }
.ticks-list li::before { content: ""; flex: none; width: 22px; height: 1px; background: var(--gold); transform: translateY(-4px); }
.phone img {
    border-radius: 34px; border: 1px solid var(--hair-strong);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.phone figcaption { margin-top: 14px; text-align: center; }

/* Polina */
.polina { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.polina-photo { position: relative; min-height: 560px; }
.polina-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 0%; }
.polina-copy { padding: var(--section) var(--gutter); max-width: 44rem; }
.polina .h2 { margin-bottom: 24px; }
.polina .body { margin-bottom: 36px; }
.record { border-top: 1px solid var(--hair); margin-bottom: 32px; }
.record li {
    display: grid; grid-template-columns: 64px 1fr; gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--hair);
    color: var(--text-2); font-size: .9375rem;
}
.yr { color: var(--gold); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: .06em; }

/* Polina's live courses */
.courses { padding: var(--section) 0; border-top: 1px solid var(--hair); }
.courses-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.course-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--hair); margin-bottom: 48px; }
.course {
    display: grid; grid-template-columns: 124px 1fr; gap: 24px; align-items: center;
    padding: 24px 0; border-bottom: 1px solid var(--hair);
}
.course img { aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.course:hover img { filter: none; }
.course-body { display: flex; flex-direction: column; gap: 6px; }
.course-title { font: 400 1.3rem/1.25 var(--serif); transition: color .3s var(--ease); }
.course:hover .course-title { color: var(--gold-l); }
.course-text { color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.course-meta { color: var(--muted); font: 400 .6875rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }

/* Close */
.close {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 88vh; display: flex; align-items: center;
    border-top: 1px solid var(--hair);
}
.close-img {
    position: absolute; inset: 0 0 0 auto; z-index: -2;
    width: 62%; height: 100%; object-fit: cover; object-position: 40% 50%;
}
.close-shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, var(--bg) 38%, rgba(11, 11, 12, .55) 58%, rgba(11, 11, 12, 0) 80%);
}
.close-copy { width: 100%; max-width: 1280px; margin: 0 auto; padding: var(--section) var(--gutter); }
.close-copy > * { max-width: 38rem; }
.close .display { margin-bottom: 26px; }

.foot { border-top: 1px solid var(--hair); padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.foot-row {
    max-width: 1280px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center;
    color: var(--muted); font-size: .8125rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
/* Second footer line: the legal pages, centred under the first */
.foot .foot-legal { max-width: 1280px; margin: 8px auto 0; justify-content: center; gap: 0 24px; color: var(--muted); font-size: .75rem; }
.foot a { padding: 12px 0; transition: color .3s var(--ease); }
.foot a:hover { color: var(--gold-l); }

/* Tablet */
@media (max-width: 1024px) {
    .bar-nav { display: none; }
    .addon-head, .courses-head { grid-template-columns: 1fr; }
    .act { grid-template-columns: 1fr auto; }
    .act-text { grid-column: 1 / -1; grid-row: 2; }
    .course-list { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 760px) {
    .bar { padding: 14px var(--gutter); }
    .brand-name, .brand-x { display: none; }
    .brand-pz { font-size: .8rem; letter-spacing: .2em; }
    .bar-link { display: none; }

    .hero { min-height: 0; display: block; }
    .hero-img { position: relative; left: 0; width: 100%; height: 64svh; min-height: 420px; object-position: 50% 22%; }
    .hero-shade {
        background:
            linear-gradient(180deg, rgba(11, 11, 12, .75) 0%, rgba(11, 11, 12, 0) 16%),
            linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, .9) 24%, rgba(11, 11, 12, 0) 52%);
        inset: 0 0 auto; height: calc(64svh + 2px); min-height: 422px;
    }
    .hero-copy { margin-top: -96px; padding-top: 0; padding-bottom: 56px; position: relative; }
    .hero-lede { font-size: 1.0625rem; }
    .cta .btn { flex: 1 1 100%; }
    .ledger { gap: 14px 32px; }

    .turn { grid-template-columns: 1fr; }
    .turntable { max-width: 300px; margin: 0 auto; }
    .act { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
    .act .soon { justify-self: start; }
    .act-text { grid-row: auto; }

    .strength-grid { grid-template-columns: 1fr; }
    .phone { max-width: 280px; margin: 0 auto; }

    .polina { grid-template-columns: 1fr; }
    .polina-photo { min-height: 0; aspect-ratio: 4 / 5; }

    .course { grid-template-columns: 88px 1fr; gap: 18px; }
    .course-title { font-size: 1.15rem; }

    .close { display: block; min-height: 0; }
    .close-img { position: relative; width: 100%; height: 60svh; min-height: 380px; }
    .close-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, 0) 40%); height: 60svh; min-height: 380px; }
    .close-copy { padding-top: 8px; }
}
