/* Journey pages: /treatments, the category pages, /start, the peptide guide, 404, return and intake.
   Builds on the tokens and components in site.css. */
.journey-main { padding: calc(var(--nav-h) + clamp(24px, 5vw, 64px)) 0 clamp(64px, 9vw, 120px); min-height: 75vh; }
.journey-hero { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.journey-hero .stage { aspect-ratio: 16 / 11; }
@media (min-width: 560px) and (max-width: 959px) { .journey-hero .stage { aspect-ratio: 2 / 1; } }
@media (min-width: 960px) { .journey-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .journey-hero .stage { aspect-ratio: 5 / 4; } }
.journey-intro { max-width: 720px; }
.journey-hero .journey-intro { margin-bottom: 0; }
.journey-intro h1 { font-size: var(--step-1); font-weight: 300; line-height: 1.04; letter-spacing: -.025em; margin: 14px 0 22px; -webkit-hyphens: auto; hyphens: auto; }
.journey-intro h1 em { color: var(--terracotta-text); }
.journey-intro > p { font-size: var(--lede); color: var(--text-muted); margin: 16px 0 0; max-width: 60ch; }
.journey-intro > p.journey-fine { font-size: 14px; }
.journey-group { margin-top: clamp(48px, 7vw, 88px); }
.journey-group > h2 { font-size: var(--step-2); margin-bottom: 22px; max-width: 22ch; }
.journey-group > p { color: var(--text-muted); max-width: 62ch; }
.journey-group > .journey-fine { margin-top: 18px; max-width: 76ch; }

/* Treatment list: thumbnail + text rows on phones, tiles from tablet up */
.treatment-grid { display: grid; gap: 12px; }
.treatment-card {
    position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start;
    padding: 12px; border-radius: var(--r-card);
    background: var(--warm-white); border: 1px solid var(--line);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
a.treatment-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
a.treatment-card:active { transform: scale(.985); transition-duration: 90ms; }
.card-thumb { aspect-ratio: 1; border-radius: 16px; }
.card-thumb .stage-art { padding: 8% 12% 12%; }
.card-thumb .art-orbs { width: 92%; }
.card-thumb .stage-floor { bottom: 8%; }
.card-text { display: grid; align-content: start; gap: 4px; padding: 6px 6px 6px 0; min-width: 0; }
.treatment-card h3 { font-size: 21px; line-height: 1.2; margin: 2px 0 4px; overflow-wrap: anywhere; }
.treatment-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.card-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--forest); font-size: 14.5px; font-weight: 600; }
.card-action svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
a.treatment-card:hover .card-action svg { transform: translateX(4px); }
@media (min-width: 640px) {
    .treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .treatment-card { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
    .card-thumb { aspect-ratio: 16 / 10; border-radius: 0; }
    .card-thumb .art-orbs { width: 50%; }
    .card-text { padding: 20px 22px 24px; }
}
@media (min-width: 1000px) { .treatment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Text-only cards (peptide guide examples) */
.treatment-card--text { display: grid; grid-template-columns: 1fr; gap: 10px; padding: clamp(22px, 3vw, 32px); }
.treatment-card--text h3 { font-size: var(--step-3); }

/* Panels (/start, 404, return, intake) */
.journey-narrow { max-width: 860px; }
.journey-back {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
    color: var(--forest); font-weight: 600;
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
    text-decoration-color: rgba(61, 90, 76, .4);
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    transition: text-decoration-color var(--dur) var(--ease-out);
}
.journey-back:hover { text-decoration-color: currentColor; }
.journey-panel {
    background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--r-stage);
    padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-card);
}
.journey-panel h1 { font-size: var(--step-1); font-weight: 300; letter-spacing: -.02em; margin: 12px 0 14px; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.journey-panel > p { margin: 16px 0; color: var(--text-muted); max-width: 62ch; }
.journey-panel > p.journey-fine { font-size: 14px; }
.panel-art { aspect-ratio: 16 / 7; margin-bottom: clamp(20px, 3vw, 32px); border-radius: 20px; }
.panel-art .art-orbs { width: 40%; }
.journey-steps { list-style: none; counter-reset: journey; margin: 28px 0 30px; display: grid; gap: 0; }
.journey-steps li {
    counter-increment: journey; position: relative;
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 16px; padding: 0 0 22px;
}
.journey-steps li:last-child { padding-bottom: 0; }
.journey-steps li::before {
    content: counter(journey); grid-row: span 2;
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--mist); color: var(--forest); font-family: var(--font-display); font-size: 18px; font-weight: 500;
}
.journey-steps li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.journey-steps strong { color: var(--deep-green); font-weight: 600; padding-top: 8px; overflow-wrap: anywhere; }
.journey-steps span { color: var(--text-muted); font-size: 14.5px; overflow-wrap: anywhere; }
.journey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.journey-actions .journey-back { margin: 0; }
@media (max-width: 559px) {
    .journey-panel .btn { width: 100%; white-space: normal; }
    .journey-actions .btn { width: 100%; }
}

/* Care-path band on category pages */
.journey-band { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-stage); background: var(--linen); }
.journey-band h2 { font-size: var(--step-2); }
.journey-band p { color: var(--text-muted); max-width: 56ch; }
.journey-band .journey-actions { margin-top: 6px; }
@media (min-width: 900px) { .journey-band { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .journey-band .journey-actions { margin: 0; } }

/* Peptide guide */
.peptide-guide .journey-hero .stage { aspect-ratio: 16 / 11; }
@media (min-width: 560px) and (max-width: 959px) { .journey-hero .stage { aspect-ratio: 2 / 1; } }
.peptide-guide h2 { font-size: var(--step-2); line-height: 1.15; }
.peptide-guide .peptide-reading { max-width: 760px; }
.peptide-guide .peptide-reading p, .peptide-basics p { margin-top: 16px; color: var(--text-muted); font-size: 16.5px; }
.peptide-guide .journey-intro .journey-back { margin-top: 22px; }
.peptide-basics { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .peptide-basics { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; } }
.peptide-structure { background: var(--blush-mist); padding: 36px 20px; border-radius: 20px; text-align: center; margin: 0; }
.peptide-beads { display: flex; justify-content: center; align-items: center; margin: 8px 0 26px; }
.peptide-beads span { width: 30px; height: 30px; border-radius: 50%; position: relative; flex-shrink: 0; background: radial-gradient(circle at 35% 30%, #FFFFFF, #CFDFD4 45%, #6F8E7B); box-shadow: 0 6px 12px -6px rgba(29, 47, 38, .5); }
.peptide-beads span + span { margin-left: 10px; }
.peptide-beads span + span::before { content: ''; width: 12px; height: 2px; background: var(--forest); position: absolute; right: 100%; top: 14px; opacity: .6; }
.peptide-beads span:nth-child(even) { background: radial-gradient(circle at 35% 30%, #FFFFFF, #F1DCD1 45%, #B37D65); }
.peptide-structure figcaption { font-size: 14px; line-height: 1.7; color: var(--text); }
.peptide-structure small { display: block; margin-top: 12px; color: var(--text-muted); font-size: 12.5px; }
.peptide-examples { margin-top: 28px; }
.peptide-examples h3 { margin: 4px 0 6px; }
.peptide-examples .journey-fine { margin-top: auto; padding-top: 8px; }
.peptide-nad, .peptide-questions { margin-top: clamp(40px, 6vw, 72px); }
.peptide-nad > p { max-width: 70ch; }
.peptide-questions { scroll-margin-top: calc(var(--nav-offset) + 24px); }
.peptide-sources h2 { font-size: var(--step-3); }
.peptide-sources ul { padding-left: 20px; margin-top: 12px; }
.peptide-sources li { margin: 12px 0; }
.peptide-sources a { display: inline-block; padding: 3px 0; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 559px) { .peptide-structure { padding: 28px 12px; } .peptide-beads span { width: 24px; height: 24px; } .peptide-beads span + span { margin-left: 8px; } .peptide-beads span + span::before { width: 8px; top: 11px; } }

/* Very narrow viewports (a small phone at 200% zoom) */
@media (max-width: 259px) {
    .treatment-card { grid-template-columns: 1fr; gap: 10px; }
    .card-thumb { aspect-ratio: 16 / 10; }
    .card-text { padding: 0 4px 6px; }
    .treatment-card h3 { font-size: 18px; }
    .treatment-card--text { padding: 16px 12px; }
    .journey-panel { padding: 18px 14px; }
    .journey-steps li { grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; }
    .journey-steps li::before { width: 30px; height: 30px; font-size: 15px; }
    .journey-steps li:not(:last-child)::after { left: 14px; top: 34px; }
    .journey-band { padding: 18px 14px; }
    .peptide-structure { padding: 20px 8px; }
    .peptide-beads span { width: 16px; height: 16px; }
    .peptide-beads span + span { margin-left: 6px; }
    .peptide-beads span + span::before { width: 6px; top: 7px; }
    .peptide-sources a { overflow-wrap: anywhere; }
}

/* Legal pages (/terms, /privacy, /refund-policy and the privacy notices): long text in one panel */
.legal h2 { font-size: var(--step-3); margin: 36px 0 12px; overflow-wrap: anywhere; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal > p, .legal li { color: var(--text); max-width: 72ch; }
.legal > p { margin: 12px 0; }
.legal ul { margin: 12px 0; padding-left: 1.25em; display: grid; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .legal-table { overflow-x: auto; margin: 18px 0; }
.legal table { border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal .legal-signal { padding: 14px 16px; border-radius: 14px; background: var(--mist); color: var(--deep-green); font-weight: 600; }
