/* ==========================================================================
   PhyledPOS marketing site
   Concept: the counter, not the boardroom. Every device on this page is
   pulled from the actual instruments of a shop till — the printed
   receipt, the price tag, the ledger line, the register total — rather
   than generic SaaS ornament. Paper sections read like the countertop;
   navy bands (pulled from the real logo mark) are where the software
   itself speaks. Fraunces carries headlines with restraint, IBM Plex Mono
   carries every number/price/label (the "printed" register tape), IBM
   Plex Sans carries body copy.
   ========================================================================== */

:root {
    --paper:      #FBF9F4;
    --paper-dim:  #F1ECDC;
    --paper-line: #DED5C1;

    /* Dark band backgrounds — pulled from the real brand mark's navy, not a
       generic near-black. --ink stays the name used for section backgrounds
       (a couple of inline styles in home.php already reference it). */
    --ink:        #17233F;
    --ink-deep:   #0D1524;

    --text:       #1C1B16;
    --text-mute:  #5C574C;
    --on-dark:    #F3F0E4;
    --on-dark-mute: #A9B3C8;

    --gold:       #D6993C;
    --gold-hover: #BE852E;
    --gold-soft:  #F6E7CC;
    --green:      #2F8C48;
    --green-soft: #E4F1E6;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

.mkt-body {
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.mkt-shell {
    width: 100%;
    max-width: 74rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

@media (min-width: 768px) {
    .mkt-shell { padding-inline: 2.5rem; }
}

.mkt-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--on-dark);
    padding: 0.75rem 1.25rem;
    z-index: 100;
    border-radius: 0 0 0.4rem 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}
.mkt-skip-link:focus {
    left: 0;
}

.mkt-body :focus-visible {
    outline: 2px solid var(--gold-hover);
    outline-offset: 3px;
    border-radius: 2px;
}

[x-cloak] { display: none !important; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    color: var(--text);
}

.mkt-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    color: var(--gold-hover);
}

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

.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.35rem;
    border-radius: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}
.mkt-btn--primary {
    background: var(--gold);
    color: var(--ink-deep);
    box-shadow: 0 1px 2px rgba(23,35,63,0.08), 0 8px 18px -8px rgba(214,153,60,0.55);
}
.mkt-btn--primary:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23,35,63,0.1), 0 14px 24px -10px rgba(214,153,60,0.6);
}
.mkt-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(28,27,22,0.16);
}
.mkt-btn--ghost:hover {
    border-color: rgba(28,27,22,0.34);
    background: rgba(28,27,22,0.03);
}
.mkt-btn--on-dark {
    background: transparent;
    color: var(--on-dark);
    border-color: rgba(243,240,228,0.28);
}
.mkt-btn--on-dark:hover {
    border-color: rgba(243,240,228,0.5);
    background: rgba(243,240,228,0.06);
}
.mkt-btn--lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.975rem;
}
.mkt-btn--block { width: 100%; }

/* ── Nav ──────────────────────────────────────────────────────────────── */

.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251,249,244,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.mkt-nav--scrolled {
    /* Fully opaque once scrolled — the translucent default is fine over the
       paper-colored hero it starts on, but bold light-on-dark headings from
       sections further down (e.g. the ink-band "Built for your kind of
       business") showed through a merely-mostly-opaque background. */
    border-bottom-color: var(--paper-line);
    background: var(--paper);
}
.mkt-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
}

/* ── Age notice ───────────────────────────────────────────────────────
   Persistent (not dismissible) strip under the nav — a business-software
   compliance notice, not a cookie-consent-style nag, so it doesn't get a
   "got it" button a visitor could use to make it go away. */
.mkt-age-notice {
    background: var(--gold-soft);
    border-bottom: 1px solid var(--paper-line);
}
.mkt-age-notice__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-block: 0.6rem;
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
}
.mkt-age-notice__row svg {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--gold-hover);
}
.mkt-age-notice__row b { font-weight: 700; }
.mkt-brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
}
.mkt-brand--light { color: var(--on-dark); }
.mkt-brand__logo {
    height: 2.75rem;
    width: auto;
    display: block;
}
.mkt-brand--footer {
    background: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 0.6rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.mkt-brand--footer .mkt-brand__logo { height: 2.25rem; }

.mkt-nav__links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mute);
}
.mkt-nav__links a:hover { color: var(--text); }

.mkt-nav__cta {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mkt-nav__toggle {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.mkt-nav__toggle svg { width: 1.4rem; height: 1.4rem; }

.mkt-nav__mobile {
    border-top: 1px solid var(--paper-line);
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font-weight: 500;
    background: var(--paper);
}
.mkt-nav__mobile-cta {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.mkt-nav__mobile-cta .mkt-btn { flex: 1; }

@media (min-width: 900px) {
    .mkt-nav__links, .mkt-nav__cta { display: flex; }
    .mkt-nav__toggle { display: none; }
}

/* ── Section rhythm ───────────────────────────────────────────────────── */

.mkt-section {
    padding-block: 5.5rem;
    position: relative;
}
.mkt-section--tight { padding-block: 4rem; }

.mkt-section--ink {
    background: var(--ink);
    color: var(--on-dark);
}
.mkt-section--ink h2, .mkt-section--ink h3 { color: #fff; }

.mkt-section-head {
    max-width: 40rem;
    margin-bottom: 3rem;
}
.mkt-section-head--center { margin-inline: auto; text-align: center; }

.mkt-h2 {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-top: 0.6rem;
}
.mkt-lede {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-mute);
}
.mkt-section--ink .mkt-lede { color: var(--on-dark-mute); }
.mkt-section--ink .mkt-eyebrow { color: #E3B564; }

/* Torn-paper divider between an ink section and the paper below it */
.mkt-tear {
    height: 1.1rem;
    background:
        radial-gradient(circle at 10px 0, transparent 9px, var(--paper) 9.5px) 0 -1px / 20px 100% repeat-x;
}
.mkt-tear--to-ink {
    background:
        radial-gradient(circle at 10px 100%, transparent 9px, var(--ink) 9.5px) 0 1px / 20px 100% repeat-x;
}

/* Barcode scan-line — used exactly once, opening the hero, standing in for
   "everything here gets scanned at the till" without turning into wallpaper. */
.mkt-scanline {
    height: 0.5rem;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(243,240,228,0.55) 0 2px, transparent 2px 5px,
        rgba(243,240,228,0.3) 5px 6px, transparent 6px 11px,
        rgba(243,240,228,0.5) 11px 12px, transparent 12px 14px,
        rgba(243,240,228,0.35) 14px 17px, transparent 17px 22px
    );
    opacity: 0.6;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.mkt-hero {
    background: linear-gradient(175deg, var(--ink) 0%, var(--ink-deep) 78%);
    color: var(--on-dark);
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}
.mkt-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3.5rem;
    align-items: center;
    padding-top: 4rem;
}
@media (min-width: 1024px) {
    .mkt-hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2.5rem;
    }
}

.mkt-hero__eyebrow { margin-bottom: 1.25rem; }

.mkt-hero h1 {
    font-size: clamp(2.35rem, 1.75rem + 2.8vw, 3.75rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: #fff;
}

.mkt-hero__lede {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--on-dark-mute);
    max-width: 34rem;
}

.mkt-hero__cta {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.mkt-hero__micro {
    margin-top: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #8892A8;
    letter-spacing: 0.02em;
}

/* ── Signature: the printing receipt ─────────────────────────────────── */

.mkt-printer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mkt-printer__slot {
    width: 15.5rem;
    max-width: 88%;
    height: 1.1rem;
    background: #08101F;
    border-radius: 0.3rem;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    z-index: 2;
}
.mkt-printer__slot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5.5rem;
    height: 0.2rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
}

.mkt-receipt {
    width: 17.5rem;
    max-width: 92%;
    margin-top: -0.35rem;
    background: #FFFEFA;
    color: var(--text);
    padding: 1.7rem 1.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.55;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.2);
    clip-path: polygon(
        0 0, 100% 0, 100% 96%,
        95% 100%, 90% 96%, 85% 100%, 80% 96%, 75% 100%, 70% 96%, 65% 100%,
        60% 96%, 55% 100%, 50% 96%, 45% 100%, 40% 96%, 35% 100%, 30% 96%,
        25% 100%, 20% 96%, 15% 100%, 10% 96%, 5% 100%, 0 96%
    );
    position: relative;
    animation: mkt-unroll 0.7s cubic-bezier(.2,.9,.25,1) both;
    transform-origin: top center;
}

.mkt-receipt__head {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 1rem;
    color: var(--ink);
}
.mkt-receipt__sub {
    text-align: center;
    color: #9B9484;
    font-size: 0.66rem;
    margin-top: 0.2rem;
    letter-spacing: 0.06em;
}

.mkt-receipt__rule {
    border: none;
    border-top: 1px dashed #D6CFBE;
    margin: 0.9rem 0;
}

.mkt-receipt__line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.2rem;
    opacity: 0;
    transform: translateY(4px);
    animation: mkt-line-in 0.45s ease forwards;
}
.mkt-receipt__line span:first-child { color: var(--text); }
.mkt-receipt__line span:last-child { color: var(--green); font-weight: 600; }

.mkt-receipt__total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.85rem;
    opacity: 0;
    animation: mkt-line-in 0.45s ease forwards;
    animation-delay: 1.15s;
}

.mkt-receipt__stamp {
    margin-top: 1.15rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: mkt-stamp-in 0.5s cubic-bezier(.34,1.56,.64,1) forwards;
    animation-delay: 1.4s;
}
.mkt-receipt__stamp-badge {
    border: 1.5px solid var(--green);
    color: var(--green);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    transform: rotate(-6deg);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@keyframes mkt-unroll {
    from { transform: scaleY(0.06); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}
@keyframes mkt-line-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mkt-stamp-in {
    from { opacity: 0; transform: scale(0.5) rotate(-6deg); }
    to   { opacity: 1; transform: scale(1) rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .mkt-receipt, .mkt-receipt__line, .mkt-receipt__total, .mkt-receipt__stamp {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .mkt-receipt__stamp-badge { transform: rotate(-6deg); }
}

/* ==========================================================================
   Stat strip — read like a receipt subtotal block, not a card grid
   ========================================================================== */

.mkt-ledger {
    max-width: 42rem;
    margin-inline: auto;
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 0.6rem;
    padding: 0.5rem 1.75rem;
    box-shadow: 0 20px 40px -30px rgba(23,35,63,0.25);
}
.mkt-ledger__row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-block: 1.05rem;
}
.mkt-ledger__row + .mkt-ledger__row {
    border-top: 1px dashed var(--paper-line);
}
.mkt-ledger__label {
    font-size: 0.85rem;
    color: var(--text-mute);
    line-height: 1.4;
}
.mkt-ledger__leader {
    flex: 1;
    min-width: 1rem;
    border-bottom: 1px dotted #C9C1AC;
    transform: translateY(-0.3rem);
}
.mkt-ledger__value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    white-space: nowrap;
}

@media (min-width: 700px) {
    .mkt-ledger__label { font-size: 0.9rem; }
}

/* ==========================================================================
   Features
   ========================================================================== */

.mkt-features {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .mkt-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .mkt-features { grid-template-columns: repeat(3, 1fr); }
}

/* Individually bordered (not a shared-background grid-gap trick) so an
   incomplete last row just leaves quiet whitespace, never an odd blank
   patch where a card would have been. */
.mkt-card {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 0.5rem;
    padding: 1.85rem 1.75rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mkt-card:hover {
    background: var(--gold-soft);
    border-color: #E5CFA0;
}
.mkt-card__icon {
    display: inline-flex;
    width: 1.6rem;
    height: 1.6rem;
    color: var(--gold-hover);
    margin-bottom: 1.2rem;
}
.mkt-card__icon svg { width: 100%; height: 100%; }
.mkt-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}
.mkt-card p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-mute);
}

/* ==========================================================================
   Business types (ink band)
   ========================================================================== */

.mkt-types {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2.5rem;
}
@media (min-width: 700px) {
    .mkt-types { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .mkt-types { grid-template-columns: repeat(5, 1fr); }
}
.mkt-type {
    border: 1px solid rgba(243,240,228,0.14);
    background: rgba(243,240,228,0.03);
    border-radius: 0.5rem;
    padding: 1.35rem 1.1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.mkt-type:hover {
    border-color: rgba(214,153,60,0.5);
    background: rgba(243,240,228,0.06);
}
.mkt-type__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    color: var(--gold);
    margin-bottom: 0.85rem;
}
.mkt-type__icon svg { width: 100%; height: 100%; }
.mkt-type h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* ==========================================================================
   How it works — a legitimate 3-step sequence, numbered like invoice lines
   ========================================================================== */

.mkt-steps {
    display: grid;
    gap: 2.25rem;
    counter-reset: mkt-step;
    margin-top: 1rem;
}
@media (min-width: 800px) {
    .mkt-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
.mkt-step {
    position: relative;
    padding-top: 1.5rem;
    border-top: 2px solid var(--ink);
}
.mkt-step::before {
    counter-increment: mkt-step;
    content: counter(mkt-step, decimal-leading-zero);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold-hover);
    margin-bottom: 0.9rem;
}
.mkt-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.mkt-step p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-mute);
}

/* ==========================================================================
   Pricing — priced like a hanging price tag, notch and all
   ========================================================================== */

.mkt-toggle__switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-mute);
}
.mkt-toggle__switch em {
    font-style: normal;
    color: var(--green);
    font-weight: 600;
}
.mkt-toggle__label--active { color: var(--text); font-weight: 600; }
.mkt-toggle__track {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--ink);
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}
.mkt-toggle__thumb {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--gold);
    transition: transform 0.2s ease;
}

.mkt-plans {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    max-width: 46rem;
    margin-inline: auto;
}
@media (min-width: 700px) {
    .mkt-plans { grid-template-columns: repeat(2, 1fr); }
}
/* Three grouped cards (monthly/annual folded into one each via the toggle
   above) fit one row at desktop width instead of wrapping 2+1 — the whole
   reason for grouping them was to cut this section's height. */
@media (min-width: 960px) {
    .mkt-plans { grid-template-columns: repeat(3, 1fr); max-width: 68rem; }
}

.mkt-plan {
    background: #fff;
    border: 1px solid var(--paper-line);
    padding: 2.1rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    clip-path: polygon(1.6rem 0, 100% 0, 100% 100%, 0 100%, 0 1.6rem);
}
.mkt-plan::before {
    /* the punched string-hole — background matches the section behind it
       (--paper-dim) so it reads as a hole cut through the tag, not a dot */
    content: '';
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--paper-dim);
    border: 1px solid var(--paper-line);
    z-index: 2;
}
.mkt-plan--featured {
    border-color: var(--gold);
    box-shadow: 0 24px 48px -28px rgba(214,153,60,0.5);
}
.mkt-plan__badge {
    position: absolute;
    top: 1.1rem;
    right: -0.1rem;
    background: var(--ink);
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem 0.3rem 0.9rem;
    clip-path: polygon(0.6rem 0, 100% 0, 100% 100%, 0.6rem 100%, 0 50%);
}
.mkt-plan__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}
.mkt-plan__desc {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-mute);
    line-height: 1.55;
    min-height: 2.6rem;
}
.mkt-plan__price {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--paper-line);
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-mono);
}
.mkt-plan__price-amount {
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--ink);
}
.mkt-plan__price-period {
    font-size: 0.85rem;
    color: var(--text-mute);
}
.mkt-plan__save {
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--green);
    font-weight: 500;
}
/* Sets expectations on Starter/Growth before signup — a shop shouldn't
   invest in an offline workflow and discover only after their trial ends
   that it needs a plan change. See ApiSyncController's desktop-sync gate. */
.mkt-plan__note {
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-mute);
    padding-top: 0.85rem;
    border-top: 1px dashed var(--paper-line);
}
.mkt-plan__list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}
.mkt-plan__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}
.mkt-plan__list svg {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.mkt-plan .mkt-btn { margin-top: 1.75rem; }

.mkt-pricing-note {
    text-align: center;
    margin-top: 2.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-mute);
}

/* ==========================================================================
   Security
   ========================================================================== */

.mkt-security {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (min-width: 800px) {
    .mkt-security { grid-template-columns: repeat(2, 1fr); }
}
.mkt-security__item {
    display: flex;
    gap: 0.9rem;
    padding: 1.25rem;
    border: 1px solid rgba(243,240,228,0.14);
    border-radius: 0.5rem;
    background: rgba(243,240,228,0.03);
}
.mkt-security__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.4rem;
    background: rgba(47,140,72,0.18);
    color: #6FCB8A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mkt-security__icon svg { width: 1.1rem; height: 1.1rem; }
.mkt-security__item h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}
.mkt-security__item p {
    margin-top: 0.3rem;
    font-size: 0.83rem;
    color: var(--on-dark-mute);
    line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.mkt-faq {
    max-width: 42rem;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
}
.mkt-faq__item {
    border-top: 1px solid var(--paper-line);
}
.mkt-faq__item:last-child { border-bottom: 1px solid var(--paper-line); }
.mkt-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.mkt-faq__q svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--text-mute);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.mkt-faq__a {
    padding: 0 0.25rem 1.35rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-mute);
    max-width: 38rem;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.mkt-cta-band {
    background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 85%);
    color: #fff;
    text-align: center;
    padding-block: 4.5rem;
}
.mkt-cta-band h2 { color: #fff; }
.mkt-cta-band .mkt-lede { color: var(--on-dark-mute); margin-inline: auto; }
.mkt-cta-band__actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.mkt-footer {
    background: var(--ink-deep);
    color: var(--on-dark-mute);
    padding-top: 3.5rem;
}
.mkt-footer__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
}
@media (min-width: 700px) {
    .mkt-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}
.mkt-footer__tagline {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    max-width: 18rem;
    line-height: 1.6;
}
.mkt-footer__col h3 {
    color: #fff;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    font-weight: 500;
}
.mkt-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.875rem;
}
.mkt-footer__col a:hover { color: #fff; }
.mkt-footer__legal {
    border-top: 1px solid rgba(243,240,228,0.08);
    padding-block: 1.5rem;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: #6E7794;
}

/* ==========================================================================
   Product tour — real app screenshots, labeled like a clipped exhibit tag
   rather than a fake browser-chrome window
   ========================================================================== */

.mkt-tour {
    display: grid;
    gap: 3.5rem;
    margin-top: 1rem;
}

.mkt-tour__row {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .mkt-tour__row {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 3rem;
    }
    .mkt-tour__row--reverse .mkt-tour__shot { order: 2; }
    .mkt-tour__row--reverse .mkt-tour__text { order: 1; }
}

.mkt-tour__text .mkt-eyebrow { margin-bottom: 0.6rem; }
.mkt-tour__text h3 {
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
}
.mkt-tour__text p {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-mute);
}
.mkt-tour__list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.mkt-tour__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: var(--text);
}
.mkt-tour__list svg {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.mkt-shot {
    border: 1px solid var(--paper-line);
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(23,35,63,0.4), 0 2px 6px rgba(23,35,63,0.08);
}
.mkt-shot__bar {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.9rem;
    background: var(--ink);
    border-bottom: 1px solid var(--paper-line);
}
.mkt-shot__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.mkt-shot__label::before {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}
.mkt-shot__frame {
    max-height: 26rem;
    overflow: hidden;
    position: relative;
}
.mkt-shot__frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Scroll reveal ────────────────────────────────────────────────────── */

.mkt-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.mkt-reveal.mkt-reveal--in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .mkt-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Lightbox & Zoom ──────────────────────────────────────────────────── */

.mkt-shot--clickable {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mkt-shot--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 65px -30px rgba(23,35,63,0.5), 0 4px 12px rgba(23,35,63,0.1);
}

.mkt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 21, 36, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.mkt-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #fff;
    cursor: default;
}

.mkt-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    cursor: pointer;
}
.mkt-lightbox__close:hover {
    background: rgba(255,255,255,0.2);
}
.mkt-lightbox__close svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ==========================================================================
   Legal pages (Privacy / Terms / Cookies / Refunds) — same ledger/counter
   DNA as the rest of the site, but designed to actually be read: a plain-
   English summary up top, a "jump to a question" index instead of clause
   numbers, and a one-line "In short" above every formal clause so a shop
   owner can skim the whole page in a minute and only drop into the full
   paragraph where it matters to them. Clause numbers stay, small, in the
   corner — for whoever does need the formal reference.
   ========================================================================== */
.legal-shell {
    padding-block: 3.5rem 6rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
}
@media (min-width: 900px) {
    .legal-shell { grid-template-columns: 230px minmax(0,1fr); align-items: start; gap: 3rem; }
}
.legal-head {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--paper-line);
    padding-bottom: 1.75rem;
    margin-bottom: 0.25rem;
}
.legal-head .mkt-eyebrow { margin-bottom: 0.6rem; }
.legal-head h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    color: var(--text);
    text-wrap: balance;
}
.legal-head__lede {
    margin-top: 0.6rem;
    font-size: 1rem;
    color: var(--text-mute);
    max-width: 38rem;
    line-height: 1.6;
}
.legal-meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-mute);
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.2rem;
}
.legal-meta b { color: var(--text); font-weight: 600; }
.legal-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--paper-line); display: inline-block; }

/* ── Plain-English summary card ─────────────────────────────────────── */
.legal-summary {
    grid-column: 1 / -1;
    background: var(--ink);
    color: var(--on-dark);
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    display: grid;
    gap: 1.1rem;
}
@media (min-width: 640px) {
    .legal-summary { grid-template-columns: repeat(2, 1fr); padding: 1.8rem 2.1rem; }
}
.legal-summary__head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--gold);
    margin-bottom: -0.2rem;
}
.legal-summary__item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--on-dark);
}
.legal-summary__item svg { flex: none; margin-top: 0.15rem; color: var(--green); width: 1.1rem; height: 1.1rem; }
.legal-summary__note {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: var(--on-dark-mute);
    border-top: 1px solid rgba(243,240,228,0.14);
    padding-top: 0.9rem;
    margin-top: 0.2rem;
}

/* ── Key facts strip ─────────────────────────────────────────────────── */
.legal-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
    border-radius: 12px;
    overflow: hidden;
}
.legal-facts__item { background: var(--paper); padding: 1rem 1.2rem; }
.legal-facts__num { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--text); }
.legal-facts__label { font-size: 0.78rem; color: var(--text-mute); margin-top: 0.2rem; line-height: 1.4; }

/* ── Jump-to index (reads as questions, not clause numbers) ─────────── */
.legal-toc {
    position: sticky;
    top: 1.5rem;
}
.legal-toc__kicker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-mute);
    margin-bottom: 0.7rem;
}
.legal-toc__list {
    border-left: 2px solid var(--paper-line);
    padding-left: 1rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.legal-toc a {
    display: block;
    color: var(--text-mute);
    text-decoration: none;
    padding: 0.32rem 0;
    line-height: 1.4;
    border-left: 2px solid transparent;
    margin-left: -1.15rem;
    padding-left: 1rem;
}
.legal-toc a:hover { color: var(--green); }
.legal-toc a.is-active { color: var(--green); border-left-color: var(--green); font-weight: 600; }

@media (max-width: 899px) {
    .legal-toc { position: static; }
    .legal-toc__list {
        border-left: none;
        padding-left: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.4rem;
        -webkit-overflow-scrolling: touch;
    }
    .legal-toc a {
        margin-left: 0;
        border-left: none;
        white-space: nowrap;
        border: 1px solid var(--paper-line);
        border-radius: 999px;
        padding: 0.4rem 0.9rem;
    }
    .legal-toc a.is-active { border-color: var(--green); background: var(--green-soft); }
}

/* ── Body ─────────────────────────────────────────────────────────────── */
.legal-body { min-width: 0; max-width: 42rem; }
.legal-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.22rem;
    color: var(--text);
    margin: 2.6rem 0 1rem;
    padding-top: 2.1rem;
    border-top: 1px solid var(--paper-line);
    scroll-margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-wrap: balance;
}
.legal-body > h2:first-child,
.legal-body > :first-child h2 { border-top: none; padding-top: 0; margin-top: 0; }
.legal-h2-icon {
    flex: none;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.legal-h2-icon svg { width: 1.15rem; height: 1.15rem; }
.legal-body .clause-no {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-mute);
    letter-spacing: 0.04em;
    margin-left: auto;
    flex: none;
    padding-top: 0.2rem;
}
.legal-tldr {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: var(--paper-dim);
    border-radius: 9px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.1rem;
    font-size: 0.88rem;
    line-height: 1.5;
}
.legal-tldr__tag {
    flex: none;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-hover);
    background: var(--gold-soft);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-top: 0.1rem;
}
.legal-tldr p { margin: 0; color: var(--text); font-weight: 500; }

.legal-body p { margin: 0 0 0.9rem; line-height: 1.7; color: var(--text); font-size: 0.97rem; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-body li { margin-bottom: 0.5rem; line-height: 1.65; font-size: 0.97rem; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--green); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.85rem; }
.legal-body th, .legal-body td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.legal-body thead th { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); }
.legal-body tbody tr:hover { background: var(--paper-dim); }

.legal-callout {
    background: var(--paper-dim);
    border: 1px solid var(--paper-line);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0 1.4rem;
    font-size: 0.86rem;
}
.legal-callout p:last-child { margin-bottom: 0; }

.legal-nav-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--paper-line);
}
.legal-nav-links__label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.3rem; }
.legal-nav-links a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-mute);
    border: 1px solid var(--paper-line);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    text-decoration: none;
}
.legal-nav-links a:hover { color: var(--green); border-color: var(--green); }
