/*
    Styles for the vendor marketing pages only (Views/Marketing/*).

    Standalone on purpose: site.css is the tenant storefront theme and is customer-editable, so
    depending on it would let a client's theme edit reshape the page that sells the product.

    No web fonts and no CDN. The page claims sub-second loads; importing a font would cost a
    render-blocking round trip and make that claim false on the connection the buyer is actually on.
*/

:root {
    --ink: #0b1020;
    --ink-2: #161c33;
    --paper: #ffffff;
    --paper-2: #f6f7fb;
    --line: #e3e6f0;
    --brand: #465fff;
    --brand-dark: #2f45d6;
    --brand-wash: #eef1ff;
    --text: #1f2437;
    --muted: #5b6478;
    --good: #12805c;
    --good-wash: #e6f6f0;
    --warn: #8a5a00;
    --warn-wash: #fdf3e2;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Available to assistive tech, absent from the visual layout - used on the comparison table's
   caption, which a sighted reader gets from the surrounding heading. */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px;
    background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; z-index: 100; }

/* Visible focus everywhere - the form is the point of the page and it must be keyboard-usable. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

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

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand:hover { text-decoration: none; }
/* The real mark. This was a gradient square standing in for a logo that did not exist yet;
   the rounded corner lives in the SVG now, so the element must not paint its own background. */
.brand-mark {
    width: 22px; height: 22px;
    display: block; flex: 0 0 auto;
}
.brand-name { font-size: 1.1rem; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { color: var(--muted); font-size: .93rem; font-weight: 600; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 860px) {
    .site-nav a:not(.btn) { display: none; }
}

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--brand); color: #fff !important;
    padding: .85rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 700; font-size: .98rem; border: 0; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    text-decoration: none;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-ghost {
    background: transparent; color: var(--ink) !important;
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper-2); border-color: #cfd5e6; }
.btn-block { width: 100%; }

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

.hero {
    background:
        radial-gradient(1000px 460px at 82% -12%, var(--brand-wash), transparent 62%),
        linear-gradient(180deg, #fff, var(--paper-2));
    border-bottom: 1px solid var(--line);
    padding: clamp(3rem, 7vw, 5.5rem) 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--brand-wash); color: var(--brand-dark);
    font-size: .82rem; font-weight: 700; letter-spacing: .01em;
    padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .88rem; color: var(--muted); }

.hero-shot {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    background: #fff;
}
.hero-shot img { width: 100%; }

/* ---------- stat bar ---------- */

.statbar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0; transform: translateY(50%);
}
@media (max-width: 820px) {
    .statbar { grid-template-columns: repeat(2, 1fr); transform: none; margin-bottom: -1px; }
}
.stat { background: #fff; padding: 1.2rem 1.3rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat-label { font-size: .84rem; color: var(--muted); }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section.tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 44em; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.kicker {
    text-transform: uppercase; letter-spacing: .1em; font-size: .76rem;
    font-weight: 800; color: var(--brand); margin-bottom: .6rem;
}

/* ---------- feature grid ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-icon {
    width: 38px; height: 38px; border-radius: 10px; margin-bottom: .9rem;
    background: var(--brand-wash); color: var(--brand-dark);
    display: grid; place-items: center; font-size: 1.15rem;
}

/* ---------- screenshots ---------- */

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 880px) { .shots { grid-template-columns: 1fr; } }

figure.shot { margin: 0; }
figure.shot .frame {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); background: #fff;
}
figure.shot .chrome {
    display: flex; align-items: center; gap: .4rem;
    padding: .6rem .8rem; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
figure.shot .dot { width: 9px; height: 9px; border-radius: 50%; background: #d3d8e6; }
figure.shot .chrome span.label {
    margin-left: .5rem; font-family: var(--mono); font-size: .74rem; color: var(--muted);
}
figure.shot figcaption { margin-top: .85rem; font-size: .92rem; color: var(--muted); }
figure.shot figcaption strong { color: var(--ink); display: block; font-size: 1rem; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.tier {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow); position: relative;
}
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash), var(--shadow-lg); }
.tier-flag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px;
    white-space: nowrap;
}
.tier h3 { margin-bottom: .15rem; }
.tier .tagline { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.price { display: flex; align-items: baseline; gap: .35rem; }
.price .amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.price .per { color: var(--muted); font-size: .95rem; }
.price-jmd { font-size: .87rem; color: var(--muted); margin: .25rem 0 1.2rem; }
.tier-limits {
    display: flex; flex-direction: column; gap: .3rem;
    padding: .8rem 0; margin-bottom: 1rem;
    border-block: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink);
}
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.tier li { position: relative; padding-left: 1.6rem; font-size: .93rem; color: var(--text); }
.tier li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: 1rem; height: .55rem; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good);
    transform: rotate(-45deg);
}

.price-foot { margin-top: 1.75rem; font-size: .9rem; }

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

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: .85rem 1.1rem; text-align: right; font-size: .95rem; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th {
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
table.compare tbody tr + tr td { border-top: 1px solid var(--line); }
table.compare td.ours { font-weight: 800; color: var(--brand-dark); background: var(--brand-wash); }
table.compare td.saving { color: var(--good); font-weight: 700; }
.table-note { font-size: .84rem; color: var(--muted); margin-top: .85rem; }

/* ---------- roadmap / upcoming ---------- */

.pill {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    padding: .25rem .6rem; border-radius: 999px;
}
.pill-soon { background: var(--warn-wash); color: var(--warn); }
.pill-live { background: var(--good-wash); color: var(--good); }

.card.upcoming { border-style: dashed; background: #fff; }
.card.upcoming .card-icon { background: var(--warn-wash); color: var(--warn); }

/* ---------- faq ---------- */

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.05rem 1.25rem;
}
.faq details[open] { border-color: #cfd5e6; box-shadow: var(--shadow); }
.faq summary {
    cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.02rem;
    list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- form ---------- */

.demo-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: start; }
@media (max-width: 940px) { .demo-grid { grid-template-columns: 1fr; gap: 2rem; } }

.form-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .72rem .85rem; font: inherit; font-size: .95rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { min-height: 92px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

.validation-summary, .field-error { color: #b42318; font-size: .85rem; }
.validation-summary ul { margin: 0; padding-left: 1.1rem; }
.validation-summary:empty { display: none; }

/* The honeypot. Off-screen rather than display:none - a bot that respects display:none would
   skip it, and skipping it is the behaviour we want to distinguish from filling it. */
.hp {
    position: absolute !important; left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

.trust-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.trust-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.trust-list .tick {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    background: var(--good-wash); color: var(--good);
    display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: .1rem;
}

/* ---------- callout ---------- */

.callout {
    border-left: 3px solid var(--brand); background: var(--brand-wash);
    padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0;
}
.callout p { margin: 0; font-size: .95rem; }

/* ---------- thanks page ---------- */

.thanks { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.thanks .tick-big {
    width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1.5rem;
    background: var(--good-wash); color: var(--good);
    display: grid; place-items: center; font-size: 2rem; font-weight: 800;
}

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

.site-footer { background: var(--ink); color: #aab3c9; padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer .brand-name { color: #fff; }
.site-footer .muted { color: #8b96b0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner > div { max-width: 30em; }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer nav a { color: #aab3c9; font-size: .93rem; }
.site-footer nav a:hover { color: #fff; }
.footer-legal { border-top: 1px solid #262c45; margin-top: 2rem; padding-top: 1.25rem; }
.footer-legal p { margin: 0; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
