/* Scroll storytelling for the Clearview homepage.
   Resting styles below render a complete, readable page without JavaScript.
   Everything under html.cv-motion is an enhancement added by motion.js. */

/* ---------- Resting layout for new content ---------- */
.hero-line{display:block}
.backed-by{display:flex;align-items:center;justify-content:center;gap:9px;max-width:none;margin:0 0 24px;font-size:max(12px,var(--min-text,0px));color:#637468}
.backed-by img,.demo-audience img{height:16px;width:auto}
.clearview em{font-style:normal;font-family:Fraunces,Georgia,serif;font-weight:400;letter-spacing:-.04em;color:#2f5a48}

.clear-problem{padding:120px 0 10px;text-align:center}
.problem-cost{max-width:640px;margin:28px auto 0;font-size:16px;color:#53675d}
.problem-cost strong{color:#202a25;font-weight:600}
.problem-cost small{display:block;font-size:max(11px,var(--min-text,0px));color:#7f9387;margin-top:6px}
.problem-text{max-width:1000px;margin:auto;font-size:clamp(30px,3.7vw,54px);line-height:1.18;letter-spacing:-.04em;font-weight:500;text-wrap:balance}

.check-card{border:1px dashed #9fb3a6;border-radius:14px;padding:22px 24px;background:#fff}
.cc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;border-bottom:1px solid #e3e9e4}
.cc-head b{display:block;font-size:15px;font-weight:600}
.cc-head small{display:block;font-size:max(11px,var(--min-text,0px));color:#637468;margin-top:2px}
.cc-badge{flex:none;display:inline-flex;align-items:center;gap:7px;background:#fdeceb;color:#b4322b;border-radius:100px;padding:4px 11px;font-size:max(12px,var(--min-text,0px));font-weight:600}
.cc-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.check-steps{list-style:none;margin:0;padding:0;display:grid}
.check-step{padding-top:16px}
.check-step+.check-step{margin-top:18px;border-top:1px solid #e3e9e4}
.cc-label{font-size:max(10px,var(--min-text,0px));letter-spacing:.07em;text-transform:uppercase;font-weight:700;color:#5b6d61}
.cc-quote{margin:7px 0 0;padding:11px 15px;border-radius:8px;font-size:16px;line-height:1.5}
.cc-new{background:#fdf1ef;border:1px dashed #e3a097}
.cc-old{background:#f7f9f6;border:1px dashed #9fb3a6}
[data-verdict=match] .cc-new{background:#f1f6f1;border-color:#9fbfa6}
.cc-flag{display:flex;align-items:center;gap:8px;font-size:max(12px,var(--min-text,0px));font-weight:600;color:#a35f00;margin:11px 0}
.cc-flag::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
[data-verdict=match] .cc-flag{color:#2f6b4f}

/* Product section: one card per product, matching the Product menu. */
#consistency li{color:#c0d1c3}
#consistency li::before{border-color:#e4eca8}
#consistency .mega-icon{background:#e4eca8;color:#18382b}
#consistency .text-link{color:#e4eca8}

/* One workspace: three bright cards on the green band. */
.memory-track{list-style:none;margin:54px 0 20px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.memory-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;height:494px;border-radius:20px;background:#f6f5ec;color:#18382b}
/* The painting sits in the top right corner and fades into the paper. */
.memory-art{position:absolute;top:0;right:0;z-index:-1;width:74%;height:56%;object-fit:cover;opacity:.9;-webkit-mask-image:radial-gradient(118% 112% at 100% 0%,#000 14%,transparent 66%);mask-image:radial-gradient(118% 112% at 100% 0%,#000 14%,transparent 66%);transform-origin:100% 0;transition:transform 1.4s var(--cv-ease-out)}
.memory-card::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity .45s ease;background:radial-gradient(300px circle at var(--gx) var(--gy),#fffdf2cc,transparent 70%)}
.memory-card:hover::after{opacity:1}
/* The drawing runs past the card's bottom edge and dissolves into the paper there. */
.memory-card::before{content:"";position:absolute;left:0;right:0;bottom:0;z-index:2;height:60px;pointer-events:none;background:linear-gradient(#f6f5ec00,#f6f5ec)}
.memory-card:hover .memory-art{transform:scale(1.05)}
.memory-copy{padding:34px 34px 0}
.clearview .memory-card h3{font-size:26px;line-height:1.15;letter-spacing:-.035em}
.memory-copy p{max-width:236px;margin-top:10px;font-size:15px;line-height:1.55;color:#3f5448}
/* The small product drawing: anchored to the card's bottom right and cut off by its edge. */
.memory-ui{flex:none;margin:0 -1px 0 12%;border:1px solid #dfe5df;border-radius:16px 0 0 0;background:#fff;box-shadow:0 30px 60px -28px #19352c66;font-size:13px;line-height:1.4;color:#203b32;transition:transform .8s var(--cv-ease-out)}
.memory-card:hover .memory-ui{transform:translate(-3px,-8px)}
.memory-copy{min-height:166px}
.memory-ui b{font-weight:600}
.memory-ui small{font-size:max(11px,var(--min-text,0px));color:#637468}
.memory-ui i{font-style:normal}
.mu-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e6ece7}
.mu-head small{display:block;margin-top:1px}
.mu-chip{flex:none;border:1px solid #dbe3dc;border-radius:100px;padding:3px 10px;font-size:max(11px,var(--min-text,0px));color:#53675d;white-space:nowrap}
.mu-chip.is-ok{border-color:transparent;background:#e7f1e9;color:#2f6b4f;font-weight:600}
.mu-row{display:grid;grid-template-columns:104px auto 1fr;gap:8px;align-items:baseline;padding:11px 18px;border-bottom:1px solid #eef2ee}
.mu-row>span{color:#637468}
.mu-row.is-split{grid-template-columns:1fr auto 84px}
.mu-row.is-split small{text-align:right;font-weight:600}
.mu-ok{color:#2f6b4f}
.memory-ui .mu-due{color:#a35f00}
.mu-item{display:grid;grid-template-columns:32px 1fr;gap:12px;padding:15px 18px;border-bottom:1px solid #eef2ee}
.mu-item small{display:block;margin-top:2px;font-size:max(12px,var(--min-text,0px))}
.mu-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;font-size:max(11px,var(--min-text,0px));font-weight:700;color:#fff}
.mu-avatar.is-amber{background:#a8660f}
.mu-avatar.is-blue{background:#2c62b8}
.mu-status{display:block;margin-top:9px;font-size:max(11px,var(--min-text,0px));color:#637468}
.mu-status .mu-ok{font-weight:600}
.mu-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mu-actions i{border-radius:100px;padding:5px 11px;background:#eef2ee;font-size:max(11px,var(--min-text,0px));font-weight:600}
.mu-actions .is-dark{background:#18382b;color:#fff}
.mu-figure{padding:24px 18px 22px;border-bottom:1px solid #eef2ee}
.mu-figure b{display:block;font-family:Fraunces,Georgia,serif;font-size:34px;font-weight:400;letter-spacing:-.04em;line-height:1}
.mu-figure small{display:block;margin-top:6px;font-size:max(12px,var(--min-text,0px))}
.mu-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:14px}
.mu-bar i{height:6px;border-radius:6px;background:#e3e9e4}
.mu-bar .is-done{background:#487e69}
.memory-credit{max-width:none;margin-top:34px;font-size:max(11px,var(--min-text,0px));color:#8fa896;text-align:center}
.cv-motion .memory-card{opacity:0;transform:translateY(34px);transition:opacity .7s ease,transform .9s var(--cv-ease-out)}
.cv-motion .memory-card.is-on{opacity:1;transform:none}
@media(max-width:1100px){.memory-copy{padding:28px 26px 0}.memory-ui{margin-left:8%}.mu-row{grid-template-columns:92px auto 1fr}}
@media(max-width:1000px){.memory-track{grid-template-columns:1fr;max-width:560px;margin-inline:auto}.memory-card{height:500px}.memory-ui{margin-left:14%}}
@media(max-width:760px){.memory-track{margin:36px auto 16px}.memory-card{height:470px;border-radius:16px}.memory-copy{padding:24px 22px 0}.clearview .memory-card h3{font-size:23px}.memory-ui{margin-left:7%}.memory-credit{margin-top:26px}}
@media(prefers-reduced-motion:reduce){.memory-art,.memory-ui{transition:none}.memory-card:hover .memory-art,.memory-card:hover .memory-ui{transform:none}}
.clear-memory em{color:#e4eca8}

.strike{position:relative;display:inline-block;color:#7f9387}
.strike::after{content:"";position:absolute;left:0;right:0;top:56%;height:.06em;background:currentColor;transform-origin:left}

@media(max-width:1100px){.check-card{padding:20px}}
@media(max-width:760px){
  .clear-problem{padding:70px 0 0}
  .check-card{padding:16px}
  .cc-quote{font-size:14px;padding:9px 12px}
}

/* ---------- Motion (enhancement only) ---------- */
@keyframes cv-rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* Hero: lines rise in; the product view stands upright as it reaches the middle of the screen. */
.cv-motion .backed-by,.cv-motion .hero-line,.cv-motion .clear-hero .lead,.cv-motion .clear-hero .actions{animation:cv-rise .9s var(--cv-ease-out) both}
.cv-motion .hero-line:nth-child(1){animation-delay:.08s}
.cv-motion .hero-line:nth-child(2){animation-delay:.17s}
.cv-motion .clear-hero .lead{animation-delay:.3s}
.cv-motion .clear-hero .actions{animation-delay:.38s}

/* Statement: words light up as it is read. */
.cv-motion .problem-word{opacity:.16;transition:opacity .3s ease}
.cv-motion .problem-word.is-lit{opacity:1}

/* Generic reveal, staggered by --d. */
.cv-motion [data-reveal]{opacity:0;transform:translateY(24px);transition:opacity .8s var(--cv-ease-out) var(--d,0s),transform .9s var(--cv-ease-out) var(--d,0s)}
.cv-motion [data-reveal].is-in{opacity:1;transform:none}

/* One workspace: the band glows where the cards are turning on, and the result box lights up last. */
.cv-motion .clear-memory{background:radial-gradient(55% 90% at calc(8% + var(--mp,0) * 84%) 0%,#24503e 0%,#18382b00 72%),#18382b}

/* Closing: "searching" is struck through once the line arrives. */
.cv-motion .closing .strike::after{transform:scaleX(0);transition:transform .9s var(--cv-ease-out) .7s}
.cv-motion .closing h2.is-in .strike::after{transform:scaleX(1)}

@media(max-width:760px){
}
