:root {
    --qm-cream: #FFF8ED;
    --qm-cream-dark: #FFEFD6;
    --qm-terracotta: #FF7A1A;
    --qm-terracotta-dark: #E8600A;
    --qm-yellow: #FFC72C;
    --qm-yellow-dark: #F2A900;
    --qm-sage: #4C9A5B;
    --qm-sage-light: #DCEFCE;
    --qm-ink: #2B2420;
    --qm-ink-soft: #5C5248;
    --qm-white: #FFFFFF;
    --qm-shadow: 0 10px 30px rgba(43, 36, 32, 0.08);
    --qm-radius: 18px;
}

/* Scattered decorative pattern (leaves, dots) used behind hero/section
   backgrounds — cheap inline SVG data-URIs, no extra asset requests. */
.qm-pattern-bg {
    position: relative;
    isolation: isolate;
}
.qm-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='2' fill='%23FFC72C'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M20 90 Q10 60 35 40 Q55 25 70 35 Q60 55 45 65 Q30 78 20 90Z' fill='%234C9A5B' opacity='0.18'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Ccircle cx='45' cy='45' r='6' fill='%23FF7A1A' opacity='0.15'/%3E%3C/svg%3E");
    background-position: 10% 15%, 85% 70%, 40% 85%;
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 40px 40px, 160px 160px, 60px 60px;
}

* { box-sizing: border-box; }

body.qm {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--qm-ink);
    background: var(--qm-cream);
    line-height: 1.55;
}

.qm-serif { font-family: 'Fraunces', Georgia, serif; }

.qm-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
.qm-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 246, 236, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--qm-cream-dark);
}
.qm-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.qm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--qm-ink); }
.qm-logo img { width: 34px; height: 34px; }
.qm-logo span { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 700; }
.qm-nav-links { display: flex; align-items: center; gap: 28px; }
.qm-nav-links a { color: var(--qm-ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.qm-nav-links a:hover { color: var(--qm-terracotta); }
.qm-nav-cta { display: flex; gap: 12px; align-items: center; }

/* ---------- Buttons ---------- */
.qm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.qm-btn:hover { transform: translateY(-1px); }
.qm-btn-primary { background: linear-gradient(135deg, var(--qm-terracotta), var(--qm-yellow)); color: #fff; box-shadow: 0 8px 20px rgba(255,122,26,.35); }
.qm-btn-primary:hover { background: linear-gradient(135deg, var(--qm-terracotta-dark), var(--qm-yellow-dark)); }
.qm-btn-ghost { background: transparent; color: var(--qm-ink); border: 1.5px solid var(--qm-ink); }
.qm-btn-ghost:hover { background: var(--qm-ink); color: #fff; }
.qm-btn-light { background: #fff; color: var(--qm-ink); }

/* ---------- Hero ---------- */
.qm-hero {
    padding: 72px 0 96px;
}
.qm-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.qm-eyebrow {
    display: inline-block;
    background: var(--qm-cream-dark);
    color: var(--qm-terracotta-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.qm-hero h1 {
    font-size: 48px;
    line-height: 1.12;
    margin: 0 0 20px;
    font-weight: 700;
}
.qm-hero p.lead {
    font-size: 18px;
    color: var(--qm-ink-soft);
    margin: 0 0 32px;
    max-width: 480px;
}
.qm-hero-actions { display: flex; gap: 14px; margin-bottom: 36px; }
.qm-hero-pillars { display: flex; gap: 26px; flex-wrap: wrap; }
.qm-hero-pillar { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--qm-ink-soft); font-weight: 600; }
.qm-hero-pillar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--qm-sage); }
.qm-hero-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--qm-shadow);
    display: block;
}

/* ---------- Sections ---------- */
.qm-section { padding: 88px 0; }
.qm-section-alt { background: var(--qm-white); }
.qm-section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.qm-section-head h2 { font-size: 36px; margin: 10px 0 14px; font-weight: 700; }
.qm-section-head p { color: var(--qm-ink-soft); font-size: 17px; }
.qm-kicker {
    font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--qm-terracotta);
}

/* How it works */
.qm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.qm-step { text-align: center; }
.qm-step img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--qm-radius); box-shadow: var(--qm-shadow); margin-bottom: 20px; }
.qm-step .num { font-family: 'Fraunces', serif; font-size: 28px; color: var(--qm-terracotta); font-weight: 700; margin-bottom: 6px; }
.qm-step h3 { margin: 0 0 8px; font-size: 19px; }
.qm-step p { color: var(--qm-ink-soft); font-size: 15px; margin: 0; }

/* Restaurant types */
.qm-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qm-type-card { position: relative; border-radius: var(--qm-radius); overflow: hidden; box-shadow: var(--qm-shadow); aspect-ratio: 4/5; }
.qm-type-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qm-type-card .label {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
    color: #fff; padding: 20px 16px 14px; font-weight: 700; font-size: 15px;
}

/* Features */
.qm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.qm-feature-card { background: var(--qm-cream); border-radius: var(--qm-radius); overflow: hidden; box-shadow: var(--qm-shadow); }
.qm-feature-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.qm-feature-card .body { padding: 22px; }
.qm-feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.qm-feature-card p { margin: 0; color: var(--qm-ink-soft); font-size: 14.5px; }

/* Pricing — 4 plans (Basic/Standard/Pro/Enterprise), grid must match that
   count or the 4th card wraps alone onto its own row with a huge empty gap
   beside it (real bug, not a style choice — looked broken). */
.qm-pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.qm-plan { background: #fff; border-radius: var(--qm-radius); padding: 32px 26px; box-shadow: var(--qm-shadow); border: 2px solid transparent; }
.qm-plan.featured { border-color: var(--qm-terracotta); position: relative; }
.qm-plan.featured::before {
    content: 'Most popular'; position: absolute; top: -13px; left: 26px;
    background: var(--qm-terracotta); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
}
.qm-plan h3 { margin: 0 0 6px; font-size: 20px; }
.qm-plan .price { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 700; margin: 10px 0 2px; }
.qm-plan .period { color: var(--qm-ink-soft); font-size: 13px; margin-bottom: 20px; }
.qm-plan ul { list-style: none; padding: 0; margin: 0 0 26px; }
.qm-plan li { padding: 8px 0; border-bottom: 1px solid var(--qm-cream-dark); font-size: 14.5px; }
.qm-plan li.no { color: #b7afa5; text-decoration: line-through; }
.qm-plan .qm-btn { width: 100%; }

/* Testimonials — 10 cards, 5 columns × 2 rows is an exact fit, no change needed. */
.qm-testimonials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.qm-testimonial { background: #fff; border-radius: var(--qm-radius); padding: 22px; box-shadow: var(--qm-shadow); }
.qm-testimonial img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.qm-testimonial p.quote { font-size: 14px; color: var(--qm-ink-soft); margin: 0 0 12px; min-height: 76px; }
.qm-testimonial .name { font-weight: 700; font-size: 14px; }
.qm-testimonial .role { font-size: 12.5px; color: var(--qm-ink-soft); }

/* CTA banner */
.qm-cta {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    box-shadow: var(--qm-shadow);
}
.qm-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qm-cta::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(43,36,32,.78) 10%, rgba(43,36,32,.25) 70%);
}
.qm-cta-content { position: relative; z-index: 1; padding: 48px; color: #fff; max-width: 520px; }
.qm-cta-content h2 { font-size: 32px; margin: 0 0 14px; }
.qm-cta-content p { margin: 0 0 24px; opacity: .92; }

/* Footer */
.qm-footer { background: var(--qm-ink); color: #e8ded2; padding: 56px 0 28px; }
.qm-footer a { color: #e8ded2; text-decoration: none; }
.qm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.qm-footer .qm-logo span { color: #fff; }
.qm-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; opacity: .7; }
.qm-footer ul { list-style: none; padding: 0; margin: 0; }
.qm-footer li { margin-bottom: 10px; font-size: 14.5px; }
.qm-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: 13px; opacity: .6; text-align: center; }

/* ---------- Auth pages (login/registration) ---------- */
.qm-auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.qm-auth-visual { position: relative; }
.qm-auth-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.qm-auth-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,36,32,.18), rgba(43,36,32,.72)); }
.qm-auth-visual .msg { position: relative; z-index: 1; color: #fff; padding: 48px; display: flex; align-items: flex-end; height: 100%; }
.qm-auth-visual .msg blockquote { font-family: 'Fraunces', serif; font-size: 26px; line-height: 1.35; margin: 0; }
.qm-auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--qm-cream); }
.qm-auth-box { width: 100%; max-width: 400px; }
.qm-auth-box .qm-logo { margin-bottom: 28px; }
.qm-auth-box h1 { font-size: 28px; margin: 0 0 8px; }
.qm-auth-box p.sub { color: var(--qm-ink-soft); margin: 0 0 32px; font-size: 15px; }
.qm-field { margin-bottom: 18px; }
.qm-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.qm-field input[type="text"],
.qm-field input[type="email"],
.qm-field input[type="password"] {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--qm-cream-dark); background: #fff;
    font-size: 15px; font-family: inherit;
}
.qm-field input:focus { outline: none; border-color: var(--qm-terracotta); }
.qm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--qm-ink-soft); margin-bottom: 22px; }
.qm-auth-box .qm-btn { width: 100%; }
.qm-auth-switch { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--qm-ink-soft); }
.qm-auth-switch a { color: var(--qm-terracotta); font-weight: 600; text-decoration: none; }
.qm-error { background: #FBE7E1; color: #A6451E; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }

@media (max-width: 960px) {
    .qm-hero-grid { grid-template-columns: 1fr; }
    .qm-steps, .qm-types, .qm-features, .qm-pricing { grid-template-columns: repeat(2, 1fr); }
    .qm-testimonials { grid-template-columns: repeat(2, 1fr); }
    .qm-nav-links { display: none; }
    .qm-auth-wrap { grid-template-columns: 1fr; }
    .qm-auth-visual { display: none; }
    .qm-footer-grid { grid-template-columns: 1fr; }
}
