/* Marketing site, on top of app.css */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; }
.site-nav .lang { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } }
.nav-burger summary { font-size: 1.3rem; line-height: 1; padding: 4px 6px; }
@media (min-width: 761px) { .nav-burger { display: none; } }
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, #ffe4d6 0%, transparent 60%), var(--bg); }
.hero .eyebrow { margin: 0 0 10px; color: #b93c0d; font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }  /* 5.4:1 on the hero (WCAG AA) */
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.02em; max-width: 820px; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 720px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero small { display: block; margin-top: 10px; color: var(--muted); }
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
.section .intro { color: var(--ink-2); max-width: 720px; font-size: 1.08rem; margin-bottom: 28px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; overflow-wrap: break-word; }
.feature .ico { font-size: 1.6rem; }
.feature h3 { margin: 8px 0 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; counter-reset: step; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.flow div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; position: relative; }
.flow div::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare .card { margin: 0; }
.big { font-size: 2.4rem; font-weight: 800; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(255,90,31,.12); }
.price-card .amount { font-size: 2.6rem; font-weight: 800; }
.price-card ul { padding-inline-start: 18px; margin: 0; color: var(--ink-2); }
.price-card .btn { margin-top: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.cta-band { background: var(--ink); color: #fff; border-radius: 16px; padding: 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; }
.site-footer { padding: 40px 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); background: #fff; }
.site-footer .cols { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }
.prose { max-width: 800px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose pre { background: var(--ink); color: #e2e8f0; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .85rem; }
.prose table { margin: 10px 0 18px; background: #fff; }
@media (max-width: 600px) { .prose table { display: block; overflow-x: auto; } }  /* wide tables scroll on their own, not the page */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.pricing-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 1100px) { .pricing-5 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 700px) { .pricing-5 { grid-template-columns: 1fr; } }
.pricing-7 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .pricing-7 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .pricing-7 { grid-template-columns: 1fr; } }
.price-card .plan-features { font-size: .92rem; line-height: 1.5; }
.price-card { position: relative; }
.price-card .amount { font-size: 2.3rem; }
.ribbon { position: absolute; top: -12px; inset-inline-start: 16px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.billing-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 22px; }
.billing-switch-wrap { text-align: center; }
.billing-switch button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.billing-switch button.active { background: var(--ink); color: #fff; }
.billing-switch .save { font-size: .75rem; color: var(--ok); font-weight: 700; }
.billing-switch button.active .save { color: #86efac; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: var(--ink-2); font-size: .92rem; }
.trust span::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.benefit .big-num { font-size: 2rem; font-weight: 800; color: var(--brand); }
.vs { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vs th, .vs td { padding: 12px 14px; }
.vs td:nth-child(3), .vs th:nth-child(3) { background: var(--brand-soft); font-weight: 600; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; inset-inline-end: 0; top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; z-index: 60; max-height: 70vh; overflow: auto; }
.lang-list a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink); }
.lang-list a:hover, .lang-list a.active { background: var(--brand-soft); text-decoration: none; }

/* Website question (surveys, A): a small corner card that never covers the page */
.survey-card { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 340px; max-width: calc(100vw - 24px); max-height: 30vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.14); padding: 14px 16px; font-size: .92rem; animation: survey-in .25s ease-out; }
.survey-card[hidden] { display: none; }
.survey-card .survey-q { font-weight: 700; margin: 0 0 8px; margin-inline-end: 22px; }
.survey-card textarea { min-height: 0; margin-bottom: 8px; font-size: .9rem; }
.survey-card input[type=email] { margin-bottom: 8px; }
.survey-card label { font-size: .85rem; }
.survey-consent { display: flex !important; gap: 4px; align-items: flex-start; font-weight: 500 !important; margin-bottom: 8px; }
.survey-consent input { flex: none; margin-top: 2px; }
.survey-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.survey-close { position: absolute; top: 6px; inset-inline-end: 8px; border: 0; background: none; font-size: 1.3rem; line-height: 1; padding: 4px 6px; cursor: pointer; color: var(--muted); }
.survey-close:hover, .survey-close:focus-visible { color: var(--ink); }
.survey-offer { margin: 0 0 10px; font-size: .88rem; }
.survey-error { color: var(--bad); font-size: .85rem; margin: 8px 0 0; }
@keyframes survey-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 767px) { .survey-card { inset-inline: 8px; bottom: 8px; width: auto; max-width: none; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .survey-card { animation: none; } }

/* Personalization page: short text then screenshots in a frame (desktop) or a phone frame */
.pz-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pz-toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; }
.pz-toc a:hover { border-color: var(--brand); text-decoration: none; }
.pz-block { display: grid; gap: 16px; scroll-margin-top: 80px; }
.pz-block + .pz-block { border-top: 1px solid var(--line); padding-top: 48px; margin-top: 48px; }
.pz-block h2 { margin: 0; }
.pz-block .intro { margin-bottom: 0; }
.pz-points { margin: 0; padding-inline-start: 20px; max-width: 720px; color: var(--ink-2); }
.pz-points li { margin: 3px 0; }
.pz-shots { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pz-shots.pair { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.pz-shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .pz-shots.pair, .pz-shots.two { grid-template-columns: minmax(0, 1fr); } }
.pz-shots figure { margin: 0; min-width: 0; }
.pz-frame { background: #eef1f5; border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow: hidden; }
.pz-frame img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.pz-frame.phone { max-width: 320px; margin: 0 auto; border-radius: 22px; padding: 8px; }
.pz-frame.phone img { border-radius: 16px; }
.pz-frame.tall img { max-height: 760px; object-fit: cover; object-position: top; }
.pz-shots figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.pz-note { font-size: .9rem; color: var(--muted); margin: 0; }
.pz-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 800px) { .pz-home { grid-template-columns: minmax(0, 1fr); } }
.pz-home ul { padding-inline-start: 20px; color: var(--ink-2); }

/* Free tools: job sheet template and leak check calculator */
.tool-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .tool-hero { grid-template-columns: minmax(0, 1fr); } }
.tool-sheet { margin: 0; justify-self: center; max-width: 420px; width: 100%; }
.tool-sheet img { display: block; width: 100%; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 18px 40px -18px rgba(15,23,42,.35); border: 1px solid var(--line); }
.tool-sheet figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.tool-hero .btn small { display: inline; margin: 0; color: inherit; opacity: .85; font-weight: 400; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); margin-top: 14px; }
.tool-why { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px clamp(18px, 3vw, 36px); }
.tool-why .compare h3 { margin: 0 0 8px; font-size: 1rem; }
.tool-why .compare ul { margin: 0; padding-inline-start: 1.1em; color: var(--ink-2); }
.tool-why .compare .ours h3 { color: var(--brand-dark); }

.fgas { max-width: 720px; display: grid; gap: 22px; }
.fgas .eyebrow { margin: 0 0 6px; color: #b93c0d; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.fgas h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.fgas header .intro { margin: 8px 0 0; }
.fgas-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 16px; }
.fgas-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .fgas-row { grid-template-columns: 1fr; } }
.fgas-form label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; min-width: 0; }
.fgas-form select, .fgas-form input[type=number] { font: inherit; font-size: 1.05rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.fgas-unit { position: relative; }
.fgas-unit input { padding-inline-end: 42px; }
.fgas-unit span { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.fgas-checks { display: grid; gap: 10px; }
.fgas-chk { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.fgas-chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.fgas-chk small { display: block; color: var(--muted); }
.fgas-chk.sub { margin-inline-start: 30px; }
.fgas-chk[hidden] { display: none; }
.fgas-info { font-size: .85rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.fgas-result { background: #fff; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.fgas-rhead { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px dashed var(--line); }
.fgas-rhead span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fgas-figs { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .fgas-figs { grid-template-columns: 1fr; } }
.fgas-fig { padding: 16px 18px; min-width: 0; }
.fgas-fig + .fgas-fig { border-inline-start: 1px dashed var(--line); }
@media (max-width: 520px) { .fgas-fig + .fgas-fig { border-inline-start: 0; border-top: 1px dashed var(--line); } }
.fgas-fig .k { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fgas-fig .v { font-size: 1.9rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 4px; }
.fgas-fig .v small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.fgas-verdict { margin: 0 18px 16px; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.fgas-verdict.req { background: var(--brand-soft); color: #b93c0d; }
.fgas-verdict.none { background: var(--ok-soft); color: #166534; }
.fgas-notes { padding: 0 18px 4px; display: grid; gap: 8px; font-size: .9rem; }
.fgas-notes div { background: var(--warn-soft); color: #854d0e; padding: 10px 12px; border-radius: 8px; }
.fgas-src { border-top: 1px dashed var(--line); padding: 14px 18px; font-size: .85rem; color: var(--muted); display: grid; gap: 6px; }
.fgas-src b { color: var(--ink); }
.fgas-tf { border-top: 1px solid var(--line); padding: 14px 18px; font-size: .9rem; background: var(--bg); }
.fgas details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.fgas summary { cursor: pointer; font-weight: 700; }
.fgas .table-wrap { overflow-x: auto; margin-top: 10px; }
.fgas table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.fgas th, .fgas td { text-align: start; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fgas th { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fgas .tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.fgas .tag.v { background: var(--ok-soft); color: #166534; }
.fgas .tag.x { background: var(--warn-soft); color: #854d0e; }
/* Feature pages and their summary (marketing/feature.html, marketing/<lang>/features/) */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline: 8px; color: var(--muted); }
.crumbs a { color: var(--ink-2); display: inline-block; padding-block: 12px; margin-block: -12px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.feature-pills li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; color: var(--ink); }
.feature-problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .feature-problems { grid-template-columns: minmax(0, 1fr); } }
.feature-problems li { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: var(--ink-2); overflow-wrap: break-word; }
.feature-problems strong { display: block; color: var(--ink); margin-bottom: 4px; }
.feature-steps { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.feature-step { display: grid; gap: 18px; counter-increment: step; }
.feature-step.with-shot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .feature-step.with-shot { grid-template-columns: minmax(0, 1fr); } }
.feature-step h3 { margin: 0 0 6px; }
.feature-step h3::before { content: counter(step) ". "; color: var(--brand); }
.feature-step p { color: var(--ink-2); margin: 0; max-width: 620px; }
.feature-step figure { margin: 0; min-width: 0; }
.feature-step figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.feature-strength { display: grid; gap: 12px; }
.feature-strength h2 { margin: 0; }
.feature-strength p, .feature-strength ul { max-width: 760px; color: var(--ink-2); margin: 0; }
.feature-langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; list-style: none; }
.feature-langs li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.feature-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 900px) { .feature-example { grid-template-columns: minmax(0, 1fr); } }
.feature-example h2 { margin-top: 0; }
.feature-example p { color: var(--ink-2); }
.feature-cards .feature { position: relative; }  /* the stretched link stays inside its card */
.feature-cards .card-link { color: inherit; }
.feature-cards .card-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.feature-cards .feature:hover { border-color: var(--brand); }
.feature-cards .more { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 600; font-size: .95rem; }
.feature-trades { margin-top: 24px; line-height: 2.2; }
.feature-trades a { display: inline-block; min-height: 24px; }
.feature-also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 700px) { .feature-also { grid-template-columns: minmax(0, 1fr); } }
.feature-also li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); overflow-wrap: break-word; }
.feature-also strong { color: var(--ink); }
.feature-all { margin: 24px 0 0; }
