/* Appalachian Digital: the homepage (hero + first question, the plan, every-site cards, tools carousel, pricing,
   our-work carousel, promises, FAQ) and the shared header/footer touches. Tier-2 tokens from site.css only:
   no brand color is written here. */

.home h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.home h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -0.015em; }
.home .block { padding: clamp(40px, 6vw, 72px) 0; }
.hl { color: var(--accent); }
.eyebrow { color: var(--alt); font-weight: 600; margin-bottom: 8px; }
.micro { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }
.ctas.center { justify-content: center; }
.site-head { background: rgb(var(--p-shade) / 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { font: 800 1.15rem/1 var(--font-display); letter-spacing: 0.01em; }
.brand img { height: 30px; }
.btn { font-weight: 600; }
.btn.ghost { color: var(--text-primary); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.light { background: var(--text-on-accent); color: var(--accent); border-color: var(--text-on-accent); }
.btn.light:hover { background: var(--bg-primary); color: var(--accent-strong); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-link { color: var(--text-muted); text-decoration: none; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font: 700 0.75rem/1.4 var(--font-body); white-space: nowrap; background: var(--accent); color: var(--text-on-accent); }
.pill.alt { background: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border); }

/* ---------- hero: compact, so the next section's title shows on a laptop's first screen */
.ad-hero { position: relative; padding: clamp(24px, 4vw, 40px) 0 clamp(24px, 3vw, 32px); overflow: hidden;
  background: radial-gradient(45% 60% at 90% 30%, var(--accent-soft), transparent 70%), var(--bg-primary); }
.ad-hero-grid { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ad-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr); } }
.lead { font-size: 1.1rem; max-width: none; margin-bottom: 0; }
.lead strong { color: var(--text-primary); }
.starter { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--bg-elevated); }
.starter-title { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.starter-title strong { color: var(--accent); }
.starter-q { font: 800 1.15rem/1.3 var(--font-display); margin: 2px 0 10px; }
.starter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.starter-option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--border); border-radius: 999px; background: var(--bg-primary); color: var(--text-primary); font: 600 0.9rem/1.2 var(--font-body); cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.starter-option:hover, .starter-option:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.starter-option .o-icon { font-size: 1.1rem; }
.starter .micro { margin: 8px 0 0; font-size: 0.82rem; }
.ad-hero-art { position: relative; padding: 12px 0 14px; max-width: 420px; margin-inline: auto; width: 100%; }
.device { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-inverse); }
.device img { display: block; width: 100%; height: auto; }
.device.desk { width: 88%; }
.device-bar { display: flex; align-items: center; gap: 5px; padding: 6px 10px; background: var(--bg-inverse); font: 500 0.68rem var(--font-body); color: var(--text-muted); }
.device-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.device-bar b { font-weight: 500; margin-left: 6px; background: var(--bg-secondary); border-radius: 999px; padding: 1px 10px; }
.device.phone { position: absolute; right: 0; bottom: 0; width: 30%; border-radius: 16px; border: 4px solid var(--bg-inverse); }
.live-badge, .stars-badge { position: absolute; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font: 600 0.75rem var(--font-body); box-shadow: var(--shadow); white-space: nowrap; }
.live-badge { top: -4px; left: 8%; background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.stars-badge { left: 4%; bottom: 0; background: var(--accent); color: var(--text-on-accent); }
@media (max-width: 959px) { .ad-hero-art { max-width: 380px; } }

/* ---------- every site */
.home .hook-band { padding-top: clamp(28px, 4vw, 40px); }
.hook-grid { list-style: none; counter-reset: h; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hook-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 960px) { .hook-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .hook-grid li:last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 420px) { .hook-grid { grid-template-columns: minmax(0, 1fr); } }
.hook-grid li { counter-increment: h; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.hook-grid li::before { content: counter(h); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--text-on-accent); font: 800 0.9rem var(--font-display); margin-bottom: 10px; }
.hook-grid h3 { font-size: 1.05rem; }
.hook-grid p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ---------- carousels (tools, our work): swipe with scroll-snap, buttons on a computer */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.carousel-head h2 { margin-bottom: 6px; }
.carousel-head p { margin: 0; }
.carousel-btns { display: flex; gap: 8px; flex: none; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.round:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .carousel-btns { display: none; } }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(280px, 82%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 12px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.carousel-track > * { scroll-snap-align: start; }
.tool-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.tool-card.core { border-color: var(--accent); }
.tool-card .pill { align-self: flex-start; }
.tool-card h3 { font-size: 1.1rem; margin: 0; }
.tool-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- pricing */
.offer { max-width: 820px; }
.offer-head { text-align: center; margin-bottom: 22px; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--bg-elevated); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.compare th, .compare td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 500; white-space: normal; }
.compare thead th { font: 700 0.8rem var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.compare td:nth-child(2) { color: var(--text-muted); }
.compare td:last-child { color: var(--text-primary); font-weight: 600; }
.compare tr.group th { font: 700 0.75rem var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--alt); text-align: left; padding-top: 16px; background: var(--bg-primary); }
.compare .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: var(--text-on-accent); font: 800 0.7rem var(--font-body); vertical-align: -3px; }
@media (max-width: 560px) { .compare th, .compare td { padding: 10px 10px; font-size: 0.92rem; } .compare .tick { display: none; } }
.compare tr.subtotal th, .compare tr.subtotal td { font-weight: 700; background: var(--bg-secondary); }
.compare tr.grand th, .compare tr.grand td { font: 800 1.15rem var(--font-display); border-bottom: 0; background: var(--bg-secondary); }
.compare tr.grand td:last-child, .compare tr.subtotal td:last-child { color: var(--accent); }
.savings { text-align: center; font: 800 clamp(1.15rem, 3vw, 1.45rem)/1.3 var(--font-display); margin: 18px 0 6px; }
.outside { font-size: 0.88rem; text-align: center; max-width: 64ch; margin: 0 auto 6px; }

/* ---------- our work */
.work-track { grid-auto-columns: 100%; }
.work-slide { display: grid; gap: 22px; align-items: center; grid-template-columns: minmax(0, 1fr); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); }
@media (min-width: 820px) { .work-slide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.work-shot { position: relative; padding-bottom: 28px; }
.work-shot .ws-desk { width: 88%; border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.work-shot .ws-phone { position: absolute; right: 0; bottom: 0; width: 26%; border-radius: 14px; border: 4px solid var(--bg-inverse); box-shadow: var(--shadow); }
.work-copy h3 { font-size: 1.4rem; }
.work-copy p { color: var(--text-muted); }
.story-quote { margin: 14px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--bg-primary); border-radius: var(--radius-sm); }
.story-quote p { font-size: 1.05rem; margin: 0 0 6px; color: var(--text-primary); }
.story-quote cite { color: var(--text-muted); font-style: normal; font-size: 0.9rem; }

/* ---------- promises */
.promises-title { text-align: center; }
.promises { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 18px 0 26px; }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promise { border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px; background: var(--bg-elevated); }
.promise h3 { font-size: 1.05rem; color: var(--accent); }
.promise p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-muted); margin: 0 0 16px; }

/* ---------- the plan (quiz) */
.quiz-block { background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary)); scroll-margin-top: 70px; }
.quiz { display: grid; gap: 22px; margin-top: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .quiz { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.quiz-main { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 4vw, 30px); box-shadow: var(--shadow); min-height: 320px; min-width: 0; }
.quiz-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.quiz-progress div { height: 100%; width: 5%; background: var(--accent); transition: width 0.3s var(--ease-silk); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin: 8px 0 6px; }
.quiz-count { margin-left: auto; color: var(--text-muted); font-size: 0.85rem; }
.q { font-size: clamp(1.3rem, 3.2vw, 1.6rem); margin-bottom: 14px; }
.hint { margin: -6px 0 12px; }
.options { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .options { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; text-align: left; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg-primary); color: var(--text-primary); font: 600 1rem var(--font-body); cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.option:hover { border-color: var(--accent); transform: translateY(-1px); }
.option.chosen { border-color: var(--accent); background: var(--accent-soft); }
.o-icon { font-size: 1.4rem; line-height: 1; }
.option.multi { gap: 10px; }
.o-check { flex: none; width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px; display: grid; place-items: center; }
.option.multi.chosen .o-check { background: var(--accent); border-color: var(--accent); }
.option.multi.chosen .o-check::after { content: "\2713"; color: var(--text-on-accent); font: 800 0.8rem var(--font-body); }
.plan-sub { color: var(--text-muted); margin-bottom: 8px; }
.leaks { list-style: none; counter-reset: l; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.leaks li { counter-increment: l; position: relative; padding: 14px 14px 14px 52px; border-radius: var(--radius-sm); background: var(--bg-primary); border: 1px solid var(--border); }
.leaks li::before { content: counter(l); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--danger); color: var(--text-on-accent); font: 800 0.85rem var(--font-display); }
.leaks .leak { margin: 0 0 4px; font-weight: 600; }
.leaks .fix { margin: 0; color: var(--text-muted); }
.leaks .fix strong { color: var(--success); }
.result-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.result-tool { display: flex; flex-direction: column; margin-bottom: 6px; }
.result-tool strong { font: 800 1.35rem var(--font-display); color: var(--accent); }
.result-card p { color: var(--text-muted); }
.result-card .result-price { margin: 12px 0 0; color: var(--text-primary); }
.result-price s { color: var(--text-muted); font-size: 1rem; }
.result-price strong { font: 800 1.8rem var(--font-display); color: var(--accent); }
.result-card .result-promise { margin: 8px 0 0; color: var(--success); font-size: 0.92rem; }
.addons { margin-top: 16px; }
.addons-head { color: var(--text-muted); font-size: 0.92rem; }
.addons .addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 8px; cursor: pointer; background: var(--bg-primary); }
.addons .addon input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; align-self: center; accent-color: var(--accent); }
.addons .addon strong { display: block; font-weight: 600; }
.addons .addon small { display: block; color: var(--text-muted); }
.addon-price { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 520px) { .addons .addon { grid-template-columns: auto minmax(0, 1fr); } .addon-price { grid-column: 2; } }
.addon-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }
.call-box { margin-top: 18px; padding: 18px; border-radius: var(--radius); border: 2px solid var(--accent); background: var(--bg-primary); }
.call-box h4 { font: 800 1.15rem var(--font-display); margin: 0 0 4px; }
.call-box .muted { margin-bottom: 12px; }
.quick-times { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: center; }
.time.quick { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-height: 56px; border-radius: var(--radius-sm); border: 2px solid var(--accent); background: var(--accent); color: var(--text-on-accent); font-weight: 700; }
.time.quick:hover { background: var(--accent-strong); }
.t-day { font-size: 0.8rem; font-weight: 600; }
.more-times { justify-self: start; padding: 8px 0; color: var(--alt); }
.save-form { margin-top: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.saved { margin-top: 14px; color: var(--success); font-weight: 600; }
.picked { color: var(--text-muted); }
.picked strong { color: var(--text-primary); }
.quiz .field input, .quiz .field textarea { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border); }
.quiz .day { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border); }
.quiz .day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.quiz .day[aria-pressed="true"] .d-wk, .quiz .day[aria-pressed="true"] .d-mo { color: var(--text-on-accent); }
.quiz .time { background: var(--bg-primary); }
.quiz .submit { width: 100%; margin-top: 16px; }
.quiz .done { padding: 20px 0; }
.build-panel { background: var(--bg-elevated); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; }
@media (min-width: 900px) { .build-panel { position: sticky; top: 86px; } }
@media (max-width: 899px) { .build-list li.small { display: none; } }
.build-panel h3 { font-size: 1.1rem; }
.build-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.build-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; font-size: 0.95rem; }
.build-list li::before { content: "\2713"; color: var(--accent); font-weight: 800; grid-row: span 2; }
.build-list li.pending::before { content: "\25CB"; color: var(--text-muted); }
.build-list li.pending span { color: var(--text-muted); }
.build-list li.small { font-size: 0.85rem; color: var(--text-muted); }
.build-list li.addon { color: var(--alt); }
.build-list small { grid-column: 2; color: var(--text-muted); font-size: 0.8rem; }
.build-price { border-top: 1px solid var(--border); padding-top: 12px; color: var(--text-muted); font-size: 0.92rem; }
.build-price strong { font: 800 2rem var(--font-display); color: var(--accent); }
.build-promise { margin: 10px 0 0; font-size: 0.85rem; color: var(--success); }

.foot-cta h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
@media (prefers-reduced-motion: reduce) {
  .option, .starter-option, .quiz-progress div { transition: none; }
  .option:hover, .starter-option:hover { transform: none; }
}
