/*
 * The public website (resources/views/site, layouts/site).
 * Calm and editorial: warm paper background, a serif for headlines, outlined cards and thin rules,
 * real screenshots, and the brand colour (Super Admin → Settings) used sparingly as the accent.
 * Always light (layouts/site fixes the theme); the app screens have their own light / dark mode.
 */
body.site {
    --paper: #fbfaf7;
    --paper-2: #f3f1ec;
    --card: #ffffff;
    --ink: #121416;
    --ink-2: #2b2f33;
    --muted: #63676d;
    --line: #e6e2da;
    --line-2: #d9d4ca;
    --radius: 18px;
    --lift: 0 1px 0 rgba(18, 20, 22, .03), 0 18px 40px -28px rgba(18, 20, 22, .28);
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.site a { color: inherit; }
.site .muted { color: var(--muted); }
.site .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.site .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site .num { font-variant-numeric: tabular-nums; }
.site :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.site ::selection { background: rgba(var(--brand-rgb), .18); }

/* Small label above a section title: "PRICING ——" */
.kicker-left { display: inline-flex; align-items: center; gap: .7rem; color: var(--brand); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.kicker-left::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .5; }

/* ---------- Buttons ---------- */
.site .btn-ink, .site .btn-line {
    border-radius: 999px; padding: .72rem 1.45rem; font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.site .btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); box-shadow: 0 8px 20px -10px rgba(18, 20, 22, .6); }
.site .btn-ink:hover, .site .btn-ink:focus-visible { background: #000; border-color: #000; color: #fff; transform: translateY(-1px); }
.site .btn-line { border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.site .btn-line:hover { border-color: var(--ink); }
.site .link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Offer bar ---------- */
.offer-bar { background: var(--brand); color: #fff; font-size: .9rem; text-align: center; padding: .55rem 1rem; }
.offer-bar a { color: #fff; font-weight: 600; margin-left: .5rem; white-space: nowrap; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 1030; background: rgba(251, 250, 247, .82); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-head.scrolled, body.menu-open .site-head { border-bottom-color: var(--line); background: rgba(251, 250, 247, .94); }
.site-head .wrap { display: flex; align-items: center; gap: 2.25rem; height: 70px; }
.site-head .brand-mark { color: var(--ink); font-size: 1.15rem; letter-spacing: -.01em; flex-shrink: 0; }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500; padding: .45rem .8rem; border-radius: 999px; transition: background .15s, color .15s; }
.site-nav a:hover { color: var(--ink); background: rgba(18, 20, 22, .05); }
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(18, 20, 22, .06); }
.site-head-actions { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.head-login { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); padding: .45rem .3rem; }
.head-login:hover { color: var(--brand); }
.site .btn-head { padding: .6rem 1.15rem; font-size: .92rem; }

/* Two-line menu button that turns into an ×. */
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); position: relative; flex-shrink: 0; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.site-head .site-menu .wrap { display: block; height: auto; } /* not the header's single row */
.site-menu { border-top: 1px solid var(--line); background: var(--paper); padding: 10px 0 22px; box-shadow: 0 30px 40px -30px rgba(18, 20, 22, .35); }
.site-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.65rem; letter-spacing: -.01em; }
.site-menu nav a i { font-size: 1rem; color: var(--muted); }
.site-menu-actions { display: grid; gap: 10px; margin-top: 20px; }
.site-menu-actions a { width: 100%; padding: .9rem 1rem; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 0; text-align: center; }
.hero .kicker { display: inline-flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; padding: .35rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.hero .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.02em; max-width: 920px; margin: 0 auto 1.4rem; text-wrap: balance; }
.hero .lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 640px; margin: 0 auto 2rem; text-wrap: pretty; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; align-items: center; }
.hero .actions .btn-ink { padding: .85rem 1.6rem; font-size: 1rem; }
.hero .fine { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }
.shot-stage { position: relative; margin-top: 64px; padding: 0 24px; }
.shot-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 18%; bottom: 0; background: linear-gradient(180deg, var(--brand-soft), rgba(var(--brand-rgb), .04)); }
.shot { position: relative; max-width: 1180px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fff;
        box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 80px -30px rgba(18, 20, 22, .35), 0 0 0 1px rgba(18, 20, 22, .08); }
.shot .bar { height: 34px; background: #f4f3f0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.shot .bar span { width: 10px; height: 10px; border-radius: 50%; background: #dcd8d0; }
.shot img { display: block; width: 100%; height: auto; }

/* ---------- Built for ---------- */
.built-for { border-bottom: 1px solid var(--line); padding: 30px 0; }
.built-for .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; }
.built-for .built-label { color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.built-for ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.built-for li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .32rem .9rem; font-size: .9rem; color: var(--ink-2); font-weight: 500; }

/* ---------- Stories (feature + screenshot) ---------- */
.stories { padding: 40px 0 20px; }
.story { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: 0; }
.story.flip { grid-template-columns: 1.25fr 1fr; }
.story.flip .story-text { order: 2; }
.story .index { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); font-family: var(--serif); font-size: 1.25rem; color: var(--brand); }
.story h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.015em; margin: 1rem 0 1rem; text-wrap: balance; }
.story p { color: var(--ink-2); line-height: 1.65; }
.story ul { list-style: none; padding: 0; margin: 1.4rem 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.story li { padding: .8rem 1rem; display: flex; gap: .75rem; font-size: .96rem; }
.story li + li { border-top: 1px solid var(--line); }
.story li::before { content: "\F26E"; font-family: "bootstrap-icons"; flex: none; color: var(--brand); font-size: 1rem; line-height: 1.5; }
.story .shot { border-radius: 12px; }
.story .shot.doc { max-width: 560px; margin-left: auto; }

/* ---------- Everything else: outlined cards ---------- */
.more { padding: 96px 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more h2, .section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.015em; line-height: 1.08; text-wrap: balance; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.more-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.more-item:hover { border-color: var(--line-2); box-shadow: var(--lift); transform: translateY(-2px); }
.more-item i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 1.15rem; margin-bottom: 14px; }
.more-item b { display: block; font-weight: 600; margin-bottom: .3rem; }
.more-item span { color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* ---------- Pricing: one outlined card per plan ---------- */
.pricing { padding: 110px 0 96px; }
.pricing-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 36px 0 24px; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.segmented button.active { background: var(--ink); color: #fff; }
.segmented .save { font-weight: 500; opacity: .8; margin-left: .3rem; }
.currency-pick { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 2.2rem .5rem 1rem; font-size: .9rem; background-color: var(--card); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; padding: 28px 24px 30px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.plan:hover { box-shadow: var(--lift); border-color: var(--line-2); }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 24px 50px -30px rgba(var(--brand-rgb), .55); background: linear-gradient(180deg, var(--brand-soft), #fff 42%); }
.plan .tag { position: absolute; top: -12px; left: 24px; display: inline-flex; gap: .3rem; align-items: center; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand); border-radius: 999px; padding: .28rem .7rem; }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0 0 .3rem; }
.plan .about { color: var(--muted); font-size: .92rem; line-height: 1.5; min-height: 4.5em; }
.plan li small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: .15rem; }
.plan .price { margin: 1.1rem 0 .2rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; }
.plan .price .amount { font-size: clamp(1.7rem, 2.3vw, 2.15rem); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.plan .price .was { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.plan .price .per { color: var(--muted); font-size: .9rem; }
.plan .billed { color: var(--muted); font-size: .85rem; min-height: 1.3em; }
.plan .offer { display: inline-block; margin-top: .4rem; font-size: .78rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: .15rem .6rem; }
.plan .cta { margin: 1.3rem 0 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.plan .cta a { width: 100%; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.plan li { padding: .4rem 0; display: flex; gap: .6rem; color: var(--ink-2); }
.plan li i { color: var(--brand); }
.plan li.head { font-weight: 600; color: var(--ink); padding-top: .9rem; }
.plan .soon { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 .4rem; margin-left: .3rem; }
.compare-toggle { display: block; margin: 30px auto 0; background: none; border: 0; font-weight: 600; border-bottom: 1px solid var(--ink); padding: 0 0 2px; }
.compare { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.compare table { width: 100%; font-size: .93rem; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--card); }
.compare thead th { border-top: 0; background: var(--paper-2); font-weight: 600; white-space: nowrap; }
.compare td.c, .compare th.c { text-align: center; }
.compare tbody tr:hover td { background: #fcfbf8; }
.compare .yes { color: var(--brand); }
.compare .no { color: #cdc8be; }
.compare small { color: var(--muted); display: block; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 18px 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--lift); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.03rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-weight: 400; font-size: 1.15rem; line-height: 1; color: var(--muted); transition: transform .2s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--paper-2); }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); line-height: 1.65; }
.help-card { margin-top: 2rem; padding: 8px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.help-card a { text-decoration: none; display: flex; gap: .7rem; align-items: center; padding: .7rem 0; font-weight: 500; }
.help-card a + a { border-top: 1px solid var(--line); }
.help-card i { color: var(--brand); }
.help-card > div { padding: .4rem 0 .8rem; }

/* ---------- Closing ---------- */
.closing { background: var(--ink); color: #fff; padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(var(--brand-rgb), .35), transparent); pointer-events: none; }
.closing .wrap { position: relative; }
.closing h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.02em; max-width: 820px; margin: 0 auto 1.2rem; text-wrap: balance; }
.closing p { color: #b8bcc2; margin-bottom: 2rem; }
.closing .btn-ink { background: #fff; color: var(--ink); border-color: #fff; }
/* On the dark closing section a black hover would vanish: the brand colour instead. */
.site .closing .btn-ink:hover, .site .closing .btn-ink:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Footer ---------- */
.site-foot { background: #0b0c0e; color: #9aa0a6; padding: 68px 0 34px; font-size: .93rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-foot h4 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.site-foot a { color: #c9cdd2; text-decoration: none; display: block; padding: .22rem 0; overflow-wrap: break-word; }
.site-foot a:hover { color: #fff; }
.site-foot .brand-mark { color: #fff; font-size: 1.1rem; display: inline-flex; }
.site-foot .social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.site-foot .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #23262b; font-size: 1rem; padding: 0; transition: border-color .2s, background .2s; }
.site-foot .social a:hover { border-color: #3a3f46; background: #15171a; }
.site-foot .legal { border-top: 1px solid #1f2226; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.site-foot .legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-foot .legal-links a { color: inherit; text-decoration: none; display: inline; padding: 0; }
.site-foot .legal-links a:hover { text-decoration: underline; color: #fff; }
.site-foot .foot-office { display: block; margin-top: .8rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.site-foot .foot-addresses { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 40px; padding-top: 22px; border-top: 1px solid #1f2226; font-size: .85rem; opacity: .85; }
.site-foot .foot-addresses b { font-weight: 600; color: #c9cdd2; }

/* WhatsApp chat button (when a WhatsApp number is set) */
.wa-float { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 1040; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 25px rgba(0,0,0,.2); text-decoration: none; transition: transform .2s; }
.wa-float:hover { color: #fff; transform: translateY(-2px); }

/* Gentle reveal while scrolling (skipped when the visitor prefers less motion). */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Contact page ---------- */
.contact-page { padding: 84px 0 110px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-title { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 1.2rem; text-wrap: balance; }
.lead-muted { color: var(--ink-2); font-size: 1.1rem; line-height: 1.6; max-width: 480px; }
.contact-ways { list-style: none; padding: 0; margin: 2.4rem 0 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.contact-ways li { display: flex; gap: 1rem; padding: 18px 20px; }
.contact-ways li + li { border-top: 1px solid var(--line); }
.contact-ways i { display: inline-grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 1.05rem; }
.contact-ways b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .25rem; }
.contact-ways a { text-decoration: none; font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-ways a:hover { color: var(--brand); }
.contact-ways span { display: block; color: var(--muted); font-size: .9rem; }
.contact-ways li > div { min-width: 0; }
.contact-ways li > div > a, .contact-ways li > div > span { display: block; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: 0 30px 60px -40px rgba(18, 20, 22, .3); }
.contact-card h2 { font-size: 2rem; }
.contact-card .form-label { font-weight: 500; font-size: .9rem; }
.contact-card .form-control, .contact-card .form-select { border-radius: 11px; padding: .7rem .9rem; border-color: var(--line-2); background-color: #fff; }
.contact-card .form-control:focus, .contact-card .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(var(--brand-rgb), .14); }
.contact-card .sent { text-align: center; padding: 30px 0; }
.contact-card .sent i { font-size: 2.6rem; color: var(--brand); }

/* ---------- Legal pages ---------- */
.legal-page { padding: 72px 0 110px; }
.legal-page .wrap { max-width: 1120px; }
.legal-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: .6rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2.4rem; }
.legal-nav a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .4rem .95rem; font-size: .88rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: border-color .2s; }
.legal-nav a:hover { border-color: var(--line-2); }
.legal-nav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-layout:has(.legal-toc[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.legal-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 16px 8px 12px 16px; }
.legal-toc summary { list-style: none; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .6rem; pointer-events: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: .55rem; padding: .38rem .5rem; border-radius: 8px; font-size: .88rem; line-height: 1.35; text-decoration: none; color: var(--ink-2); border-left: 2px solid transparent; }
.legal-toc a::before { content: counter(toc) "."; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.3em; }
.legal-toc a:hover { background: var(--paper-2); }
.legal-toc a.active { color: var(--ink); font-weight: 600; background: var(--paper-2); border-left-color: var(--brand); }
.legal-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); max-width: 760px; }
.legal-body h2 { font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 2.6rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: 1.6rem 0 .6rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.legal-body th, .legal-body td { border-bottom: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; }
.legal-body th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.legal-body .table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.legal-body .table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- Cookie consent ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1050; max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.14); padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .92rem; color: var(--ink-2); flex: 1 1 300px; }
.cookie-bar .btn-ink, .cookie-bar .btn-line { padding: .5rem 1rem; font-size: .88rem; }

/* ---------- Tablets ---------- */
@media (max-width: 1199.98px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .plan .about { min-height: 0; }
}
@media (max-width: 991.98px) {
    .site-nav, .head-login { display: none; }
    .menu-btn { display: block; }
    .site-head .wrap { gap: 1rem; }
    .hero { padding-top: 70px; }
    .story, .story.flip { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
    .story.flip .story-text { order: 0; }
    .story .shot.doc { margin: 0 auto; }
    .more { padding: 72px 0; }
    .more-grid { grid-template-columns: 1fr 1fr; }
    .pricing { padding: 80px 0 72px; }
    .faq { padding: 72px 0; }
    .faq-grid { grid-template-columns: 1fr; gap: 28px; }
    .closing { padding: 84px 0; }
    .site-foot .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-foot .cols > div:first-child { grid-column: 1 / -1; }
    .contact-page { padding: 56px 0 80px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-card { padding: 26px; }
    .legal-page { padding: 52px 0 80px; }
    .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .legal-toc { position: static; max-height: none; padding: 0; overflow: visible; }
    .legal-toc details { padding: 14px 16px; }
    .legal-toc summary { pointer-events: auto; cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink); }
    .legal-toc summary::after { content: "\F282"; font-family: "bootstrap-icons"; transition: transform .2s; }
    .legal-toc details[open] summary { margin-bottom: .6rem; }
    .legal-toc details[open] summary::after { transform: rotate(180deg); }
    /* Legal page tabs scroll sideways instead of wrapping into a pile. */
    .legal-nav { flex-wrap: nowrap; overflow-x: auto; margin: 1.4rem -24px 1.8rem; padding: 0 24px 4px; scrollbar-width: none; }
    .legal-nav::-webkit-scrollbar { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 575.98px) {
    body.site { font-size: 16px; }
    .site .wrap { padding: 0 18px; }
    .site-head .wrap { height: 62px; }
    .site-head .brand-mark img { max-height: 32px; width: auto; }
    .site .btn-head { padding: .5rem .85rem; font-size: .85rem; }
    .site .btn-head .bi { display: none; }
    .menu-btn { width: 40px; height: 40px; }
    .menu-btn span:first-child { top: 15px; }
    .menu-btn span:last-child { top: 23px; }
    .menu-btn[aria-expanded="true"] span { top: 19px !important; }

    .hero { padding-top: 44px; }
    .hero .kicker { font-size: .8rem; margin-bottom: 1.2rem; }
    .hero h1 { font-size: clamp(2.3rem, 11vw, 2.9rem); }
    .hero .lead { font-size: 1.02rem; margin-bottom: 1.6rem; }
    .hero .actions { flex-direction: column; gap: .9rem; }
    .hero .actions .btn-ink { width: 100%; }
    .shot-stage { margin-top: 40px; padding: 0 12px; }
    .shot { border-radius: 10px; }
    .shot .bar { height: 22px; gap: 5px; padding: 0 10px; }
    .shot .bar span { width: 7px; height: 7px; }

    .built-for { padding: 24px 0; }
    .built-for li { font-size: .82rem; padding: .28rem .75rem; }
    .story { padding: 44px 0; }
    .story h2 { font-size: 2rem; }
    .more { padding: 60px 0; }
    .more-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
    .more-item { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
    .more-item i { grid-row: span 2; margin: 0; }
    .pricing { padding: 64px 0 60px; }
    .pricing-controls { flex-direction: column; align-items: stretch; margin: 26px 0 26px; }
    .segmented { display: flex; }
    .segmented button { flex: 1; padding: .55rem .5rem; }
    .currency-pick { width: 100%; }
    .plans { grid-template-columns: 1fr; gap: 20px; }
    .plan { padding: 26px 20px; }
    /* Comparing plans on a phone: the feature column stays put while the plans scroll. */
    .compare th:first-child, .compare td:first-child { position: sticky; left: 0; z-index: 1; min-width: 170px; box-shadow: 1px 0 0 var(--line); }
    .faq { padding: 60px 0; }
    .faq details { padding: 16px 18px; }
    .closing { padding: 68px 0; }
    .closing h2 { font-size: 2.3rem; }
    .site-foot { padding: 52px 0 28px; }
    .site-foot .legal { flex-direction: column; }
    .site-foot .cols > div:last-child { grid-column: 1 / -1; } /* contact: emails and phones need the full width */
    .contact-title { font-size: 2.4rem; }
    .contact-card { padding: 22px 18px; border-radius: 18px; }
    .contact-ways li { padding: 16px; }
    .legal-nav { margin: 1.2rem -18px 1.6rem; padding: 0 18px 4px; }
    .legal-body { font-size: 1rem; }
    .legal-body table { min-width: 540px; } /* scroll sideways instead of squeezing the columns */
    .wa-float { width: 50px; height: 50px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 1.45rem; }
}
