/* Clearly Better Hearing homepage: new hero, Sound and Sense journey, clinic vs concierge switch, gold swoosh.
   Loads after style.css; uses its tokens (teal, cream, gold, Cormorant Garamond, Inter). No italic headline accents. */
.cb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; }
@media (min-width: 700px) { .cb-wrap { padding: 0 40px; } }
.cb-gold { color: var(--gold-dark); font-style: normal; }
.cb-link { display: inline-flex; gap: 8px; font-weight: 600; color: var(--teal-900); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.cb-link::after { content: "\2192"; transition: transform .2s; }
.cb-link:hover::after { transform: translateX(4px); }
.cb-head { max-width: 760px; margin-bottom: 44px; }
.cb-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; }

/* swoosh backdrops (logo mark) */
.cb-swmark { position: absolute; pointer-events: none; aspect-ratio: 1672 / 242; background: var(--gold);
  -webkit-mask: url(/assets/images/cb-swoosh-mask.webp) center / contain no-repeat; mask: url(/assets/images/cb-swoosh-mask.webp) center / contain no-repeat; }
.cb-sm-hero { width: 1100px; right: -260px; top: 40px; opacity: .1; }
.cb-sm-story { width: 900px; left: -260px; bottom: 30px; opacity: .1; }
.cb-sm-compare { width: 900px; right: -200px; top: 30px; opacity: .08; background: #e9d9b8; }
.cb-story, .cb-compare, .cb-hero { position: relative; overflow: hidden; }
.cb-story > :not(.cb-swmark) { position: relative; }

/* hero */
.cb-hero { padding: calc(var(--header-h, 88px) + clamp(28px, 4vw, 56px)) 0 clamp(64px, 8vw, 100px); background: radial-gradient(900px 600px at 85% 20%, var(--bone) 0%, rgba(250,247,241,0) 70%), var(--cream); }
.cb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cb-hero h1 { font-size: clamp(3.2rem, 7vw, 6rem); line-height: .98; margin: 16px 0 6px; font-weight: 400; letter-spacing: -0.01em; }
.cb-swoosh { display: block; width: min(420px, 80%); height: auto; margin: 4px 0 18px -6px; overflow: visible; }
.cb-pen { fill: none; stroke: #fff; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cb-lead { font-size: clamp(1.05rem, 1.4vw, 1.16rem); color: var(--ink-soft); max-width: 35em; }
.cb-lead a { color: var(--teal-900); }
.cb-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: flex-start; }
.cb-fc { display: inline-flex; flex-direction: column; gap: 6px; }
.cb-fc-note { font-size: .8rem; color: var(--ink-muted); }
.cb-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(15,58,62,.12); font-size: .95rem; color: var(--ink-soft); }
.cb-trust strong { color: var(--teal-900); }
.cb-stars { color: var(--gold); letter-spacing: 2px; }
.cb-hero-photo { position: relative; margin: 0; }
.cb-hero-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 0%; border-radius: 260px 260px 4px 4px; box-shadow: 0 30px 70px -36px rgba(15,58,62,.55); }
.cb-hero-photo figcaption { position: absolute; left: -26px; bottom: 28px; background: var(--teal-900); color: #fff; padding: 14px 18px; border-radius: 4px; line-height: 1.3; box-shadow: 0 18px 36px -18px rgba(0,0,0,.5); }
.cb-hero-photo figcaption b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.cb-hero-photo figcaption span { font-size: .82rem; color: #cfdcdb; }
@media (max-width: 900px) { .cb-hero-grid { grid-template-columns: minmax(0, 1fr); } .cb-hero-photo { max-width: 520px; } .cb-hero-photo figcaption { left: 12px; } }
@media (max-width: 520px) { .cb-actions .btn { width: 100%; justify-content: center; } .cb-fc { width: 100%; } }

/* method journey */
.cb-method { padding: clamp(80px, 10vw, 124px) 0; background: var(--bone); }
.cb-journey { position: relative; background: #fff; border: 1px solid rgba(15,58,62,.1); border-radius: 4px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 24px 60px -40px rgba(15,58,62,.4); }
.cb-track { position: relative; height: 4px; background: var(--sand); border-radius: 2px; margin: 0 6% 18px; }
.cb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 2px; transition: width .7s cubic-bezier(.3,.7,.2,1); }
.cb-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.cb-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 1rem/1.2 Inter, Arial, sans-serif; letter-spacing: .04em; color: var(--ink-muted); background: transparent; border: 0; border-radius: 4px; padding: 12px 6px; cursor: pointer; transition: color .25s, background .25s; min-height: 64px; }
.cb-stage .cb-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; color: var(--teal-900); background: #fff; transition: background .25s, color .25s; }
.cb-stage:hover { color: var(--teal-900); }
.cb-stage[aria-selected="true"] { color: var(--teal-900); background: var(--cream); }
.cb-stage[aria-selected="true"] .cb-n, .cb-stage.done .cb-n { background: var(--teal-900); color: #fff; border-color: var(--teal-900); }
.cb-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.cb-panel figure { margin: 0; }
.cb-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.cb-pn { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.cb-panel h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 3.4rem); color: var(--teal-900); line-height: 1; margin-bottom: 12px; }
.cb-panel p:not(.cb-pn) { font-size: 1.15rem; color: var(--ink-soft); max-width: 26em; }
.cb-panel:not([hidden]) { animation: cb-in .5s cubic-bezier(.2,.7,.2,1); }
@keyframes cb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cb-more { margin-top: 26px; }
@media (max-width: 760px) { .cb-panel { grid-template-columns: minmax(0, 1fr); } .cb-stage { font-size: .82rem; } .cb-stage .cb-n { width: 34px; height: 34px; } }

/* clinic vs concierge switch */
.cb-compare { padding: clamp(80px, 10vw, 124px) 0; background: var(--teal-900); color: #dce7e6; }
.cb-compare h2 { color: #fff; margin: 12px 0 26px; }
.cb-compare-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.cb-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px; }
.cb-switch button { position: relative; z-index: 1; font: 600 .95rem/1 Inter, Arial, sans-serif; color: #dce7e6; background: transparent; border: 0; border-radius: 999px; padding: 14px 20px; cursor: pointer; min-height: 46px; transition: color .3s; white-space: nowrap; }
.cb-switch button[aria-pressed="true"] { color: var(--teal-900); }
.cb-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--gold); border-radius: 999px; transition: transform .45s cubic-bezier(.3,.7,.2,1); }
.cb-switch.concierge .cb-knob { transform: translateX(100%); }
.cb-switch-note { margin-top: 14px; font-size: .92rem; color: #b9cccb; }
.cb-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.cb-rows li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); align-items: center; }
.cb-q { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b9cccb; }
.cb-a { position: relative; display: grid; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }
.cb-a > span { grid-area: 1 / 1; transition: opacity .4s ease, transform .4s cubic-bezier(.3,.7,.2,1); }
.cb-clinic { color: #b9cccb; }
.cb-concierge { color: #fff; }
.mode-concierge .cb-clinic, .mode-clinic .cb-concierge { opacity: 0; transform: translateY(8px); pointer-events: none; }
.mode-concierge li:nth-child(2) .cb-a > span { transition-delay: .05s; } .mode-concierge li:nth-child(3) .cb-a > span { transition-delay: .1s; }
.mode-concierge li:nth-child(4) .cb-a > span { transition-delay: .15s; } .mode-concierge li:nth-child(5) .cb-a > span { transition-delay: .2s; } .mode-concierge li:nth-child(6) .cb-a > span { transition-delay: .25s; }
.mode-concierge .cb-concierge::before { content: "\2713"; color: var(--gold); margin-right: 10px; font-family: Inter, Arial, sans-serif; font-size: .9em; }
@media (max-width: 900px) { .cb-compare-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .cb-rows li { grid-template-columns: minmax(0, 1fr); gap: 6px; } .cb-switch button { padding: 12px 14px; font-size: .88rem; } }

@media (prefers-reduced-motion: reduce) { .cb-panel:not([hidden]) { animation: none; } .cb-a > span, .cb-knob, .cb-fill { transition: none; } }
.cb-panel[hidden] { display: none; }
@media (max-width: 420px) { .cb-switch { display: grid; width: 100%; } .cb-switch button { white-space: normal; padding: 10px 8px; font-size: .84rem; line-height: 1.2; } }
