:root {
    --ink: #16332B;
    --ink-soft: #3C5A50;
    --paper: #EEF2EA;
    --paper-card: #FFFDF7;
    --brass: #C99A3B;
    --brass-deep: #A87C22;
    --rust: #B23A2E;
    --line: #D4D9CC;
    --shadow: 0 12px 30px rgba(22, 51, 43, 0.10);
    --radius: 14px;
    --display: 'Space Grotesk', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --body: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    margin: 0;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brass);
    display: inline-block;
}

/* ---------- NAV ---------- */
header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(238, 242, 234, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    color: var(--ink);
}

.brand .mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand .mark svg {
    width: 16px;
    height: 16px;
}

nav.links {
    display: flex;
    gap: 30px;
    font-size: 14.5px;
    font-weight: 600;
}

nav.links a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color .15s;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-cta a.login {
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
}

/* ---------- BUTTONS (ink-stamp motif) ---------- */
.stamp-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--ink);
    color: var(--paper-card);
    background: var(--ink);
    transform: rotate(-1deg);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 3px 3px 0 var(--brass);
}

.stamp-btn:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 4px 5px 0 var(--brass);
}

.stamp-btn.ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink-soft);
}

.stamp-btn.small {
    padding: 10px 18px;
    font-size: 12px;
}

/* ---------- HERO ---------- */
.hero {
    padding: 76px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.05;
    margin: 18px 0 20px;
}

.hero h1 .accent {
    color: var(--brass-deep);
}

.hero p.lede {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 0 30px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 34px;
}

.hero-note {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-soft);
}

.trust-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px dashed var(--line);
}

.trust-row .stat b {
    display: block;
    font-family: var(--display);
    font-size: 24px;
    color: var(--ink);
}

.trust-row .stat span {
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* ---------- RECEIPT PRINTER (signature element) ---------- */
.printer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.printer-body {
    width: 100%;
    max-width: 340px;
    background: var(--ink);
    border-radius: 16px 16px 6px 6px;
    padding: 18px 22px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.printer-body .slot {
    height: 8px;
    border-radius: 5px;
    background: #0C201A;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.printer-body .led {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 8px var(--brass);
    animation: blink 2.4s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }
}

.receipt-window {
    width: 100%;
    max-width: 300px;
    height: 380px;
    margin-top: -4px;
    overflow: hidden;
    background: transparent;
    position: relative;
    z-index: 1;
}

.receipt-paper {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 0 0 4px 4px;
    padding: 22px 20px 26px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(22, 51, 43, 0.14);
    animation: feed 9s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Start them off-screen */
    transform: translateY(-100%); 
    /* Use 'both' to maintain state and 'linear' or 'ease' for flow */
    animation: feed 12s linear infinite; 
}

/* Stagger the start times */
.receipt-paper:nth-child(1) { animation-delay: 0s; }
.receipt-paper:nth-child(2) { animation-delay: 6s; }
.receipt-paper:nth-child(3) { animation-delay: 9s; }

@keyframes feed {
  0% { transform: translateY(-100%); opacity: 1; }
  5% { transform: translateY(0); opacity: 1; }   /* Enter & Pause */
  30% { transform: translateY(0); opacity: 1; }  /* Reading time */
  35% { transform: translateY(100%); opacity: 1; } /* Exit */
  100% { transform: translateY(100%); opacity: 0; } /* Wait for next cycle */
}

@keyframes feed {
    0% {
        transform: translateY(-360px);
    }

    8% {
        transform: translateY(0);
    }

    82% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(360px);
    }
}

.receipt-paper .r-title {
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.receipt-paper .r-sub {
    text-align: center;
    color: var(--ink-soft);
    font-size: 11px;
    margin-bottom: 14px;
}

.receipt-paper hr {
    border: none;
    border-top: 1px dashed var(--line);
    margin: 10px 0;
}

.receipt-paper .r-line {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.receipt-paper .r-line span:last-child {
    color: var(--ink-soft);
}

.receipt-paper .r-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 8px;
    font-size: 13.5px;
}

.receipt-paper .r-stamp {
    margin-top: 16px;
    text-align: center;
    color: var(--brass-deep);
    font-weight: 700;
    letter-spacing: 0.12em;
    border: 2px solid var(--brass-deep);
    border-radius: 6px;
    padding: 6px 0;
    transform: rotate(-2deg);
}

.printer-shadow {
    width: 70%;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(22, 51, 43, 0.18), transparent);
    margin-top: -8px;
}

/* ---------- SECTION generic ---------- */
section {
    padding: 84px 0;
}

.section-head {
    max-width: 620px;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 14px 0 14px;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 16.5px;
    margin: 0;
}

section.alt {
    background: var(--paper-card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- FEATURES ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card .ico {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card .ico svg {
    width: 22px;
    height: 22px;
    stroke: var(--ink);
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- HOW IT WORKS ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    overflow: hidden;
}

.step {
    position: relative;
    padding: 0 20px 0 0;
}

.step .num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--brass-deep);
    border: 1px solid var(--brass-deep);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--paper);
}

.step h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(100% - 20px);
    width: calc(100% - 10px);
    border-top: 1px dashed var(--line);
}

/* ---------- PRICING (ticket stubs) ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.plan {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan.popular {
    border-color: var(--brass-deep);
    box-shadow: var(--shadow);
}

.plan.popular::before {
    content: "MOST SUBSCRIBED";
    position: absolute;
    top: -12px;
    left: 26px;
    background: var(--brass-deep);
    color: var(--paper-card);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 5px;
}

.plan .perf {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 0;
    border-top: 2px dashed var(--line);
}

.plan h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.plan .tagline {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.plan .price {
    font-family: var(--display);
    font-size: 36px;
    margin-bottom: 4px;
}

.plan .price span {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 600;
}

.plan .per {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-bottom: 22px;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    flex-grow: 1;
}

.plan li {
    font-size: 14px;
    padding: 8px 0;
    border-top: 1px dashed var(--line);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.plan li:first-child {
    border-top: none;
}

.plan li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--brass-deep);
}

.pricing-note {
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-top: 30px;
    font-family: var(--mono);
}

/* ---------- TESTIMONIALS ---------- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testi {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
}

.testi::before {
    content: "“";
    font-family: var(--display);
    font-size: 44px;
    color: var(--brass);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.testi p.quote {
    font-size: 14.5px;
    color: var(--ink);
    margin: 0 0 18px;
}

.testi .who {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testi .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
}

.testi .who b {
    display: block;
    font-size: 13.5px;
}

.testi .who span {
    font-size: 12px;
    color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 760px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 0;
    font-family: var(--display);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-q .plus {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--brass-deep);
    flex-shrink: 0;
    transition: transform .2s ease;
}

.faq-item.open .faq-q .plus {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-a p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0 0 20px;
    max-width: 640px;
}

.faq-item.open .faq-a {
    max-height: 220px;
}

/* ---------- FINAL CTA ---------- */
.cta-band {
    background: var(--ink);
    color: var(--paper-card);
    border-radius: 20px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-band h2 {
    color: var(--paper-card);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 8px;
}

.cta-band p {
    color: #B9C7C0;
    margin: 0;
    font-size: 15px;
}

.cta-band .stamp-btn {
    box-shadow: 3px 3px 0 var(--brass);
}

/* ---------- FOOTER ---------- */
footer {
    padding: 56px 0 40px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

footer .brand {
    margin-bottom: 14px;
}

footer p.about {
    font-size: 13.5px;
    color: var(--ink-soft);
    max-width: 280px;
}

footer h4 {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    font-size: 14px;
    text-decoration: none;
    color: var(--ink);
}

footer a:hover {
    color: var(--brass-deep);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--ink-soft);
    font-family: var(--mono);
    border-top: 1px dashed var(--line);
    padding-top: 24px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .printer {
        order: -1;
        margin-bottom: 10px;
    }

    .feature-grid,
    .pricing-grid,
    .testi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }

    .step:nth-child(2)::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    nav.links {
        display: none;
    }
}

@media (max-width:600px) {

    .feature-grid,
    .pricing-grid,
    .testi-grid,
    .steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-row {
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a.stamp-btn:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brass-deep);
    outline-offset: 2px;
}