:root {
    color-scheme: light dark;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 100%;                /* respects the visitor's text size setting */
    line-height: 1.5;

    --background: #fcfcfd;
    --foreground: #15171a;
    --muted: #5d636b;
    --rule: #d9dbdf;
    --accent: #1a9b5b;
    --error: #b42318;
    --button: #15171a;
    --on-button: #fcfcfd;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #131416;
        --foreground: #ececee;
        --muted: #a3a8b0;
        --rule: #2a2c30;
        --accent: #4cc98a;
        --error: #ff8f85;
        --button: #ececee;
        --on-button: #131416;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[hidden] { display: none !important; }
p, h1, h2, ol { margin: 0; }
a, button, summary { touch-action: manipulation; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    gap: 0.75rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.domain {
    max-width: 100%;
    font-size: clamp(2.5rem, 1.25rem + 8vw, 5rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.lead {
    max-width: 32rem;
    color: var(--muted);
    font-size: 1.125rem;
    text-wrap: balance;
}

.price {
    margin-top: 1rem;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}
.currency { font-size: 0.5em; font-weight: 600; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.9375rem; }

.actions { width: 100%; max-width: 26rem; margin-top: 0.5rem; }

/* Primary action: used by the link (mailto fallback) and by the submit button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--button);
    color: var(--on-button);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.button:active { opacity: 0.75; }
.button:disabled { opacity: 0.5; cursor: wait; }

.alt { color: var(--muted); }
.alt > span:first-child { display: block; }
/* Address and Copy button share a row and wrap if there is no room */
.contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 0.75rem;
}
.contact a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}
.alt a, .privacy a {
    color: var(--foreground);
    text-underline-offset: 3px;
}

/* Secondary action (Copy): small, quiet, next to the address */
.copy {
    position: relative;
    min-width: 4rem;
    min-height: 1.75rem;            /* 28px: above the WCAG 2.2 AA minimum (24px) */
    padding: 0 0.625rem;
    border: 1px solid var(--rule);
    border-radius: 0.375rem;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
/* Invisible extra hit area so it stays easy to tap on mobile */
.copy::after {
    content: "";
    position: absolute;
    inset: -0.5rem -0.375rem;
}
/* Success state: text keeps full contrast, the accent goes on the border */
.copy[data-copied] {
    color: var(--foreground);
    border-color: var(--accent);
}

/* Hover only where there is a real pointer, so it does not stick after a tap */
@media (hover: hover) {
    .button:hover { opacity: 0.85; }
    .copy:hover { color: var(--foreground); border-color: var(--muted); }
}

/* Offer form (revealed by the main button) */
.panel {
    width: 100%;
    max-width: 26rem;
    padding: 1.25rem;
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    text-align: left;
    scroll-margin-block: 0.75rem;
}
.panel:focus { outline: none; }     /* focused by script on touch screens; not a control */
form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
label { color: var(--muted); font-size: 0.9375rem; }
.hint { margin-top: -0.25rem; color: var(--muted); font-size: 0.875rem; }
input, textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--muted);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--foreground);
    font: inherit;
    font-size: max(1rem, 16px);     /* under 16px, iOS zooms in on focus */
}
textarea { resize: vertical; }
.cf-turnstile { display: flex; justify-content: center; }
.cf-turnstile > div { width: 100%; }
.cf-turnstile[data-size="compact"] > div { width: auto; }
form .button { margin-top: 0.5rem; }
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
#form-status { min-height: 1.5em; color: var(--muted); font-size: 0.9375rem; }
#form-status[data-state="error"] { color: var(--error); }
#form-status[data-state="ok"] { color: var(--foreground); }
#form-status a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid var(--foreground);
    outline-offset: 3px;
}

.process {
    width: 100%;
    max-width: 26rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    text-align: left;
}
.process h2 { margin-bottom: 0.5rem; font-size: 1rem; }
.process ol { padding-left: 1.25rem; color: var(--muted); }
.process li + li { margin-top: 0.25rem; }

footer {
    padding: 1rem 1.25rem 2rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}
/* Same column width as .process so both blocks share the same edges */
.privacy { max-width: 26rem; margin: 0 auto; }
.privacy summary {
    display: inline-block;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy p {
    margin-top: 0.25rem;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: break-word;
}

/* Phones: full-width main button; the form drops its frame to gain room */
@media (max-width: 30rem) {
    .actions .button, form .button { width: 100%; }
    .panel { padding: 0; border: 0; border-radius: 0; }
}

/* Short screens (phone in landscape, small phones): tighter spacing so the
   essentials fit on the first screen */
@media (max-height: 36rem) {
    main { gap: 0.4rem; padding-block: 1rem; }
    .price { margin-top: 0.25rem; }
    .actions { margin-top: 0.25rem; }
}
@media (max-height: 30rem) {
    main { gap: 0.2rem; padding-block: 0.5rem; }
    .domain { font-size: 2.5rem; }
    .lead { font-size: 1rem; }
    .price { margin-top: 0; font-size: 1.5rem; }
    .actions { margin-top: 0.125rem; }
}
/* Wide and short: put the contact question and address on one line */
@media (max-height: 30rem) and (min-width: 34rem) {
    .alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .button, .copy { transition: none; }
}