/* ==========================================================================
   KALBI signature layer (November 2026). Loaded last on every page.
   Concept: "ECG paper". Warm paper background, bold Roboto headlines,
   ink-navy monitor panels with a live trace, and pink ECG grid paper behind
   the sample report. Remove this file and its <link> to return to the
   previous look.
   ========================================================================== */


:root{
  --s-ink:#0b1531;
  --s-ink-2:#13204a;
  --s-paper:#faf7f2;
  --s-paper-2:#f2ede4;
  --s-line:#e6e0d5;
  --s-signal:#e5323f;
  --s-signal-hot:#ff5c68;
  --s-muted:#5f6a80;
  --s-display:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --s-grid-min:rgba(229,50,63,.07);
  --s-grid-maj:rgba(229,50,63,.16);
}

/* ---------- Base ---------- */
html body{background:var(--s-paper)}
html body main{background:transparent!important}
html body main.home .visual-steps,html body main.home .section-5,html body main.home .upload-formats,
html body main.home .planned-compatibility,html body main.home .section-8,html body main.home .section-9,
html body main .section,html body main .kb-cta-section{background-color:transparent!important}
html body .planned-heading .eyebrow{display:flex!important;justify-content:center;margin-bottom:12px!important}

.s-paper-grid,
html body .report-section{
  background-color:#fff6f3!important;
  background-image:
    linear-gradient(var(--s-grid-maj) 1px,transparent 1px),
    linear-gradient(90deg,var(--s-grid-maj) 1px,transparent 1px),
    linear-gradient(var(--s-grid-min) 1px,transparent 1px),
    linear-gradient(90deg,var(--s-grid-min) 1px,transparent 1px)!important;
  background-size:40px 40px,40px 40px,8px 8px,8px 8px!important;
}

/* Big headlines: bold Roboto with tight tracking */
html body main h1,
html body main.home h2,
html body .page-hero h1,
html body main .section h2,
html body .kb-cta-section h2{
  font-family:var(--s-display)!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
  line-height:1.1!important;
}
html body main.home h2{font-size:clamp(32px,3.6vw,48px)!important}

/* Eyebrows get a small pulse glyph */
html body main.home .eyebrow,
html body .export-96,html body .export-144,html body .export-173,html body .export-202,html body .export-221{
  display:inline-flex!important;align-items:center;gap:10px;
  font-size:11px!important;letter-spacing:.16em!important;font-weight:800!important;
  color:var(--s-signal)!important;text-transform:uppercase;
}
html body main.home .eyebrow::before,
html body .export-96::before,html body .export-144::before,html body .export-173::before,html body .export-202::before,html body .export-221::before{
  content:'';width:28px;height:12px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h9l2-4 3 9 3-11 2 6h9' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h9l2-4 3 9 3-11 2 6h9' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Header ---------- */
html body .kb-header{background:rgba(250,247,242,.82);border-bottom-color:var(--s-line)}
html body .kb-header .kb-cta{background:var(--s-ink)!important;border-radius:999px!important;padding-inline:20px!important;box-shadow:none!important}
html body .kb-header .kb-cta:hover{background:var(--s-signal)!important}

/* ---------- Hero: cardiac monitor ---------- */
html body .refreshed-hero{
  position:relative;overflow:hidden;isolation:isolate;
  background-color:var(--s-ink)!important;
  background-image:
    radial-gradient(ellipse 60% 70% at 75% 45%,rgba(229,50,63,.22),transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px)!important;
  background-size:auto,48px 48px,48px 48px,12px 12px,12px 12px!important;
}
.hero-monitor{position:absolute;left:0;right:0;bottom:28px;height:110px;z-index:0;pointer-events:none;
  -webkit-mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.hero-monitor svg{width:100%;height:100%;display:block;overflow:visible}
.hero-monitor path{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.hero-monitor .trace-base{stroke:rgba(255,92,104,.16);stroke-width:1.5}
.hero-monitor .trace-pulse{stroke:var(--s-signal-hot);stroke-width:2.5;stroke-dasharray:140 860;stroke-dashoffset:1000;
  filter:drop-shadow(0 0 6px rgba(255,92,104,.9));animation:s-sweep 6s linear infinite}
@keyframes s-sweep{to{stroke-dashoffset:0}}

html body .refreshed-hero .hero-inner{position:relative;z-index:1;padding-top:88px;padding-bottom:96px}
html body .refreshed-hero h1{color:#fff!important;font-size:clamp(44px,5vw,70px)!important;line-height:1.04!important;letter-spacing:-.035em!important;font-weight:800!important;margin:22px 0 24px}
html body .refreshed-hero h1 span{font-style:italic;color:var(--s-signal-hot)!important;background:none!important;-webkit-text-fill-color:currentColor}
html body .refreshed-hero .hero-lead{color:#b9c2d8!important;font-size:17px;max-width:470px}
html body .refreshed-hero .eyebrow-pill{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.14);color:#ffb7bd!important;border-radius:999px!important;letter-spacing:.14em}
html body .refreshed-hero .primary-button{background:var(--s-signal)!important;border-radius:999px!important;padding:16px 28px!important;box-shadow:0 0 0 6px rgba(229,50,63,.16),0 18px 40px -12px rgba(229,50,63,.7)!important;transition:transform .2s,box-shadow .2s}
html body .refreshed-hero .primary-button:hover{transform:translateY(-2px);box-shadow:0 0 0 9px rgba(229,50,63,.2),0 22px 44px -12px rgba(229,50,63,.8)!important}
html body .refreshed-hero .hero-note{color:#cdd4e4!important}
html body .refreshed-hero .status-dot{background:#4ade80!important;box-shadow:0 0 0 4px rgba(74,222,128,.18);animation:s-blip 2s ease-in-out infinite}
@keyframes s-blip{50%{box-shadow:0 0 0 8px rgba(74,222,128,0)}}
html body .refreshed-hero .service-note{color:#8792aa!important}
html body .hero-orbit{background:radial-gradient(circle,rgba(229,50,63,.26) 0%,rgba(229,50,63,.08) 45%,transparent 66%)!important}
html body .hero-orbit::after{border-color:rgba(255,255,255,.08)!important}
html body .hero-stage .hero-phone{filter:drop-shadow(0 30px 40px rgba(0,0,0,.45))}
html body .hero-float{background:rgba(255,255,255,.96);border:0;box-shadow:0 20px 50px -10px rgba(0,0,0,.45);border-radius:16px}

/* ---------- Vitals strip ---------- */
html body .vitals{background:var(--s-ink)!important;border:0!important;padding:0 32px!important;margin:0!important}
html body .vitals .vitals-inner{display:grid!important;justify-content:stretch!important;gap:0!important;flex-wrap:nowrap;max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid rgba(255,255,255,.1)}
html body .vitals .vitals-inner>div{margin:0!important;width:auto!important;text-align:left!important;align-items:flex-start!important;padding:28px 24px 34px;border-left:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:6px}
html body .vitals .vitals-inner>div:first-child{border-left:0;padding-left:0}
.vitals-inner strong{font-family:var(--s-display);font-weight:800;font-size:38px;line-height:1;color:#fff;letter-spacing:-.01em}
.vitals-inner strong small{font-family:var(--kb-font,inherit);font-size:13px;color:var(--s-signal-hot);margin-left:4px;font-weight:700;letter-spacing:.04em}
.vitals-inner span{font-size:13px;color:#98a3bb;display:block!important;padding:0!important;background:none!important}
.vitals-inner span::before{display:none!important}

/* ---------- How it works ---------- */
html body .visual-steps{padding-top:112px!important;padding-bottom:96px!important}
html body .visual-section-heading{margin-bottom:48px}
html body .visual-section-heading>p{font-size:16px!important;max-width:380px;color:var(--s-muted)}
html body .journey-cards{counter-reset:step;gap:28px}
html body .journey-card{counter-increment:step;position:relative;background:#fff;border:0;border-radius:26px;box-shadow:0 1px 0 var(--s-line),0 24px 50px -36px rgba(11,21,49,.35);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
html body .journey-card:hover{transform:translateY(-8px);box-shadow:0 1px 0 var(--s-line),0 34px 60px -30px rgba(11,21,49,.4)}
html body .journey-art{height:250px;margin:10px 10px 0;border-radius:18px}
html body .journey-copy{position:relative;padding:28px 28px 32px}
html body .journey-copy::before{content:counter(step,decimal-leading-zero);position:absolute;right:24px;top:10px;font-family:var(--s-display);font-weight:900;font-size:64px;line-height:1;color:rgba(229,50,63,.1)}
html body .journey-copy h3{font-family:var(--s-display);font-weight:700;font-size:22px!important;letter-spacing:-.02em;line-height:1.25}
html body .journey-copy p{font-size:14px!important}

/* ---------- Sample report on ECG paper ---------- */
html body .report-section{border-radius:36px!important;padding:88px 56px!important;max-width:1240px}
html body .report-section .export-110{transform:rotate(1.4deg);box-shadow:0 50px 90px -40px rgba(11,21,49,.55),0 0 0 1px rgba(11,21,49,.06)!important;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
html body .report-section .export-110:hover{transform:rotate(0) translateY(-4px)}
html body .report-section .export-111{background:var(--s-ink)!important}
html body .report-section .export-98{font-size:16px!important;color:var(--s-muted)}
html body .report-section .sample-caption{color:#8b6f6f}

/* ---------- Cardiologist ---------- */
html body .section-6{background:transparent!important;padding-top:120px!important;padding-bottom:120px!important}
html body .section-6>div{gap:88px!important}
html body .section-6>div>div:first-child{max-width:430px!important;width:100%;aspect-ratio:1/1;isolation:isolate}
html body .section-6 .export-172::before{content:'';position:absolute;inset:0;transform:translate(22px,22px);border:1.5px solid var(--s-signal);border-radius:30px;z-index:-1}
html body .section-6 .export-172::after{content:'FACC · FHRS';position:absolute;left:-18px;bottom:36px;background:var(--s-ink);color:#fff;font-size:12px;font-weight:800;letter-spacing:.14em;padding:12px 16px;border-radius:999px;box-shadow:0 16px 30px -12px rgba(11,21,49,.6)}
html body .section-6 img{border-radius:30px!important;box-shadow:0 40px 70px -40px rgba(11,21,49,.6)}
html body .section-6 h2{font-size:clamp(36px,4vw,54px)!important;margin:16px 0 8px!important}
html body .export-175{color:var(--s-signal)!important;font-weight:700;letter-spacing:.12em}
html body .section-6>div>div:nth-child(2)>div:nth-of-type(3)>span{background:var(--s-paper-2)!important;border:0!important;color:var(--s-ink)!important;border-radius:999px!important;padding:8px 14px!important}
html body .export-180{font-size:16px!important;line-height:1.8!important;color:var(--s-muted)!important}
html body .export-181{background:#fff!important;border:0!important;border-left:3px solid var(--s-signal)!important;border-radius:4px 14px 14px 4px!important;box-shadow:0 18px 40px -30px rgba(11,21,49,.4)}

/* ---------- App showcase: dark monitor panel ---------- */
html body .app-showcase{background:var(--s-ink)!important;color:#fff;border-radius:36px!important;max-width:1240px;padding:88px 56px!important;position:relative;overflow:hidden;
  background-image:radial-gradient(ellipse 50% 60% at 80% 50%,rgba(229,50,63,.2),transparent 70%),linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px)!important;
  background-size:auto,48px 48px,48px 48px!important}
html body .app-showcase h2{color:#fff!important}
html body .app-showcase .section-intro{color:#a7b1c7!important;font-size:16px}
html body .app-tabs button{color:#fff!important;border-radius:16px!important}
html body .app-tabs button[aria-selected=true]{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.14)!important;box-shadow:none!important}
html body .app-tabs button:hover{background:rgba(255,255,255,.04)}
html body .app-tabs small{color:#97a2ba!important}
html body .app-tabs button>span{color:var(--s-signal-hot)!important;font-family:var(--s-display);font-weight:800;font-size:16px!important}
html body .app-tabs b{color:var(--s-signal-hot)!important}
html body .showcase-screen{background:radial-gradient(circle,rgba(229,50,63,.28),transparent 65%)!important}
html body .showcase-screen img{filter:drop-shadow(0 30px 40px rgba(0,0,0,.5))}

/* ---------- Context, formats, devices ---------- */
html body .section-5{padding-top:112px!important}
html body .context-card{background:#fff!important;border:0!important;border-radius:24px!important;box-shadow:0 1px 0 var(--s-line),0 24px 50px -38px rgba(11,21,49,.35)}
html body .export-149,html body .export-161{font-family:var(--s-display);font-weight:700!important;font-size:20px!important;letter-spacing:-.01em}
html body .formats-inner,html body .planned-panel{background:#fff!important;border:0!important;border-radius:32px!important;box-shadow:0 1px 0 var(--s-line),0 30px 60px -44px rgba(11,21,49,.35)}
html body .format-grid article,html body .planned-device{background:var(--s-paper)!important;border:0!important;border-radius:18px!important}
html body .format-grid h3{font-family:var(--s-display);font-weight:700;font-size:20px!important;line-height:1.25;letter-spacing:-.01em}
html body .format-grid aside{background:var(--s-ink)!important;border-radius:18px!important}
html body .formats-heading h2,html body .planned-heading h2{font-size:clamp(28px,3vw,40px)!important}

/* ---------- Security ---------- */
html body .security-panel{background-color:var(--s-ink)!important;border-radius:36px!important;padding:64px 56px!important;
  background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px)!important;background-size:48px 48px!important}
html body main.home .security-panel h2{font-size:clamp(32px,3.6vw,46px)!important}
html body .security-panel .export-205>div{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:20px!important}

/* ---------- FAQ: editorial two-column ---------- */
@media(min-width:901px){
  html body .section-9{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:72px;max-width:1140px!important;align-items:start;padding-top:112px!important;padding-bottom:96px!important}
  html body .export-220{text-align:left!important;position:sticky;top:110px}
}
html body .section-9 h2{font-size:clamp(36px,4vw,54px)!important}
html body .faq-card{background:transparent!important;border-bottom-color:var(--s-line)!important;padding:26px 4px!important}
html body .faq-card summary{font-size:18px!important;font-weight:700}
html body .faq-card>div{color:var(--s-muted)!important;font-size:15px;line-height:1.8;padding-top:12px}
html body .faq-card summary:after{color:var(--s-signal)!important}

/* ---------- CTA band ---------- */
html body .kb-cta-section .illustrated-cta{background:var(--s-ink)!important;border-radius:36px!important}
html body main .kb-cta-section h2{font-size:clamp(28px,3vw,40px)!important;line-height:1.12!important;letter-spacing:-.025em!important}
html body .kb-cta-section .cta-art::before{background:linear-gradient(90deg,var(--s-ink) 0%,transparent 26%)!important}
html body .kb-cta-section .download-cta{border-radius:999px!important}

/* ---------- Footer ---------- */
html body .kb-footer{background:var(--s-ink)!important}

/* ---------- Inner pages ---------- */
html body .page-hero{background-color:var(--s-ink)!important;color:#fff;
  background-image:radial-gradient(ellipse 50% 80% at 85% 30%,rgba(229,50,63,.22),transparent 70%),linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px)!important;
  background-size:auto,48px 48px,48px 48px!important;padding:96px 0!important}
html body .page-hero h1{color:#fff!important;font-size:clamp(38px,4.8vw,64px)!important;font-weight:800!important}
html body .page-hero .lead,html body .page-hero p:not(.eyebrow){color:#b9c2d8!important}
html body .page-hero .eyebrow{color:var(--s-signal-hot)!important}
html body .page-hero figcaption{color:#8792aa!important}
html body main .section h2{font-size:clamp(28px,3.2vw,42px)!important}

/* ---------- Scroll reveal (enabled by js/refinements.js) ---------- */
.s-reveal-on .s-reveal{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.s-reveal-on .s-reveal.s-in{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  .hero-monitor .trace-pulse{animation:none;stroke-dasharray:none;stroke:rgba(255,92,104,.5)}
  html body .refreshed-hero .status-dot{animation:none}
  .s-reveal-on .s-reveal{opacity:1;transform:none;transition:none}
}

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  html body .section-6>div{gap:56px!important}
}
@media(max-width:900px){
  html body .vitals .vitals-inner{grid-template-columns:repeat(2,1fr)!important}
  html body .vitals .vitals-inner>div:nth-child(3){border-left:0;padding-left:0}
  html body .vitals .vitals-inner>div:nth-child(n+3){border-top:1px solid rgba(255,255,255,.1)}
  html body .export-220{text-align:left!important}
}
@media(max-width:760px){
  html body .refreshed-hero .hero-inner{padding-top:48px!important}
  html body .refreshed-hero h1{font-size:42px!important}
  html body main.home h2{font-size:32px!important}
  html body .vitals{padding:0 20px!important}
  html body .vitals .vitals-inner>div{padding:22px 14px 24px}
  html body .vitals .vitals-inner>div:nth-child(odd){padding-left:0}
  .vitals-inner strong{font-size:30px}
  html body .visual-steps{padding-top:72px!important;padding-bottom:64px!important}
  html body .report-section,html body .app-showcase{border-radius:28px!important;padding:56px 22px!important}
  html body .report-section .export-110{transform:none}
  html body .section-6{padding-top:80px!important;padding-bottom:80px!important}
  html body .section-6>div>div:first-child{max-width:calc(100% - 28px)!important;margin-right:28px}
  html body .section-6 .export-172::before{transform:translate(14px,14px)}
  html body .section-6 .export-172::after{left:-8px;bottom:20px}
  html body .security-panel{padding:40px 22px!important;border-radius:28px!important}
  html body .section-9 h2{font-size:34px!important}
  html body .page-hero{padding:64px 0!important}
}

/* ==========================================================================
   Round 2: header, motion and interaction polish
   ========================================================================== */

::selection{background:#ffd3d7;color:var(--s-ink)}
html body :focus-visible{outline:2px solid var(--s-signal);outline-offset:3px;border-radius:6px}
html{interpolate-size:allow-keywords}

/* ---------- Header: dark over the hero, paper once scrolled ---------- */
html body .kb-header{transition:none}
html body .kb-header.kb-anim{transition:background-color .35s ease,border-color .35s ease,box-shadow .35s ease}
.kb-brand-dual{position:relative}
.kb-brand-dual .kb-logo-light{display:none}
html body .kb-header.on-dark{background:var(--s-ink);border-bottom-color:rgba(255,255,255,.08);box-shadow:none}
.kb-header.on-dark .kb-brand-dual .kb-logo-dark{display:none}
.kb-header.on-dark .kb-brand-dual .kb-logo-light{display:block}
html body .kb-header.on-dark .kb-nav a{color:#c3cbdc}
html body .kb-header.on-dark .kb-nav a:hover{color:#fff}
html body .kb-header.on-dark .kb-cta{background:var(--s-signal)!important}
html body .kb-header.on-dark .kb-cta:hover{background:var(--s-signal-hot)!important}
.kb-header.on-dark .kb-menu-toggle{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16)}
.kb-header.on-dark .kb-menu-toggle span{background:#fff}
.kb-progress{position:absolute;left:0;right:0;bottom:-1px;height:2px;z-index:2;transform:scaleX(0);transform-origin:0 50%;
  background:linear-gradient(90deg,var(--s-signal),var(--s-signal-hot));box-shadow:0 0 8px rgba(255,92,104,.6);pointer-events:none}
@media(min-width:901px){
  html body .kb-nav a{position:relative}
  html body .kb-nav a::after{content:'';position:absolute;left:0;right:0;bottom:-6px;height:1.5px;border-radius:2px;background:var(--s-signal);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
  html body .kb-nav a:hover::after,html body .kb-nav a:focus-visible::after{transform:scaleX(1)}
}
@media(max-width:900px){
  html body .kb-header.on-dark .kb-nav{background:var(--s-ink);border-bottom-color:rgba(255,255,255,.08)}
  html body .kb-header.on-dark .kb-nav a{border-top-color:rgba(255,255,255,.08)}
  html body .kb-header:not(.on-dark) .kb-nav{background:var(--s-paper)}
}

/* ---------- Hero entrance and gentle float ---------- */
@keyframes s-rise{from{opacity:0;transform:translateY(26px)}}
@keyframes s-fade{from{opacity:0}}
@keyframes s-float{50%{translate:0 -12px}}
@keyframes s-phone-in{from{opacity:0;translate:0 60px}}
html body .refreshed-hero .hero-copy>*{animation:s-rise .9s cubic-bezier(.2,.7,.2,1) both}
html body .refreshed-hero .hero-copy>:nth-child(2){animation-delay:.08s}
html body .refreshed-hero .hero-copy>:nth-child(3){animation-delay:.16s}
html body .refreshed-hero .hero-copy>:nth-child(4){animation-delay:.24s}
html body .refreshed-hero .hero-copy>:nth-child(n+5){animation-delay:.32s}
html body .hero-stage .hero-phone{animation:s-phone-in 1.1s cubic-bezier(.2,.7,.2,1) both}
html body .hero-stage .phone-center{animation-delay:.15s}
html body .hero-stage .phone-left{animation-delay:.3s}
html body .hero-stage .phone-right{animation-delay:.4s}
html body .hero-stage .hero-phone img{animation:s-float 7s ease-in-out 1.4s infinite}
html body .hero-stage .phone-left img{animation-delay:-2.3s}
html body .hero-stage .phone-right img{animation-delay:-4.6s}
html body .hero-float{animation:s-fade .8s ease .9s both,s-float 6s ease-in-out 1.7s infinite}
html body .hero-float-bottom{animation-delay:1.1s,-3s}
html body .refreshed-hero .primary-button{display:inline-flex;align-items:center;gap:8px}
html body .refreshed-hero .primary-button .chev{transition:transform .2s ease}
html body .refreshed-hero .primary-button:hover .chev{transform:translateX(3px)}

/* ---------- Cards and imagery ---------- */
html body .journey-art>img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
html body .journey-card:hover .journey-art>img{transform:scale(1.05)}
html body .section-6 .export-172::before{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
html body .section-6 .export-172:hover::before{transform:translate(12px,12px)}
html body .security-panel .export-205>div{transition:transform .3s ease,background-color .3s ease,border-color .3s ease}
html body .security-panel .export-205>div:hover{transform:translateY(-4px);background:rgba(255,255,255,.08)!important;border-color:rgba(255,92,104,.35)!important}
html body .format-grid article,html body .planned-device{transition:transform .3s ease,box-shadow .3s ease}
html body .format-grid article:hover,html body .planned-device:hover{transform:translateY(-4px);box-shadow:0 20px 40px -28px rgba(11,21,49,.4)}

/* ---------- Sample report: the trace draws itself in ---------- */
.s-reveal-on .report-grid>div .export-119 path{stroke-dasharray:2400;stroke-dashoffset:2400}
.s-reveal-on .report-grid>div.s-in .export-119 path{transition:stroke-dashoffset 2.4s cubic-bezier(.4,0,.2,1) .4s;stroke-dashoffset:0}
@keyframes s-stamp{0%{transform:scale(1.6);opacity:0}60%{transform:scale(.92);opacity:1}100%{transform:scale(1)}}
.s-reveal-on .report-grid>div.s-in .export-116{animation:s-stamp .5s cubic-bezier(.2,.7,.2,1) 2.5s both}

/* ---------- App showcase: auto-advance progress and image fade ---------- */
html body .app-tabs button{position:relative;overflow:hidden}
@keyframes s-tab-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.app-tabs.s-auto button[aria-selected=true]::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--s-signal-hot);transform-origin:left;animation:s-tab-progress 5s linear}
html body #showcase-image{transition:opacity .25s ease,transform .35s cubic-bezier(.2,.7,.2,1)}
html body #showcase-image.s-swap{opacity:0;transform:translateY(10px) scale(.98)}

/* ---------- Context chips (interactive demo) ---------- */
.s-chip{cursor:pointer;user-select:none;transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .15s ease}
.s-chip:hover{transform:translateY(-1px)}
.s-chip:active{transform:scale(.96)}
html body .s-chip[aria-pressed=false]{background:#fff!important;color:var(--s-ink)!important;border:1px solid #e2e5eb!important}
html body .s-chip[aria-pressed=false]:hover{border-color:var(--s-signal)!important}
html body .s-chip[aria-pressed=false] svg{display:none}
html body .s-chip[aria-pressed=true]{background:var(--s-signal)!important;color:#fff!important;border:1px solid var(--s-signal)!important;display:inline-flex;align-items:center;gap:7px}
html body .s-chip[aria-pressed=true]:not(:has(svg))::before{content:'';width:9px;height:5px;border:solid #fff;border-width:0 0 2.4px 2.4px;transform:translateY(-2px) rotate(-45deg)}
.s-try-hint{display:inline-flex;align-items:center;gap:8px;margin:18px auto 0;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--s-signal);background:#fff;border-radius:999px;padding:7px 14px;box-shadow:0 0 0 1px #f6d2d5}
.s-try-hint::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--s-signal);animation:s-blip-red 1.8s ease-in-out infinite}
@keyframes s-blip-red{0%,100%{box-shadow:0 0 0 0 rgba(229,50,63,.5)}50%{box-shadow:0 0 0 6px rgba(229,50,63,0)}}

/* ---------- FAQ: smooth open, plus turns to a cross ---------- */
html body .faq-card::details-content{block-size:0;overflow:hidden;transition:block-size .35s ease,content-visibility .35s allow-discrete}
html body .faq-card[open]::details-content{block-size:auto}
html body .faq-card summary:after{content:'+'!important;display:inline-block;transition:transform .3s ease}
html body .faq-card[open] summary:after{transform:rotate(45deg)}
html body .faq-card summary:hover{color:var(--s-signal)}

/* ---------- CTA band and footer ---------- */
html body .kb-cta-section .illustrated-cta{background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px)!important;background-size:48px 48px!important}
html body .kb-cta-section .download-cta{transition:transform .2s ease,box-shadow .2s ease}
html body .kb-cta-section .download-cta:hover{transform:translateY(-2px);box-shadow:0 14px 30px -12px rgba(0,0,0,.5)}
html body .kb-footer{position:relative;overflow:hidden}
html body .kb-footer::after{content:'Kalbi';position:absolute;left:50%;bottom:-.28em;transform:translateX(-50%);font-family:var(--s-display);font-weight:900;letter-spacing:-.04em;font-size:clamp(120px,22vw,320px);line-height:1;color:rgba(255,255,255,.035);pointer-events:none;white-space:nowrap}
html body .kb-footer>*{position:relative;z-index:1}

@media(prefers-reduced-motion:reduce){
  html body .refreshed-hero .hero-copy>*,html body .hero-stage .hero-phone,html body .hero-stage .hero-phone img,html body .hero-float,
  .s-try-hint::before,.s-reveal-on .report-grid>div.s-in .export-116{animation:none!important}
  .s-reveal-on .report-grid>div .export-119 path{stroke-dashoffset:0}
  html body .faq-card::details-content{transition:none}
}

/* ==========================================================================
   Device compatibility (planned): brand-logo tiles
   ========================================================================== */
html body .devices-v2 .planned-panel{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;align-items:center;
  padding:64px 56px 40px!important;position:relative;overflow:hidden;isolation:isolate}
html body .devices-v2 .planned-panel::before{content:'';position:absolute;inset:0 0 0 42%;z-index:-1;
  background-image:linear-gradient(var(--s-grid-maj) 1px,transparent 1px),linear-gradient(90deg,var(--s-grid-maj) 1px,transparent 1px),linear-gradient(var(--s-grid-min) 1px,transparent 1px),linear-gradient(90deg,var(--s-grid-min) 1px,transparent 1px);
  background-size:40px 40px,40px 40px,8px 8px,8px 8px;
  -webkit-mask:linear-gradient(90deg,transparent,#000 30%);mask:linear-gradient(90deg,transparent,#000 30%)}
html body .devices-v2 .planned-heading{text-align:left;max-width:none;margin:0}
html body main.home .devices-v2 .planned-heading .eyebrow{display:flex!important;justify-content:flex-start!important;margin:0 0 14px!important}
html body .devices-v2 .coming-soon{display:inline-flex;align-items:center;gap:8px;background:#fff3f4;color:var(--s-signal);border:1px solid #f6d2d5;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}
html body .devices-v2 .coming-soon::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--s-signal);animation:s-blip-red 1.8s ease-in-out infinite}
html body .devices-v2 .planned-heading h2{margin:18px 0 14px!important;font-size:clamp(30px,3.2vw,42px)!important}
html body .devices-v2 .planned-subtitle{font-size:17px;color:var(--s-ink);margin:0}
html body .devices-v2 .planned-disclosure{margin:14px 0 0;max-width:440px;font-size:13px;color:var(--s-muted)}
.devices-now,html body main.home a.devices-now{color:#fff!important}
.devices-now{display:inline-flex;align-items:center;gap:8px;margin-top:26px;padding:12px 18px;border-radius:999px;background:var(--s-ink);color:#fff;font-size:14px;font-weight:700;text-decoration:none;transition:background-color .2s,transform .2s}
.devices-now:hover{background:var(--s-signal);transform:translateY(-2px)}
.devices-now .chev{transition:transform .2s}
.devices-now:hover .chev{transform:translateX(3px)}

.device-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.device-tile{position:relative;background:#fff;border-radius:20px;padding:0;display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 0 0 1px rgba(11,21,49,.07),0 18px 36px -28px rgba(11,21,49,.35);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.device-tile:hover{transform:translateY(-6px);box-shadow:0 0 0 1px rgba(229,50,63,.25),0 28px 50px -30px rgba(11,21,49,.45)}
.device-logo{height:124px;display:grid;place-items:center;padding:16px 22px 0}
.device-logo img{display:block;width:auto;max-width:100%;height:30px;object-fit:contain;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.device-tile:hover .device-logo img{transform:scale(1.06)}
/* Optical sizing: wordmarks of different proportions read at a similar weight */
.device-apple .device-logo img{height:30px}
.device-samsung .device-logo img{height:20px}
.device-fitbit .device-logo img{height:34px}
.device-garmin .device-logo img{height:30px}
.device-withings .device-logo img{height:20px}
.device-kardia .device-logo img{height:28px}
.device-meta{display:block;padding:12px 16px;border-top:1px solid #f0ece5;background:var(--s-paper)}
.device-kind{display:block;font-size:12px;color:var(--s-muted);font-weight:600}
.device-status{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9a5b12;background:#fff4e2;border-radius:999px;padding:4px 9px}
.device-status::before{content:'';width:10px;height:10px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat}
html body .devices-v2 .planned-note{grid-column:1/-1;text-align:left;margin:8px 0 0;padding-top:20px;border-top:1px solid var(--s-line);font-size:11.5px;line-height:1.7;color:#8a93a5}

@media(max-width:1050px){
  html body .devices-v2 .planned-panel{grid-template-columns:1fr;gap:36px}
  html body .devices-v2 .planned-panel::before{inset:40% 0 18% 0;-webkit-mask:linear-gradient(180deg,transparent,#000 30%);mask:linear-gradient(180deg,transparent,#000 30%)}
}
@media(max-width:760px){
  html body .devices-v2 .planned-panel{padding:40px 20px 28px!important;border-radius:28px!important}
  .device-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .device-logo{height:96px;padding:0 14px}
  .device-meta{padding:10px 12px}
  .device-logo{padding-top:18px}
  .device-status{top:8px;right:8px;font-size:10px;padding:3px 7px}
  .device-apple .device-logo img{height:24px}
  .device-samsung .device-logo img{height:15px}
  .device-fitbit .device-logo img{height:28px}
  .device-garmin .device-logo img{height:24px}
  .device-withings .device-logo img{height:15px}
  .device-kardia .device-logo img{height:22px}
}
@media(prefers-reduced-motion:reduce){html body .devices-v2 .coming-soon::before{animation:none}}

/* ==========================================================================
   Pricing (matches the in-app Plans & pricing screen)
   ========================================================================== */
.pricing-section{max-width:1200px;margin:0 auto;padding:112px 32px 40px}
.pricing-heading{text-align:center;max-width:640px;margin:0 auto 48px}
html body main.home .pricing-heading .eyebrow{justify-content:center}
html body main.home .pricing-heading h2{margin:16px 0 14px!important}
.pricing-heading>p:last-child{font-size:16px;line-height:1.7;color:var(--s-muted);margin:0}
.pricing-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:stretch}

.plan-card{position:relative;overflow:hidden;isolation:isolate;border-radius:32px;padding:36px;color:#fff;
  background:linear-gradient(155deg,#1a2b4d 0%,var(--s-ink) 100%);
  box-shadow:0 0 0 3px var(--s-signal),0 40px 80px -40px rgba(11,21,49,.7)}
.plan-card::before{content:'';position:absolute;top:-90px;right:-80px;width:320px;height:320px;border-radius:50%;z-index:-1;background:radial-gradient(circle,rgba(229,50,63,.4),transparent 68%)}
.plan-card::after{content:'';position:absolute;inset:0;z-index:-1;opacity:.6;
  background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:32px 32px}
.plan-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.plan-badge{background:var(--s-signal);color:#fff;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:6px 12px;border-radius:999px}
.plan-save{display:inline-flex;align-items:center;gap:6px;background:rgba(74,222,128,.14);border:1px solid rgba(74,222,128,.32);color:#4ade80;font-size:13px;font-weight:700;padding:5px 11px;border-radius:999px}
.plan-card h3{margin:22px 0 4px;font-size:22px;font-weight:800;letter-spacing:-.01em;color:#fff}
.plan-price{display:flex;align-items:baseline;gap:8px;margin:0}
.plan-price strong{font-size:64px;font-weight:800;letter-spacing:-.04em;line-height:1}
.plan-price span{font-size:18px;font-weight:600;color:rgba(255,255,255,.72)}
.plan-choose{margin:26px 0 12px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.plan-options{display:flex;align-items:center;gap:10px}
.plan-option{flex:1;display:flex;flex-direction:column;gap:2px;border-radius:20px;padding:18px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);transition:background-color .25s,border-color .25s,transform .25s}
.plan-option:hover{background:rgba(255,255,255,.11);border-color:rgba(255,92,104,.45);transform:translateY(-3px)}
.plan-option svg{color:var(--s-signal-hot);margin-bottom:10px}
.plan-option b{font-size:40px;font-weight:800;line-height:1;letter-spacing:-.02em}
.plan-option span{font-size:15px;font-weight:700}
.plan-option small{font-size:12.5px;color:rgba(255,255,255,.66);margin-top:2px}
.plan-or{flex:none;width:38px;height:38px;border-radius:50%;background:#fff;color:var(--s-ink);font-size:13px;font-weight:800;display:grid;place-items:center;box-shadow:0 8px 20px -8px rgba(0,0,0,.6)}
.plan-fine{margin:14px 0 0;font-size:13px;color:rgba(255,255,255,.72)}
html body main.home a.plan-cta,.plan-cta{display:flex;align-items:center;justify-content:center;margin-top:26px;height:56px;border-radius:999px;background:var(--s-signal);color:#fff!important;font-size:16px;font-weight:700;text-decoration:none;
  box-shadow:0 0 0 6px rgba(229,50,63,.16),0 18px 40px -14px rgba(229,50,63,.8);transition:transform .2s,box-shadow .2s,background-color .2s}
.plan-cta:hover{background:var(--s-signal-hot);transform:translateY(-2px)}
.plan-renew{margin:14px 0 0;text-align:center;font-size:12px;line-height:1.6;color:rgba(255,255,255,.6)}

.payg{display:flex;flex-direction:column;gap:16px;border-radius:32px;padding:36px;background:#fff;box-shadow:0 1px 0 var(--s-line),0 30px 60px -44px rgba(11,21,49,.4)}
.payg h3{margin:0 0 4px;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--s-muted)}
.payg-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.payg-list li{display:flex;align-items:center;gap:16px;padding:20px 0;border-top:1px solid #efeae2}
.payg-list li:first-child{border-top:0;padding-top:8px}
.payg-icon{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#fdecee;color:var(--s-signal)}
.payg-icon-navy{background:#eaf0fa;color:var(--s-ink)}
.payg-icon-grey{background:#f0f1f4;color:#7a8396}
.payg-list li>div{flex:1;min-width:0}
.payg-list strong{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:17px;font-weight:700;color:var(--s-ink)}
.payg-list strong em{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9a5b12;background:#fff4e2;padding:3px 8px;border-radius:999px}
.payg-list li>div small{display:block;margin-top:3px;font-size:13.5px;color:var(--s-muted)}
.payg-list p{margin:0;text-align:right;flex:none}
.payg-list p b{display:block;font-size:24px;font-weight:800;letter-spacing:-.02em;color:var(--s-ink)}
.payg-list p small{font-size:12px;color:var(--s-muted)}
.payg-soon{opacity:.62}
.payg-note{margin-top:auto;display:flex;gap:12px;align-items:flex-start;border-radius:18px;padding:16px 18px;background:var(--s-paper)}
.payg-note svg{flex:none;color:#1c8a4e;margin-top:2px}
.payg-note p{margin:0;font-size:13.5px;line-height:1.6;color:var(--s-muted)}
.pricing-legal{margin:22px 0 0;text-align:center;font-size:12px;color:#8a93a5}

@media(max-width:960px){.pricing-grid{grid-template-columns:1fr}}
@media(max-width:760px){
  .pricing-section{padding:72px 20px 24px}
  .pricing-heading{margin-bottom:32px}
  .plan-card,.payg{padding:26px 20px;border-radius:26px}
  .plan-price strong{font-size:52px}
  .plan-options{flex-direction:column;align-items:stretch}
  .plan-or{align-self:center;margin:-4px 0}
  .payg-list li{gap:12px}
  .payg-icon{width:44px;height:44px;border-radius:13px}
  .payg-list strong{font-size:15.5px}
  .payg-list p b{font-size:20px}
}
@media(min-width:901px) and (max-width:1120px){html body .kb-nav{gap:18px}html body .kb-nav a{font-size:12.5px}}

/* Chevron icons (replace the old arrow glyphs) */
.chev{display:inline-block;flex:none;vertical-align:middle}
html body .app-tabs b{display:inline-flex;align-items:center;transition:transform .2s ease}
html body .app-tabs button:hover b,html body .app-tabs button[aria-selected=true] b{transform:translateX(3px)}
html body .tiny-file .chev{display:block}

/* ---------- App showcase: tighter, phone matches the text column height ---------- */
html body .app-showcase{padding:72px 56px!important}
html body .showcase-grid{align-items:center;gap:48px}
html body .app-showcase h2{margin:12px 0 14px!important}
html body .app-tabs{margin-top:22px;gap:6px}
html body .app-tabs button{padding:14px 18px}
html body .showcase-screen{padding:0!important;display:flex;align-items:center;justify-content:center;min-height:0}
/* The screenshots carry ~6% transparent margin top and bottom; the negative
   margin lets the visible phone span the full height of the text column. */
html body .showcase-screen img,html body #showcase-image{height:var(--s-phone-h,630px)!important;margin:-40px 0}
@media(max-width:960px){html body .showcase-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){
  html body .app-showcase{padding:56px 22px!important}
  html body .showcase-screen img,html body #showcase-image{--s-phone-h:480px;margin:-28px 0}
}
