/* Cain Life landing page. Cream, navy and gold, after the owner's design concept. System serif fonts: nothing is downloaded. */
:root {
  --cream: #FBF8F1; --paper: #FFFFFF; --navy: #14235A; --ink: #2A3565; --soft: #6F7BA6; --gold: #B58A4A; --line: #E6DDCB; --blue: #0F5BB5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.5 var(--serif); -webkit-text-size-adjust: 100%; }
main, .top, footer { width: min(1040px, 100%); margin: 0 auto; padding: 0 24px; }
a { color: var(--navy); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

.top { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 8px; }
.wordmark { font-size: 1.5rem; letter-spacing: 0.18em; color: var(--navy); text-decoration: none; white-space: nowrap; }
.rule { flex: 1; height: 1px; background: var(--gold); min-width: 16px; }
.call { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.call svg { color: var(--gold); flex: none; }
.call:hover span { text-decoration: underline; }

.hero { text-align: center; padding: 40px 0 28px; }
h1 { font-weight: 400; font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.08; color: var(--navy); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-weight: 400; font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.12; color: var(--navy); margin: 0; text-align: center; text-wrap: balance; }
.dash { display: block; width: 84px; height: 2px; background: var(--gold); margin: 22px auto; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.55rem); color: var(--navy); margin: 0 auto 24px; max-width: 34em; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35em; min-height: 52px; padding: 12px 30px; background: var(--blue); color: #fff; text-decoration: none; border-radius: 6px; font: 600 1.1rem var(--sans); letter-spacing: 0.02em; }
.btn:hover { background: #0B4A96; }

.products { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.products li { text-align: center; padding: 30px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.products li:nth-child(3n) { border-right: 0; }
.products li:nth-last-child(-n+3) { border-bottom: 0; }
.products svg { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h3 { font-weight: 400; font-size: 1.7rem; line-height: 1.15; color: var(--navy); margin: 10px 0 8px; text-wrap: balance; }
.products p { margin: 0; color: var(--soft); font-size: 1.15rem; line-height: 1.4; text-wrap: pretty; }
.products .where { margin-top: 8px; color: var(--navy); font-size: 1rem; }
.fine { font-size: 0.95rem; color: var(--ink); text-align: center; margin: 22px auto 0; max-width: 60em; }

.quote { padding: 56px 0 8px; }
.quote-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 2px 14px rgba(20, 35, 90, 0.05); min-height: 220px; font-family: var(--sans); overflow-x: auto; }
.fallback { text-align: center; color: var(--ink); margin: 24px 0; }
.or { text-align: center; margin: 18px 0 0; }

.served { padding: 56px 0 8px; text-align: center; }
.served p { margin: 0 auto 8px; max-width: 40em; }

footer { text-align: center; padding-top: 40px; padding-bottom: 48px; }
footer p { margin: 0 0 8px; color: var(--navy); }
footer .fine { margin-top: 10px; }

.policy { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
.policy h1 { font-size: clamp(2rem, 5vw, 3rem); text-align: left; }
.policy h2 { font-size: 1.5rem; text-align: left; margin-top: 32px; }
.policy .draft { background: #FFF6DC; border: 1px solid #E8D48A; border-radius: 8px; padding: 12px 16px; font-family: var(--sans); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .products li, .products li:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .products li:nth-child(2n) { border-right: 0; }
  .products li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  main, .top, footer { padding-left: 16px; padding-right: 16px; }
  .top { gap: 12px; padding-top: 16px; flex-wrap: wrap; }
  .wordmark { font-size: 1.25rem; }
  .rule { display: none; }
  .call { margin-left: auto; font-size: 1rem; }
  .hero { padding: 24px 0 20px; }
  .products { grid-template-columns: 1fr; }
  .products li, .products li:nth-child(2n), .products li:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 8px; }
  .products li:last-child { border-bottom: 0; }
  .quote-box { padding: 12px; }
  .quote, .served { padding-top: 40px; }
}

/* ---- brand line under the name, home chooser, funnel ---- */
.wordmark { display: flex; flex-direction: column; line-height: 1.2; }
.wordmark small { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--soft); white-space: normal; }
.chooser { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 860px; margin: 8px auto 0; }
.chooser a { flex: 0 1 calc(50% - 8px); box-sizing: border-box; }
.chooser a { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); min-height: 104px; box-shadow: 0 2px 14px rgba(20, 35, 90, 0.04); }
.chooser a:hover { border-color: var(--gold); }
.chooser svg { width: 52px; height: 52px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chooser strong { display: block; font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.chooser em { display: block; font-style: normal; color: var(--soft); font-size: 1rem; line-height: 1.35; margin-top: 4px; }
.funnel { max-width: 680px; margin: 0 auto; padding: 28px 0 8px; text-align: center; }
.funnel h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); }
.funnel .lead { font-size: 1.15rem; color: var(--ink); margin: 14px auto 0; }
.f-label { margin: 0 0 10px; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; font: 600 0.85rem var(--sans); }
.f-progress { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font: 0.9rem var(--sans); color: var(--soft); }
.f-track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.f-track span { display: block; height: 100%; width: 33%; background: var(--gold); transition: width 0.25s ease; }
.f-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 2px 14px rgba(20, 35, 90, 0.05); text-align: left; }
.f-card h2 { font-size: 1.7rem; text-align: left; margin-bottom: 18px; outline: none; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { min-height: 60px; padding: 12px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font: 1.2rem var(--serif); cursor: pointer; }
.choice:hover { border-color: var(--gold); background: #FFFDF8; }
.choice:focus-visible, .back:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.back { margin-top: 18px; min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--navy); font: 1rem var(--sans); cursor: pointer; text-decoration: underline; }
.f-summary { margin: -8px 0 14px; color: var(--soft); font: 0.95rem var(--sans); }
#quote-box { min-height: 180px; font-family: var(--sans); overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { .f-track span { transition: none; } }
@media (max-width: 620px) {
  .chooser, .choices { grid-template-columns: 1fr; }
  .chooser a { flex-basis: 100%; }
  .chooser a { padding: 16px; min-height: 88px; }
  .f-card { padding: 18px 14px; }
}

.f-where { margin: 12px 0 0; color: var(--navy); font-size: 1rem; }
.funnel .f-card { margin-top: 24px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list li[hidden] { display: none; }
.contact-list li > span:first-child { color: var(--soft); font: 0.95rem var(--sans); }
.contact-list strong { font-weight: 400; color: var(--navy); }

/* ---- funnel questions ---- */
.f-card label { display: flex; flex-direction: column; gap: 6px; font: 600 0.95rem var(--sans); color: var(--navy); min-width: 0; }
.f-card input { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid #C9CFDF; border-radius: 8px; background: #fff; color: var(--navy); font: 1.1rem var(--sans); }
.f-card input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trio { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; }
.f-card form .btn { margin-top: 20px; border: 0; cursor: pointer; min-width: 160px; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.hint { margin: -8px 0 16px; color: var(--soft); font: 0.95rem var(--sans); }
.error { margin: 12px 0 0; padding: 10px 14px; background: #FDECEC; border: 1px solid #E2A3A3; border-radius: 8px; color: #7A1F1F; font: 0.95rem var(--sans); }
.error::before { content: "⚠ "; }
.keep { margin: 18px 0 0; color: var(--soft); font: 0.82rem var(--sans); }
@media (max-width: 620px) {
  .pair, .choices.three { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio label:last-child { grid-column: 1 / -1; }
  .f-card form .btn { width: 100%; }
}

.f-card label.other { margin-top: 16px; }

.use { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.use:last-child { border-bottom: 0; }
.f-card label.tick { flex: 1 1 200px; flex-direction: row; align-items: center; gap: 12px; font: 1.05rem var(--sans); font-weight: 400; min-height: 44px; cursor: pointer; }
.f-card label.tick input { width: 24px; height: 24px; min-height: 0; padding: 0; flex: none; accent-color: var(--blue); }
.f-card label.how { flex: 0 1 240px; }
.f-card select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #C9CFDF; border-radius: 8px; background: #fff; color: var(--navy); font: 1rem var(--sans); }
#last-use { margin-top: 16px; }
@media (max-width: 620px) { .f-card label.how { flex: 1 1 100%; } }

/* the hidden attribute always wins over layout rules */
[hidden] { display: none !important; }

.hearts { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.heart { width: 60px; height: 60px; padding: 6px; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.heart svg { width: 100%; height: 100%; fill: none; stroke: #8A8F9C; stroke-width: 1.6; stroke-linejoin: round; }
.heart.on svg { fill: #C9344B; stroke: #C9344B; }
.heart:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.f-card form .back { margin-top: 6px; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.actions-row .btn { margin-top: 8px !important; }
@media (max-width: 380px) { .heart { width: 50px; height: 50px; } }

.adv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 14px; margin-top: 8px; }
.adv .hint { grid-column: 2; margin: 0; align-self: center; }
@media (max-width: 620px) { .adv { grid-template-columns: 1fr; } .adv .hint { grid-column: 1; } }

.how { padding: 48px 0 8px; }
.how h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.how ol { list-style: none; counter-reset: how; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how li { counter-increment: how; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; text-align: center; color: var(--navy); font-size: 1.05rem; line-height: 1.35; text-wrap: balance; }
.how li::before { content: counter(how); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 12px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); font: 600 1.1rem var(--sans); }
@media (max-width: 820px) { .how ol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .how { padding-top: 36px; } .how ol { grid-template-columns: 1fr; } .how li { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; } .how li::before { margin: 0; flex: none; } }

.video { padding: 48px 0 0; text-align: center; }
.video h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.video .frame { max-width: 460px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.video .frame button, .video .frame iframe { display: block; width: 100%; height: 100%; border: 0; padding: 0; }
.video .frame button { position: relative; cursor: pointer; background: none; }
.video .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); }
.video .play::after { content: ""; position: absolute; left: 23px; top: 17px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--gold); }
.how.under-video { padding-top: 28px; }
.f-card label.agree { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; font-size: 1.05rem; font-weight: 400; line-height: 1.5; color: var(--navy); cursor: pointer; margin: 0 0 16px; }
.f-card label.agree input { width: 24px; height: 24px; min-height: 0; flex: none; margin: 3px 0 0; padding: 0; accent-color: var(--navy); }
.f-card label.agree span { flex: 1; }
.notices { max-width: 760px; margin: 28px auto 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--navy); font: 0.95rem/1.5 var(--sans); text-align: left; }
.notices p { margin: 0 0 8px; } .notices p:last-child { margin: 0; }
.wordmark { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; }
.wordmark .logo { grid-row: 1 / span 2; width: 60px; height: 60px; display: block; }
.wordmark span { align-self: end; } .wordmark small { align-self: start; }
@media (max-width: 620px) { .wordmark { column-gap: 8px; } .wordmark .logo { width: 44px; height: 44px; } }

/* ---- quote: the owner's promise line, and "Sending your answers to the quote system" before the quote tool ---- */
.f-promise { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: #E8F4EC; color: #1E6B3A; font: 700 0.95rem var(--sans); }
.f-verify { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 140px; color: var(--navy); font: 1.15rem var(--sans); }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#quote-box.waiting { visibility: hidden; height: 0; min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }
