/*
 * The public website (D125). Hand-written, one file, no build step: it has to open on 3G.
 *
 * The look is cheque paper. Cool, faintly green paper instead of cream; guilloché (the
 * security lines printed on cheques and banknotes) as the only ornament; Lalezar, named for
 * Tehran's old commercial street, for headlines only; Vazirmatn for everything read.
 * Amber is kept for the one thing to press, because it is the product's own colour and a
 * wholesaler who signs up should recognise the panel they land in.
 *
 * Persian is never letter-spaced: tracking breaks the joins between letters.
 */

@font-face {
    font-family: 'Lalezar';
    src: url('../fonts/lalezar/Lalezar-Persian.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #edf2ef;
    --paper-deep: #e1e9e4;
    --card: #fbfdfc;
    --ink: #0f2622;
    --ink-soft: #3f534e;
    --rule: rgb(15 38 34 / .14);
    --security: #3e7c6f;
    --act: #b45309;
    --act-deep: #92400e;
    --act-ink: #fff;
    --stamp: #3a3f9a;
    --bounced: #b42318;
    --cleared: #1f7a4d;

    --display: 'Lalezar', 'Vazirmatn', system-ui, sans-serif;
    --body: 'Vazirmatn', system-ui, sans-serif;

    --radius: 14px;
    --radius-small: 9px;
    --shadow: 0 1px 0 rgb(15 38 34 / .05), 0 18px 40px -24px rgb(15 38 34 / .45);
    --gutter: clamp(16px, 4vw, 40px);
    --wide: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.95;
    color: var(--ink);
    background: var(--paper);
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

p { margin: 0 0 1rem; }

:focus-visible {
    outline: 3px solid var(--act);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-small);
}
.skip:focus { top: 1rem; }

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

/* Numbers that line up: a Sayad ID, a price column. */
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------------------------------------------------------------- type ---------- */

.display-1,
.display-2 {
    font-family: var(--display);
    font-weight: 400;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
}
.display-1 { font-size: clamp(2.2rem, 1.25rem + 3.1vw, 3.65rem); line-height: 1.34; }
.display-2 { font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.85rem); line-height: 1.4; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .9rem;
    font-size: .92rem;
    font-weight: 700;
    color: var(--security);
}
.eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 2px;
    background: currentColor;
}

.lede {
    max-width: 58ch;
    font-size: clamp(1.07rem, 1rem + .35vw, 1.22rem);
    color: var(--ink-soft);
    text-wrap: pretty;
}

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__head--centre { margin-inline: auto; text-align: center; }
.section__head--centre .eyebrow { justify-content: center; }
.section__head--centre .lede { margin-inline: auto; }

/* --------------------------------------------------------------- guilloché ------ */

.guilloche { pointer-events: none; }
.guilloche path { fill: none; stroke: var(--security); stroke-width: .7; vector-effect: non-scaling-stroke; }

.guilloche--hero {
    position: absolute;
    object-fit: fill;
    inset-inline: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: .16;
    /* The lines thin out behind the headline, where they would fight the words. */
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 55%);
            mask-image: linear-gradient(to left, transparent 0%, #000 55%);
}

/* --------------------------------------------------------------- buttons -------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3.1rem;
    padding: .7rem 1.5rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--act {
    background: var(--act);
    color: var(--act-ink);
    box-shadow: 0 10px 22px -12px rgb(180 83 9 / .75);
}
.btn--act:hover { background: var(--act-deep); transform: translateY(-1px); }
.btn--act:active { transform: translateY(0); }
.btn--quiet {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--rule);
}
.btn--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--large { min-height: 3.5rem; padding-inline: 2rem; font-size: 1.12rem; }
.btn--small { min-height: 2.5rem; padding: .35rem 1.1rem; font-size: .95rem; }

.cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.cta__micro { font-size: .9rem; color: var(--ink-soft); }
.cta__micro::before { content: '✓ '; color: var(--cleared); font-weight: 800; }
.cta--centre { align-items: center; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    color: var(--security);
    text-decoration: none;
}
/* Drawn, not typed: Vazirmatn has no arrow glyph and the fallback renders it as a dot.
   Physical sides on purpose — the chevron points left, which is forward in Persian. */
.link-arrow::after {
    content: '';
    width: .45em;
    height: .45em;
    margin-inline-start: .15rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
}
.link-arrow:hover::after { transform: translateX(-4px) rotate(45deg); }

/* --------------------------------------------------------------- header --------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgb(237 242 239 / .9);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink);
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 3px double var(--stamp);
    border-radius: 50%;
    color: var(--stamp);
    font-size: 1.15rem;
    line-height: 1;
    padding-top: .2rem;
    transform: rotate(-10deg);
}

.nav { display: flex; align-items: center; gap: .25rem; margin-inline-start: auto; }
.nav__link {
    padding: .45rem .8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: var(--ink-soft);
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--ink); background: rgb(15 38 34 / .06); }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: '▾'; margin-inline-start: .3rem; font-size: .8em; }
.menu__panel {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + .5rem);
    display: grid;
    gap: .15rem;
    min-width: 260px;
    padding: .5rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.menu__item {
    display: block;
    padding: .55rem .8rem;
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 600;
}
.menu__item small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .85rem; line-height: 1.6; }
.menu__item:hover { background: var(--paper); }

.site-header__actions { display: flex; align-items: center; gap: .6rem; }

.burger { display: none; }

@media (max-width: 959px) {
    .nav, .site-header__actions .nav__link { display: none; }
    .site-header__actions { margin-inline-start: auto; }
    .burger { display: block; }
    .burger > summary {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        list-style: none;
        cursor: pointer;
        box-shadow: inset 0 0 0 1.5px var(--rule);
    }
    .burger > summary::-webkit-details-marker { display: none; }
    .burger__panel {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--card);
        border-bottom: 1px solid var(--rule);
        box-shadow: var(--shadow);
        display: grid;
        gap: .2rem;
    }
    .burger__panel a { padding: .7rem .2rem; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); }
    .site-header__actions .btn--small { display: none; }
}

/* --------------------------------------------------------------- hero ----------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3rem, 1.5rem + 5vw, 6rem);
}

.hero__grid {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 1rem + 4vw, 4rem);
    align-items: center;
}
/* Two columns only where the cheque gets room to be read; below that it sits under the text. */
@media (min-width: 1120px) {
    .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero__title { margin-bottom: 1.2rem; }
.hero__title em { font-style: normal; color: var(--security); }
.hero .lede { margin-bottom: 2rem; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.25rem; }

.hero__proof {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--rule);
    font-size: .95rem;
    color: var(--ink-soft);
}
.hero__proof strong { color: var(--cleared); }

.buyer-note {
    margin-top: 1rem;
    font-size: .92rem;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------- the cheque ----- */

.cheque-stage {
    position: relative;
    width: min(100%, 560px);
    margin-inline: auto;
    container-type: inline-size;
}
@media (min-width: 1120px) { .cheque-stage { margin-inline: auto 0; } }

.cheque {
    position: relative;
    margin: 0;
    aspect-ratio: 2.1 / 1;
    width: 100%;
    padding: 4cqi 4.5cqi;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--ink);
    /* Sized from the cheque's own width, so it reads the same on a phone and a monitor. */
    font-size: clamp(.62rem, 2.75cqi, .95rem);
    line-height: 1.75;
    transform: rotate(-1.6deg);
}
.cheque__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .2; }
.cheque__lines path { stroke-width: .6; }
.cheque__rosette {
    position: absolute;
    inset-inline-end: -8%;
    top: -26%;
    width: 52%;
    opacity: .28;
}
.cheque__rosette path { stroke-width: .5; }
.cheque__body { position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.cheque__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.cheque__bank { font-weight: 800; }
.cheque__sayad { color: var(--ink-soft); }
.cheque__sayad b { font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.cheque__middle { display: grid; align-content: center; gap: .2rem; }
.cheque__amount { font-size: 1.35em; font-weight: 800; }
.cheque__row { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.cheque__row b { color: var(--ink); }
.cheque__micr {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: .82em;
    color: var(--ink-soft);
    direction: ltr;
    text-align: left;
    letter-spacing: .12em;
}

.stamp {
    position: absolute;
    inset-inline-start: 40%;
    top: 28%;
    display: grid;
    place-items: center;
    width: 7.2em;
    height: 7.2em;
    border: .28em double var(--stamp);
    border-radius: 50%;
    color: var(--stamp);
    font-family: var(--display);
    font-size: 3.4cqi;
    line-height: 1.2;
    text-align: center;
    opacity: .86;
    transform: rotate(-14deg);
    mix-blend-mode: multiply;
    animation: stamp-down .5s cubic-bezier(.2, .9, .3, 1.35) .55s both;
}
.stamp small { display: block; font-family: var(--body); font-size: .62em; font-weight: 700; }

@keyframes stamp-down {
    from { opacity: 0; transform: rotate(-14deg) scale(1.9); }
    to { opacity: .86; transform: rotate(-14deg) scale(1); }
}

.reminder {
    position: relative;
    z-index: 1;
    display: flex;
    margin: -1.75rem 0 0;
    margin-inline-start: auto;
    align-items: flex-start;
    gap: .75rem;
    width: min(86%, 340px);
    padding: .85rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: .92rem;
    line-height: 1.7;
    animation: rise .55s ease 1.05s both;
}
.reminder__icon { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: #fbbf24; }
.reminder b { display: block; font-size: 1rem; }
.reminder span { color: rgb(237 242 239 / .75); }

.cheque-caption { width: min(100%, 560px); margin: .8rem auto 0; font-size: .82rem; color: var(--ink-soft); text-align: end; }
@media (min-width: 1120px) { .cheque-caption { margin-inline: auto 0; } }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------- the ledger ----- */
/* «امروز» on one side, «با همیار عمده» on the other, split by a ledger's red margin rule. */

.ledger {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.ledger__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--rule);
}
.ledger__row:first-child { border-top: 0; }
.ledger__cell { padding: 1.1rem 1.4rem; }
.ledger__cell--then {
    color: var(--ink-soft);
    border-inline-end: 3px double rgb(180 35 24 / .55);
}
.ledger__cell--now { font-weight: 600; }
.ledger__cell--now::before { content: '✓'; margin-inline-end: .5rem; color: var(--cleared); font-weight: 800; }
.ledger__head .ledger__cell {
    padding-block: .8rem;
    font-weight: 800;
    font-size: .92rem;
    color: var(--ink);
    background: var(--paper-deep);
}
.ledger__head .ledger__cell--now::before { content: none; }

@media (max-width: 639px) {
    .ledger__row { grid-template-columns: 1fr; }
    .ledger__cell--then { border-inline-end: 0; border-bottom: 1px dashed var(--rule); padding-bottom: .6rem; text-decoration: line-through rgb(180 35 24 / .45); }
    .ledger__cell--now { padding-top: .6rem; }
    .ledger__head { display: none; }
}

/* --------------------------------------------------------------- features ------- */

.features { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }

.feature {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: rgb(62 124 111 / .55); transform: translateY(-2px); }
.feature h3 { margin: 0; font-size: 1.25rem; line-height: 1.6; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature__frag { margin-top: auto; }
.feature .link-arrow { margin-top: .25rem; }

@media (min-width: 760px) {
    .feature--lead {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        align-items: center;
        gap: 2rem;
    }
    .feature--lead .feature__frag { margin-top: 0; }
}

/* --------------------------------------------------------------- fragments ------ */
/* Small pieces of the product drawn in HTML: they stay current and cost no image request. */

.frag {
    padding: .9rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
    font-size: .88rem;
    line-height: 1.75;
}
.frag__title { display: flex; justify-content: space-between; margin-bottom: .5rem; font-weight: 800; }
.frag__title span { font-weight: 400; color: var(--ink-soft); }
.frag__list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.frag__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .5rem .7rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 8px;
}
.frag__day {
    display: grid;
    place-items: center;
    min-width: 2.8rem;
    padding: .1rem .3rem;
    border-radius: 6px;
    background: var(--paper-deep);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}
.frag__day small { display: block; font-weight: 600; font-size: .72rem; color: var(--ink-soft); }
.frag__who { min-width: 0; }
.frag__who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frag__who span { color: var(--ink-soft); font-size: .8rem; }
.frag__money { font-weight: 800; white-space: nowrap; }

.pill {
    display: inline-block;
    padding: 0 .55rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.8;
    white-space: nowrap;
}
.pill--due { background: #fef3c7; color: #92400e; }
.pill--bounced { background: #fee2e2; color: var(--bounced); }
.pill--safe { background: #dbeafe; color: #1e3a8a; }
.pill--cleared { background: #dcfce7; color: var(--cleared); }

.frag__ladder {
    margin-top: .6rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    background: #fef3c7;
    color: #78350f;
    font-weight: 700;
}
.frag__bar { height: 6px; margin-top: .4rem; border-radius: 999px; background: rgb(120 53 15 / .18); overflow: hidden; }
.frag__bar i { display: block; width: 72%; height: 100%; background: var(--act); border-radius: inherit; }

.frag__ref {
    margin-top: .6rem;
    padding: .6rem .7rem;
    border: 1.5px dashed var(--security);
    border-radius: 8px;
    text-align: center;
}
.frag__ref b { display: block; font-size: 1.2rem; letter-spacing: .08em; }

.frag__path { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.frag__path span {
    padding: .1rem .55rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-weight: 700;
}
.frag__path i {
    width: .4em;
    height: .4em;
    border-left: 1.5px solid var(--ink-soft);
    border-bottom: 1.5px solid var(--ink-soft);
    transform: rotate(45deg);
    font-size: 0;
}

.frag--receipt {
    width: min(100%, 260px);
    margin-inline: auto;
    background: #fff;
    border-radius: 4px 4px 0 0;
    font-size: .8rem;
    -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x;
            mask: radial-gradient(circle 6px at 50% 100%, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x;
    padding-bottom: 1.4rem;
}
.frag--receipt hr { border: 0; border-top: 1px dashed var(--rule); margin: .5rem 0; }
.frag__line { display: flex; justify-content: space-between; gap: .5rem; }
.frag__total { font-size: 1rem; font-weight: 800; }
.frag__qr { width: 56px; height: 56px; margin: .6rem auto 0; }

/* --------------------------------------------------------------- steps ---------- */
/* A real sequence, so it is numbered; the dashed line is a cheque stub's perforation. */

.steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.step {
    position: relative;
    padding: 1.4rem 1.3rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
@media (min-width: 860px) {
    .step { border-radius: 0; border-inline-start-width: 0; }
    .step:first-child { border-inline-start-width: 1px; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
    .step:last-child { border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }
    .step + .step { border-inline-start: 2px dashed var(--rule); }
}
.step__n {
    display: block;
    margin-bottom: .3rem;
    font-family: var(--display);
    font-size: 2.6rem;
    line-height: 1.2;
    color: var(--security);
}
.step h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.step p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- surfaces ------- */

.surfaces { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .surfaces { grid-template-columns: repeat(3, 1fr); } }
.surface { padding: 1.5rem; border-top: 3px solid var(--security); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.surface__icon { width: 2rem; height: 2rem; margin-bottom: .8rem; color: var(--security); }
.surface h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.surface p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.surface__who { display: block; margin-top: .8rem; font-size: .85rem; font-weight: 700; color: var(--security); }

/* --------------------------------------------------------------- trust (dark) --- */

.band-ink {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
}
.band-ink .guilloche--hero { opacity: .14; }
.band-ink .display-2 { color: var(--paper); }
.band-ink .eyebrow { color: #9fd3c6; }
.band-ink .lede { color: rgb(237 242 239 / .78); }

.facts { position: relative; display: grid; gap: 1px; background: rgb(237 242 239 / .14); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { padding: 1.5rem 1.6rem; background: var(--ink); }
.fact h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: #fff; }
.fact p { margin: 0; color: rgb(237 242 239 / .78); font-size: .97rem; }

/* --------------------------------------------------------------- tiers ---------- */

.tiers { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 860px) { .tiers { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.7rem 1.5rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.tier--featured {
    border: 2px solid var(--act);
    box-shadow: var(--shadow);
}
@media (min-width: 860px) { .tier--featured { transform: translateY(-.75rem); } }
.tier__badge {
    position: absolute;
    top: -.8rem;
    inset-inline-start: 1.3rem;
    padding: .05rem .8rem;
    border-radius: 999px;
    background: var(--act);
    color: var(--act-ink);
    font-size: .85rem;
    font-weight: 800;
}
.tier__name { margin: 0; font-size: 1.3rem; }
.tier__price { margin: .3rem 0 0; font-size: 1.75rem; font-weight: 800; line-height: 1.4; }
.tier__period { font-size: .9rem; color: var(--ink-soft); }
.tier__monthly { font-weight: 700; color: var(--ink-soft); }
.tier__saving { font-size: .9rem; font-weight: 700; color: var(--cleared); }
.tier__list { flex: 1; margin: .8rem 0 1.2rem; padding: 0; list-style: none; }
.tier__list li { padding: .3rem 0; border-top: 1px dashed var(--rule); font-size: .96rem; }
.tier__list li::before { content: '✓'; margin-inline-end: .5rem; color: var(--cleared); font-weight: 800; }
.tier .btn { width: 100%; }

.period-switch {
    display: inline-flex;
    gap: .25rem;
    padding: .3rem;
    margin-top: 1.4rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--card);
}
.period-switch a { padding: .35rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.period-switch a[aria-current='true'] { background: var(--ink); color: var(--paper); }

.guarantee { margin-top: 1.5rem; text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* --------------------------------------------------------------- comparison ----- */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .96rem; }
.compare th, .compare td { padding: .75rem 1rem; text-align: center; border-top: 1px solid var(--rule); }
.compare thead th { position: sticky; top: 0; background: var(--card); border-top: 0; font-size: 1rem; }
.compare th[scope='row'] { text-align: start; font-weight: 600; }
.compare .compare__group th { padding-top: 1.2rem; background: var(--paper); text-align: start; font-weight: 800; color: var(--security); }
.compare .is-featured { background: rgb(180 83 9 / .05); }
.compare .is-later { color: var(--ink-soft); font-size: .85rem; font-weight: 700; }
.compare .is-yes { color: var(--cleared); font-weight: 800; }

/* --------------------------------------------------------------- FAQ ------------ */

.faq { display: grid; gap: .6rem; max-width: 860px; margin-inline: auto; }
.faq__group { margin: 2.5rem 0 .5rem; font-size: 1.2rem; }
.faq__group:first-child { margin-top: 0; }
.qa {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.qa > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
    content: '+';
    flex: none;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--paper);
    font-weight: 800;
    transition: transform .2s ease;
}
.qa[open] > summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.qa__a p { margin: 0; }

/* --------------------------------------------------------------- closing CTA ---- */

.closing {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: var(--paper-deep);
    border-block: 1px solid var(--rule);
}
.closing__rosette {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(760px, 120vw);
    height: auto;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    opacity: .22;
}
.closing .wrap { position: relative; }
.closing .lede { margin-inline: auto; margin-bottom: 2rem; }

/* --------------------------------------------------------------- feature page --- */

.page-hero { padding-block: clamp(2.5rem, 1rem + 4vw, 4.5rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero .lede { margin-bottom: 1.8rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: '/'; margin-inline-end: .4rem; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.points { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { padding: 1.5rem 1.4rem; background: var(--card); }
.point h2 { margin: 0 0 .4rem; font-size: 1.1rem; line-height: 1.6; }
.point p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.note {
    display: flex;
    gap: .8rem;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-inline-start: 4px solid var(--stamp);
    background: rgb(58 63 154 / .07);
    border-radius: var(--radius-small);
    font-size: .97rem;
}
.note b { flex: none; color: var(--stamp); }

.next-feature {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--card);
    text-decoration: none;
}
.next-feature small { display: block; color: var(--ink-soft); }
.next-feature b { font-size: 1.15rem; }
.next-feature:hover { border-color: var(--security); }

/* --------------------------------------------------------------- prose pages ---- */

.prose { max-width: 760px; }
.prose h2 { margin: 2.2rem 0 .7rem; font-size: 1.3rem; line-height: 1.6; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose .updated { font-size: .9rem; color: var(--ink-soft); }

.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { padding: 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.contact-card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.contact-card dt { color: var(--ink-soft); }
.contact-card dd { margin: 0; font-weight: 700; }

.principles { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { padding: 1.4rem 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.principle h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.principle p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------- footer --------- */

.site-footer { padding-block: 3.5rem 2rem; background: var(--ink); color: rgb(237 242 239 / .8); font-size: .95rem; }
.site-footer .brand { color: var(--paper); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { margin: 0 0 .8rem; font-size: .95rem; color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__about { max-width: 34ch; margin-top: .8rem; }
.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(237 242 239 / .14);
    font-size: .88rem;
}
.enamad { display: inline-block; padding: .3rem; background: #fff; border-radius: 8px; }

/* --------------------------------------------------------------- sticky CTA ----- */

.sticky-cta { display: none; }
@media (max-width: 959px) {
    body.has-sticky { padding-bottom: 5.5rem; }
    .sticky-cta {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        gap: .8rem;
        padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
        background: rgb(251 253 252 / .96);
        border-top: 1px solid var(--rule);
        box-shadow: 0 -10px 30px -20px rgb(15 38 34 / .5);
        transition: transform .25s ease;
    }
    .sticky-cta.is-hidden { transform: translateY(110%); }
    .sticky-cta .btn { flex: 1; }
    .sticky-cta small { flex: none; max-width: 7.5rem; font-size: .78rem; line-height: 1.5; color: var(--ink-soft); }
}

/* --------------------------------------------------------------- exit offer ----- */

.exit-offer {
    width: min(92vw, 460px);
    padding: 2rem 1.8rem 1.6rem;
    border: 0;
    border-radius: 20px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 40px 80px -30px rgb(15 38 34 / .6);
    text-align: center;
}
.exit-offer::backdrop { background: rgb(15 38 34 / .45); backdrop-filter: blur(3px); }
.exit-offer h2 { margin: 0 0 .5rem; }
.exit-offer p { color: var(--ink-soft); }
.exit-offer__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.2rem; }

/* --------------------------------------------------------------- motion --------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0s !important;
        transition-duration: .001ms !important;
    }
    html { scroll-behavior: auto; }
}

@media print {
    .site-header, .sticky-cta, .exit-offer, .closing, .site-footer { display: none; }
    body { background: #fff; }
}

.site-footer .brand__mark { border-color: #9fd3c6; color: #9fd3c6; }

/* On a phone the amount and its status drop under the name instead of squeezing it. */
@media (max-width: 480px) {
    .frag__item { grid-template-columns: auto 1fr; }
    .frag__item > :last-child { grid-column: 2; justify-self: start; }
    .frag__who b { white-space: normal; }
}

.tier .cta { align-items: stretch; width: 100%; }
.tier .cta__micro { text-align: center; }
