﻿/* CannaLnx landing page (Views/Home/Index.cshtml).
   Everything is scoped under .cl-root and uses the .cl- prefix so nothing leaks into the rest of the site.
   Some rules carry !important only to beat the site-wide p / a:visited font rules in CannaLnx.css. */
.cl-root {
    --cl-navy: #0B3D5C;
    --cl-blue: #2B7B9D;
    --cl-lightblue: #A7C8E0;
    --cl-ice: #E7F2F9;
    --cl-ice-strong: #DCECF7;
    --cl-mist: #F0F6FB;
    --cl-warm: #F8FAFB;
    --cl-ink: #2E2E2E;
    --cl-slate: #55688B;
    --cl-green: #5E8A35;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--cl-ink);
    background: var(--cl-warm);
    -webkit-font-smoothing: antialiased;
}
.cl-root *, .cl-root *::before, .cl-root *::after { box-sizing: border-box; }
.cl-root h1, .cl-root h2, .cl-root h3 { font-family: inherit; margin: 0; color: var(--cl-navy); }
.cl-root p {
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400;
    margin: 0;
    color: var(--cl-slate);
}
.cl-root a, .cl-root a:link, .cl-root a:visited {
    font-family: inherit;
    font-size: 15px !important;
    line-height: 22px !important;
    font-weight: 600;
    text-decoration: none;
}
.cl-root a:focus-visible { outline: 3px solid var(--cl-blue); outline-offset: 2px; }
.cl-root img { max-width: 100%; }

.cl-wrap { max-width: 1200px; margin: 0 auto; }
.cl-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cl-navy); }

/* Buttons */
.cl-root .cl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 20px; border-radius: 6px;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cl-root .cl-btn-block { width: 100%; }
.cl-root .cl-btn-primary, .cl-root .cl-btn-primary:visited { background: var(--cl-navy); border-color: var(--cl-navy); color: #fff; }
.cl-root .cl-btn-primary:hover { background: var(--cl-blue); border-color: var(--cl-blue); color: #fff; }
.cl-root .cl-btn-outline, .cl-root .cl-btn-outline:visited { background: #fff; border-color: var(--cl-navy); color: var(--cl-navy); }
.cl-root .cl-btn-outline:hover { background: var(--cl-ice); color: var(--cl-navy); }
.cl-root .cl-btn-soft, .cl-root .cl-btn-soft:visited { background: var(--cl-lightblue); border-color: var(--cl-lightblue); color: var(--cl-navy); }
.cl-root .cl-btn-soft:hover { background: var(--cl-ice-strong); border-color: var(--cl-ice-strong); color: var(--cl-navy); }

/* 1. Hero: the photo runs behind the headline and the path chooser */
.cl-hero { position: relative; overflow: hidden; background: #EEF3F6; }
.cl-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 22%; display: block; max-width: none !important; }
.cl-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,250,251,.94) 0%, rgba(248,250,251,.82) 34%, rgba(248,250,251,0) 62%); }
.cl-hero-copy { position: relative; max-width: 1200px; margin: 0 auto; padding: 88px 24px 48px; }
.cl-hero-text { max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
.cl-root .cl-hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; color: var(--cl-navy); }
.cl-hero h1 .cl-accent { color: var(--cl-green); }
.cl-root .cl-hero-text p { font-size: 18px !important; line-height: 28px !important; color: var(--cl-ink); max-width: 500px; }

.cl-paths-outer { position: relative; padding: 0 24px 56px; }
.cl-paths { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(11,61,92,.08), 0 12px 40px rgba(11,61,92,.10); padding: 36px 28px 32px; display: flex; flex-direction: column; gap: 28px; }
.cl-paths-head { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.cl-root .cl-paths-head h2 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.01em; }
.cl-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cl-path { background: var(--cl-ice); border-radius: 10px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.cl-path svg { flex: none; }
.cl-path-featured { box-shadow: inset 0 0 0 1px var(--cl-navy); } /* Matthew: highlight the patient path with a 1px navy border */
.cl-root .cl-path h3 { font-size: 21px; line-height: 27px; font-weight: 600; }
.cl-root .cl-path p { flex-grow: 1; }
.cl-path .cl-btn { margin-top: 8px; }

/* 2. Media strip */
.cl-media { background: var(--cl-mist); padding: 28px 24px; }
.cl-media .cl-wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.cl-media-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 56px; }
.cl-media-row img { display: block; width: auto; }
/* Spotlight logos: transparent, pre-cropped PNGs in img/landing (charcoal), sized by height. */
.cl-logo-forbes, .cl-logo-yahoo, .cl-logo-mm, .cl-logo-mjbiz { width: auto; max-width: 100%; display: block; }
.cl-logo-forbes { height: 34px; }
.cl-logo-yahoo { height: 28px; }
.cl-logo-mm { height: 22px; }
.cl-logo-mjbiz { height: 30px; }
.cl-root .cl-textlink, .cl-root .cl-textlink:visited { color: var(--cl-navy); display: inline-flex; gap: 8px; align-items: center; }
.cl-root .cl-textlink:hover { color: var(--cl-blue); }

/* 3. Get started */
.cl-start { background: #fff; padding: 72px 24px; }
.cl-start .cl-wrap { display: flex; flex-direction: column; gap: 32px; }
.cl-section-head { display: flex; flex-direction: column; gap: 10px; }
.cl-root .cl-section-head h2, .cl-root .cl-learn h2 { font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -.01em; }
.cl-root .cl-section-head p, .cl-root .cl-learn-text p { font-size: 17px !important; line-height: 26px !important; }
.cl-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cl-card { border: 1px solid #E3ECF3; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(11,61,92,.08), 0 4px 14px rgba(11,61,92,.06); display: flex; flex-direction: column; }
.cl-card-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.cl-card-img.cl-pos-doctor { object-position: 35% 30%; }
.cl-card-img.cl-pos-dispensary { object-position: 45% 26%; }
.cl-card-img.cl-pos-insurance { object-position: 45% 40%; }
.cl-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.cl-root .cl-card h3 { font-size: 20px; line-height: 26px; font-weight: 600; }
.cl-root .cl-card p { flex-grow: 1; }
.cl-card .cl-btn { margin-top: 10px; min-height: 46px; padding: 11px 18px; }

/* 4. Learn band */
.cl-learn { background: var(--cl-mist); padding: 72px 24px; }
.cl-learn .cl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cl-learn-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cl-root .cl-learn-text p { max-width: 520px; }
.cl-learn-text .cl-btn { margin-top: 8px; padding: 12px 22px; }
.cl-ecs { position: relative; background: #0A3560; border-radius: 14px; overflow: hidden; min-height: 320px; display: flex; align-items: center; }
.cl-ecs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; display: block; max-width: none !important; z-index: 0; }
.cl-ecs::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10,53,96,.35) 0%, rgba(10,53,96,0) 55%); }
.cl-ecs-copy { position: relative; z-index: 2; padding: 32px; max-width: 52%; display: flex; flex-direction: column; gap: 10px; }
.cl-ecs-kicker { font-size: 14px; font-weight: 500; color: var(--cl-lightblue); }
.cl-ecs-title { font-size: 26px; line-height: 32px; font-weight: 600; color: #fff; }
.cl-root .cl-ecs-copy p { color: var(--cl-ice-strong); font-size: 15px !important; line-height: 22px !important; }
.cl-root .cl-ecs-play { position: absolute; right: 23%; top: 50%; transform: translate(50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .15s ease; z-index: 2; }
.cl-root .cl-ecs-play:hover { transform: translate(50%, -50%) scale(1.06); }

/* Tablet */
@media (max-width: 1020px) {
    .cl-path-grid, .cl-card-grid { grid-template-columns: minmax(0, 1fr); }
    .cl-path-grid { max-width: 560px; margin: 0 auto; width: 100%; }
    .cl-card-grid { max-width: 640px; }
    .cl-learn .cl-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Phone: the photo sits at the top with the face in view; the copy and the panel follow on a soft fade */
@media (max-width: 720px) {
    .cl-hero-img { height: 420px; object-position: 72% 22%; }
    .cl-hero-scrim { background: linear-gradient(180deg, rgba(248,250,251,0) 0, rgba(248,250,251,0) 150px, rgba(248,250,251,.88) 290px, #EEF3F6 420px, #EEF3F6 100%); }
    .cl-hero-copy { padding: 210px 16px 28px; }
    .cl-root .cl-hero h1 { font-size: 34px; }
    .cl-root .cl-hero-text p { font-size: 17px !important; line-height: 26px !important; }
    .cl-paths-outer { padding: 0 16px 40px; }
    .cl-paths { padding: 28px 16px 20px; gap: 22px; border-radius: 14px; }
    .cl-root .cl-paths-head h2 { font-size: 24px; line-height: 30px; }
    .cl-path { padding: 22px 18px; }
    .cl-media { padding: 24px 16px; }
    .cl-media-row { gap: 18px 32px; }
    .cl-logo-forbes { height: 28px; }
    .cl-logo-yahoo { height: 24px; }
    .cl-logo-mm { height: 18px; }
    .cl-logo-mjbiz { height: 26px; }
    .cl-start, .cl-learn { padding: 48px 16px; }
    .cl-root .cl-section-head h2, .cl-root .cl-learn h2 { font-size: 28px; line-height: 34px; }
    .cl-ecs { min-height: 300px; align-items: flex-start; }
    .cl-ecs::after { background: linear-gradient(90deg, rgba(10,53,96,.92) 0%, rgba(10,53,96,.75) 45%, rgba(10,53,96,0) 75%); }
    .cl-ecs-copy { padding: 24px 20px; max-width: 64%; }
    .cl-ecs-title { font-size: 22px; line-height: 28px; }
    .cl-root .cl-ecs-play { width: 56px; height: 56px; right: 18%; top: auto; bottom: 20px; transform: translate(50%, 0); }
    .cl-root .cl-ecs-play:hover { transform: translate(50%, 0) scale(1.06); }
}
