* { box-sizing: border-box; }
html { background: var(--cc-experience-cream); }
body.cc-system-page,
body.carecrafted-portal-page:has(.cc-activation-page) { margin: 0; background: var(--cc-experience-cream); color: var(--cc-experience-ink); font-family: Arial, Helvetica, sans-serif; }
.cc-system-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(24px,5vw,76px); }
.cc-system-nav img { display: block; width: 190px; height: auto; }
.cc-system-nav a { color: var(--cc-experience-navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.cc-system-nav a:hover { color: var(--cc-experience-royal); }

/* Public home / coming soon */
.cc-coming-soon { min-height: 100vh; background: var(--cc-experience-cream); }
.cc-coming-soon__hero { width: min(1240px,calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); min-height: 570px; overflow: hidden; border-radius: 0 0 22px 22px; box-shadow: var(--cc-experience-shadow); }
.cc-coming-soon__copy { position: relative; display: grid; align-content: center; min-height: 570px; padding: clamp(44px,6vw,86px); overflow: hidden; background: var(--cc-experience-navy); color: #fff; }
.cc-coming-soon__copy::before { content: ""; position:absolute; left:-110px; bottom:-160px; width:480px; height:480px; border:1px solid rgba(137,174,236,.20); border-radius:50%; }
.cc-coming-soon__copy::after { content: ""; position:absolute; left:28%; bottom:-120px; width:350px; height:350px; border:1px solid rgba(137,174,236,.11); border-radius:50%; }
.cc-coming-soon__copy > * { position: relative; z-index: 1; }
.cc-system-kicker { margin:0 0 16px; color:var(--cc-experience-blue); font-size:12px; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.cc-coming-soon h1 { max-width: 650px; margin:0; font-size:clamp(46px,5.7vw,78px); font-weight:400; line-height:.98; letter-spacing:-.06em; }
.cc-coming-soon__copy > p:not(.cc-system-kicker) { max-width:610px; margin:24px 0 0; color:rgba(255,255,255,.76); font-size:17px; line-height:1.65; }
.cc-system-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.cc-system-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:11px 18px; border:1px solid rgba(255,255,255,.32); border-radius:8px; color:#fff; font-size:14px; font-weight:800; text-decoration:none; }
.cc-system-actions a.is-primary { border-color:var(--cc-experience-gold); background:var(--cc-experience-gold); color:var(--cc-experience-navy); }
.cc-system-actions a:hover { border-color:#fff; }
.cc-coming-soon__visual { position:relative; min-height:570px; overflow:hidden; background:radial-gradient(circle at 72% 32%,rgba(255,255,255,.92),transparent 24%),linear-gradient(135deg,#f7f9ff 5%,#dce9ff 52%,#89aeec 130%); }
.cc-coming-soon__visual::before { content:""; position:absolute; right:-13%; bottom:-22%; width:76%; aspect-ratio:1; border-radius:50%; background:rgba(45,73,209,.13); }
.cc-coming-soon__visual::after { content:""; position:absolute; top:9%; left:9%; width:44%; aspect-ratio:1; border:1px solid rgba(45,73,209,.2); border-radius:50%; }
.cc-preview-phone { position:absolute; z-index:2; right:13%; bottom:-19%; width:min(275px,55%); height:88%; border:9px solid #17223b; border-bottom:0; border-radius:45px 45px 0 0; background:linear-gradient(180deg,#fff 0 12%,#e8edf5 12% 100%); box-shadow:0 22px 55px rgba(10,23,57,.24); }
.cc-preview-phone::before { content:""; position:absolute; top:0; left:50%; width:44%; height:25px; transform:translateX(-50%); border-radius:0 0 17px 17px; background:#17223b; }
.cc-preview-phone::after { content:"CareCrafted"; position:absolute; top:52px; left:24px; color:var(--cc-experience-navy); font-size:14px; font-weight:800; }
.cc-preview-note { position:absolute; z-index:3; left:8%; bottom:12%; width:190px; padding:20px; border-radius:13px; background:rgba(255,255,255,.88); box-shadow:0 18px 45px rgba(10,23,57,.14); backdrop-filter:blur(12px); }
.cc-preview-note span { display:block; margin-bottom:9px; color:var(--cc-experience-royal); font-size:12px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.cc-preview-note strong { display:block; color:var(--cc-experience-navy); font-size:20px; line-height:1.12; }
.cc-story-strip { position:relative; padding:110px clamp(24px,5vw,76px); overflow:hidden; background:linear-gradient(100deg,#f8fbff,#dce9ff 55%,#b8d1fa); }
.cc-story-strip::after { content:""; position:absolute; right:-100px; top:20px; width:430px; height:430px; border-radius:50%; background:rgba(45,73,209,.09); }
.cc-story-strip__inner { position:relative; z-index:1; width:min(1120px,100%); margin:auto; }
.cc-story-strip__intro { max-width:670px; margin:0 0 36px; }
.cc-story-strip__intro h2 { margin:0; color:var(--cc-experience-navy); font-size:clamp(32px,4vw,52px); font-weight:400; line-height:1.02; letter-spacing:-.05em; }
.cc-story-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; align-items:start; }
.cc-story-card { min-height:285px; overflow:hidden; border:1px solid rgba(10,23,57,.10); border-radius:13px; background:#fff; box-shadow:0 13px 30px rgba(10,23,57,.13); }
.cc-story-card__art { display:flex; align-items:flex-start; min-height:118px; padding:18px; background:linear-gradient(145deg,#edf4ff,#b8d1fa); color:#fff; font-size:50px; font-weight:300; letter-spacing:-.06em; }
.cc-story-card:nth-child(2) .cc-story-card__art { background:linear-gradient(145deg,#e8e1d4,#89aeec); }
.cc-story-card:nth-child(3) .cc-story-card__art { background:linear-gradient(145deg,#2d49d1,#0a1739); }
.cc-story-card__body { padding:22px; }
.cc-story-card h3 { margin:0 0 8px; font-size:22px; letter-spacing:-.035em; }
.cc-story-card p { margin:0; color:var(--cc-experience-muted); font-size:14px; line-height:1.55; }
.cc-coming-soon footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 24px; padding:24px clamp(24px,5vw,76px); color:#6d7d91; font-size:12px; }
.cc-coming-soon footer small { font:inherit; }

/* 404 / public system cards */
.cc-system-stage { min-height:100vh; display:grid; grid-template-columns:minmax(330px,.82fr) minmax(0,1.18fr); background:var(--cc-experience-cream); }
.cc-system-stage__brand { position:relative; display:grid; align-content:space-between; min-height:100vh; padding:clamp(34px,5vw,72px); overflow:hidden; background:var(--cc-experience-navy); color:#fff; }
.cc-system-stage__brand img { position:relative; z-index:2; width:205px; height:auto; }
.cc-system-stage__brand strong { position:relative; z-index:2; display:block; max-width:440px; font-size:clamp(72px,13vw,180px); font-weight:300; line-height:.75; letter-spacing:-.08em; color:rgba(137,174,236,.22); }
.cc-system-stage__brand p { position:relative; z-index:2; max-width:330px; margin:0; color:rgba(255,255,255,.68); font-size:14px; line-height:1.6; }
.cc-system-stage__brand::before { content:""; position:absolute; top:16%; left:-22%; width:100%; aspect-ratio:1; border:1px solid rgba(137,174,236,.18); border-radius:50%; }
.cc-system-stage__main { position:relative; display:grid; place-items:center; padding:40px; overflow:hidden; background:radial-gradient(circle at 88% 12%,rgba(137,174,236,.28),transparent 34%),var(--cc-experience-cream); }
.cc-system-stage__main::before { content:""; position:absolute; right:-120px; bottom:-150px; width:420px; height:420px; border-radius:50%; background:rgba(45,73,209,.08); }
.cc-system-stage__card { position:relative; z-index:2; width:min(540px,100%); padding:clamp(32px,5vw,54px); border:1px solid var(--cc-experience-line); border-radius:var(--cc-experience-radius); background:rgba(255,255,255,.88); box-shadow:var(--cc-experience-shadow); backdrop-filter:blur(16px); }
.cc-system-stage__card small { display:block; margin:0 0 13px; color:var(--cc-experience-royal); font-size:12px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.cc-system-stage__card h1 { margin:0; font-size:clamp(34px,4vw,52px); font-weight:500; line-height:1.03; letter-spacing:-.055em; }
.cc-system-stage__card p { margin:18px 0 0; color:var(--cc-experience-muted); font-size:15px; line-height:1.65; }
.cc-system-stage__card a { display:inline-flex; align-items:center; min-height:44px; margin-top:27px; padding:11px 17px; border-radius:8px; background:var(--cc-experience-gold); color:var(--cc-experience-navy); font-size:14px; font-weight:800; text-decoration:none; }
.cc-system-stage__card a:hover { background:var(--cc-experience-gold-hover); }

/* Invitation / account activation */
.cc-activation-page { min-height:100vh; display:grid; grid-template-columns:minmax(340px,.86fr) minmax(0,1.14fr); background:var(--cc-experience-cream); }
.cc-activation-brand { position:relative; display:grid; align-content:space-between; padding:clamp(38px,5vw,72px); overflow:hidden; background:var(--cc-experience-navy); color:#fff; }
.cc-activation-brand::before { content:""; position:absolute; left:-28%; top:23%; width:110%; aspect-ratio:1; border:1px solid rgba(137,174,236,.18); border-radius:50%; }
.cc-activation-brand::after { content:""; position:absolute; right:-90px; bottom:-110px; width:310px; height:310px; border-radius:50%; background:rgba(45,73,209,.26); }
.cc-activation-brand img { position:relative; z-index:2; width:215px; height:auto; }
.cc-activation-brand div { position:relative; z-index:2; max-width:450px; }
.cc-activation-brand p { margin:0 0 13px; color:var(--cc-experience-blue); font-size:12px; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.cc-activation-brand h2 { margin:0; font-size:clamp(37px,4.6vw,64px); font-weight:400; line-height:1; letter-spacing:-.055em; }
.cc-activation-brand small { position:relative; z-index:2; color:rgba(255,255,255,.58); line-height:1.55; }
.cc-activation-main { position:relative; display:grid; place-items:center; padding:40px; overflow:hidden; background:radial-gradient(circle at 100% 0,rgba(137,174,236,.28),transparent 35%); }
.cc-activation-card { position:relative; width:min(500px,100%); padding:clamp(32px,5vw,48px); border:1px solid var(--cc-experience-line); border-radius:var(--cc-experience-radius); background:rgba(255,255,255,.9); box-shadow:var(--cc-experience-shadow); }
.cc-activation-card::before { content:""; position:absolute; top:0; left:48px; width:76px; height:3px; background:var(--cc-experience-gold); }
.cc-activation-card .cc-kicker { margin:0 0 11px; color:var(--cc-experience-royal); font-size:12px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.cc-activation-card h1 { margin:0; font-size:clamp(32px,4vw,44px); font-weight:500; letter-spacing:-.05em; }
.cc-activation-card>p { color:var(--cc-experience-muted); line-height:1.65; }
.cc-activation-card form { display:grid; gap:10px; margin-top:24px; }
.cc-activation-card label { font-size:13px; font-weight:800; }
.cc-activation-card input { width:100%; min-height:48px; padding:11px 13px; border:1px solid #c4cfdd; border-radius:8px; font:inherit; }
.cc-activation-card input:focus { border-color:var(--cc-experience-royal); outline:3px solid rgba(45,73,209,.16); }
.cc-activation-card button,
.cc-activation-card .cc-button--primary { min-height:46px; margin-top:8px; padding:11px 17px; border:0; border-radius:8px; background:var(--cc-experience-gold); color:var(--cc-experience-navy); font:inherit; font-weight:800; }
.cc-activation-card .cc-error { margin:18px 0 0; padding:13px 15px; border:1px solid #efb8b2; border-radius:8px; background:#fff0ee; color:#9f2f26; font-size:13px; line-height:1.5; }

@media (max-width:900px) {
    .cc-coming-soon__hero { grid-template-columns:1fr; }
    .cc-coming-soon__copy { min-height:500px; }
    .cc-coming-soon__visual { min-height:430px; }
    .cc-story-cards { grid-template-columns:1fr; max-width:620px; }
    .cc-story-card { display:grid; grid-template-columns:160px minmax(0,1fr); min-height:0; }
    .cc-story-card__art { min-height:100%; }
    .cc-system-stage,
    .cc-activation-page { grid-template-columns:1fr; }
    .cc-system-stage__brand { min-height:310px; }
    .cc-system-stage__brand strong { font-size:100px; }
    .cc-activation-brand { min-height:350px; }
}

@media (max-width:600px) {
    .cc-system-nav { padding:22px 20px; }
    .cc-system-nav img { width:165px; }
    .cc-coming-soon__hero { width:100%; border-radius:0; }
    .cc-coming-soon__copy { min-height:500px; padding:48px 24px; }
    .cc-coming-soon__visual { min-height:360px; }
    .cc-preview-note { left:20px; bottom:24px; width:165px; }
    .cc-story-strip { padding:70px 20px; }
    .cc-story-card { display:block; }
    .cc-story-card__art { min-height:105px; }
    .cc-system-stage__brand { min-height:270px; padding:30px 24px; }
    .cc-system-stage__brand p { display:none; }
    .cc-system-stage__main,
    .cc-activation-main { padding:24px 18px; }
    .cc-activation-brand { min-height:290px; padding:30px 24px; }
    .cc-activation-brand h2 { font-size:38px; }
}
