/* ============================================================================
   AutoMsg — editorial software design system
   Shared by index.html, refund-policy.html, privacy.html, terms.html
   Palette is closed: warm off-white, ink, emerald. Nothing else.
   ========================================================================== */

:root {
    --bg: #F4F1EC;
    --ink: #14140F;
    --accent: #1F6B4F;
    --accent-on-dark: #6FBF9A;
    --line: rgba(20, 20, 15, 0.13);
    --line-on-dark: rgba(244, 241, 236, 0.16);
    --muted: rgba(20, 20, 15, 0.5);
    --muted-on-dark: rgba(244, 241, 236, 0.55);
    --warn: #8A2B18;
    --max: 1200px;
    --gutter: 40px;
    --rhythm: clamp(76px, 9vw, 128px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ------------------------------------------------------------- typography */
h1,
h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    margin: 0;
}

h3,
h4 {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    /* Instrument Serif ships no bold — stroke weights it up */
    -webkit-text-stroke: 0.014em currentColor;
}

h3 {
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0;
}

.eyebrow--dark {
    color: var(--muted-on-dark);
}

.lede {
    font-size: 19px;
    line-height: 1.6;
    color: rgba(20, 20, 15, 0.74);
}

/* ---------------------------------------------------------------- layout */
.wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section {
    padding-block: var(--rhythm);
}

/* asymmetric two-column grid — every section below the hero */
.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.stack--tight {
    gap: 12px;
}

.stack--loose {
    gap: 32px;
}

/* --------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 53px;
    padding-inline: 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--ink);
    color: var(--bg);
}

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

.btn--primary:disabled {
    opacity: .55;
    cursor: default;
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--outline:hover {
    border-color: rgba(20, 20, 15, 0.45);
}

.btn--onDark {
    background: var(--bg);
    color: var(--ink);
}

.btn--onDark:hover {
    background: var(--accent-on-dark);
}

.btn--outlineDark {
    background: transparent;
    color: var(--bg);
    border-color: var(--line-on-dark);
}

.btn--outlineDark:hover {
    border-color: rgba(244, 241, 236, 0.55);
}

.btn--sm {
    min-height: 44px;
    padding-inline: 22px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.finePrint {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

/* focus — visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.onDark a:focus-visible,
.onDark button:focus-visible {
    outline-color: var(--accent-on-dark);
}

/* ---------------------------------------------------------------- header */
.siteHeader {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.siteHeader__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 72px;
}

.logo {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 26px;
    letter-spacing: -0.02em;
    -webkit-text-stroke: 0.012em currentColor;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

a.logo:hover {
    color: var(--accent);
}

.navList {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-inline-end: auto;
}

.navList a {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.navList a:hover {
    color: var(--accent);
}

.headerActions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.headerActions .linkish {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.headerActions .linkish:hover {
    color: var(--accent);
}

.navToggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-inline-start: auto;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    color: var(--ink);
}

.navToggle:hover {
    border-color: rgba(20, 20, 15, 0.45);
}

.navToggle span,
.navToggle span::before,
.navToggle span::after {
    content: "";
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
}

.navToggle span {
    position: relative;
}

.navToggle span::before {
    position: absolute;
    top: -5px;
}

.navToggle span::after {
    position: absolute;
    top: 5px;
}

/* ------------------------------------------------------------------ hero */
/* .hero must NOT declare a background-color, or the z-index:-1 glow wrapper
   would paint behind it and vanish. */
.hero {
    position: relative;
    text-align: center;
    padding-block: clamp(72px, 10vw, 132px) var(--rhythm);
}

.heroGlows {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.heroGlows i {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, rgba(31, 107, 79, 0) 68%);
}

.heroGlows i:nth-child(1) {
    width: 620px;
    height: 620px;
    top: -180px;
    left: -80px;
    filter: blur(92px);
    opacity: 0.4;
    animation: drift-a 22s ease-in-out infinite;
}

.heroGlows i:nth-child(2) {
    width: 560px;
    height: 560px;
    bottom: -220px;
    right: -60px;
    filter: blur(100px);
    opacity: 0.45;
    animation: drift-b 28s ease-in-out infinite;
}

@keyframes drift-a {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(60px, 40px, 0) scale(1.12);
    }
}

@keyframes drift-b {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1.06);
    }

    50% {
        transform: translate3d(-52px, -34px, 0) scale(0.94);
    }
}

.hero h1 {
    max-width: 16ch;
    margin-inline: auto;
    font-size: clamp(60px, 8.4vw, 112px);
    letter-spacing: -0.024em;
    line-height: calc(0.94em + 1rem);
    -webkit-text-stroke: 0.022em currentColor;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
    -webkit-text-stroke: 0.022em currentColor;
}

.heroInner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero .lede {
    max-width: 56ch;
}

.hero .cta-row {
    justify-content: center;
}

.hero .finePrint {
    max-width: 62ch;
}

/* ----------------------------------------------------------- screenshots */
figure {
    margin: 0;
}

.shot {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg);
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* placeholder — a screenshot that has not been supplied yet */
.shot--missing {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background-image: repeating-linear-gradient(45deg,
            rgba(20, 20, 15, 0.055) 0 10px,
            transparent 10px 20px);
}

.shot--missing span {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    max-width: 34ch;
    line-height: 1.7;
}

.shot--sm {
    border-radius: 14px;
}

/* ------------------------------------------------------------ proof strip */
/* 1px-gap grid over a border-coloured background = hairline dividers */
.proofStrip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}

.proofStrip li {
    background: var(--bg);
    padding: 26px 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.heroShotBlock {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* --------------------------------------------------------------- features */
.featureList {
    display: flex;
    flex-direction: column;
    gap: var(--rhythm);
}

.featureNum {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.featureBullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
}

.featureBullets li {
    background: var(--bg);
    padding-block: 14px;
    font-size: 16px;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 4px;
}

.featureBullets li::before {
    content: "—";
    color: var(--accent);
}

.shotRow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.shotRow figcaption {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-top: 12px;
}

/* ------------------------------------------------------------- dark bands */
.band {
    background: var(--ink);
    color: var(--bg);
}

.band h2 {
    color: var(--bg);
}

.band .lede {
    color: var(--muted-on-dark);
}

.band a:hover {
    color: var(--accent-on-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-on-dark);
    border: 1px solid var(--line-on-dark);
    border-radius: 16px;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.steps li {
    background: var(--ink);
    padding: 34px 30px 38px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps h3 {
    color: var(--bg);
}

.steps p {
    color: var(--muted-on-dark);
    font-size: 16px;
}

.stepNum {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-on-dark);
}

/* ---------------------------------------------------------------- safety */
.safetyList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.safetyList li {
    background: var(--bg);
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.safetyList h3 {
    font-size: 17px;
}

.safetyList p {
    font-size: 16px;
    color: rgba(20, 20, 15, 0.72);
}

.footnote {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    padding-top: 4px;
    border-top: 1px solid var(--line);
    width: 100%;
}

/* --------------------------------------------------------------- pricing */
.priceCard {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
    width: 100%;
}

#priceDisplay {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(46px, 5.4vw, 64px);
    line-height: 1;
    letter-spacing: -0.02em;
    -webkit-text-stroke: 0.014em currentColor;
    min-height: 1em;
}

#priceDisplay span {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    -webkit-text-stroke: 0;
    padding-inline-start: 8px;
    vertical-align: middle;
}

.includes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
    width: 100%;
}

.includes li {
    background: var(--bg);
    padding-block: 13px;
    font-size: 16px;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 4px;
}

.includes li::before {
    content: "—";
    color: var(--accent);
}

.guarantee {
    font-size: 16px;
    font-weight: 500;
}

/* buy form */
#buyForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.form-control,
#emailInput {
    width: 100%;
    min-height: 53px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
}

#emailInput::placeholder {
    color: var(--muted);
}

#emailInput:hover {
    border-color: rgba(20, 20, 15, 0.45);
}

#buyError {
    display: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--warn);
    border: 1px solid var(--warn);
    border-radius: 12px;
    padding: 10px 14px;
}

/* ------------------------------------------------------------------- faq */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
    width: 100%;
}

.faq details {
    background: var(--bg);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding-block: 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 44px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary h3 {
    font-size: 19px;
    font-weight: 500;
    margin-inline-end: auto;
}

.faq summary:hover h3 {
    color: var(--accent);
}

.faq .sign {
    flex: none;
    width: 22px;
    text-align: center;
    font-size: 22px;
    color: var(--muted);
    line-height: 1;
}

.faq details[open] .sign {
    color: var(--accent);
}

.faq .sign::before {
    content: "+";
}

.faq details[open] .sign::before {
    content: "–";
}

.faq .answer {
    padding-bottom: 26px;
    max-width: 72ch;
    color: rgba(20, 20, 15, 0.74);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------------------------------------------------- requirements table */
.reqTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.reqTable th,
.reqTable td {
    text-align: left;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.reqTable th {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 400;
    width: 34%;
    padding-inline-end: 20px;
}

/* ----------------------------------------------------------- closing cta */
.closing {
    text-align: center;
}

.closing .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.closing h2 {
    max-width: 18ch;
}

.closing .cta-row {
    justify-content: center;
}

.closing .finePrint {
    color: var(--muted-on-dark);
    max-width: 62ch;
}

/* ---------------------------------------------------------------- footer */
.siteFooter {
    border-top: 1px solid var(--line);
    padding-block: 56px 64px;
}

.footerGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
    align-items: flex-start;
    justify-content: space-between;
}

.footerLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footerLinks a {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.footerLinks a:hover {
    color: var(--accent);
}

.footerBottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-top: 40px;
    font-size: 14px;
    color: var(--muted);
}

/* ------------------------------------------------------------ order page */
/* The four state panels are toggled by order.js with inline display:block /
   display:none, so they stay plain block containers — the card inside does
   the layout. */
.orderWrap {
    max-width: 760px;
    margin-inline: auto;
}

.orderCard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(28px, 4vw, 48px);
}

.orderTitle {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.022em;
    -webkit-text-stroke: 0.016em currentColor;
    margin: 0;
}

.tokenWrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    width: 100%;
}

#tokenBox {
    flex: 1 1 320px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: rgba(31, 107, 79, 0.07);
    border: 1px solid var(--accent);
    border-radius: 14px;
    padding: 16px 18px;
    overflow-wrap: anywhere;
    user-select: all;
}

.nextSteps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.stepsPlain {
    margin: 0;
    padding-inline-start: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
    color: rgba(20, 20, 15, 0.74);
}

.stepsPlain::marker,
.stepsPlain li::marker {
    color: var(--accent);
}

.inlineLink {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.inlineLink:hover {
    color: var(--ink);
}

/* ----------------------------------------------------------- legal pages */
.legal {
    max-width: 74ch;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.legalHead {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legalBody {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.legalBody section {
    padding-block: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legalBody h2 {
    font-size: clamp(28px, 3vw, 36px);
}

.legalBody ul {
    margin: 0;
    padding-inline-start: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legalBody a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legalBody a:hover {
    color: var(--ink);
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
    :root {
        --gutter: 24px;
    }

    .navList,
    .headerActions .linkish {
        display: none;
    }

    .navToggle {
        display: flex;
    }

    .siteHeader__inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .siteHeader[data-open="true"] .navList {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        order: 3;
        margin: 0;
        padding-bottom: 12px;
        border-top: 1px solid var(--line);
    }

    .siteHeader[data-open="true"] .navList a {
        min-height: 48px;
        border-bottom: 1px solid var(--line);
    }

    .siteHeader[data-open="true"] .headerActions .linkish {
        display: inline-flex;
    }

    .headerActions {
        order: 2;
    }

    .split,
    .steps,
    .shotRow,
    .proofStrip {
        grid-template-columns: 1fr;
    }

    .split {
        gap: 36px;
    }

    .shotRow {
        display: flex;
        flex-direction: column;
    }

    .priceCard {
        padding: 28px;
    }

    .footerGrid {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .cta-row {
        width: 100%;
    }

    .cta-row .btn {
        width: 100%;
    }
}

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

    .heroGlows i {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        transition-duration: .001ms !important;
    }
}
