:root {
    --landing-gutter: clamp(16px, 4vw, 56px);
    --landing-width: min(calc(100% - 2 * var(--landing-gutter)), 1200px);
    --landing-space: clamp(52px, 7vw, 96px);
}

.site-nav,
.site-footer,
.landing-frame {
    width: var(--landing-width);
    margin-inline: auto;
}

.site-nav,
.site-footer {
    padding-inline: 0;
}

.landing-intro h1,
.landing :is(.landing-section-heading, .landing-faq, .landing-close) h2 {
    margin: 0;
    text-wrap: balance;
    letter-spacing: -0.05em;
}

.landing :is(.landing-section-heading, .landing-faq, .landing-close) h2 {
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.14;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
    padding-block: clamp(20px, 4.2vw, 60px) var(--landing-space);
}

.landing-intro h1 {
    font-size: clamp(38px, 5.3vw, 76px);
    line-height: 1.04;
}

.landing-intro h1 span {
    position: relative;
    display: inline-block;
}

.landing-intro h1 span::after {
    content: "";
    position: absolute;
    inset: auto 2% -0.09em 1%;
    height: 0.09em;
    border-radius: 80% 70% 50% 40%;
    background: linear-gradient(95deg, var(--brand-purple), var(--brand-blue));
    transform: rotate(-2deg);
}

.landing-intro > p:first-of-type {
    max-width: 43ch;
    margin: 20px 0 24px;
    color: var(--brand-muted);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.65;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.landing .button,
.landing-link {
    min-height: 44px;
}

.landing .button svg,
.landing-link svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.landing-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-pressed);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.landing-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.landing-beta {
    margin: 12px 0 0;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.6;
}

.landing-switch {
    min-width: 0;
    margin: clamp(22px, 4vw, 40px) 0 0;
    padding: 0;
    border: 0;
}

.landing-switch legend {
    margin-bottom: 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}

.landing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-options label {
    position: relative;
    cursor: pointer;
}

.landing-options input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.landing-options span {
    display: grid;
    align-content: center;
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-control);
    font-size: 13px;
    font-weight: 600;
}

.landing-options input:checked + span {
    border-color: var(--brand-selection-edge);
    background: var(--brand-tint);
    color: var(--brand-pressed);
}

.landing-options input:focus-visible + span {
    outline: var(--brand-focus-outline);
    outline-offset: var(--brand-focus-offset);
}

.landing-demo {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    overflow: hidden;
    padding: clamp(12px, 3vw, 34px);
    border-radius: clamp(20px, 4vw, 42px);
    background: radial-gradient(ellipse at top right, var(--brand-blue-tint), transparent 65%),
        linear-gradient(145deg, var(--brand-tint-hover), var(--brand-tint) 60%, var(--brand-surface));
}

.landing-motif {
    position: absolute;
    z-index: -1;
    width: min(110%, 520px);
    height: auto;
    inset-inline-end: -28%;
    inset-block-end: -14%;
    opacity: 0.13;
    pointer-events: none;
}

.landing-example {
    grid-area: 1 / 1;
    width: min(100%, 392px);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

#contoh-link_bio {
    visibility: visible;
}

.landing-hero:has(input:checked) .landing-example {
    visibility: hidden;
}

.landing-hero:has([value="link_bio"]:checked) #contoh-link_bio,
.landing-hero:has([value="cv"]:checked) #contoh-cv,
.landing-hero:has([value="company_profile"]:checked) #contoh-company_profile {
    visibility: visible;
}

@supports not selector(:has(*)) {
    .landing-switch,
    .landing-example:not(#contoh-link_bio) {
        display: none;
    }
}

.landing-page-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 5px solid var(--brand-ink);
    border-radius: 32px;
    box-shadow: 0 12px 28px rgb(44 27 79 / 14%);
    background: var(--brand-surface);
}

.landing-preview-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    color: var(--brand-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.landing-preview-address svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.landing-preview-crop {
    flex: 1;
    display: flex;
    background: var(--brand-surface);
}

.landing-preview-crop .theme-preview {
    width: 100%;
    border: 0;
    border-radius: 0;
}

.landing-preview-crop .theme-preview .public-profile {
    padding: 16px clamp(12px, 2vw, 22px);
}

.landing-preview-crop .theme-preview .profile-header {
    margin-block-end: 12px;
}

.landing-preview-crop .theme-preview .profile-utilities {
    display: none;
}

.landing-example-caption {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 12px 16px;
    margin-top: 12px;
    background: var(--brand-surface);
    border-radius: var(--brand-radius-panel);
}

.landing-example-caption > div {
    flex: 1 1 180px;
}

.landing-example-caption p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.55;
}

.landing-example-caption .landing-template-name {
    margin-bottom: 3px;
    color: var(--brand-ink);
    font-weight: 600;
}

.landing-example-caption .landing-link {
    flex: none;
    font-size: 13px;
}

.landing-workflow {
    padding-block: clamp(30px, 5.2vw, 72px);
    background: var(--brand-ground);
}

.landing-section-heading > p,
.landing-close-inner p {
    margin: 10px 0 0;
    color: var(--brand-muted);
    line-height: 1.65;
}

.landing-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px clamp(20px, 4vw, 60px);
    padding: 0;
    margin: clamp(20px, 3vw, 38px) 0 10px;
    list-style: none;
    counter-reset: stage;
}

.landing-stages li {
    counter-increment: stage;
}

.landing-stages li::before {
    content: counter(stage);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-pressed);
    font-size: 14px;
    font-weight: 600;
}

.landing-stages h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.landing-stages p {
    margin: 0;
    max-width: 34ch;
    color: var(--brand-muted);
    line-height: 1.65;
}

.landing-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
    gap: clamp(20px, 5vw, 76px);
    padding-block: var(--landing-space);
}

.landing-answers details {
    border-block-end: 1px solid var(--brand-border);
}

.landing-answers summary {
    cursor: pointer;
    padding: 14px 4px;
    min-height: 48px;
    font-weight: 600;
    line-height: 1.5;
}

.landing-answers summary:focus-visible {
    outline: 3px solid var(--brand-pressed);
    outline-offset: 2px;
}

.landing-answers details p {
    margin: 0;
    padding: 0 4px 16px;
    color: var(--brand-muted);
    line-height: 1.65;
}

.landing-close-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: clamp(22px, 4.4vw, 58px);
    background: var(--brand-tint);
    border-radius: var(--brand-radius-feature);
}

@media (max-width: 820px) {
    .landing-hero,
    .landing-faq {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-intro h1 {
        font-size: clamp(38px, 9.3vw, 64px);
    }

    .landing-demo {
        padding-inline: max(12px, 5%);
    }
}

@media (max-width: 620px) {
    .landing-stages {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-stages li {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 12px;
    }

    .landing-stages li::before {
        grid-row: span 2;
        margin: 0;
    }

    .landing-stages p {
        grid-column: 2;
    }

    .landing-options span {
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .landing-hero:has(input:checked) .landing-example[id] {
        transition: opacity 180ms ease-out;
        opacity: 0;
    }

    .landing-hero:has([value="link_bio"]:checked) #contoh-link_bio,
    .landing-hero:has([value="cv"]:checked) #contoh-cv,
    .landing-hero:has([value="company_profile"]:checked) #contoh-company_profile {
        opacity: 1;
    }
}
