/* Landing page (/) -- ported from the approved design study
   "CG_Landingpage_Designstudie.html".

   Everything here is scoped under .cg-landing on purpose: the landing page is a
   deliberately light-only marketing surface that does NOT participate in the
   data-theme system, so its tokens must not reach :root or they would fight
   theme-light.css / theme-dark.css on every other page.

   The palette is the corporate identity taken straight from assets/logo.svg:
   navy #1f3657 and emerald #0bb87c (the same two hexes the mark is drawn in),
   NOT the app-chrome variables --accent-primary / --accent-secondary. */

.cg-landing {
    --navy: #1f3657;
    --navy-deep: #132540;
    --emerald: #0bb87c;
    --emerald-dark: #079a67;
    --emerald-tint: #e8f8f1;
    --ink: #1f3657;
    --muted: #5f7186;
    --line: #e3e9ef;
    --wash: #f5f9f7;

    color: var(--ink);
    background: #fff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* The landing page is full-bleed: cancel the app shell page padding, which is
   sized for in-app pages with a sidebar, not for a marketing page. */
.page-container:has(> .cg-landing) {
    padding: 0;
}

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

.cg-landing .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.cg-landing .lp-section {
    padding: 88px 0;
    border-top: 1px solid var(--line);
}

.cg-landing h1,
.cg-landing h2,
.cg-landing h3 {
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--ink);
}

.cg-landing h1 {
    font-size: clamp(34px, 5.2vw, 60px);
    font-weight: 800;
}

.cg-landing h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
}

.cg-landing h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.cg-landing p {
    margin: 0;
}

.cg-landing .lede {
    font-size: clamp(17px, 1.7vw, 20px);
    color: var(--muted);
    max-width: 62ch;
}

/* --- Header / nav --- */

.cg-landing .lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.cg-landing .lp-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 70px;
}

.cg-landing .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.cg-landing .logo img {
    height: 34px;
    width: auto;
    display: block;
}

.cg-landing .lp-nav a {
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 9px;
}

.cg-landing .lp-nav a:hover {
    background: var(--wash);
}

.cg-landing .lang {
    color: var(--muted);
    font-size: 14px;
    padding: 0 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cg-landing .lang b {
    color: var(--navy);
}

/* The inactive language is a Dash button (it fires a callback), so it has to be
   un-styled back down to look like the plain text the study draws. */
.cg-landing .lang button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
}

.cg-landing .lang button:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* --- Buttons --- */

.cg-landing .lp-btn {
    display: inline-block;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 26px;
    font-size: 16px;
    border: 1px solid transparent;
    min-height: 48px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.35;
}

.cg-landing .lp-btn-primary {
    background: var(--emerald);
    color: #fff;
}

.cg-landing .lp-btn-primary:hover {
    background: var(--emerald-dark);
    color: #fff;
}

.cg-landing .lp-btn-quiet {
    border-color: var(--line);
    color: var(--navy);
    background: #fff;
}

.cg-landing .lp-btn-quiet:hover {
    border-color: #c9d4de;
    color: var(--navy);
}

.cg-landing .lp-nav .lp-btn {
    padding: 10px 20px;
    font-size: 15px;
    min-height: 0;
}

/* --- Hero --- */

.cg-landing .hero {
    padding: 76px 0 64px;
    background: linear-gradient(180deg, #f0faf5 0%, #ffffff 100%);
}

.cg-landing .hero h1 {
    max-width: 16ch;
}

.cg-landing .hero .lede {
    margin-top: 22px;
}

.cg-landing .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 34px;
}

.cg-landing .fineprint {
    font-size: 14px;
    color: var(--muted);
    margin-top: 14px;
}

.cg-landing .shot {
    margin: 48px 0 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px -28px rgba(31, 54, 87, .45);
}

.cg-landing .shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- "Built for the school day" --- */

.cg-landing .fit {
    background: var(--wash);
}

.cg-landing .fit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.cg-landing .fit-item {
    border-left: 2px solid var(--emerald);
    padding-left: 16px;
}

.cg-landing .fit-item h3 {
    font-size: 16px;
}

.cg-landing .fit-item p {
    font-size: 15px;
    color: var(--muted);
    margin-top: 5px;
}

/* --- Tile rows --- */

.cg-landing .cardrow {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.cg-landing .cardrow > * {
    flex: 1 1 230px;
}

.cg-landing .cardrow-spaced {
    margin-top: 38px;
}

.cg-landing .tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
}

.cg-landing .tile h3 {
    font-size: 17.5px;
}

.cg-landing .tile p {
    color: var(--muted);
    font-size: 15px;
    margin-top: 9px;
}

/* --- Founder note --- */

.cg-landing .founder {
    background: var(--emerald-tint);
    border-radius: 16px;
    padding: 32px;
    margin-top: 34px;
}

.cg-landing .founder .who {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.cg-landing .founder .av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #c9e7da;
    flex: none;
}

.cg-landing .founder .who b {
    display: block;
    font-size: 16px;
}

.cg-landing .founder .who span {
    font-size: 14px;
    color: var(--muted);
}

.cg-landing .founder p {
    font-size: 15.5px;
    color: #2c4a63;
}

.cg-landing .afterquote {
    margin-top: 20px;
    font-size: 15.5px;
    color: var(--muted);
}

.cg-landing .afterquote a {
    color: var(--emerald-dark);
    font-weight: 600;
}

/* --- Testimonials --- */

.cg-landing .quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 38px;
}

.cg-landing .quote {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
}

.cg-landing .quote .big {
    font-size: 30px;
    font-weight: 800;
    color: var(--emerald);
    letter-spacing: -.02em;
}

.cg-landing .quote p {
    margin-top: 12px;
    font-size: 15.5px;
}

.cg-landing .quote .who {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
}

.cg-landing .quote .av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dde5ec;
    flex: none;
}

.cg-landing .quote .who b {
    display: block;
    font-size: 14.5px;
}

.cg-landing .quote .who span {
    font-size: 13.5px;
    color: var(--muted);
}

/* --- Pricing --- */

.cg-landing .price {
    background: var(--wash);
}

.cg-landing .price-row {
    margin-top: 38px;
    align-items: stretch;
}

.cg-landing .price-row > .lp-card {
    flex: 1 1 280px;
}

.cg-landing .lp-badge {
    display: inline-block;
    background: var(--emerald);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.cg-landing .lp-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cg-landing .lp-card > * {
    width: 100%;
}

.cg-landing .lp-card .lp-badge {
    width: auto;
}

.cg-landing .lp-card.lp-featured {
    border-color: var(--emerald);
    box-shadow: 0 14px 40px -26px rgba(11, 184, 124, .7);
}

.cg-landing .lp-card .amount {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 14px 0 4px;
}

.cg-landing .lp-card .per {
    font-size: 14px;
    color: var(--muted);
}

.cg-landing .lp-card ul {
    margin: 20px 0 26px;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--muted);
}

.cg-landing .lp-card ul li {
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.cg-landing .lp-card .lp-btn {
    margin-top: auto;
    text-align: center;
}

.cg-landing .compare {
    font-size: 14.5px;
    color: var(--muted);
    margin-top: 24px;
}

/* --- FAQ --- */

.cg-landing .faq {
    margin-top: 34px;
    border-top: 1px solid var(--line);
}

.cg-landing details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

.cg-landing summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
}

.cg-landing summary::-webkit-details-marker {
    display: none;
}

.cg-landing summary::after {
    content: "+";
    float: right;
    color: var(--emerald);
    font-weight: 700;
}

.cg-landing details[open] summary::after {
    content: "\2013";
}

.cg-landing details p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 15.5px;
    max-width: 70ch;
}

/* --- Closing band --- */

.cg-landing .close-band {
    background: var(--navy);
    color: #fff;
    text-align: center;
    border-top: 0;
}

.cg-landing .close-band h2 {
    color: #fff;
}

.cg-landing .close-band p {
    color: #b9c7d6;
    margin: 18px auto 0;
    max-width: 52ch;
}

.cg-landing .close-band .lp-btn-primary {
    margin-top: 30px;
}

.cg-landing .close-band .fineprint {
    color: #93a5b8;
}

/* --- Footer --- */

.cg-landing .lp-footer {
    background: var(--navy-deep);
    color: #93a5b8;
    padding: 44px 0;
    font-size: 14.5px;
}

.cg-landing .lp-footer .cols {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.cg-landing .lp-footer a {
    color: #93a5b8;
    text-decoration: none;
    margin-right: 18px;
    cursor: pointer;
}

.cg-landing .lp-footer a:hover {
    color: #fff;
}

.cg-landing .lp-footer .brand {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.cg-landing .lp-footer .copyright {
    margin-top: 8px;
}

.cg-landing .lp-footer .legal-row {
    margin-top: 10px;
}

.cg-landing a:focus-visible,
.cg-landing summary:focus-visible,
.cg-landing button:focus-visible {
    outline: 3px solid var(--emerald);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Admin-editable banners / promo box keep their slot under the nav. */
.cg-landing .lp-notices {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px 0;
}

@media (max-width: 900px) {
    .cg-landing .lp-section {
        padding: 60px 0;
    }

    .cg-landing .fit-grid,
    .cg-landing .quotes {
        grid-template-columns: 1fr;
    }

    .cg-landing .lp-nav {
        height: auto;
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 8px;
    }

    .cg-landing .logo {
        width: 100%;
        margin-bottom: 4px;
    }
}
