/* Product pages (pages/templates/pages/), on top of volt.css.

   volt.css already supplies the hero, tiers, form fields, callout, info card
   and footer. This adds what a product page needs beyond the homepage: the
   vertical timeline, the symptom block, the no-JS FAQ, the option form, the
   links list and the category cards. The first block is the Eufy S1 page's
   own inline style, moved here unchanged when that page became data. */

/* volt.css sets `img { max-width: 100% }` and deliberately no `height: auto`
   - home.html's images carry no width/height attributes, so it never
   mattered there. These pages' images do carry them (to reserve their space
   and stop layout shift), and without this rule the attribute height wins
   literally: the 1353x1208 hero renders 432 wide by 1208 tall. */
img[width][height] { height: auto; }
.hero-photo img { width: auto; margin-left: auto; }

/* --- Vertical timeline (mobile-first: it is a stack at every width) ------ */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; max-width: 660px; }
.tl-item { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 22px; top: 52px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.dark .tl-item::before { background: rgba(255, 255, 255, 0.15); }
.tl-mark {
    width: 46px; height: 46px; border-radius: var(--radius-sm);
    background: var(--ink); color: var(--volt);
    display: grid; place-items: center; position: relative; z-index: 1;
}
.dark .tl-mark { background: var(--volt); color: var(--ink); }
.tl-step { color: var(--muted); }
.dark .tl-step { color: var(--volt); }
.tl-body h3 { margin: 2px 0 4px; }
.tl-body p { color: var(--muted); }
.dark .tl-body p { color: var(--muted-on-dark); }

/* --- Symptoms ------------------------------------------------------------ */
.sym-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 44px; align-items: center; }
.sym-grid.solo { grid-template-columns: 1fr; max-width: 780px; }
.sym-photo img { border-radius: var(--radius); border: 1px solid var(--line); margin: 0 auto; }
.sym { border-left: 3px solid var(--volt); padding: 2px 0 2px 20px; margin-bottom: 26px; }
.sym:last-child { margin-bottom: 0; }
.sym h3 { margin-bottom: 6px; }
.sym p { color: var(--muted); }
.sym-note { color: var(--muted); font-size: var(--fs-small); margin-top: 22px; }

/* --- Price cards: the one piece of fine print ---------------------------- */
.tier .fine-print { font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-semibold); }
.tier-dark .fine-print { color: rgba(255, 255, 255, 0.6); }
.confirm-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.confirm-list li { color: var(--muted); padding-left: 22px; position: relative; }
.confirm-list li::before { content: '\2022'; position: absolute; left: 4px; color: var(--volt); font-weight: var(--fw-heavy); }
.cta-strip .lbl { color: rgba(255, 255, 255, 0.55); }
.cta-strip .confirm-note { color: var(--muted-on-dark); margin-top: 8px; max-width: 640px; }

/* One option is one card, not a band across the page. */
.tiers:has(> .tier:only-child) { max-width: 440px; }

/* "What's included", on pages that state it: the tiers' tick list, one card. */
.benefit-list { list-style: none; display: grid; gap: 9px; margin: 0 0 28px; padding: 0; max-width: 640px; }
.benefit-list li { padding-left: 26px; position: relative; color: var(--ink); }
.benefit-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--ok); font-weight: var(--fw-heavy); }

/* --- Links: plain links, no embeds (no third-party script loads) --------- */
.link-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; justify-items: start; }
.link-list .link-note { color: var(--muted); font-size: var(--fs-small); margin-top: 6px; }

/* --- FAQ: <details>, so it needs no JavaScript at all ------------------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: block; list-style: none; cursor: pointer; padding: 20px 46px 20px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 0; top: 16px;
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--ink); color: var(--volt);
    font-weight: var(--fw-heavy); font-size: var(--fs-h3); line-height: 30px; text-align: center;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { color: var(--muted); padding: 0 46px 22px 0; max-width: 70ch; }

/* --- Form extras volt.css does not carry --------------------------------- */
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.field legend { display: block; color: var(--muted); margin-bottom: 9px; padding: 0; }
.field input.bad, .field select.bad, .field textarea.bad { border-color: var(--bad); background: #fff6f6; }
.field + .field { margin-top: 0; }
/* volt.css styles every `.field label` as a caps-letterspaced field label.
   These are choices, not field names, so they opt out - left alone the price
   options shout, fine print included. */
fieldset.field { border: 0; }
.field label.opt { display: flex; font-size: var(--fs-body); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 10px; }
.opt {
    display: flex; gap: 12px; align-items: flex-start;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: var(--bg);
}
.opt:has(input:checked) { border-color: var(--volt); background: var(--volt-soft); }
.opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: 0 0 auto; }
.opt .opt-text { flex: 1 1 auto; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.opt .opt-name { font-weight: var(--fw-heavy); }
.opt .opt-sub { display: block; grid-column: 1 / -1; font-size: var(--fs-small); color: var(--muted); }
.form-fine { font-size: var(--fs-small); color: var(--muted); margin-top: 14px; }
.field-note { font-size: var(--fs-small); color: var(--muted); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; }

/* --- Hero without a photo, gallery, disclaimer, preview banner ----------- */
.hero-grid.solo { grid-template-columns: 1fr; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: var(--fs-small); margin-top: 6px; }
.disclaimer { padding: 28px 0; }
.disclaimer p { color: var(--muted); font-size: var(--fs-small); max-width: 780px; }
.preview-bar { background: var(--volt); color: var(--ink); font-weight: var(--fw-heavy); padding: 10px 0; font-size: var(--fs-small); }

/* --- Breadcrumbs and category cards (the /services/ lists) --------------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 6px; font-size: var(--fs-small); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: rgba(255, 255, 255, 0.4); }
.crumbs a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-weight: var(--fw-bold); }
.crumbs a:hover { color: var(--volt); }
.page-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.page-card a {
    display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); color: var(--ink); text-decoration: none;
}
.page-card a:hover { border-color: var(--volt); }
.page-card img, .page-card .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.page-card .name { font-weight: var(--fw-heavy); line-height: 1.25; }
.page-card .prices { font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.shelf + .shelf { margin-top: 44px; }
.shelf h2 { font-size: var(--fs-h3); margin-bottom: 14px; }
.shelf h2 a { color: inherit; text-decoration: none; }
.shelf .sub { margin-bottom: 14px; }

/* --- volt.css components, on the brand scale (static/css/brand.css) ------- */
.callout p { font-size: var(--fs-lead); }
.callout-badge { font-size: var(--fs-h3); }
.tier h3 { font-size: var(--fs-h3); }
.tier .spec { font-size: var(--fs-small); }
.tier ul li, .confirm-list li, .cta-strip .confirm-note { font-size: var(--fs-body); }
.tier-dark .fine-print { color: var(--muted-on-dark); }
.consent { font-size: var(--fs-small); }
.info-card .ico { font-size: var(--fs-lead); }
.info-card .row { font-size: var(--fs-body); }
.foot a { font-size: var(--fs-label); }
.foot .fine { font-size: var(--fs-label); }

/* --- One option or several (pages/templates/pages/page.html) ------------- */
/* Several: each card's button picks it. One: the card has no button of its
   own; the page's one call to action is the next thing below it. */
.tier .btn { text-align: center; }
/* The request form names the one service instead of a one-row select. */
.chosen-service {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
    border: 1.5px solid var(--volt); background: var(--volt-soft);
    border-radius: var(--radius-sm); padding: 14px 16px;
}
.chosen-service .opt-name { font-weight: var(--fw-heavy); }
.opt .opt-price { white-space: nowrap; }
.field .opt input { width: 18px; height: 18px; padding: 0; border: 0; margin-top: 3px; box-shadow: none; }
.field-label { display: block; color: var(--muted); margin-bottom: 7px; }
.btn-block { width: 100%; text-align: center; }
/* Under the submit button: what happens next, in the page's own words. */
.form-fine { text-align: center; }

/* --- The rail and its aside card (pages/templates/pages/page.html) ------- */
/* On a wide screen the sections between the options and the form kept their
   text at 620-780px and left the right third empty; the owner read it as
   something that failed to load. There the text column keeps its measure
   and one card - the options, the call to action, the phone - stays in view
   beside it. The card is one element for the whole rail: absolutely placed
   over the full-bleed bands (so their backgrounds still run edge to edge),
   sticky inside, and click-through everywhere but the card itself. */
.rail { position: relative; --aside-width: 300px; --aside-gap: 40px; }
.page-aside { display: none; }
@media (min-width: 1024px) {
    .rail .block > .wrap { padding-right: calc(24px + var(--aside-width) + var(--aside-gap)); }
    .page-aside { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
    .page-aside > .wrap { height: 100%; display: flex; justify-content: flex-end; align-items: flex-start; padding-top: 84px; padding-bottom: 84px; }
    .aside-card {
        position: sticky; top: 96px; width: var(--aside-width); pointer-events: auto;
        background: var(--white); color: var(--ink); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 14px 40px rgba(11, 15, 20, 0.12);
        display: grid; gap: 16px;
    }
}
.aside-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-options li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.aside-options .opt-name { font-weight: var(--fw-heavy); line-height: var(--lh-snug); }
.aside-options .opt-price {
    white-space: nowrap; font-family: var(--font-sans); font-variant-numeric: tabular-nums;
    font-size: var(--fs-lead); font-weight: var(--fw-heavy); letter-spacing: var(--ls-snug);
}
.aside-phone { border-top: 1px solid var(--line); padding-top: 14px; }
.aside-phone .lbl {
    color: var(--muted); font-size: var(--fs-label); font-weight: var(--fw-heavy);
    letter-spacing: var(--ls-label); text-transform: uppercase;
}
.aside-phone a { color: var(--ink); font-size: var(--fs-lead); font-weight: var(--fw-bold); text-decoration: none; }
.aside-phone a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    /* A phone gets one field per row: two-up squeezed each box to 150px and
       wrapped the phone note onto three lines. */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 24px 18px; }
}

@media (max-width: 900px) {
    .sym-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-row-3 { grid-template-columns: 1fr; }
    /* On a phone the pack photo leads and the heading follows: the picture is
       what tells a visitor who searched the part number they are in the right
       place, before any copy is read. Desktop keeps text left, photo right. */
    .hero-photo { order: -1; }
    .hero-photo img { margin-left: 0; }
    .page-cards { grid-template-columns: 1fr; gap: 8px; }
    .page-card a { grid-template-columns: 48px 1fr; padding: 8px 10px; gap: 10px; }
    .page-card img, .page-card .thumb { width: 48px; height: 48px; }
}
