/* style.css — the whole site's styling. One page, one stylesheet.
   Light and dark both handled via prefers-color-scheme, because a buyer
   arriving from a dark-mode browser should not get a white flash. */

:root {
    --bg: #fbfaf8;
    --panel: #ffffff;
    --ink: #1c1b19;
    --ink-soft: #55514b;
    --rule: #e4e0d9;
    --accent: #1f6f5c;
    --accent-ink: #ffffff;
    --accent-soft: #eef4f1;
    --err: #8c2f2a;
    --err-bg: #fbeceb;
    --ok: #1f6f5c;
    --ok-bg: #eef4f1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17181a;
        --panel: #202224;
        --ink: #eceae6;
        --ink-soft: #a7a29a;
        --rule: #32353a;
        --accent: #4fae93;
        --accent-ink: #10231e;
        --accent-soft: #1d2b27;
        --err: #e8928c;
        --err-bg: #2d1f1e;
        --ok: #4fae93;
        --ok-bg: #1d2b27;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 44rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

.eyebrow {
    margin: 0 0 .5rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

h1 {
    /* The domain is the headline, so it is allowed to be large — but it has
       to shrink on a narrow screen or it is the element that overflows. */
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 8vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
}

.lede {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.lede strong { color: var(--ink); font-weight: 600; }

/* ── Price card ───────────────────────────────────────────────────────── */

.price-card {
    margin: 2.5rem 0;
    padding: 1.75rem;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 14px;
}

.price {
    margin: 0;
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.price .ccy {
    font-size: .4em;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: .06em;
    vertical-align: .35em;
}

.price-note {
    margin: .4rem 0 1.5rem;
    font-size: .9rem;
    color: var(--ink-soft);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: .8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-buy {
    background: var(--accent);
    color: var(--accent-ink);
    margin-right: .5rem;
}

.btn-buy:hover { filter: brightness(1.08); }

.btn-offer {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-offer:hover { background: var(--accent-soft); }

.btn-send {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-send:hover { filter: brightness(1.08); }

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* On a narrow screen the two buttons stack and go full width, rather than
   wrapping into an awkward pair of different lengths. */
@media (max-width: 26rem) {
    .btn-buy, .btn-offer {
        display: block;
        margin: 0 0 .6rem;
        text-align: center;
    }
}

/* ── Prose ────────────────────────────────────────────────────────────── */

h2 {
    margin: 2.25rem 0 .75rem;
    font-size: 1.15rem;
    letter-spacing: -.01em;
}

.pitch p { margin: 0 0 1rem; color: var(--ink-soft); }
.pitch a { color: var(--accent); }

/* The three "what a new name can't give you" points. A list, because they
   are three discrete claims rather than an argument that flows. */
.points {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
}

.points li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .6rem;
}

.points li::before {
    content: "";
    position: absolute;
    left: .25rem;
    top: .62em;
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--accent);
}

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

.inquire {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    /* The form target. scroll-margin keeps the heading clear of the top
       edge when the anchor jump lands here. */
    scroll-margin-top: 1rem;
}

.field { margin: 0 0 1.1rem; }

label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
    font-weight: 600;
}

label .opt { font-weight: 400; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: .65rem .75rem;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 9px;
    font: inherit;
}

textarea { resize: vertical; }

.actions { margin-top: 1.5rem; }

/* ── Flashes ──────────────────────────────────────────────────────────── */

.flash {
    margin: 0 0 1.25rem;
    padding: .8rem 1rem;
    border-radius: 9px;
    font-size: .95rem;
}

.flash-ok  { background: var(--ok-bg);  color: var(--ok);  border: 1px solid var(--ok); }
.flash-err { background: var(--err-bg); color: var(--err); border: 1px solid var(--err); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: .85rem;
    color: var(--ink-soft);
}

.foot p { margin: 0; }

/* Visually hidden but available to a screen reader. */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
