/* GoodLink landing, version 1: the page is the product. */

:root {
    --paper: #f5f2ea;
    --card: #fffdf6;
    --ink: #20261f;
    --muted: #5b6457;
    --green: #1f5c34;
    --green-deep: #14401f;
    --line: rgba(32, 38, 31, 0.14);
    --focus: #2e7d46;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: "Quicksand", "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 20;
    background: var(--green-deep);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

a {
    color: var(--green);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Header */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    max-width: 72rem;
    margin: 0 auto;
}

.wordmark {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
}

.login-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--green);
    text-decoration: none;
    padding: 0.35rem 0.2rem;
}

.login-link:hover {
    text-decoration: underline;
}

/* Demo section */

.demo-section {
    padding: 1.5rem 1.25rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-kicker {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* The GoodLink page itself */

.gl-page {
    width: 100%;
    max-width: 26rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(32, 38, 31, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.4rem;
}

.gl-banner {
    width: 100%;
    height: 7.5rem;
    background:
        linear-gradient(rgba(20, 40, 24, 0.18), rgba(20, 40, 24, 0.18)),
        url("/k3/images/unsplash/canopy.jpg") center 40% / cover no-repeat;
}

.gl-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -48px;
    border: 4px solid var(--card);
    background: var(--card);
}

.gl-handle {
    margin: 0.7rem 0 0;
    font-weight: 700;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
    max-width: 100%;
    padding: 0 1rem;
}

.gl-bio {
    margin: 0.3rem 0 1.2rem;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 0 1.5rem;
}

.gl-claim {
    width: 100%;
    padding: 0 1.1rem;
    margin-bottom: 0.9rem;
}

.gl-claim-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    background: var(--green-deep);
    border-radius: 999px;
    padding: 0.45rem 0.45rem 0.45rem 1.1rem;
    color: #fff;
}

.gl-claim-row:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.gl-prefix {
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.gl-claim input {
    flex: 1 1 4ch;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0;
}

.gl-claim input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.gl-claim input:focus {
    outline: none;
}

.gl-claim button {
    flex: none;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--green-deep);
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
}

.gl-claim button:hover {
    background: #e9f2ea;
}

.gl-links {
    width: 100%;
    padding: 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.gl-links a {
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    background: rgba(32, 38, 31, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    transition: background 0.2s ease;
}

.gl-links a:hover {
    background: rgba(31, 92, 52, 0.1);
}

.gl-footstamp {
    margin: 1.2rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.demo-caption {
    margin: 2.2rem 0 0;
    max-width: 24rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Story sections */

.story {
    max-width: 38rem;
    margin: 0 auto;
    padding: 2.75rem 1.5rem;
    border-top: 1px solid var(--line);
}

.story h2 {
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.story p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.money-line {
    color: var(--green-deep) !important;
    font-weight: 600;
    font-size: 1.15rem !important;
}

.story-cta {
    display: inline-block;
    margin-top: 1.2rem;
    background: var(--green-deep);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
}

.story-cta:hover {
    background: var(--green);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.credits {
    font-size: 0.78rem !important;
}

@media (min-width: 48rem) {
    .demo-section {
        padding-top: 3rem;
        padding-bottom: 5rem;
    }

    .demo-caption {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
