:root {
    color-scheme: light;
    --ink: #26332e;
    --muted: #818a83;
    --green: #587d68;
    --green-dark: #456a55;
    --line: #e8ebe6;
    --paper: #fff;
    --canvas: #f7f8f6;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(233, 239, 230, 0.6), transparent 38%),
        var(--canvas);
    color: var(--ink);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

.page-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 0 7.3%;
}

.topbar {
    display: flex;
    height: 91px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(38, 51, 46, 0.07);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.7px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 10px;
    background: #e8efe8;
}

.brand-mark svg {
    width: 21px;
    stroke: var(--green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.topbar-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #858e87;
    font-size: 12px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #87a78e;
}

main {
    display: flex;
    width: 100%;
    max-width: 680px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    align-self: center;
    justify-content: center;
    padding: 72px 0 64px;
}

.intro {
    margin-bottom: 34px;
    text-align: center;
}

.eyebrow,
.result-label {
    color: #829283;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    margin-top: 15px;
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: clamp(42px, 6vw, 57px);
    font-weight: 600;
    letter-spacing: -3.4px;
    line-height: 1.08;
}

h1 span {
    color: var(--green);
    font-weight: 500;
    font-style: italic;
}

.intro p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.shortener-card {
    width: 100%;
    padding: 29px 32px 31px;
    border: 1px solid rgba(224, 229, 222, 0.9);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 14px 45px rgba(48, 65, 53, 0.055), 0 2px 6px rgba(48, 65, 53, 0.025);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 26px;
}

.card-heading h2 {
    font-family: Manrope, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.45px;
}

.card-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.step-count {
    padding-top: 3px;
    color: #94a095;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.step-count span {
    padding: 0 3px;
    color: #c9d0c8;
}

.field-group label {
    display: block;
    margin-bottom: 9px;
    color: #4a554e;
    font-size: 11px;
    font-weight: 600;
}

.input-wrap,
.select-wrap {
    display: flex;
    height: 45px;
    align-items: center;
    border: 1px solid #e8ebe7;
    border-radius: 7px;
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within,
.select-wrap:focus-within {
    border-color: #9db5a1;
    box-shadow: 0 0 0 3px rgba(115, 150, 121, 0.11);
}

.url-wrap {
    gap: 10px;
    padding: 0 13px;
}

.url-wrap svg {
    width: 17px;
    flex: none;
    stroke: #9ca89d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.input-wrap input,
.select-wrap select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
}

.input-wrap input::placeholder {
    color: #b2b9b3;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 20px;
    margin-top: 21px;
}

.name-wrap {
    padding: 0 11px;
}

.prefix {
    flex: none;
    color: #829184;
    font-size: 11px;
}

.name-wrap input {
    height: 100%;
    padding-left: 1px;
}

.field-hint {
    display: block;
    margin-top: 7px;
    color: #a0a8a0;
    font-size: 10px;
}

.select-wrap {
    position: relative;
    padding: 0 12px;
}

.select-wrap select {
    height: 100%;
    appearance: none;
    cursor: pointer;
}

.select-wrap svg {
    width: 14px;
    flex: none;
    pointer-events: none;
    stroke: #89968b;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.create-button {
    display: flex;
    width: 100%;
    height: 47px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
    border: 0;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 150ms ease, transform 150ms ease;
}

.create-button:hover {
    transform: translateY(-1px);
    background: var(--green-dark);
}

.create-button:focus-visible,
.copy-button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(88, 125, 104, 0.28);
    outline-offset: 3px;
}

.create-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.button-arrow {
    font-size: 15px;
    font-weight: 400;
}

.form-message {
    margin-top: 15px;
    color: #a64848;
    font-size: 12px;
    line-height: 1.5;
}

.result-panel {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #dfe9df;
    border-radius: 8px;
    background: #f5f9f4;
}

.result-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #e3eee2;
    color: var(--green);
    font-size: 14px;
}

.result-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.result-label {
    font-size: 8px;
    letter-spacing: 1.1px;
}

.result-copy a {
    overflow: hidden;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expiry-copy {
    color: #909b91;
    font-size: 10px;
}

.copy-button {
    flex: none;
    padding: 8px 11px;
    border: 1px solid #dfe7dd;
    border-radius: 6px;
    background: #fff;
    color: #536f5a;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.copy-button:hover {
    background: #f8faf7;
}

.below-card {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 16px;
    color: #9aa39b;
    font-size: 10px;
}

.sparkle {
    padding-right: 4px;
    color: #93aa91;
    font-size: 12px;
}

footer {
    display: flex;
    min-height: 59px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(38, 51, 46, 0.07);
    color: #a0a8a1;
    font-size: 10px;
}

.footer-flower {
    color: #91a990;
    font-size: 15px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .page-shell {
        padding: 0 20px;
    }

    .topbar {
        height: 70px;
    }

    .topbar-note {
        font-size: 10px;
    }

    main {
        justify-content: flex-start;
        padding: 66px 0 54px;
    }

    .intro {
        margin-bottom: 28px;
    }

    h1 {
        font-size: 47px;
    }

    .intro p {
        font-size: 12px;
    }

    .shortener-card {
        padding: 24px 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .below-card {
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .topbar-note {
        max-width: 130px;
        text-align: right;
    }

    .result-panel {
        gap: 9px;
        padding: 11px;
    }

    .copy-button {
        padding: 8px;
    }
}
