/* ==========================================================================
   Court Munshi — Organic / Natural design system
   Wabi-sabi warmth for a legal practice-management app: soft blob shapes,
   earth-drawn palette, paper grain texture, gentle natural motion.
   ========================================================================== */

:root {
    /* ---- Color tokens (earth-drawn palette) ---- */
    --background: #FDFCF8;
    --foreground: #2C2C24;
    --ink-foreground: #F3F4F1;
    --primary: #C18C5D;
    --primary-hover: #AD7A4E;
    --primary-foreground: #FFFFFF;
    --primary-soft: rgba(193, 140, 93, 0.12);
    --accent: #E6DCCD;
    --accent-foreground: #4A4A40;
    --muted: #F0EBE5;
    --muted-foreground: #78786C;
    --surface: #FEFEFA;
    --border: #DED8CF;
    --destructive: #A85448;
    --destructive-soft: rgba(168, 84, 72, 0.1);

    /* ---- Shape & elevation ---- */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-soft: 0 4px 20px -2px rgba(193, 140, 93, 0.15);
    --shadow-soft-lg: 0 20px 40px -10px rgba(193, 140, 93, 0.15);
    --shadow-float: 0 10px 40px -10px rgba(193, 140, 93, 0.2);

    --max-w: 1160px;
    --font-sans: 'Nunito', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    position: relative;
    margin: 0;
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Paper-grain texture — a fixed noise overlay sitting above everything,
   multiplied at very low opacity so it reads as tooth on paper, not a
   visible pattern. Pure CSS/SVG, no image asset to keep in sync. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-sans); }

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ----------
   River-stone treatment: fully rounded pills, soft colour-tinted shadows,
   a gentle scale on hover (like picking something up) and a settle on
   press — no sharp corners, no hard drop shadows. */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
        box-shadow 0.3s ease, transform 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 24px -4px rgba(193, 140, 93, 0.3);
    transform: scale(1.05);
}
.btn-primary:active { transform: scale(0.96); box-shadow: var(--shadow-soft); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
    box-shadow: var(--shadow-float);
}

.btn-ghost-light {
    background: transparent;
    color: var(--ink-foreground);
    border: 1.5px solid rgba(243, 244, 241, 0.4);
}
.btn-ghost-light:hover {
    border-color: rgba(243, 244, 241, 0.8);
    background: rgba(243, 244, 241, 0.1);
    transform: scale(1.05);
}

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ----------
   A floating pill nav, frosted like river mist, resting a little above
   the page rather than clamped to its edge. */
.site-header {
    position: sticky;
    top: 16px;
    z-index: 50;
    padding: 0 16px;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    background: #FFFFFF;
    border: 1px solid rgba(222, 216, 207, 0.6);
    border-radius: 999px;
    padding: 0 12px 0 20px;
    box-shadow: var(--shadow-soft);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 19px;
    color: var(--foreground);
}
.brand img { height: 34px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted-foreground);
}
.nav-links a:hover { color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--foreground);
    margin: 5px 0;
    border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--foreground);
    color: var(--ink-foreground);
    padding: 76px 0 0;
    margin-top: -20px;
    overflow: hidden;
}
/* Two ambient blob washes — the "picked up a river stone and set it down"
   softness behind the copy, using blurred radial gradients instead of any
   sharp watermark artwork. */
.hero::before {
    content: "";
    position: absolute;
    left: -12%;
    top: -22%;
    width: 560px;
    height: 560px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: radial-gradient(circle at 40% 40%, rgba(193, 140, 93, 0.45), transparent 72%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -30%;
    width: 480px;
    height: 480px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle at 60% 60%, rgba(230, 220, 205, 0.4), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.hero .wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(243, 244, 241, 0.16);
    color: var(--ink-foreground);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
    border: 1px solid rgba(243, 244, 241, 0.25);
}
.hero h1 {
    font-size: 46px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.hero h1 span { color: #F0DCA8; font-style: italic; }
.hero p.lead {
    margin-top: 20px;
    font-size: 18px;
    color: rgba(243, 244, 241, 0.82);
    max-width: 460px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.hero-trust {
    margin-top: 28px;
    margin-bottom: 40px;
    font-size: 13px;
    color: rgba(243, 244, 241, 0.6);
}

.hero-visual {
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
    align-self: center;
}
.hero-visual .screenshot-frame {
    border-radius: 2.5rem 2.5rem 2.5rem 0.75rem;
    overflow: hidden;
    border: 5px solid var(--surface);
    box-shadow: 0 30px 70px -20px rgba(44, 44, 36, 0.45);
    background: #23281f;
    transform: rotate(-2deg);
}
.screenshot-frame .frame-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #2b3125;
}
.frame-bar span {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(243, 244, 241, 0.2);
}
.screenshot-placeholder {
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(243, 244, 241, 0.4);
    font-size: 13px;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #262c20, #1c211a);
}
.screenshot-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Sections ---------- */
section { padding: 112px 0; }
.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px;
}
.eyebrow {
    display: block;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.01em;
}
.section-head p {
    margin-top: 16px;
    font-size: 17px;
    color: var(--muted-foreground);
}

/* ---------- Problem / value ---------- */
.problem { position: relative; overflow: hidden; }
.problem::before {
    content: "";
    position: absolute;
    right: -8%;
    top: -15%;
    width: 420px;
    height: 420px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: radial-gradient(circle, rgba(193, 140, 93, 0.1), transparent 72%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.problem .wrap { position: relative; z-index: 1; }
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-card {
    background: var(--surface);
    border: 1px solid rgba(222, 216, 207, 0.6);
    border-radius: 2.5rem 1rem 2.5rem 1rem;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.value-grid .value-card:nth-child(2) { border-radius: 1rem 2.5rem 1rem 2.5rem; }
.value-grid .value-card:nth-child(3) { border-radius: 2.5rem 2.5rem 0.75rem 2.5rem; }
.value-card:hover {
    box-shadow: var(--shadow-soft-lg);
    border-color: rgba(193, 140, 93, 0.3);
    transform: translateY(-4px);
}
.value-card .icon {
    width: 48px; height: 48px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.value-card h3 { font-size: 18px; font-weight: 700; color: var(--foreground); }
.value-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted-foreground); }

/* ---------- Feature showcase rows ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-copy .tag {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.feature-copy h3 {
    font-size: 27px;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.feature-copy p {
    margin-top: 14px;
    font-size: 16px;
    color: var(--muted-foreground);
}
.feature-copy ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature-copy li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--foreground);
}
.feature-copy li .dot {
    width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}

.feature-visual .screenshot-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem 2rem 2rem 5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.feature-row.reverse .feature-visual .screenshot-frame { border-radius: 2rem 5rem 2rem 2rem; }
.feature-visual .screenshot-frame:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft-lg);
}
.feature-visual .screenshot-placeholder {
    background: linear-gradient(135deg, var(--muted), var(--accent));
    color: var(--muted-foreground);
    aspect-ratio: 4 / 3;
}

/* status badge chips used inside placeholders to hint real UI */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.status-chip.missed { background: rgba(168, 84, 72, 0.12); color: var(--destructive); }
.status-chip.today { background: var(--primary-soft); color: var(--primary-hover); }
.status-chip.completed { background: var(--primary-soft); color: var(--primary); }
.status-chip.upcoming { background: var(--muted); color: var(--muted-foreground); }

/* ---------- Feature grid (compact) ---------- */
.grid-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grid-feature {
    background: var(--surface);
    border: 1px solid rgba(222, 216, 207, 0.6);
    border-radius: 2rem 2rem 2rem 0.75rem;
    padding: 26px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.grid-features .grid-feature:nth-child(2) { border-radius: 2rem 0.75rem 2rem 2rem; }
.grid-features .grid-feature:nth-child(3) { border-radius: 0.75rem 2rem 2rem 2rem; }
.grid-features .grid-feature:nth-child(4) { border-radius: 2rem 2rem 0.75rem 2rem; }
.grid-feature:hover {
    box-shadow: var(--shadow-soft-lg);
    border-color: rgba(193, 140, 93, 0.3);
    transform: translateY(-4px);
}
.grid-feature .icon {
    width: 44px; height: 44px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: background 0.3s ease, color 0.3s ease;
}
.grid-feature:hover .icon { background: var(--primary); color: var(--primary-foreground); }
.grid-feature h4 { font-size: 16px; font-weight: 700; color: var(--foreground); }
.grid-feature p { margin-top: 8px; font-size: 13.5px; color: var(--muted-foreground); }

/* ---------- Pricing ---------- */
.pricing-bg { position: relative; overflow: hidden; background: var(--muted); }
.pricing-bg::before {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -20%;
    width: 380px;
    height: 380px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, rgba(193, 140, 93, 0.16), transparent 72%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.pricing-bg .wrap { position: relative; z-index: 1; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.plan-card {
    background: var(--surface);
    border: 1px solid rgba(222, 216, 207, 0.6);
    border-radius: 2.5rem 2.5rem 2.5rem 1rem;
    padding: 34px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.plan-card:not(.featured):hover {
    box-shadow: var(--shadow-soft-lg);
    border-color: rgba(193, 140, 93, 0.3);
    transform: translateY(-4px);
}
.plan-card.featured {
    background: var(--foreground);
    color: var(--ink-foreground);
    border-color: var(--foreground);
    position: relative;
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(193, 140, 93, 0.45);
}
.plan-card .plan-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}
.plan-card h3 { font-size: 20px; font-weight: 700; }
.plan-card .plan-price {
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.plan-price .amount { font-family: var(--font-sans); font-size: 42px; font-weight: 700; letter-spacing: -0.01em; }
.plan-price .amount-strike {
    font-size: 22px;
    font-weight: 700;
    color: var(--muted-foreground);
    text-decoration: line-through;
    text-decoration-color: var(--destructive);
}
.plan-price .period { font-size: 14px; color: var(--muted-foreground); }
.plan-card.featured .plan-price .period { color: rgba(243, 244, 241, 0.65); }
.plan-free-note {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary-foreground);
    background: var(--primary);
    border-radius: 999px;
}
.plan-card .plan-desc { margin-top: 10px; font-size: 14px; color: var(--muted-foreground); }
.plan-card.featured .plan-desc { color: rgba(243, 244, 241, 0.7); }
.plan-card .plan-features {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex-grow: 1;
}
.plan-card .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}
.plan-card .plan-features .dot {
    width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
}
.plan-card.featured .plan-features .dot { background: rgba(243, 244, 241, 0.18); color: var(--ink-foreground); }
.plan-card .btn { margin-top: 28px; }
.plan-card.featured .btn-primary { background: var(--primary); color: var(--primary-foreground); }
.plan-card.featured .btn-primary:hover { background: var(--primary-hover); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--surface);
    border: 1px solid rgba(222, 216, 207, 0.6);
    border-radius: var(--radius-lg);
    padding: 6px 28px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item[open] { border-color: rgba(193, 140, 93, 0.3); box-shadow: var(--shadow-soft-lg); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item p {
    padding: 0 0 24px 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* ---------- Contact ---------- */
.contact-form {
    background: var(--surface);
    border: 1px solid rgba(222, 216, 207, 0.6);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: var(--shadow-soft);
}
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
}
.form-row .req { color: var(--destructive); }
.form-row .optional { color: var(--muted-foreground); font-weight: 500; }
.form-row input,
.form-row textarea {
    width: 100%;
    padding: 13px 20px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-row textarea { border-radius: var(--radius-lg); }
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(193, 140, 93, 0.15);
}
.form-row textarea { resize: vertical; min-height: 110px; padding: 16px 20px; }
.form-row.has-error input,
.form-row.has-error textarea { border-color: var(--destructive); }
.field-error {
    font-size: 13px;
    color: var(--destructive);
    min-height: 16px;
    padding-left: 8px;
}
.form-status {
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    min-height: 20px;
}
.form-status.success { color: var(--primary); }
.form-status.error { color: var(--destructive); }

/* ---------- Final CTA ---------- */
.final-cta {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: var(--primary-foreground);
    text-align: center;
    border-radius: var(--radius-xl);
    padding: 76px 40px;
    margin: 0 24px;
    max-width: calc(var(--max-w) - 48px);
    margin-left: auto;
    margin-right: auto;
}
.final-cta::before {
    content: "";
    position: absolute;
    right: -8%;
    top: -25%;
    width: 420px;
    height: 380px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { font-size: 34px; font-weight: 700; }
.final-cta p { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, 0.85); }
.final-cta .hero-actions { justify-content: center; margin-top: 32px; }
.final-cta .btn-primary { background: var(--foreground); color: var(--ink-foreground); }
.final-cta .btn-primary:hover { background: #1c1c17; }

/* ---------- Footer ---------- */
.site-footer {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}
.footer-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-mini-brand img { height: 26px; }
.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-legal a { font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.footer-legal a:hover { color: var(--primary); }
.footer-copy { font-size: 12.5px; color: var(--muted-foreground); }

/* ---------- Legal pages ---------- */
.legal-hero {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
}
.breadcrumb a { color: var(--muted-foreground); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .breadcrumb-sep { color: var(--border); }
.breadcrumb .breadcrumb-current { color: var(--foreground); font-weight: 700; }
.legal-hero .eyebrow { margin-bottom: 10px; }
.legal-hero h1 { font-size: 32px; font-weight: 800; color: var(--foreground); }
.legal-hero p { margin-top: 10px; font-size: 14px; color: var(--muted-foreground); }
.legal-content { padding: 48px 0 96px; }
.legal-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--foreground);
    margin-top: 40px;
    margin-bottom: 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--accent-foreground);
    margin-bottom: 14px;
}
.legal-content ul {
    margin: 0 0 14px 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-content ul li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--accent-foreground);
    padding-left: 22px;
    position: relative;
}
.legal-content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.legal-content a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.legal-content strong { color: var(--foreground); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; }
    .value-grid { grid-template-columns: 1fr; }
    .grid-features { grid-template-columns: repeat(2, 1fr); }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-copy, .feature-row.reverse .feature-visual { order: initial; }
    .pricing-grid { grid-template-columns: 1fr; }
    .plan-card.featured { transform: none; }
}

@media (max-width: 720px) {
    .nav-links, .header-cta { display: none; }
    .nav-toggle { display: block; }
    .site-header { top: 12px; padding: 0 12px; }
    .site-header .wrap { height: 60px; padding: 0 8px 0 16px; }
    body { padding-bottom: 78px; }
    .mobile-sticky-cta { display: flex; }
    section { padding: 64px 0; }
    .hero { padding-top: 44px; }
    .hero h1 { font-size: 30px; }
    .section-head h2 { font-size: 27px; }
    .grid-features { grid-template-columns: 1fr; }
    .final-cta { padding: 48px 24px; margin: 0 12px; }
    .final-cta h2 { font-size: 26px; }
    .footer-mini { justify-content: center; text-align: center; }
    .contact-form { padding: 24px; }
    .faq-item { padding: 4px 20px; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid rgba(222, 216, 207, 0.6);
    border-radius: var(--radius-lg);
    margin: 8px 16px 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-soft);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Mobile sticky bottom CTA ---------- */
.mobile-sticky-cta {
    display: none;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(254, 254, 250, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border);
}
.mobile-sticky-cta .btn { width: 100%; max-width: 360px; }
