/* ==========================================================================
   Inner pages: page header, prose column, contact form
   ========================================================================== */

:root { --section-y: clamp(3.5rem, 2.4rem + 3vw, 6rem); }

/* Page header ------------------------------------------------------------- */
.page-header {
    background: var(--sage-tint);
    padding-block: clamp(3rem, 2.2rem + 2.4vw, 5rem);
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
    line-height: 1.14;
    max-width: 22ch;
    margin-bottom: .75rem;
}

.page-header p {
    font-size: 1.0625rem;
    color: var(--ink-muted);
    max-width: 58ch;
    margin: 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    margin-bottom: 1.25rem;
    font-size: .8125rem;
    color: var(--ink-muted);
}

.breadcrumb a { color: var(--sage-deep); font-weight: 600; text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; color: var(--line); }

@media (hover: hover) and (pointer: fine) {
    .breadcrumb a:hover { text-decoration: underline; }
}

.page-header__actions { margin-top: 1.75rem; }

/* Prose ------------------------------------------------------------------- */
.page-body { padding-block: var(--section-y); background: var(--ivory); }
.page-body--tint { background: var(--sage-tint); }

/* Week-by-week ------------------------------------------------------------ */
.week-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

/* Left column is sized to its own content so no blank column is left over */
.week {
    background: var(--ivory);
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
    align-items: start;
}

.week__head h3 {
    font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem);
    margin: .9rem 0 0;
}

.week__body .ticks { margin-top: 0; }

.week__note {
    margin: 0;
    font-size: .9375rem;
    color: var(--ink-muted);
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

/* Numbered levers --------------------------------------------------------- */
.levers { background: var(--sage-tint); padding-block: var(--section-y); }

.lever-list { display: grid; gap: 1.5rem; }

.lever {
    background: var(--ivory);
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.85rem 2rem 2rem;
}

.lever__num {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--sage-deep);
    line-height: 1;
    padding-top: .15rem;
}

.lever__icon { color: var(--sage-deep); display: inline-flex; padding-top: .1rem; }
.lever__icon .icon { width: 1.6rem; height: 1.6rem; }

.lever h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.lever p { margin: 0; color: var(--ink-muted); font-size: .9375rem; }

/* Module rows ------------------------------------------------------------- */
.module-list { display: grid; }

.module-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    padding-block: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.module-row:first-child { border-top: 1px solid var(--line); }

.module-row__head { display: flex; align-items: center; gap: 1rem; }

.module-row__num {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--sage-deep);
    line-height: 1;
}

.module-row__icon { color: var(--sage-deep); display: inline-flex; }
.module-row__icon .icon { width: 1.75rem; height: 1.75rem; }

.module-row__body { max-width: 68ch; }
.module-row__body h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-bottom: .3rem; }

.module-row__sub {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: .9rem;
}

.module-row__body p:last-child { margin: 0; color: var(--ink-muted); }

/* Feature panel ----------------------------------------------------------- */
.feature-panel {
    background: var(--ivory);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
    gap: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
    align-items: center;
    padding: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}

.feature-panel h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: .8rem; }
.feature-panel .btn { margin-top: 1.5rem; }

.feature-panel__cover {
    width: 100%;
    max-width: 17rem;
    height: auto;
    justify-self: center;
    box-shadow: 0 18px 46px rgba(11, 80, 99, .2);
}

.specs--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.specs--wide a { color: var(--sage-deep); }

/* Type cards as links ----------------------------------------------------- */
.type-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, transform .2s ease;
}

.type-card--link h2 { font-size: 1.375rem; line-height: 1.25; margin-bottom: .4rem; }

.type-card__more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--teal);
}

.type-card__more .icon { width: 1.05rem; height: 1.05rem; }

@media (hover: hover) and (pointer: fine) {
    .type-card--link:hover { border-top-color: var(--sage-deep); }
    .type-card--link:hover .type-card__more { color: var(--sage-deep); }
}

/* Alternating split with a solid panel ------------------------------------ */
.split--alt { background: var(--sage-tint); }
.split__inner--rev > .split__panel { order: 2; }

.split__panel {
    background: var(--teal);
    color: var(--ivory);
    padding: clamp(1.85rem, 1.4rem + 1.6vw, 2.75rem);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split__panel h2 { color: var(--white); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin-bottom: .4rem; }
.split__panel .type-card__label { color: rgba(247, 244, 236, .75); }
.split__panel .type-card__driver { color: var(--sage-light); margin-bottom: 1rem; }
.split__panel p:last-child { margin: 0; color: rgba(247, 244, 236, .9); font-size: .9375rem; }

.split__panel-icon { color: var(--sage); display: inline-flex; margin-bottom: 1.25rem; }
.split__panel-icon .icon { width: 2rem; height: 2rem; }

.split__body h3 {
    font-size: 1.1875rem;
    margin-bottom: .75rem;
}

.split__body h3 + .ticks { margin-top: 0; }
.split__body .ticks + h3 { margin-top: 1.75rem; }

.note-card--wide { max-width: 74ch; }
.note-card--wide h2 { font-size: 1.3rem; margin-bottom: .8rem; }

/* Product buy panel ------------------------------------------------------- */
.buy { background: var(--sage-tint); padding-block: clamp(2.5rem, 1.8rem + 2.4vw, 4.5rem); }

.buy__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
    align-items: start;
}

.buy__cover {
    width: 100%;
    max-width: 22rem;
    height: auto;
    box-shadow: 0 24px 60px rgba(11, 80, 99, .22);
}

.buy__body h1 {
    font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
    line-height: 1.14;
    margin-bottom: 1rem;
}

.buy__lede { font-size: 1.0625rem; max-width: 52ch; }

.buy__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 1.75rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.buy__was {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--ink-muted);
    text-decoration: line-through;
}

.buy__now {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 1.9rem + 2.2vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    color: var(--teal);
}

.buy__label {
    flex-basis: 100%;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

.buy__cta { width: 100%; max-width: 22rem; }

.buy__trust {
    list-style: none;
    display: grid;
    gap: .7rem;
    margin: 1.75rem 0 0;
}

.buy__trust li { display: flex; align-items: flex-start; gap: .8rem; font-size: .9375rem; }
.buy__trust .icon { width: 1.15rem; height: 1.15rem; margin-top: .25rem; color: var(--sage-deep); }

.pending--slim { margin-top: 1.75rem; padding: 1.1rem 1.35rem; }
.pending--slim .pending__label { margin-bottom: .4rem; }

.pricing__list--flush { padding-top: 0; border-top: 0; }

.guarantee-card--wide { margin: 0; max-width: 62rem; }
.guarantee-card--wide h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem); margin-bottom: .6rem; }

/* Grouped FAQ ------------------------------------------------------------- */
.faq-page {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
    align-items: start;
}

.faq-index { position: sticky; top: calc(var(--announce-h) + var(--header-h) + 2rem); }
.faq-index ul { list-style: none; display: grid; gap: .55rem; }

.faq-index a {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
    .faq-index a:hover { border-bottom-color: var(--sage); }
}

.faq-groups { display: grid; gap: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); }

.faq-group h2 {
    font-size: clamp(1.3rem, 1.1rem + .9vw, 1.6rem);
    padding-bottom: .75rem;
    margin-bottom: 0;
    border-bottom: 2px solid var(--sage);
}

.prose { max-width: 68ch; }

.prose h2 {
    font-size: clamp(1.35rem, 1.15rem + .7vw, 1.65rem);
    margin-top: 2.5rem;
    margin-bottom: .75rem;
}

.prose h2:first-child { margin-top: 0; }

.prose ul { list-style: none; display: grid; gap: .65rem; margin: 0 0 1.25rem; }

.prose ul li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.6;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: .55rem;
    height: 1px;
    background: var(--sage);
}

.prose__meta {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: .875rem;
    color: var(--ink-muted);
}

/* Contact ----------------------------------------------------------------- */
.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
    gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
    align-items: start;
}

.form-field { display: grid; gap: .45rem; margin-bottom: 1.25rem; }

.form-field label {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

.form-field .req { color: var(--teal); }

.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    width: 100%;
}

.form-field textarea { min-height: 10rem; resize: vertical; }

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: 3px solid var(--sage-deep);
    outline-offset: 1px;
    border-color: var(--sage-deep);
}

/* Honeypot: hidden from people, still reachable by naive bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note { font-size: .8125rem; color: var(--ink-muted); margin: 1rem 0 0; }

.form-status {
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    border-left: 3px solid;
    font-size: .9375rem;
}

.form-status--ok   { background: var(--sage-tint); border-color: var(--sage-deep); color: var(--ink); }
.form-status--fail { background: #FBEDE9; border-color: #A6412C; color: #7A2E1F; }

.contact-aside {
    background: var(--sage-tint);
    border-left: 3px solid var(--sage);
    padding: 1.75rem 1.85rem 2rem;
}

.contact-aside h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.contact-aside dl { display: grid; gap: 1.1rem; margin: 0; }
.contact-aside dt {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: .2rem;
}
.contact-aside dd { margin: 0; font-size: .9375rem; }
.contact-aside a { color: var(--teal); font-weight: 600; }

/* Not found --------------------------------------------------------------- */
.notfound { text-align: center; padding-block: clamp(4rem, 3rem + 4vw, 8rem); }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1rem; }
.notfound p { max-width: 46ch; margin-inline: auto; color: var(--ink-muted); }
.notfound .btn { margin-top: 2rem; }

@media (max-width: 1024px) {
    .specs--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .faq-page { grid-template-columns: minmax(0, 1fr); }
    .faq-index { position: static; }
    .faq-index ul { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
}

@media (max-width: 860px) {
    .contact__inner,
    .week,
    .feature-panel,
    .buy__inner { grid-template-columns: minmax(0, 1fr); }

    .buy__cover { max-width: 17rem; }
    .buy__cta { max-width: none; }
    .guarantee-card--wide { flex-direction: column; gap: 1.1rem; }

    .week__head { display: flex; align-items: center; gap: 1rem; }
    .week__head h3 { margin: 0; }

    .split__inner--rev > .split__panel { order: 0; }

    .feature-panel__cover { max-width: 14rem; }
}

@media (max-width: 720px) {
    .lever { grid-template-columns: auto minmax(0, 1fr); row-gap: .75rem; padding-inline: 1.5rem; }
    .lever__num { grid-column: 1; }
    .lever__icon { grid-column: 2; justify-self: start; }
    .lever > div { grid-column: 1 / -1; }

    .module-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; }

    .specs--wide { grid-template-columns: minmax(0, 1fr); }

    .week { padding-inline: 1.5rem; }
}
/* ==========================================================================
   Shop: cart, checkout, order confirmation
   ========================================================================== */

.flash { padding-top: 1.5rem; }

.empty-state {
    background: var(--sage-tint);
    border-left: 3px solid var(--sage);
    padding: 2.25rem 2.25rem 2.5rem;
    max-width: 46rem;
}

.empty-state h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.empty-state .btn { margin-top: 1.25rem; }

.order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
    gap: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
    align-items: start;
}

/* Line item ---------------------------------------------------------------- */
.order-line {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    gap: 1.75rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.order-line img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 26px rgba(11, 80, 99, .16);
}

.order-line__body h2 { font-size: 1.3rem; margin-bottom: .35rem; }

.order-line__meta {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: .8rem;
}

.order-line__note { font-size: .9375rem; color: var(--ink-muted); }

.order-line__price {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--teal);
    margin: 0;
    white-space: nowrap;
}

/* Coupon ------------------------------------------------------------------- */
.coupon { padding-top: 2rem; }

.coupon__form label {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: .55rem;
}

.coupon__row { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 30rem; }

.coupon__row input {
    flex: 1 1 12rem;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .85rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.coupon__row input:focus-visible {
    outline: 3px solid var(--sage-deep);
    outline-offset: 1px;
}

.coupon__applied {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .6rem;
    font-size: .9375rem;
}

.coupon__applied .icon { width: 1.15rem; height: 1.15rem; color: var(--sage-deep); }

/* Summary ------------------------------------------------------------------ */
.order-summary {
    background: var(--sage-tint);
    border-left: 3px solid var(--sage);
    padding: 1.85rem 1.85rem 2rem;
    position: sticky;
    top: calc(var(--announce-h) + var(--header-h) + 1.5rem);
}

.order-summary h2 { font-size: 1.25rem; margin-bottom: 1.1rem; }

.order-summary__item { font-weight: 600; margin-bottom: .2rem; }

.order-summary__meta {
    font-size: .8125rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}

.order-summary dl { margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.order-summary dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.order-summary dt { color: var(--ink-muted); }
.order-summary dd { margin: 0; font-weight: 600; }

.order-summary .is-discount dd { color: var(--sage-deep); }

.order-summary__total {
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    font-size: 1.0625rem !important;
}

.order-summary__total dt { color: var(--teal) !important; font-weight: 600; }

.order-summary__total dd {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--teal);
}

.order-summary__cta { width: 100%; margin-bottom: 1.5rem; }

/* Checkout ----------------------------------------------------------------- */
.field-hint { font-size: .8125rem; color: var(--ink-muted); margin: .1rem 0 0; }

.payment-panel {
    background: var(--teal);
    color: var(--ivory);
    padding: 1.6rem 1.75rem 1.75rem;
    margin: 2rem 0 1.75rem;
}

.payment-panel h2 { color: var(--white); font-size: 1.1875rem; margin-bottom: .6rem; }
.payment-panel p { font-size: .9375rem; color: rgba(247, 244, 236, .9); }
.payment-panel__meta { margin: 0; color: rgba(247, 244, 236, .7) !important; font-size: .875rem !important; }

.check-field {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    font-size: .9375rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    cursor: pointer;
}

.check-field input {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .18rem;
    accent-color: var(--teal);
}

.check-field a { color: var(--sage-deep); font-weight: 600; }

.checkout__submit { width: 100%; }

.form-status ul { margin: .5rem 0 0; padding-left: 1.1rem; list-style: disc; }

/* Confirmation ------------------------------------------------------------- */
.order-confirm { max-width: 52rem; }

.order-confirm__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    margin: 0 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.order-confirm__meta dt {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: .3rem;
}

.order-confirm__meta dd { margin: 0; font-size: 1rem; }

.order-confirm__ready {
    background: var(--teal);
    color: var(--ivory);
    padding: 2rem 2.25rem 2.25rem;
    margin-bottom: 2rem;
}

.order-confirm__ready h2 { color: var(--white); font-size: 1.5rem; margin-bottom: .6rem; }
.order-confirm__ready p { color: rgba(247, 244, 236, .9); }
.order-confirm__ready .btn { margin-top: 1.25rem; }

.order-confirm__help {
    background: var(--sage-tint);
    border-left: 3px solid var(--sage);
    padding: 1.6rem 1.75rem 1.75rem;
    margin-bottom: 2rem;
}

.order-confirm__help h3 { font-size: 1.0625rem; margin-bottom: .6rem; }
.order-confirm__help p { font-size: .9375rem; color: var(--ink-muted); }
.order-confirm__help a { color: var(--sage-deep); font-weight: 600; }

/* Product gallery ---------------------------------------------------------- */
.buy__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}

.buy__gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid var(--line);
}

@media (max-width: 860px) {
    .order-grid { grid-template-columns: minmax(0, 1fr); }
    .order-summary { position: static; }
}

@media (max-width: 620px) {
    .order-line { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.1rem; }
    .order-line__price { grid-column: 1 / -1; }
    .order-confirm__meta { grid-template-columns: minmax(0, 1fr); }
}

/* Error pages ------------------------------------------------------------- */
/* One short card under the heading, so the standard section rhythm leaves an
   empty band where a content-rich page would have had something in it. */
.page-error .page-body { padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.page-error .note-card .ticks { margin-top: .25rem; }
.page-error .note-card .ticks li { align-items: center; }
