/* ============================================================
   GYROTONIC SEDONA · site styles
   Palette: high-desert mineral. Bone paper, ink, fired clay,
   juniper. Spiral motifs stand in for photography at launch.
   ============================================================ */

:root {
    --bone: #F4EEE2;
    --bone-deep: #EAE1CF;
    --ink: #23201B;
    --ink-soft: #4A443B;
    --clay: #B0512A;
    --clay-deep: #8A3D1F;
    --juniper: #5C6B58;
    --juniper-deep: #3F4B3C;
    --line: rgba(35, 32, 27, 0.16);
    --line-light: rgba(244, 238, 226, 0.22);
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
    --max: 1120px;
    --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bone);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--clay); color: var(--bone); }

img, svg { max-width: 100%; display: block; }

a { color: var(--clay-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: var(--bone); padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

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

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

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--clay); }

.dark h1 em, .dark h2 em, .dark h3 em { color: var(--clay); }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay-deep);
    margin-bottom: 1.1rem;
}
.dark .eyebrow { color: var(--clay-deep); }

.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }
.dark .lede { color: var(--ink-soft); }

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }

/* "dark" sections are now warm contrast bands, not black: uplifting, still rhythmic */
.dark { background: var(--bone-deep); color: var(--ink); }
.dark a { color: var(--clay-deep); }
/* Clay accent band: the membership-card orange, one strong warm stripe per page */
.juniper-bg { background: var(--clay); color: var(--bone); }
.juniper-bg .eyebrow { color: rgba(244, 238, 226, 0.85); }
.juniper-bg h1 em, .juniper-bg h2 em, .juniper-bg h3 em { color: #FBE3C4; }
.juniper-bg .lede, .juniper-bg p { color: rgba(250, 244, 232, 0.94); }
.juniper-bg a { color: var(--bone); }
.juniper-bg .card { border-color: rgba(244, 238, 226, 0.4); background: rgba(255, 255, 255, 0.1); }
.juniper-bg .card p { color: rgba(250, 244, 232, 0.92); }
.juniper-bg .num { color: #FBE3C4; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 238, 226, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: var(--max); margin: 0 auto;
    padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.nav-logo svg { width: 30px; height: 30px; }
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand .tm { font-size: 0.55em; vertical-align: super; }

.nav-links { list-style: none; display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.7rem); }
.nav-links a {
    text-decoration: none; color: var(--ink-soft);
    font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--clay-deep); }

.nav-cta, .btn {
    display: inline-block;
    background: var(--clay); color: var(--bone) !important;
    padding: 0.62rem 1.35rem;
    border-radius: 99px;
    font-weight: 600; font-size: 0.92rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover, .btn:hover { background: var(--clay-deep); transform: translateY(-1px); }

.btn-ghost {
    background: transparent; color: var(--ink) !important;
    border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bone) !important; }
.dark .btn-ghost { color: var(--ink) !important; border-color: var(--ink); }
.dark .btn-ghost:hover { background: var(--ink); color: var(--bone) !important; }

.btn-big { padding: 0.95rem 2rem; font-size: 1.02rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bone);
        border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: flex-start;
        padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
        gap: 1.1rem;
    }
    .nav-links.open { display: flex; }
}

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

.hero {
    padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
    overflow: hidden;
}

.hero-grid {
    max-width: var(--max); margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

.hero .sub-headline { margin: 1.5rem 0 2.2rem; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

.spin-slow { animation: spin 90s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .spin-slow { animation: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 320px; margin: 0 auto; order: -1; }
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2.4rem; }
.hero-badges span {
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
    color: var(--ink-soft); text-transform: uppercase;
    display: flex; align-items: center; gap: 0.45rem;
}
.hero-badges span::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--clay); flex-shrink: 0;
}

/* ---------- shared blocks ---------- */

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.two-col {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

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

/* 4-card grids: 4-up, then 2x2, then stacked. Never 3+1 with an orphan. */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    background: rgba(255, 255, 255, 0.35);
}
.dark .card { border-color: var(--line); background: rgba(255, 255, 255, 0.5); }
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.98rem; color: var(--ink-soft); }
.dark .card p { color: var(--ink-soft); }

.num {
    font-family: var(--serif); font-size: 2.2rem; color: var(--clay);
    line-height: 1; margin-bottom: 0.9rem; display: block;
}
.dark .num { color: var(--clay); }

/* contrast table: lines vs spirals */

.contrast {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.contrast > div { padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.contrast .side-a { border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.3); }
.contrast .side-b { background: var(--clay); color: var(--bone); }
.contrast h3 { margin-bottom: 1.1rem; }
.contrast .side-b h3 em { color: #FBE3C4; }
.contrast ul { list-style: none; }
.contrast li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.contrast .side-b li { border-color: var(--line-light); }
.contrast li:last-child { border-bottom: 0; }
@media (max-width: 700px) {
    .contrast { grid-template-columns: 1fr; }
    .contrast .side-a { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- pricing ---------- */

.price-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem; align-items: stretch;
}
@media (max-width: 1060px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.7rem; background: rgba(255, 255, 255, 0.4);
    display: flex; flex-direction: column;
}
.price-card .label {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem;
}
.price-card .amount { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.1rem); line-height: 1; }
.price-card .per { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.45rem; }
.price-card .detail { font-size: 0.95rem; color: var(--ink-soft); margin-top: 1.1rem; flex-grow: 1; }
.price-card.featured { background: var(--clay); color: var(--bone); border-color: var(--clay); }
.price-card.featured .label { color: rgba(244, 238, 226, 0.9); }
.price-card.featured .per, .price-card.featured .detail { color: rgba(244, 238, 226, 0.88); }
.price-card.featured .btn { background: var(--ink); }
.price-card.featured .btn:hover { background: #3a352e; }
.price-card .btn { margin-top: 1.4rem; text-align: center; }

.terms { list-style: none; margin-top: 1rem; }
.terms li { padding: 0.7rem 0 0.7rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; font-size: 0.98rem; }
.terms li::before { content: ""; position: absolute; left: 0; top: 1.18rem; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.terms li:last-child { border-bottom: 0; }

/* ---------- faq ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    cursor: pointer; list-style: none;
    font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    padding: 1.4rem 3rem 1.4rem 0; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; position: absolute; right: 0.4rem; top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans); font-size: 1.5rem; font-weight: 300; color: var(--clay);
    transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer { padding: 0 0 1.6rem; max-width: 680px; color: var(--ink-soft); }
.faq-list .answer p + p { margin-top: 0.8rem; }

/* ---------- big CTA ---------- */

.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 1.2rem; }
.cta-final .lede { max-width: 620px; margin: 0 auto 2.2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.dark .cta-note { color: var(--ink-soft); }

/* ---------- ornaments ---------- */

.spiral-ornament { position: absolute; opacity: 0.1; pointer-events: none; }
.arc-divider { display: block; margin: 0 auto; width: 88px; }

/* Infinity divider: a figure-8 with a stroke that travels the loop forever,
   echoing the figure-eight arm circles of the method. */
.infinity-divider { display: block; margin: 0 auto; width: 150px; overflow: visible; }
.infinity-divider .track { stroke: rgba(35, 32, 27, 0.18); stroke-width: 1.6; fill: none; }
.dark .infinity-divider .track { stroke: rgba(35, 32, 27, 0.18); }
.infinity-divider .runner {
    stroke: var(--clay); stroke-width: 3.2; fill: none; stroke-linecap: round;
    stroke-dasharray: 0.18 0.82;
    animation: infinity-flow 6s linear infinite;
}
.dark .infinity-divider .runner { stroke: var(--clay); }
@keyframes infinity-flow { to { stroke-dashoffset: -1; } }
@media (prefers-reduced-motion: reduce) { .infinity-divider .runner { animation: none; stroke-dasharray: none; } }

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

.site-footer {
    background: var(--clay-deep); color: rgba(244, 238, 226, 0.85);
    padding: clamp(3rem, 6vw, 4.5rem) 0 2.2rem;
    font-size: 0.92rem;
}
.footer-grid {
    max-width: var(--max); margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--bone); display: inline-block; margin-bottom: 0.8rem; }
.site-footer h4 {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #D98A5F; margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(244, 238, 226, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--bone); text-decoration: underline; }
.footer-legal {
    max-width: var(--max); margin: 2.8rem auto 0;
    padding: 1.6rem clamp(1.25rem, 4vw, 2.5rem) 0;
    border-top: 1px solid rgba(244, 238, 226, 0.14);
    font-size: 0.8rem; color: rgba(244, 238, 226, 0.5); line-height: 1.7;
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
