/* ============================================================
   Pilates by Harper
   Same look as the app (Theme.swift): sage green, warm bone
   background, white cards, forest-ink text, Poppins throughout.
   ============================================================ */

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* App colors */
    --sage: #83917b;        /* brand green, from the logo */
    --sage-deep: #5e7259;   /* buttons and dark bands (white text stays readable) */
    --sage-mist: #e6ece3;   /* light tinted fills */
    --clay: #d4a98c;
    --honey: #ecc06a;

    --cream: #f7f5f0;       /* page background ("bone" in the app) */
    --cream-deep: #e6ece3;
    --white: #ffffff;
    --ink: #2e3a2f;         /* text: very dark green instead of black */
    --ink-soft: #3d4a3e;
    --muted: #7b847a;
    --line: #e2e6df;
    --radius: 24px;
    --radius-sm: 16px;
    --serif: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow-soft: 0 18px 50px -22px rgba(46, 58, 47, .22);
    --shadow-card: 0 10px 32px -18px rgba(46, 58, 47, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--sage-mist); color: var(--ink); }

/* ---------- type ---------- */

h1, h2, h3, .serif {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

h1 em, h2 em, h3 em, .serif em {
    font-style: normal;
    font-weight: 600;
    color: var(--sage);
}

.eyebrow {
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ---------- buttons ---------- */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.9rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--sage-deep);
    color: var(--cream);
    box-shadow: var(--shadow-card);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-secondary:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }

.store-badge svg { display: block; height: 52px; width: auto; }

.store-badge {
    display: inline-block;
    border-radius: 13px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ---------- nav ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem clamp(1.2rem, 5vw, 4rem);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease;
}

.site-nav.scrolled { border-bottom-color: var(--line); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--line);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    font-size: .95rem;
    font-weight: 500;
}

.nav-links a { text-decoration: none; color: var(--ink-soft); }

.nav-links a:hover { color: var(--ink); }

.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--cream); }

.nav-links .btn-primary { padding: .6rem 1.3rem; font-size: .92rem; }

@media (max-width: 720px) {
    .nav-links a:not(.btn-primary) { display: none; }
}

/* ---------- hero ---------- */

.home-hero {
    display: grid;
    /* One column for now: no app screenshot yet. Back to two columns (text | phone) when there is one. */
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.home-hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.6rem);
    margin-bottom: 1.4rem;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
}

.stars { color: var(--ink); letter-spacing: .12em; font-size: .95rem; }

/* phone visual */

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-phone {
    width: min(320px, 78vw);
    height: auto;
    filter: drop-shadow(0 40px 60px rgba(46, 58, 47, .28));
    transform: rotate(2.5deg);
}

.float-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: .7rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.35;
    animation: float 5.5s ease-in-out infinite;
}

.float-card small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.float-card.fc-streak { top: 14%; left: -2%; animation-delay: .4s; }
.float-card.fc-day { bottom: 20%; right: -4%; animation-delay: 1.6s; }

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

@media (max-width: 900px) {
    .home-hero { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin-inline: auto; }
    .hero-actions, .hero-proof { justify-content: center; }
    .hero-visual { margin-top: 1.5rem; }
    .hero-phone { width: min(250px, 62vw); }
    .float-card.fc-streak { left: 4%; }
    .float-card.fc-day { right: 4%; }
}

/* ---------- challenge ticker ---------- */

.ticker {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: .95rem 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    /* script.js repeats the words to fill the screen and sets the duration, so the speed stays the same */
    animation: ticker var(--ticker-seconds, 38s) linear infinite;
}

.ticker span {
    font-family: var(--serif);
    font-size: 1.05rem;
    margin: 0 1.4rem;
}

.ticker i { font-style: normal; color: var(--muted); }

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .float-card { animation: none; }
}

/* ---------- shared section chrome ---------- */

.section {
    padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 4rem);
}

.section-inner { max-width: 1180px; margin: 0 auto; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: .9rem; }

.section-head p { color: var(--muted); font-size: 1.08rem; }

.section-head.centered { margin-inline: auto; text-align: center; }

.section.on-white { background: var(--white); }

/* ---------- screenshots ---------- */

.shots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: start;
}

.shot-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease;
    margin: 0;
}

.shot-card:hover { transform: translateY(-6px); }

.shot-card img { width: 100%; }

.shot-card figcaption {
    padding: .9rem 1.2rem 1.1rem;
    font-size: .92rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: var(--white);
}

.shots-grid .shot-card:nth-child(2) { transform: translateY(1.6rem); }

.shots-grid .shot-card:nth-child(2):hover { transform: translateY(calc(1.6rem - 6px)); }

@media (max-width: 820px) {
    .shots-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
    .shots-grid .shot-card:nth-child(2) { transform: none; }
}

/* ---------- how it works ---------- */

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
}

.step-number {
    font-family: var(--serif);
    font-style: italic;
    font-size: 2rem;
    color: var(--muted);
    display: block;
    margin-bottom: .9rem;
}

.step-card h3 { font-size: 1.35rem; margin-bottom: .55rem; }

.step-card p { color: var(--muted); font-size: .98rem; }

/* ---------- challenges ---------- */

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.3rem;
}

.challenge-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.challenge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.challenge-card h3 { font-size: 1.45rem; }

.challenge-card .joined {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.challenge-card ul {
    list-style: none;
    color: var(--ink-soft);
    font-size: .93rem;
    display: grid;
    gap: .3rem;
    margin-top: .2rem;
}

.challenge-card ul li::before { content: '→ '; color: var(--muted); }

.challenge-card .more { color: var(--muted); font-size: .88rem; font-style: italic; }

/* ---------- guides ---------- */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.3rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.guide-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.guide-card p { color: var(--muted); font-size: .95rem; }

.guide-card .read-more {
    font-weight: 600;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

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

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .9rem; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.4rem;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.faq-item summary::after {
    content: '+';
    font-family: var(--sans);
    font-size: 1.3rem;
    color: var(--muted);
    transition: transform .2s ease;
    flex-shrink: 0;
}

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

.faq-item .faq-answer {
    padding: 0 1.4rem 1.3rem;
    color: var(--ink-soft);
    font-size: .98rem;
}

.faq-item .faq-answer a { font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--sage-deep);
    color: var(--cream);
    text-align: center;
    padding: clamp(4rem, 9vw, 6.5rem) clamp(1.2rem, 5vw, 4rem);
}

.cta-band .cta-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin: 0 auto 1.6rem;
    box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .35);
}

.cta-band h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
}

.cta-band p {
    color: rgba(255, 255, 255, .72);
    font-size: 1.1rem;
    max-width: 34rem;
    margin: 0 auto 2.2rem;
}

.cta-band .cta-note { font-size: .88rem; margin-top: 1.2rem; margin-bottom: 0; }

/* ---------- footer ---------- */

footer {
    background: var(--cream);
    border-top: 1px solid var(--line);
    padding: 2.6rem clamp(1.2rem, 5vw, 4rem) 2.2rem;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto 1.8rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-grid .brand { margin-bottom: .7rem; }

.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 24rem; }

.footer-col h4 {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8rem;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: .95rem;
    padding: .18rem 0;
}

.footer-col a:hover { color: var(--ink); }

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 1.6rem;
}

.footer-links { display: flex; gap: 1.4rem; }

.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }

.footer-links a:hover { color: var(--ink); }

.copyright { color: var(--muted); font-size: .88rem; }

.footer-brand { font-size: 1.05rem; }

.footer-brand img { width: 28px; height: 28px; }

/* ---------- fade-in ---------- */

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- guide / article pages ---------- */

.article {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 1.4rem clamp(3rem, 7vw, 5rem);
}

.article .eyebrow { margin-bottom: .8rem; }

.article h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 1.1rem;
}

.article .lede {
    font-size: 1.18rem;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

.article h2 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    margin: 2.6rem 0 .9rem;
}

.article h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }

.article p { margin-bottom: 1.05rem; color: var(--ink-soft); }

.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; color: var(--ink-soft); }

.article li { margin-bottom: .45rem; }

.article a { color: var(--ink); font-weight: 600; }

.article .rules-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
    margin: 1.4rem 0 1.8rem;
}

.article .rules-card h3 { margin-top: 0; }

.article .rules-card ul { margin-bottom: 0; list-style: none; margin-left: 0; }

.article .rules-card li::before { content: '→ '; color: var(--muted); }

.article-cta {
    background: var(--sage-deep);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    text-align: center;
    margin: 2.8rem 0 1rem;
}

.article-cta h2 { margin: 0 0 .7rem; font-size: 1.8rem; color: var(--cream); }

.article-cta p { color: rgba(255, 255, 255, .75); margin-bottom: 1.5rem; }

.breadcrumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.breadcrumbs a { color: var(--muted); font-weight: 500; }

.related-guides { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.8rem; }

.related-guides h2 { margin-top: 0; font-size: 1.5rem; }

.related-guides ul { list-style: none; margin-left: 0; }

.related-guides li::before { content: '→ '; color: var(--muted); }

/* ---------- legal pages (privacy / terms / support) ---------- */

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 1.4rem;
}

.page-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: .6rem;
}

.page-content h2 { font-size: 1.5rem; margin: 2rem 0 .7rem; }

.page-content p, .page-content li { color: var(--ink-soft); margin-bottom: .8rem; }

.page-content ul { margin-left: 1.3rem; }

.updated { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
