/* CMC Digital Store, Conscious LMS and account pages. Builds on css/style.css tokens. */
:root{
  --coral:#E97968;        /* sampled from the Mindset Reset Workbook artwork */
  --coral-deep:#D45F4E;
  --charcoal:#20252B;
}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden;}
.narrow{max-width:860px;}
.wrap.narrow{margin:0 auto;}
main{display:block;}
.store-section{padding:84px 0;}
.store-section-grey{background:var(--grey);}
.store-section-dark{background:var(--navy);color:#fff;}
.store-section-dark h2,.store-section-dark h3{color:#fff;}
.store-section h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:14px;}
@media(max-width:720px){.store-section{padding:56px 0;}}
.section-head{margin-bottom:40px;max-width:680px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head p{color:var(--ink-soft);margin-top:10px;}
.store-section-dark .section-head p{color:rgba(255,255,255,.7);}

/* brand bar motif from the workbook: coral, blue notch, charcoal */
.brand-bar,.cover-bar{display:block;height:6px;border-radius:6px;background:linear-gradient(90deg,var(--coral) 0 22%,var(--blue) 22% 25%,var(--charcoal) 25% 100%);}

/* flash messages */
.flash{padding:14px 0;font-size:15px;font-weight:500;}
.flash-success{background:#e7f6ec;color:#166534;}
.flash-error{background:#fde8e8;color:#991b1b;}
.flash-info{background:#e8f0fe;color:#1e40af;}

/* store sub-bar: fixed items, a Categories dropdown, no sideways scrolling */
.store-bar{background:#fff;border-bottom:1px solid var(--grey-line);position:sticky;top:78px;z-index:90;}
.store-bar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;}
.store-bar-links{display:flex;align-items:center;gap:2px;}
.store-bar-links > a,.store-bar-account a,.store-cats summary{white-space:nowrap;padding:14px 14px;font-size:14px;font-weight:500;color:var(--ink-soft);display:block;border-bottom:2px solid transparent;cursor:pointer;list-style:none;}
.store-cats summary::-webkit-details-marker{display:none;}
.store-cats summary::after{content:"";display:inline-block;margin-left:8px;width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);transition:transform .2s;}
.store-cats[open] summary::after{transform:rotate(225deg) translateY(-2px);}
.store-bar-links > a:hover,.store-bar-account a:hover,.store-cats summary:hover,.store-cats[open] summary{color:var(--navy);border-color:var(--coral);}
.store-bar-home{color:var(--navy)!important;font-weight:600!important;}
.store-bar-account{flex-shrink:0;}
.store-cats{position:static;}
.store-cats-panel{position:absolute;left:28px;top:100%;width:min(640px,calc(100% - 56px));background:#fff;border:1px solid var(--grey-line);border-radius:0 0 16px 16px;box-shadow:0 30px 50px -20px rgba(15,23,42,.35);padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:2px;z-index:95;}
.store-cats-panel a{padding:12px 14px;border-radius:10px;font-size:14.5px;color:var(--navy);font-weight:500;}
.store-cats-panel a:hover{background:#fff5f3;color:var(--coral-deep);}
@media(max-width:520px){.store-bar-links > a:last-child{display:none}}
@media(max-width:600px){.store-cats-panel{grid-template-columns:1fr;left:16px;width:calc(100% - 32px)}.store-bar-links > a,.store-bar-account a,.store-cats summary{padding:13px 10px;font-size:13.5px}}

/* hero */
.store-hero{background:radial-gradient(900px 500px at 85% 10%,rgba(37,99,235,.28),transparent 60%),radial-gradient(700px 420px at 5% 100%,rgba(233,121,104,.20),transparent 60%),var(--navy);color:#fff;padding:88px 0 96px;position:relative;overflow:hidden;}
.store-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center;}
.store-hero h1{color:#fff;font-size:clamp(2.2rem,5vw,3.6rem);line-height:1.08;margin:16px 0 20px;}
.store-hero h1 .accent{color:var(--coral);}
.store-hero .lead{color:rgba(255,255,255,.78);font-size:1.12rem;max-width:560px;}
.store-hero .hero-ctas{margin-top:32px;display:flex;gap:14px;flex-wrap:wrap;}
.hero-note{margin-top:28px;color:rgba(255,255,255,.55);font-size:14px;}
.lms-hero{padding:80px 0;}
.hero-product{display:block;justify-self:center;position:relative;max-width:340px;width:100%;}
.hero-product .cover{border-radius:6px;}
.cover-tilt{transform:perspective(1200px) rotateY(-12deg) rotateX(3deg);box-shadow:30px 40px 70px -20px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.06);transition:transform .5s ease;border-radius:4px;}
.hero-product:hover .cover-tilt{transform:perspective(1200px) rotateY(-4deg) rotateX(1deg) translateY(-6px);}
.hero-product-tag{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:26px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:100px;padding:10px 18px;font-size:14px;font-weight:600;color:#fff;backdrop-filter:blur(8px);}
.hero-product-tag b{background:var(--coral);color:#fff;border-radius:100px;padding:3px 12px;}
@media(max-width:900px){.store-hero-grid{grid-template-columns:1fr;gap:40px}.hero-product{max-width:260px}.store-hero{padding:56px 0 64px}}

/* covers */
.cover{position:relative;line-height:0;}
.cover img{width:100%;height:auto;display:block;background:#fff;}
.cover-fallback{aspect-ratio:420/594;background:linear-gradient(160deg,#fff 0,#f1f4f8 100%);border:1px solid var(--grey-line);display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:22px 20px;line-height:1.2;text-align:left;}
.cover-fallback .cover-bar{position:absolute;top:18px;left:20px;right:20px;}
.cover-fallback strong{font-family:var(--display);font-size:1.35rem;color:var(--charcoal);}
.cover-fallback em{font-style:normal;font-size:12px;color:var(--ink-faint);letter-spacing:.06em;text-transform:uppercase;}

/* badges */
.badge{position:absolute;top:12px;left:12px;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:5px 11px;border-radius:100px;line-height:1.3;}
.badge-offer{background:var(--coral);color:#fff;}
.badge-soon{background:var(--navy);color:#fff;}

/* product grid + card */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px;}
.product-card{background:#fff;border:1px solid var(--grey-line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;}
.product-card:hover{transform:translateY(-5px);box-shadow:0 26px 50px -26px rgba(15,23,42,.3);}
.product-card-cover{display:block;position:relative;background:var(--grey);padding:26px 26px 0;}
.product-card-cover .cover{box-shadow:0 18px 30px -14px rgba(15,23,42,.35);border-radius:3px 3px 0 0;}
.product-card.is-soon .product-card-cover img{filter:saturate(.7);}
.product-card-body{padding:22px 24px 24px;display:flex;flex-direction:column;gap:8px;flex:1;}
.product-type{font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--blue);}
.product-card h3{font-size:1.2rem;line-height:1.25;}
.product-card h3 a{color:var(--navy);}
.product-card p{color:var(--ink-soft);font-size:14.5px;flex:1;}
.product-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;}
.price{display:flex;align-items:baseline;gap:10px;}
.price-now{font-family:var(--display);font-size:1.5rem;font-weight:700;color:var(--navy);}
.price-was{color:var(--ink-faint);font-size:.95rem;}
.price-soon{font-size:1.25rem;color:var(--ink-soft);}

/* offers strip */
.offer-strip{background:var(--charcoal);color:#fff;padding:30px 0;}
.offer-strip .wrap{display:flex;flex-direction:column;gap:12px;}
.offer-row{display:flex;align-items:center;gap:20px;justify-content:space-between;flex-wrap:wrap;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:16px 22px;color:#fff;transition:border-color .2s,background .2s;}
.offer-row:hover{border-color:var(--coral);background:rgba(233,121,104,.08);}
.offer-title{font-family:var(--display);font-weight:600;font-size:1.1rem;}
.offer-price s{color:rgba(255,255,255,.5);margin-right:6px;}
.offer-price b{font-family:var(--display);font-size:1.3rem;color:var(--coral);}
.offer-price em{font-style:normal;font-size:13px;color:rgba(255,255,255,.7);margin-left:8px;}
.offer-go{color:var(--coral);font-size:1.4rem;}

/* categories */
.category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px;}
.category-card{background:#fff;border:1px solid var(--grey-line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:8px;position:relative;overflow:hidden;transition:transform .3s,box-shadow .3s,border-color .3s;}
.category-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--coral),var(--blue));opacity:0;transition:opacity .3s;}
.category-card:hover{transform:translateY(-4px);box-shadow:0 22px 44px -26px rgba(15,23,42,.3);}
.category-card:hover::before{opacity:1;}
.category-num{font-family:var(--mono);font-size:13px;color:var(--coral-deep);}
.category-card h3{font-size:1.15rem;color:var(--navy);}
.category-card p{color:var(--ink-soft);font-size:14.5px;flex:1;}
.category-meta{font-size:13.5px;font-weight:600;color:var(--blue);}
.chip-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:34px;}
.chip{display:inline-block;padding:9px 16px;border-radius:100px;border:1px solid var(--grey-line);background:#fff;font-size:14px;color:var(--navy);transition:border-color .2s,background .2s;}
a.chip:hover{border-color:var(--coral);background:#fff5f3;}
.chip-static{background:#fff;color:var(--ink-soft);}

/* why */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:34px;}
.why-num{font-family:var(--mono);color:var(--coral);font-size:13px;display:block;margin-bottom:10px;}
.why-grid h3{font-size:1.15rem;margin-bottom:8px;}
.why-grid p{color:rgba(255,255,255,.68);font-size:15px;}

/* newsletter + forms */
.newsletter-card{background:#fff;border:1px solid var(--grey-line);border-radius:22px;padding:44px;box-shadow:0 30px 60px -40px rgba(15,23,42,.35);border-top:6px solid var(--coral);}
.newsletter-card p{color:var(--ink-soft);margin-bottom:22px;}
.subscribe-row{display:flex;gap:10px;flex-wrap:wrap;}
.subscribe-row input[type=email]{flex:1;min-width:220px;padding:14px 18px;border:1px solid var(--grey-line);border-radius:100px;font:inherit;background:#fff;}
.subscribe-row input:focus{border-color:var(--blue);outline:none;}
.consent{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:13.5px;color:var(--ink-soft);line-height:1.5;}
.consent input{margin-top:3px;accent-color:var(--blue);flex-shrink:0;}
.empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:var(--radius);padding:40px;text-align:center;}
.empty-state.wide{max-width:720px;margin:0 auto;}
.empty-state p{color:var(--ink-soft);max-width:520px;margin:10px auto 20px;}
.empty-state .subscribe-form{max-width:520px;margin:0 auto;text-align:left;}
.small-muted{font-size:13.5px;color:var(--ink-faint);}
.text-center{text-align:center;}

/* page hero variant */
.store-page-hero{background:radial-gradient(600px 300px at 90% 0,rgba(233,121,104,.18),transparent 60%),var(--navy);padding:60px 0 48px;}
.store-page-hero .crumb a{color:var(--blue-light);}

/* product page */
.product-top{padding:34px 0 70px;background:linear-gradient(180deg,var(--grey) 0,#fff 100%);}
.crumbs{font-size:13.5px;color:var(--ink-faint);margin-bottom:26px;}
.crumbs a{color:var(--blue);}
.product-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;align-items:start;}
.product-media{position:sticky;top:150px;}
.cover-stage{position:relative;max-width:400px;margin:0 auto;padding:36px;background:radial-gradient(circle at 50% 40%,#fff,#e9eef5);border-radius:24px;}
.cover-large{box-shadow:0 30px 50px -20px rgba(15,23,42,.45),0 0 0 1px rgba(15,23,42,.06);border-radius:3px;}
.cover-stage .badge{top:16px;left:16px;}
.buy-box h1{font-size:clamp(1.9rem,3.6vw,2.7rem);line-height:1.12;margin:10px 0 8px;}
.product-subtitle{font-size:1.1rem;color:var(--blue);font-weight:500;}
.product-short{color:var(--ink-soft);margin:16px 0 22px;font-size:1.05rem;}
.buy-price{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px;}
.buy-price .price-now{font-size:2.3rem;}
.save-pill{background:#fdeeea;color:var(--coral-deep);font-weight:700;font-size:13px;padding:6px 14px;border-radius:100px;}
.buy-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:10px;}
.buy-actions form{display:contents;}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important;}
.spec-list{margin:26px 0 22px;border-top:1px solid var(--grey-line);}
.spec-list div{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid var(--grey-line);font-size:14.5px;}
.spec-list dt{width:90px;color:var(--ink-faint);flex-shrink:0;}
.spec-list dd{margin:0;color:var(--navy);font-weight:500;}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.share-label{font-size:13px;color:var(--ink-faint);margin-right:4px;}
.share a,.share button{font:inherit;font-size:13px;font-weight:500;padding:7px 14px;border-radius:100px;border:1px solid var(--grey-line);background:#fff;color:var(--navy);cursor:pointer;transition:border-color .2s,background .2s;}
.share a:hover,.share button:hover{border-color:var(--coral);background:#fff5f3;}
.product-section h2{margin-bottom:20px;}
.product-section p{color:var(--ink-soft);margin-bottom:16px;font-size:1.04rem;}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:56px;}
.tick-list,.dot-list{list-style:none;padding:0;margin:0;display:grid;gap:14px;}
.tick-list li,.dot-list li{position:relative;padding-left:32px;color:var(--ink);}
.tick-list li::before{content:"";position:absolute;left:0;top:3px;width:20px;height:20px;border-radius:50%;background:var(--coral);}
.tick-list li::after{content:"";position:absolute;left:7px;top:7px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);}
.dot-list li::before{content:"";position:absolute;left:6px;top:10px;width:8px;height:8px;border-radius:50%;background:var(--blue);}
.preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:24px;}
.preview-grid figure{margin:0;}
.preview-grid img{width:100%;height:auto;border:1px solid var(--grey-line);border-radius:6px;box-shadow:0 14px 26px -16px rgba(15,23,42,.4);background:#fff;transition:transform .25s;}
.preview-link:hover img{transform:translateY(-4px);}
.preview-grid figcaption{font-size:13px;color:var(--ink-soft);margin-top:10px;}
.notice-strip{background:#f8fafc;border-top:1px solid var(--grey-line);border-bottom:1px solid var(--grey-line);padding:22px 0;}
.notice-strip p{margin:0;font-size:14px;color:var(--ink-soft);}
@media(max-width:900px){.product-layout{grid-template-columns:1fr;gap:30px}.product-media{position:static}.two-col{grid-template-columns:1fr;gap:40px}}
@media(max-width:560px){.newsletter-card{padding:28px 22px}.cover-stage{padding:22px}.buy-actions .btn{flex:1}}

/* lightbox */
.lightbox{position:fixed;inset:0;background:rgba(8,13,26,.9);z-index:300;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:14px;}
.lightbox img{max-height:82vh;max-width:min(92vw,680px);width:auto;height:auto;border-radius:6px;background:#fff;}
.lightbox p{color:#fff;font-size:14px;margin:0;}
.lightbox button{position:absolute;top:18px;right:22px;background:none;border:0;color:#fff;font-size:34px;cursor:pointer;line-height:1;}

/* account / auth */
.auth-wrap{padding:60px 20px 90px;background:var(--grey);}
.auth-card{max-width:440px;margin:0 auto;background:#fff;border:1px solid var(--grey-line);border-radius:22px;padding:40px;box-shadow:0 30px 60px -40px rgba(15,23,42,.35);border-top:6px solid var(--coral);}
.auth-card-wide{max-width:640px;}
.auth-card h1{font-size:1.9rem;margin-bottom:6px;}
.auth-form{margin-top:22px;display:grid;gap:16px;}
.auth-form .field{display:flex;flex-direction:column;gap:6px;}
.auth-form .field label{font-size:13.5px;font-weight:600;color:var(--navy);}
.auth-form .field input{padding:13px 16px;border:1px solid var(--grey-line);border-radius:10px;font:inherit;background:#fff;}
.auth-form .field input:focus{border-color:var(--blue);outline:none;}
.auth-form .btn{margin-top:6px;}
.field-error{color:#b91c1c;font-size:13px;}
.form-error{background:#fde8e8;color:#991b1b;border-radius:10px;padding:12px 16px;margin-top:16px;font-size:14.5px;}
.library-list{list-style:none;padding:0;margin:0;display:grid;gap:12px;}
.library-list li{background:#fff;border:1px solid var(--grey-line);border-radius:14px;padding:16px 20px;display:flex;flex-direction:column;gap:2px;}
.library-list span{font-size:13.5px;color:var(--ink-faint);}
@media(max-width:480px){.auth-card{padding:28px 20px}}
@media(prefers-reduced-motion:reduce){.cover-tilt,.product-card,.category-card{transition:none}}

.price-planned{font-size:14px;color:var(--ink-soft);font-weight:500;}
.readable{max-width:760px;}
/* a lone featured product becomes a wide feature card */
.product-grid.is-single{display:block;}
.product-grid.is-single .product-card{flex-direction:row;max-width:900px;}
.product-grid.is-single .product-card-cover{width:300px;flex-shrink:0;padding-bottom:0;display:flex;align-items:flex-end;}
.product-grid.is-single .product-card-body{padding:36px;justify-content:center;}
.product-grid.is-single .product-card h3{font-size:1.7rem;}
.product-grid.is-single .product-card p{flex:0;font-size:1.02rem;margin-bottom:12px;}
@media(max-width:700px){.product-grid.is-single .product-card{flex-direction:column}.product-grid.is-single .product-card-cover{width:auto}.product-grid.is-single .product-card-body{padding:22px 24px 24px}}
