:root {
    /* === Figma color tokens === */
    --orang-500:  #F05A23;
    --sort-900:   #181816;
    --sort-100:   #F2F1EF;
    --hvid:       #FFFFFF;
    --groen-100:  #EEF4E4;
    --groen-300:  #C9D172;
    --groen-500:  #8DAD00;
    --groen-700:  #5A6F00;
    --orange-100: #FCEFDE;
    --lilla-500:  #872D5A;
    --red-300:   #FDACB3;
    --blaa-300:   #9EBCCB;
    --gul-500:    #FFCD00;
    --blaa-500:   #4D87A2;
    --red-100:   #FFEAEF;
    --blaa-100:   #E9F1F4;
    --gul-100:    #F9F6DE;

    /* === Semantic aliases === */
    --color-primary: var(--groen-500);
    --color-text:    var(--sort-900);
    --color-muted:   #767671;
    --color-border:  #E2DDD9;
    --color-white:   var(--hvid);

    /* Font */
    --font-base: 'Work Sans', sans-serif;

    /* Border radius */
    --radius: 12px;
}

/* ── Page wrapper ─────────────────────────────────── */

.sgpt-page {
    background: var(--hvid);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 64px 24px 120px;
    box-sizing: border-box;
    font-family: var(--font-base);
    color: var(--color-text);
}

/* ── Hero ─────────────────────────────────────────── */

.sgpt-hero {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.sgpt-logo {
    margin: 0 auto 28px;
    max-width: 300px;
}

.sgpt-logo svg {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.sgpt-h1 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
}

.sgpt-search {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--color-white) !important;
    border: 2px solid var(--color-border);
    border-radius: 32px;
    padding: 8px 8px 8px 24px;
    box-sizing: border-box;
    margin-bottom: 44px;
}

.sgpt-search__input {
    flex: 1;
    border: 0;
    outline: 0;
    resize: none;
    background: var(--color-white) !important;
    font-family: var(--font-base);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--color-text) !important;
    padding: 14px 0;
    max-height: 180px;
    overflow-y: auto;
    display: block;
}

.sgpt-search__input::placeholder {
    color: var(--color-muted);
}

.sgpt-search__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--orang-500);
    color: var(--color-white);
    border: 0;
    border-radius: 90px;
    width: 175px;
    height: 50px;
    flex-shrink: 0;
    font-family: var(--font-base);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.sgpt-search__send svg {
    width: 18px;
    height: 18px;
    fill: var(--color-orange-700);
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Prompt cards ─────────────────────────────── */

.sgpt-prompt-section {
    margin-top: 0;
}

.sgpt-container {
    max-width: 1144px;
    margin: 0 auto;
}

.sgpt-prompt-section .sgpt-container {
    max-width: 960px;
    padding: 32px 0;
}

.sgpt-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sgpt-card {
    --card-hover: var(--groen-500);
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px var(--color-border);
    padding: 25px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sgpt-card:nth-child(odd) {
    max-width: 488px;
}

.sgpt-card:nth-child(even) {
    max-width: 462px;
    justify-self: end;
}

.sgpt-card:hover,
.sgpt-card:focus-visible {
    box-shadow: 0 0 0 2px var(--card-hover, var(--groen-500));
    transform: translateY(-1px);
}

.sgpt-icon {
    flex: none;
    width: 48px;
    height: 48px;
    background: var(--card-hover);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sgpt-card--matematik {
    --card-hover: var(--groen-100);
}

.sgpt-card--dansk {
    --card-hover: var(--red-100);
}

.sgpt-card--natur {
    --card-hover: var(--blaa-100);
}

.sgpt-card--projekt {
    --card-hover: var(--gul-100);
}

.sgpt-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.sgpt-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sgpt-subject {
    display: block;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--sort-900);
}

.sgpt-prompt {
    margin: 0;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-muted);
    opacity: 0.8;
}

@media (max-width: 900px) {
    .sgpt-prompt-section .sgpt-container {
        padding: 16px 0;
    }

    .sgpt-cards-grid {
        grid-template-columns: 1fr;
    }

    .sgpt-card:nth-child(odd),
    .sgpt-card:nth-child(even) {
        max-width: 100%;
        justify-self: stretch;
    }
}

/* ── Info section (Figma 450:154) ───────────────────────────────── */

.sgpt-info-section {
    margin-top: 52px;
}

.sgpt-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px;
}

.sgpt-info-card {
    min-height: 261px;
    background: var(--hvid);
    border: 1px solid var(--color-muted);
    border-radius: var(--radius);
    padding: 49px 36px 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sgpt-info-icon {
    height: 56px;
    display: flex;
    align-items: center;
    color: var(--sort-900);
}

.sgpt-info-icon svg {
    display: block;
    max-height: 56px;
    width: auto;
}

.sgpt-info-icon--purple {
    color: #872d5a;
}

.sgpt-info-icon--orange {
    color: #f05a23;
}

.sgpt-info-icon--green {
    color: #8dad00;
}

.sgpt-info-icon--yellow {
    color: #ffcd00;
}

.sgpt-info-title {
    margin: 22px 0 0;
    font-family: var(--font-base);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--sort-900);
}

.sgpt-info-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #474744;
    font-family: var(--font-base);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    text-decoration: none;
}

.sgpt-info-arrow {
    font-size: 16px;
    line-height: 1;
}

.sgpt-info-card:hover {
    border-color: var(--sort-900);
}

@media (max-width: 1200px) {
    .sgpt-info-grid {
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .sgpt-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .sgpt-info-grid {
        grid-template-columns: 1fr;
    }

    .sgpt-info-card {
        min-height: 230px;
        padding: 36px 24px 24px;
    }

    .sgpt-info-title {
        font-size: 22px;
        line-height: 30px;
    }
}
