/* Public landing page (home.html, logged-out visitors). Content mirrors the
   Cotton Digital Twin brochure. Every rule is scoped under .lp so nothing
   leaks into the dashboard pages that share my_project.css. */

.lp {
    --lp-navy: #10303D;
    --lp-cover: #164F5C;
    --lp-teal: #1D6E85;
    --lp-green: #2E6A4F;
    --lp-rust: #A64E33;
    --lp-maroon: #6E1F1F;
    --lp-orange: #E0592A;
    --lp-gold: #EBD6AE;
    --lp-ink: #4B5864;
    --lp-muted: #8A8076;
    --lp-beige: #F4EFE6;
    --lp-line: #D9D1C3;
    --lp-teal-lt: #E6F0F3;
    --lp-green-lt: #E5EFE9;
    --lp-white: #FFFFFF;
    --lp-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --lp-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

    margin: -1rem -15px 0;
    font-family: var(--lp-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--lp-ink);
    background: var(--lp-white);
}

/* body is a 100%-height flex column; on a page this long the header would
   otherwise shrink to its min-height and its stacked mobile rows spill out. */
.custom-topbar,
.custom-footer { flex-shrink: 0; }

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp h1, .lp h2, .lp h3, .lp h4 {
    font-family: var(--lp-head);
    color: var(--lp-navy);
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.lp p { margin: 0; }
.lp img { max-width: 100%; display: block; }
.lp a { text-decoration: none; }

.lp-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-section { padding: 80px 0; }
.lp-section--beige { background: var(--lp-beige); }

.lp-eyebrow {
    display: block;
    font-family: var(--lp-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-maroon);
    margin-bottom: 12px;
}

.lp-h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
}

.lp-lead {
    font-size: 19px;
    margin-top: 16px;
    max-width: 640px;
}

.lp-caption {
    font-size: 13px;
    color: var(--lp-muted);
    margin-top: 8px;
}

/* ---------- buttons ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 6px;
    font-family: var(--lp-head);
    font-weight: 700;
    font-size: 16px;
    border: 2px solid transparent;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.lp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.lp-btn--gold { background: var(--lp-gold); color: var(--lp-navy); }
.lp-btn--gold:hover { background: #F3E3C4; color: var(--lp-navy); }
.lp-btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--lp-white); }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--lp-white); }
.lp-btn--navy { background: var(--lp-cover); color: var(--lp-white); }
.lp-btn--navy:hover { background: var(--lp-navy); color: var(--lp-white); }

/* ---------- hero ---------- */
.lp-hero {
    background: var(--lp-cover);
    color: var(--lp-white);
    overflow: hidden;
}
.lp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: 520px;
}
.lp-hero__text {
    padding: 72px 48px 72px max(24px, calc((100vw - 1180px) / 2 + 24px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lp-hero .lp-eyebrow { color: var(--lp-gold); }
.lp-hero h1 {
    color: var(--lp-white);
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.02;
}
.lp-hero__rule {
    width: 48px;
    height: 3px;
    background: var(--lp-gold);
    margin: 28px 0 22px;
}
.lp-hero h2 {
    color: var(--lp-white);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
}
.lp-hero h2 span { color: var(--lp-gold); display: block; }
.lp-hero__sub {
    font-size: 19px;
    color: rgba(255, 255, 255, .85);
    margin-top: 16px;
    max-width: 520px;
}
.lp-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}
.lp-hero__media { position: relative; min-height: 320px; }
.lp-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* ---------- the idea ---------- */
.lp-idea {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.lp-idea .lp-h2 em { font-style: normal; color: var(--lp-teal); }
.lp-qcards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.lp-qcard {
    border-radius: 8px;
    padding: 22px 20px;
    border-top: 5px solid var(--lp-teal);
    background: var(--lp-teal-lt);
}
.lp-qcard--green { border-top-color: var(--lp-green); background: var(--lp-green-lt); }
.lp-qcard .lp-eyebrow { color: var(--lp-teal); margin-bottom: 6px; }
.lp-qcard--green .lp-eyebrow { color: var(--lp-green); }
.lp-qcard h3 { font-size: 21px; font-weight: 700; }
.lp-qcard p { margin-top: 8px; font-size: 16px; }

.lp-twin { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(16, 48, 61, .18); }
.lp-twin img { width: 100%; height: auto; }
.lp-badge {
    position: absolute;
    font-family: var(--lp-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .12em;
    padding: 7px 14px;
    border-radius: 999px;
}
.lp-badge--twin { top: 16px; right: 16px; background: var(--lp-navy); color: var(--lp-white); }
.lp-badge--real { bottom: 16px; left: 16px; background: var(--lp-white); color: var(--lp-navy); }

/* ---------- how it works ---------- */
.lp-steps {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}
.lp-step {
    background: var(--lp-white);
    border-radius: 10px;
    padding: 26px 22px;
    box-shadow: 0 1px 0 var(--lp-line);
}
.lp-step__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--lp-white);
    background: var(--c, var(--lp-navy));
    margin-bottom: 18px;
}
.lp-step__icon svg { width: 24px; height: 24px; }
.lp-step h3 { font-size: 21px; font-weight: 700; color: var(--c, var(--lp-navy)); }
.lp-step p { margin-top: 8px; font-size: 16px; }

.lp-decisions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}
.lp-decisions .lp-eyebrow { margin: 0; }
.lp-decisions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}
.lp-decisions li { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.lp-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lp-green-lt);
    color: var(--lp-green);
    display: grid;
    place-items: center;
    flex: none;
}
.lp-check svg { width: 12px; height: 12px; }

/* ---------- predict / prescribe headers ---------- */
.lp-pillar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--lp-teal);
    margin-bottom: 40px;
}
.lp-pillar h2 { font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: var(--lp-teal); }
.lp-pillar p { font-size: 20px; }
.lp-pillar--green { border-bottom-color: var(--lp-green); }
.lp-pillar--green h2 { color: var(--lp-green); }

.lp-subhead {
    font-family: var(--lp-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lp-teal);
    margin-bottom: 18px;
}
.lp-pillar--green + * .lp-subhead,
.lp-subhead--green { color: var(--lp-green); }

/* ---------- predict ---------- */
.lp-predict {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
}
.lp-layers {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}
.lp-layers ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.lp-layers li { border-left: 3px solid var(--lp-navy); padding-left: 12px; }
.lp-layers li small {
    display: block;
    font-family: var(--lp-head);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lp-green);
}
.lp-layers li strong { display: block; font-family: var(--lp-head); font-size: 19px; color: var(--lp-teal); }
.lp-layers li span { font-size: 15px; }

.lp-callout {
    margin-top: 24px;
    background: var(--lp-cover);
    color: rgba(255, 255, 255, .88);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 16px;
}
.lp-callout strong { color: var(--lp-white); font-family: var(--lp-head); }
.lp-callout__dot {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    border: 6px solid var(--lp-orange);
    background: var(--lp-white);
}

.lp-forecast h3 { font-size: 24px; color: var(--lp-teal); font-weight: 700; }
.lp-forecast > p { margin-top: 8px; }
.lp-figure {
    margin: 22px 0 0;
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    padding: 14px;
}
.lp-span {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
    background: var(--lp-teal-lt);
    border-radius: 10px;
}
.lp-span div { padding: 16px 18px; }
.lp-span div + div { border-left: 1px solid rgba(29, 110, 133, .2); }
.lp-span small { display: block; font-size: 13px; }
.lp-span strong { display: block; font-family: var(--lp-head); font-size: 20px; color: var(--lp-teal); }
.lp-span span { font-size: 13px; }

.lp-data { margin-top: 28px; }
.lp-data .lp-eyebrow { margin-bottom: 6px; }
.lp-data p:first-of-type { font-family: var(--lp-head); font-weight: 600; color: var(--lp-navy); }
.lp-data p + p { font-size: 15px; }

/* ---------- prescribe ---------- */
.lp-mgmt {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.lp-card {
    background: var(--lp-white);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lp-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.lp-card h3 { font-size: 22px; font-weight: 700; }
.lp-card p { font-size: 16px; }
.lp-card .lp-result { font-family: var(--lp-head); font-weight: 700; color: var(--lp-green); }
.lp-card img { border-radius: 6px; }

.lp-market {
    margin-top: 48px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: center;
    background: var(--lp-white);
    border-radius: 10px;
    padding: 28px;
}
.lp-market ul { margin: 14px 0 0; padding-left: 20px; font-size: 16px; }
.lp-market li + li { margin-top: 4px; }

/* ---------- five tools ---------- */
.lp-tools { background: var(--lp-cover); color: rgba(255, 255, 255, .85); }
.lp-tools .lp-h2 { color: var(--lp-white); }
.lp-tools__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}
.lp-tool {
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    padding: 20px 18px;
}
.lp-tool i { color: var(--lp-gold); font-size: 22px; }
.lp-tool h3 { color: var(--lp-white); font-size: 19px; font-weight: 700; margin-top: 12px; }
.lp-tool p { font-size: 15px; margin-top: 6px; }

/* ---------- why trust it ---------- */
.lp-trust {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}
.lp-trust__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
}
.lp-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.lp-trust__icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--c);
}
.lp-trust__icon svg { width: 20px; height: 20px; }
.lp-trust__item h3 { font-size: 19px; font-weight: 700; }
.lp-trust__item p { font-size: 16px; margin-top: 4px; }

/* ---------- contact ---------- */
.lp-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}
.lp-people {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.lp-person {
    background: var(--lp-white);
    border-radius: 10px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: minmax(200px, 1.3fr) auto minmax(0, 1.1fr);
    align-items: center;
    gap: 6px 24px;
}
.lp-person h3 { font-size: 18px; font-weight: 700; }
.lp-person__id { min-width: 0; }
.lp-person__role { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--lp-teal); line-height: 1.35; }
.lp-person__org { margin: 2px 0 0; font-size: 13px; color: var(--lp-ink); line-height: 1.35; }
.lp-person__title { font-weight: 600; }
.lp-person a { color: var(--lp-ink); font-size: 15px; white-space: nowrap; }
.lp-person a:hover { color: var(--lp-teal); }
.lp-person a i { width: 18px; color: var(--lp-teal); }
.lp-explore {
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.lp-explore h3 { font-size: 26px; font-weight: 800; }
.lp-explore .lp-btn { align-self: flex-start; }

/* ---------- sponsors ---------- */
.lp-sponsors { padding: 44px 0 52px; border-top: 1px solid var(--lp-line); }
.lp-sponsors__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 56px;
    margin-top: 18px;
}
.lp-sponsors__row img { height: 56px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .lp-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .lp-section { padding: 60px 0; }
    .lp-hero__grid,
    .lp-idea,
    .lp-predict,
    .lp-trust,
    .lp-contact,
    .lp-market,
    .lp-card--wide { grid-template-columns: minmax(0, 1fr); }
    .lp-hero__text { padding: 56px 24px 44px; }
    .lp-hero__media { min-height: 300px; }
}

@media (max-width: 680px) {
    .lp { font-size: 16px; }
    .lp-wrap { padding: 0 16px; }
    .lp-hero__text { padding: 44px 16px 36px; }
    .lp-qcards,
    .lp-mgmt,
    .lp-steps,
    .lp-trust__list,
    .lp-person,
    .lp-layers { grid-template-columns: minmax(0, 1fr); }
    .lp-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-span { grid-template-columns: minmax(0, 1fr); }
    .lp-span div + div { border-left: 0; border-top: 1px solid rgba(29, 110, 133, .2); }
    .lp-sponsors__row { gap: 20px 32px; }
    .lp-sponsors__row img { height: 44px; }
    .lp-btn { width: 100%; justify-content: center; }
    .lp-explore .lp-btn { align-self: stretch; }
}
