/* Self-hosted DM Sans (variable, weights 400–800) */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/dmsans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/dmsans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Brand palette: sage / peach / pink / rose / mauve */
    --sage: #d8e2dc;
    --peach: #ffe5d9;
    --pink: #ffcad4;
    --rose: #f4acb7;
    --mauve: #9d8189;

    /* Interactive accent is a darkened mauve for accessible contrast on white */
    --accent: #84616a;
    --accent-dark: #6d4e57;
    --accent-soft: #ffe5d9;
    --bg: #fdf6f3;
    --card: #ffffff;
    --text: #43383c;
    --muted: #8a7d80;
    --border: #efe3df;
    --success: #4f8a6b;
    --success-soft: #e6f1ea;
    --danger: #c2566a;
    --danger-soft: #fbe9ec;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
    --shadow-sm: 0 2px 8px rgba(31, 36, 48, 0.06);
    --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.brand {
    gap: 10px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

.page-title {
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 8px 0 6px;
    letter-spacing: -0.01em;
}

.subtitle {
    color: var(--muted);
    margin: 0 0 24px;
    font-size: 1.02rem;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 18px;
}

.card h2 {
    margin: 0 0 16px;
    font-size: 1.15rem;
}

/* Forms */
label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.field {
    margin-bottom: 18px;
}

.hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    transition: background 0.15s, transform 0.05s;
    text-align: center;
}

.btn:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.btn-secondary:hover {
    background: #e0ddfd;
}

.btn-lg {
    padding: 15px 24px;
    font-size: 1.08rem;
}

/* Setup steps */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step:first-child {
    padding-top: 0;
}

.step-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.step.done .step-num {
    background: var(--success);
    color: #fff;
}

.step-body {
    flex: 1;
}

.step-body h3 {
    margin: 2px 0 4px;
    font-size: 1rem;
}

.step-body p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Badges / alerts */
.badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.badge.success {
    background: var(--success-soft);
    color: var(--success);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.alert.info {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.alert.success {
    background: var(--success-soft);
    color: var(--success);
}

.alert.warn {
    background: #fff6e6;
    color: #92600a;
}

.note {
    color: var(--muted);
    font-size: 0.88rem;
}

/* QR block */
.qr-wrap {
    text-align: center;
}

.qr-frame {
    display: inline-block;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.qr-frame img,
.qr-frame canvas {
    display: block;
}

.link-box {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.link-box input {
    flex: 1;
    min-width: 200px;
    font-size: 0.9rem;
}

.stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

/* Upload progress list */
.upload-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.upload-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.upload-item:last-child {
    border-bottom: none;
}

.upload-item .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.upload-item .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-item .status {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 600;
}

.upload-item.done .status {
    color: var(--success);
}

.upload-item.failed .status {
    color: var(--danger);
}

.progress {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.upload-item.done .progress-bar {
    background: var(--success);
}

.upload-item.failed .progress-bar {
    background: var(--danger);
}

/* ---------- Landing page ---------- */
.hero {
    text-align: center;
    padding: 56px 20px 40px;
    background:
        radial-gradient(1200px 400px at 50% -120px, var(--accent-soft), transparent 70%);
}

.hero .eyebrow {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 auto 16px;
    max-width: 12ch;
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 52ch;
    margin: 0 auto 28px;
}

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-link {
    margin: 18px 0 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-chips {
    display: flex;
    gap: 8px 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trust-chips svg {
    color: var(--success);
    flex: 0 0 auto;
}

.section {
    max-width: 720px;
    margin: 0 auto;
    padding: 44px 20px;
}

.section.tight {
    padding-top: 8px;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: 1.6rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.feature .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.how {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    counter-reset: step;
}

.how .stepcard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.how .stepcard .n {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.how .stepcard h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.how .stepcard p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.pricing {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.price-amount .cur {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--muted);
    vertical-align: super;
}

.price-sub {
    color: var(--muted);
    margin: 6px 0 20px;
}

.price-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    text-align: left;
}

.price-list li {
    padding: 8px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
}

.price-list svg {
    color: var(--success);
    flex: 0 0 auto;
    margin-top: 3px;
}

.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 18px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    float: right;
    color: var(--accent);
    font-weight: 700;
}

.faq details[open] summary::after {
    content: "\2013";
}

.faq details p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding-top: 40px;
    }
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quote {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.quote p {
    margin: 0 0 14px;
    font-size: 0.98rem;
}

.quote .who {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.quote .stars {
    color: var(--rose);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    padding: 28px 20px 44px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.foot-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.foot-links a {
    color: var(--muted);
}

@media (max-width: 520px) {
    .page-title {
        font-size: 1.45rem;
    }
    .card {
        padding: 20px;
    }
}
