/* Sign-up (central.register) in the Linki look, the same tokens as the
   landing page (landing-linki.css): indigo is the platform colour, orange
   the main button with ink text, sand the page, ink the text. Strictly
   flat: no gradients, no glows, no coloured shadows. Phone first: a 16px
   gutter, 16px text in fields (so phones do not zoom in), tap targets of
   44px and more. */

:root {
    color-scheme: light;
    --su-indigo: #3b2fbf;
    --su-indigo-tint: #eeeefc;
    --su-orange: #ff7a29;
    --su-orange-dark: #e56516;
    --su-sand: #f6f1e9;
    --su-ink: #1a1830;
    --su-muted: #5d5a70;
    --su-hair: rgba(26, 24, 48, 0.09);
    --su-hair-strong: rgba(26, 24, 48, 0.18);
    --su-accent-ink: #a84a16;
    --su-danger: #c03530;
    --su-danger-tint: #fbe9e7;
    --su-r: 12px;
    --su-r-lg: 20px;
    --su-display: 'Manrope', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --su-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    /* P30-T02: keyboard focus on the last card must not land behind the stuck Continue. */
    scroll-padding-bottom: 96px;
}

body.su {
    margin: 0;
    min-height: 100vh;
    background: var(--su-sand);
    color: var(--su-ink);
    font-family: var(--su-body);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.su :focus-visible {
    outline: 3px solid rgba(59, 47, 191, 0.4);
    outline-offset: 2px;
}

.su-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.su-header {
    background: #fff;
    border-bottom: 1px solid var(--su-hair);
}

.su-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
}

.su-logo {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.su-logo img {
    display: block;
    width: 88px;
    height: 45px;
}

.su-header-login {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: var(--su-muted);
    font-size: 0.92rem;
}

.su-header-login a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--su-ink);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 420px) {
    .su-header-login span {
        display: none;
    }
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.su-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'intro' 'card' 'side';
    gap: 1.25rem;
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
}

.su-intro {
    grid-area: intro;
}

.su-card {
    grid-area: card;
    padding: 1.35rem 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--su-hair);
    border-radius: var(--su-r-lg);
}

.su-side {
    grid-area: side;
    padding: 0.25rem 0.25rem 0;
}

@media (min-width: 960px) {
    .su-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
        grid-template-areas: 'intro card' 'side card';
        grid-template-rows: auto 1fr;
        column-gap: 4rem;
        row-gap: 2rem;
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .su-intro {
        padding-top: 1.5rem;
    }

    .su-card {
        padding: 2rem 2rem 1.5rem;
    }
}

/* ── Intro and the facts ────────────────────────────────────────────────── */

.su-eyebrow {
    margin: 0 0 0.6rem;
    color: var(--su-indigo);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.su-intro h1 {
    margin: 0 0 0.5rem;
    font-family: var(--su-display);
    font-size: clamp(2rem, 6vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.su-lede {
    margin: 0;
    max-width: 30rem;
    color: var(--su-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.su-side-title {
    margin: 0 0 0.9rem;
    font-family: var(--su-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.su-facts {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.su-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 700;
    line-height: 1.45;
}

.su .lk-tick {
    flex: none;
    margin-top: 0.2rem;
    color: var(--su-accent-ink);
}

/* ── Form ───────────────────────────────────────────────────────────────── */

.su-alert {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    background: var(--su-danger-tint);
    border-radius: var(--su-r);
    color: var(--su-danger);
    font-size: 0.93rem;
    font-weight: 700;
}

.su-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.su-field {
    margin-bottom: 1.1rem;
}

.su-field > label,
.su-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.su .su-input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0.7rem 0.95rem;
    background: #fff;
    border: 1px solid var(--su-hair-strong);
    border-radius: var(--su-r);
    color: var(--su-ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color 140ms ease;
}

.su .su-input::placeholder,
.su-address input::placeholder {
    color: #8a8799;
}

.su .su-input:focus {
    outline: 3px solid rgba(59, 47, 191, 0.25);
    outline-offset: 0;
    border-color: var(--su-indigo);
}

.su .su-input.is-invalid,
.su-address.is-invalid {
    border-color: var(--su-danger);
}

.su-address {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    background: #fff;
    border: 1px solid var(--su-hair-strong);
    border-radius: var(--su-r);
    overflow: hidden;
    transition: border-color 140ms ease;
}

.su-address:focus-within {
    outline: 3px solid rgba(59, 47, 191, 0.25);
    border-color: var(--su-indigo);
}

.su-address input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.3rem 0.7rem 0.95rem;
    border: 0;
    background: transparent;
    color: var(--su-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
}

.su-address input:focus {
    outline: none;
}

.subdomain-suffix {
    display: flex;
    align-items: center;
    padding: 0 0.95rem 0 0.1rem;
    color: var(--su-muted);
    font-weight: 600;
    white-space: nowrap;
}

.address-status {
    min-height: 1.4rem;
    margin: 0.45rem 0 0;
    color: var(--su-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.address-status:empty {
    min-height: 0;
    margin: 0;
}

.address-status.is-ok {
    color: var(--su-indigo);
    font-weight: 800;
}

.address-status.is-bad {
    color: var(--su-danger);
    font-weight: 700;
}

.address-use {
    min-height: 44px;
    margin-top: 0.35rem;
    padding: 0 0.9rem;
    background: #fff;
    border: 1px solid var(--su-hair-strong);
    border-radius: 999px;
    color: var(--su-ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.address-use:hover {
    border-color: var(--su-indigo);
    color: var(--su-indigo);
}

.field-hint {
    margin: 0.4rem 0 0;
    color: var(--su-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.field-error {
    margin: 0.4rem 0 0;
    color: var(--su-danger);
    font-size: 0.9rem;
    font-weight: 700;
}

.su-row {
    display: grid;
    gap: 0;
}


.su-password {
    position: relative;
}

.su-password .su-input {
    padding-right: 3.2rem;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    padding: 0;
    background: none;
    border: 0;
    border-radius: 10px;
    color: var(--su-muted);
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--su-indigo);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* The plan as one line, the list behind "Change plan". */
.plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.35rem 0.4rem 0.35rem 0.95rem;
    background: var(--su-sand);
    border-radius: var(--su-r);
}

.plan-summary-text {
    font-weight: 800;
}

.plan-change {
    flex: none;
    min-height: 44px;
    padding: 0 0.6rem;
    background: none;
    border: 0;
    color: var(--su-indigo);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.su-select {
    position: relative;
}

.su-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--su-muted);
    border-bottom: 2px solid var(--su-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.su-select select {
    appearance: none;
    padding-right: 2.6rem;
    cursor: pointer;
}

/* Monthly or yearly, for paid plans only (register.js adds .visible). */
.cycle-group {
    display: none;
}

.cycle-group.visible {
    display: block;
}

.cycle-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.cycle-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.cycle-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cycle-card {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-height: 60px;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid var(--su-hair-strong);
    border-radius: var(--su-r);
}

.cycle-option input:checked + .cycle-card {
    background: var(--su-indigo-tint);
    border-color: var(--su-indigo);
}

.cycle-option input:focus-visible + .cycle-card {
    outline: 3px solid rgba(59, 47, 191, 0.4);
    outline-offset: 2px;
}

.cycle-name {
    font-weight: 800;
}

.cycle-price {
    color: var(--su-muted);
    font-size: 0.9rem;
}

/* The one button: ink on orange (white on this orange fails contrast). */
.su-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 54px;
    margin-top: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--su-orange);
    border: 0;
    border-radius: var(--su-r);
    color: var(--su-ink);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 140ms ease;
}

.su-submit:hover {
    background: var(--su-orange-dark);
}

.su-submit:disabled {
    cursor: wait;
}

.su-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(26, 24, 48, 0.25);
    border-top-color: var(--su-ink);
    border-radius: 50%;
    animation: su-spin 0.7s linear infinite;
}

.su-submit.is-loading .spinner {
    display: inline-block;
}

@keyframes su-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .su-submit .spinner {
        animation-duration: 2s;
    }
}

.su-back {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 0.6rem;
    color: var(--su-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.su-back:hover {
    color: var(--su-ink);
    text-decoration: underline;
}

.su-footer {
    padding-bottom: 1.75rem;
    color: var(--su-muted);
    font-size: 0.86rem;
    text-align: center;
}

/* Sign up with Google (P26): Google's white button, then the same form. */
.su-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 54px;
    padding: 0.8rem 1.2rem;
    background: #fff;
    border: 1px solid var(--su-hair-strong);
    border-radius: var(--su-r);
    color: var(--su-ink);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 140ms ease;
}

.su-google:hover {
    border-color: var(--su-ink);
}

.su-google .google-g,
.su-google-id .google-g {
    flex: none;
}

.su-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 1.25rem;
    color: var(--su-muted);
    font-size: 0.9rem;
}

.su-or::before,
.su-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--su-hair);
}

.su-google-id {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--su-sand);
    border-radius: var(--su-r);
}

.su-google-id div {
    display: grid;
    min-width: 0;
}

.su-google-id strong {
    overflow-wrap: anywhere;
}

.su-google-label {
    color: var(--su-muted);
    font-size: 0.88rem;
}

.su-google-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.1rem;
    margin: 0.3rem 0 1rem;
}

.su-google-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--su-indigo);
    font-size: 0.93rem;
    font-weight: 800;
}

.su-note {
    margin: 0 0 1.1rem;
    padding: 0.8rem 1rem;
    background: var(--su-indigo-tint);
    border-radius: var(--su-r);
    color: var(--su-indigo);
    font-size: 0.93rem;
    font-weight: 700;
}

/* ── Create a shop with Google (P27): one question per screen ───────────── */
.ob-agree {
    margin: 1rem 0 0;
    color: var(--su-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.ob-agree a {
    color: var(--su-indigo);
    font-weight: 800;
}

.ob-main {
    display: grid;
    /* minmax(0, 1fr): a long address or e-mail must not widen the page (P20). */
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.ob-card {
    /* Not the sign-up's 'card' area: this grid has none (it would add a column). */
    grid-area: auto;
    width: 100%;
    max-width: 30rem;
}

.ob-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 0.55rem;
}

.ob-progress span {
    height: 5px;
    border-radius: 99px;
    background: var(--su-hair-strong);
}

.ob-progress span.is-on {
    background: var(--su-indigo);
}

.ob-count {
    margin: 0 0 0.9rem;
    color: var(--su-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.ob-as {
    /* One quiet line, no box (P30-T09): the question sits higher on a phone. */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    color: var(--su-muted);
    font-size: 0.9rem;
}

.ob-as .google-g {
    flex: none;
    width: 16px;
    height: 16px;
}

.ob-as span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ob-as a {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 44px;
    color: var(--su-indigo);
    font-weight: 800;
}

.ob-card h1 {
    margin: 0 0 0.35rem;
    font-family: var(--su-display);
    font-size: clamp(1.5rem, 6vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ob-sub {
    margin: 0 0 1.25rem;
    color: var(--su-muted);
    line-height: 1.5;
}

.ob-yours {
    margin: 0 0 0.9rem;
    color: var(--su-indigo);
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* The shop address stays whole when it fits on a line; a very long one still wraps
   inside its own box (P30-T09). */
.ob-host {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ob-kinds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ob-kind {
    position: relative;
    display: block;
    cursor: pointer;
}

.ob-kind input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none; /* a tap always lands on the card, never on the hidden radio */
}

.ob-kind-box {
    display: grid;
    align-content: start;
    gap: 0.15rem;
    min-height: 100px;
    padding: 0.85rem 0.9rem;
    background: #fff;
    border: 1.5px solid var(--su-hair-strong);
    border-radius: var(--su-r);
    transition: border-color 140ms ease, background-color 140ms ease;
}

.ob-kind-box i {
    margin-bottom: 0.2rem;
    color: var(--su-indigo);
    font-size: 1.35rem;
    line-height: 1;
}

.ob-kind-box strong {
    font-weight: 800;
}

.ob-kind-box small {
    color: var(--su-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.ob-kind input:checked + .ob-kind-box {
    background: var(--su-indigo-tint);
    border-color: var(--su-indigo);
}

.ob-kind input:focus-visible + .ob-kind-box {
    outline: 3px solid rgba(59, 47, 191, 0.35);
    outline-offset: 2px;
}

/* P30-T02: Continue stays on screen. Last element of the form, so it never
   covers the grid once she has scrolled to the end. The negative margin
   cancels the card's bottom padding so the white backdrop reaches the edge
   while stuck. Flat: no shadow, no border. */
.ob-stick {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0 14px;
    margin-bottom: -1.25rem;
}

@media (min-width: 960px) {
    .ob-stick {
        margin-bottom: -1.5rem; /* the card's bottom padding on desktop */
    }
}

.ob-phone {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--su-hair-strong);
    border-radius: var(--su-r);
}

.ob-phone:focus-within {
    border-color: var(--su-indigo);
    outline: 3px solid rgba(59, 47, 191, 0.25);
}

.ob-phone.is-invalid {
    border-color: var(--su-danger);
}

.ob-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: var(--su-sand);
    color: var(--su-muted);
    font-weight: 800;
}

.ob-phone input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0.7rem 0.95rem;
    background: transparent;
    border: 0;
    color: var(--su-ink);
    font: inherit;
    font-size: 1rem;
}

.ob-phone input:focus {
    outline: none;
}

.ob-wait {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    background: var(--su-sand);
    border-radius: var(--su-r);
}

.ob-wait[hidden] {
    display: none;
}

/* P30-T10: the status line next to the spinner, a flat bar, the address, the slow line. */
.ob-wait-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
}

.ob-bar {
    height: 8px;
    border-radius: 99px;
    background: var(--su-hair-strong);
    overflow: hidden;
}

#wait_fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--su-indigo);
    transition: width 1s linear;
}

@media (prefers-reduced-motion: reduce) {
    #wait_fill {
        transition: none;
    }
}

.ob-wait-host {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ob-wait-slow {
    margin: 0;
    font-size: 0.9rem;
    color: var(--su-muted);
    font-weight: 600;
}

.ob-wait-slow[hidden] {
    display: none;
}

.ob-spin {
    flex: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(26, 24, 48, 0.18);
    border-top-color: var(--su-indigo);
    border-radius: 50%;
    animation: ob-spin 0.8s linear infinite;
}

@keyframes ob-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ob-spin {
        animation-duration: 2s;
    }
}
