/* Coral Active - home page only. Loads after site.css. */

/* Announcement bar: scrolls away with the page */
.ann { position: absolute; top: 0; left: 0; right: 0; z-index: 51; height: 40px; display: flex; align-items: center; justify-content: center; gap: 14px; padding-inline: var(--pad); background: var(--navy); color: #fff; text-decoration: none; font: 500 13px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; }
.ann__badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px; color: var(--navy); font-size: 11px; flex: none; }
.ann__badge img { height: 14px; width: auto; }
.ann__txt b { font-weight: 600; }
.ann__go { color: #FFB088; font-weight: 600; }
.ann:hover .ann__go { text-decoration: underline; }
.ann__short { display: none; }
@media (max-width: 760px) {
  .ann { gap: 8px; padding-inline: 12px; }
  .ann__full, .ann__go { display: none; }
  .ann__short { display: inline; font-weight: 600; }
  .ann__short::after { content: " \2192"; color: #FFB088; }
}

/* The header floats over the hero and turns solid once the hero has scrolled past */
.home .bar { position: fixed; left: 0; right: 0; top: var(--ann, 40px); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .bar.is-solid { background: rgba(250,247,242,.9); border-bottom-color: var(--rule-2); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }

/* Bigger section headlines on the home page */
.home .sec__hd h2 { font-size: clamp(32px, 4.8vw, 76px); letter-spacing: -.04em; max-width: 20ch; }

/* 1 · Hero: separate systems drift together and fuse into one */
.glass { position: relative; height: 200vh; }
.glass__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.glass__fallback { position: absolute; inset: 0; background:
  radial-gradient(circle at 62% 46%, rgba(255,107,87,.35), transparent 26%),
  radial-gradient(circle at 70% 58%, rgba(229,78,128,.3), transparent 22%),
  radial-gradient(circle at 54% 60%, rgba(148,219,223,.35), transparent 20%), var(--ivory); }
.hero-copy { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(36px, 7vh, 80px); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.6vh, 28px); }
.statement { font: 300 clamp(44px, 8.2vw, 140px)/.98 var(--f-head); letter-spacing: -.045em; color: var(--navy); }
.statement span { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.statement span em { display: inline-block; font-style: normal; padding-bottom: .14em; margin-bottom: -.14em; transform: translateY(105%); transition: transform .9s var(--ease); }
.statement span.on em { transform: none; }
.statement span:nth-child(2) em { transition-delay: .25s; }
.statement span:nth-child(3) em { transition-delay: .5s; }
.statement span:last-child em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.hero-sub { max-width: 54ch; font: 400 clamp(15px, 1.3vw, 18px)/1.55 var(--f-body); color: var(--ink-2); }
.hero-fade { opacity: 0; transform: translateY(10px); transition: opacity .7s ease .75s, transform .7s ease .75s; }
.hero-fade.on { opacity: 1; transform: none; }
.hero-fade + .hero-fade { transition-delay: .9s; }
@media (max-width: 760px) { .glass { height: 170vh; } }

/* Customer logo strip */
.mq { padding: clamp(56px, 8vw, 96px) 0 0; display: grid; gap: 22px; }
.mq__lbl { padding-inline: var(--gut); color: var(--ink-3); }
.mq__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }
.mq__track { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); width: max-content; padding-block: 6px; animation: mq-l 46s linear infinite; }
.mq__row:hover .mq__track { animation-play-state: paused; }
.mq__track img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.mq__track img.sm { height: 22px; }
@keyframes mq-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 2 · The problem: words light up as you read */
.issue { padding: var(--sec) var(--gut) 0; }
.issue p.lbl { color: var(--coral-ink); margin-bottom: clamp(24px, 3vw, 40px); }
.issue h2 { font: 300 clamp(34px, 5.4vw, 88px)/1.04 var(--f-head); letter-spacing: -.04em; max-width: 19ch; text-wrap: wrap; }
.issue h2 .w { color: rgba(30,36,64,.13); transition: color .35s ease; }
.issue h2 .w.on { color: var(--navy); }
.issue h2 .w.on.c { color: var(--pink); }
.issue__sub { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: 14px; }
.issue__sub p { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 50ch; }
.issue__sub .issue__end { color: var(--navy); font-weight: 500; }

/* 3 · What Coral is: comparison table */
.cmp-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--rule-2); border-radius: 20px; box-shadow: var(--shadow); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--rule-2); vertical-align: top; font-size: 15px; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { border-bottom: 1px solid var(--rule); font: 600 11px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cmp tbody th { font: 400 17px/1.35 var(--f-head); color: var(--navy); width: 26%; }
.cmp td { color: var(--ink-2); }
.cmp tbody tr.me-row th, .cmp tbody tr.me-row td { background: rgba(148,219,223,.2); color: var(--navy); font-weight: 500; }
@media (max-width: 760px) {
  .cmp-wrap { overflow: visible; }
  .cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tbody tr { padding: 20px; border-bottom: 1px solid var(--rule-2); }
  .cmp tbody tr:last-child { border-bottom: 0; border-radius: 0 0 19px 19px; }
  .cmp tbody th, .cmp td { padding: 0; border: 0; width: auto; }
  .cmp tbody th { margin-bottom: 10px; font-size: 18px; }
  .cmp td + td { margin-top: 10px; }
  .cmp td::before { content: attr(data-label); display: block; margin-bottom: 3px; font: 600 10.5px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .cmp tbody tr.me-row { background: rgba(148,219,223,.2); }
  .cmp tbody tr.me-row th, .cmp tbody tr.me-row td { background: none; }
}

/* 4 · How it works: three steps, each with a looping clip */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.st3 { border-radius: 22px; background: var(--white); border: 1px solid var(--rule-2); display: grid; align-content: start; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.st3:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.st3__media { background: #F9F6F0; aspect-ratio: 14 / 10; border-bottom: 1px solid var(--rule-2); }
.st3__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st3__txt { display: grid; gap: 8px; padding: 24px 26px 30px; }
.st3__txt .lbl { color: var(--teal-ink); }
.st3__txt h3 { font: 300 clamp(22px, 2vw, 30px)/1.12 var(--f-head); letter-spacing: -.02em; }
.st3__txt p { font-size: 14.5px; color: var(--ink-2); max-width: 38ch; }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; max-width: 560px; } }

/* 5 · Connectors */
.cycler { font: 300 clamp(28px, 4.2vw, 68px)/1.2 var(--f-head); letter-spacing: -.04em; padding: .08em 0 .12em; }
.nw { white-space: nowrap; }
.cycler .blank { display: inline-block; transition: opacity .25s ease, transform .25s ease; }
.conn { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-top: clamp(28px, 4vw, 52px); }
.conn div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; place-items: center; height: 110px; padding: 18px; transition: background .25s ease; }
.conn div:hover { background: var(--white); }
.conn img { height: 30px; max-height: 32px; max-width: 150px; width: auto; object-fit: contain; }
.conn__word { font: 700 24px/1 var(--f-body); color: #C74634; letter-spacing: .02em; }
@media (max-width: 860px) { .conn { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .conn { grid-template-columns: repeat(2, minmax(0, 1fr)); } .conn div { height: 92px; min-width: 0; } }
.conn-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; color: var(--ink-3); }
.conn-meta b { color: var(--navy); font-weight: 600; }
.conn-meta a { color: var(--pink-ink); text-decoration: none; }
.conn-meta a:hover { text-decoration: underline; }

/* 6 · Results: big numbers count up, a soft track fills as you scroll */
.stats { border-top: 1px solid var(--rule); }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4vw; align-items: center; padding: clamp(24px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--rule); }
.stat__n { display: grid; gap: 10px; }
.stat__n strong { padding-bottom: .1em; font: 300 clamp(56px, 8.4vw, 136px)/.9 var(--f-head); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--navy); }
.stat__n .lbl { color: var(--ink-3); max-width: 40ch; }
.stat__trk { position: relative; height: clamp(8px, 1vw, 12px); border-radius: 999px; background: var(--rule-2); overflow: hidden; }
.stat__trk i { position: absolute; top: 0; left: 0; bottom: 0; width: var(--fill, 0%); background: var(--grad); border-radius: inherit; transition: width .6s var(--ease); }
@media (max-width: 760px) { .stat { grid-template-columns: 1fr; gap: 18px; } }

/* 7 · Quick estimate */
.roi { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.roi__txt { display: grid; gap: 18px; }
.roi__txt .lbl { color: var(--teal-ink); }
.roi__txt h2 { font: 300 clamp(30px, 3.8vw, 58px)/1.05 var(--f-head); letter-spacing: -.035em; max-width: 14ch; }
.roi__txt p { color: var(--ink-2); max-width: 44ch; }
.roi__card { background: var(--white); border: 1px solid var(--rule-2); border-radius: 26px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-lift); display: grid; gap: 22px; }
.roi__f { display: grid; gap: 10px; }
.roi__f label { display: flex; justify-content: space-between; align-items: baseline; font: 600 11px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.roi__f output { font: 400 18px/1 var(--f-head); letter-spacing: -.01em; color: var(--navy); text-transform: none; }
.roi input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #94DBDF, #2E8F95) 0 / var(--p, 50%) 100% no-repeat, var(--sand); outline: none; cursor: pointer; }
.roi input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--star-dk); box-shadow: 0 4px 10px rgba(46,143,149,.35); transition: transform .15s ease; }
.roi input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); }
.roi input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--star-dk); box-shadow: 0 4px 10px rgba(46,143,149,.35); }
.roi input[type=range]:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 6px; }
.roi__out { border-radius: 20px; background: radial-gradient(80% 120% at 100% 0%, rgba(148,219,223,.28), transparent 60%), var(--navy); color: #fff; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: end; position: relative; overflow: hidden; }
.roi__out::after { content: ""; position: absolute; right: -70px; top: -90px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(148,219,223,.6), rgba(148,219,223,0) 70%); }
.roi__out .lbl { color: var(--star); grid-column: 1 / -1; }
.roi__big { font: 300 clamp(40px, 5vw, 64px)/1 var(--f-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.roi__hrs { font-size: 14px; text-align: right; opacity: .92; position: relative; z-index: 1; }
.roi__hrs b { display: block; font: 400 22px/1.1 var(--f-head); color: var(--star); }
.roi__note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 860px) { .roi { grid-template-columns: 1fr; } }

/* 8 · Partners */
.partner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.partner .sec__sub { margin: 0; }
.partner__says { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--rule); }
.partner__says li { padding: 20px 0; border-bottom: 1px solid var(--rule); font: 300 clamp(18px, 1.6vw, 22px)/1.35 var(--f-head); letter-spacing: -.01em; }
.lp { margin-top: clamp(28px, 4vw, 52px); border-radius: 20px; background: var(--white); border: 1px solid var(--rule-2); padding: 26px 28px; display: grid; gap: 12px; justify-items: start; box-shadow: var(--shadow); }
.lp .lbl { color: var(--pink-ink); }
.lp img { height: 22px; width: auto; }
.lp p { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.lp a { text-decoration: none; }
.lp a:hover { text-decoration: underline; }
@media (max-width: 860px) { .partner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .glass { height: auto; } .glass__pin { position: relative; height: 100vh; }
  .statement span em { transform: none; transition: none; }
  .hero-fade { opacity: 1; transform: none; transition: none; }
  .issue h2 .w { color: var(--navy); }
  .mq__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--pad); }
}
