/* Reraidoor site. Colours come from the logo (a blue circle, a beige tractor, orange and red accents) and from the program's own themes. */
:root {
  --bg: #f6f7fb;
  --bg-alt: #eceff8;
  --surface: #ffffff;
  --text: #1b2230;
  --muted: #5d6677;
  --line: #dde2ee;
  --accent: #4f6ff0;
  --accent-dark: #3e58c7;
  --accent-soft: #eaeffe;
  --warm: #e07b39;
  --sand: #e8d4a8;
  --shadow: 0 6px 24px rgba(30, 45, 90, .10);
}
:root[data-theme="dark"] {
  --bg: #060505;
  --bg-alt: #0d0b0b;
  --surface: #131111;
  --text: #ececec;
  --muted: #a39d9d;
  --line: #2b2727;
  --accent: #6c86f5;
  --accent-dark: #5671e0;
  --accent-soft: #1e2236;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brandline { text-transform: uppercase; letter-spacing: .14em; }
.menu { display: flex; gap: 16px; margin-left: auto; }
.menu a { color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.menu a:hover { color: var(--accent); }
.tools { display: flex; gap: 8px; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 5px 10px; font: inherit; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.burger { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 4px 10px; font-size: 18px; cursor: pointer; }

/* hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1000px 420px at 85% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.hero-art { text-align: center; }
.hero-art img { filter: drop-shadow(0 14px 30px rgba(20, 50, 120, .30)); }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 11px 22px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn[hidden] { display: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line); }
.btn.primary:disabled:hover { border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.wide { width: 100%; }

/* blocks */
.block { padding: 56px 0; }
.block.alt { background: var(--bg-alt); }
h2 { font-size: clamp(24px, 3vw, 32px); text-align: center; margin: 0 0 28px; }
h3 { margin: 0 0 8px; font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding: 0; margin: 0 0 20px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 56px; position: relative; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--warm); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps span { color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
/* both screenshots are in the page (search engines see them); the one of the other theme is not shown */
.shot-dark { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
.gallery figcaption { padding: 8px 12px; font-size: 14px; color: var(--muted); }

/* table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--accent-soft); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); gap: 20px; justify-content: center; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; box-shadow: var(--shadow); }
.plan.best { border: 2px solid var(--accent); }
.plan .price { font-size: 38px; font-weight: 700; margin: 6px 0; }
.plan .price s { font-size: 18px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; text-align: left; }
.plan li { padding: 4px 0 4px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--warm); color: #fff; border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 700; }

/* reviews */
.slider { position: relative; }
.rv-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: none; outline: none; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.review { flex: 0 0 min(380px, 86%); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; box-shadow: var(--shadow); position: relative; }
.review::before { content: "“"; position: absolute; top: 4px; right: 18px; font: 700 64px/1 Georgia, serif; color: var(--accent); opacity: .25; }
.review q { display: block; quotes: none; flex: 1; margin: 0 0 16px; font-size: 16px; }
.review .who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.review .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.review cite { font-style: normal; line-height: 1.3; }
.review cite b { display: block; }
.review cite span { color: var(--muted); font-size: 14px; }
.reviews-empty { text-align: center; color: var(--muted); padding: 10px; }
.slider .nav { position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.slider .nav:hover { border-color: var(--accent); color: var(--accent); }
.slider .prev { left: -14px; }
.slider .next { right: -14px; }
.slider.static .nav { display: none; }
.dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.dots i.on { background: var(--accent); transform: scale(1.25); }
.preview-note { text-align: center; color: var(--warm); font-size: 14px; margin: 0 0 14px; }
@media (max-width: 860px) { .slider .prev { left: -6px; } .slider .next { right: -6px; } }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; background: var(--bg-alt); }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* modal and lightbox */
.modal, .lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 24, .62); display: grid; place-items: center; padding: 16px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.dialog { position: relative; width: min(480px, 100%); max-height: 94vh; overflow: auto; background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.close { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }
.dialog label { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.dialog input:not([type=radio]):not([type=checkbox]), .dialog textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.dialog input:focus, .dialog textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.tariffs { display: grid; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; }
.opt { display: flex !important; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text) !important; margin: 0 !important; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex !important; gap: 10px; align-items: flex-start; }
.hint { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { margin: 12px 0 0; min-height: 1.4em; font-size: 14px; }
.status.ok { color: #1a8a4a; }
.status.err { color: #c0392b; }
.lightbox img { max-width: min(1100px, 100%); max-height: 92vh; border-radius: 10px; background: var(--surface); }
.lightbox .close { color: #fff; top: 14px; right: 20px; }

@media (max-width: 1040px) {
  .burger { display: inline-block; }
  .menu { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; padding: 8px 16px; }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; }
  .bar { position: relative; }
  .tools { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; height: auto; }
  .burger { display: inline-block; }
  .menu { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; padding: 8px 16px; }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; }
  .bar { position: relative; }
  .tools { margin-left: auto; }
}

/* the mark in the header: min-logo.png as it is (a dark square with the white door) in both themes */
.mark { display: block; border-radius: 8px; width: auto; height: 48px; }

/* the big logo follows the theme, like the screenshots */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }
:root[data-theme="dark"] .logo-light { display: none; }
.hero-art img { border-radius: 24px; }

/* Before the script runs (and without it) the theme follows the browser's own setting; the script then keeps following it unless the visitor chose a theme by the button. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #060505;
    --bg-alt: #0d0b0b;
    --surface: #131111;
    --text: #ececec;
    --muted: #a39d9d;
    --line: #2b2727;
    --accent: #6c86f5;
    --accent-dark: #5671e0;
    --accent-soft: #1e2236;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  }
  :root:not([data-theme]) .shot-dark { display: block !important; }
  :root:not([data-theme]) .shot-light { display: none !important; }
  :root:not([data-theme]) .logo-dark { display: inline-block; }
  :root:not([data-theme]) .logo-light { display: none; }
}

/* speed estimate */
.presets td:not(:first-child), .presets th:not(:first-child) { white-space: nowrap; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.calc label { display: block; font-size: 14px; color: var(--muted); }
.calc input { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.calc input:focus { outline: 2px solid var(--accent); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.results div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.results b { display: block; font-size: 30px; color: var(--accent); }
.results span { color: var(--muted); font-size: 14px; }

/* documents (offer, privacy, support) */
.doc-page h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.doc-page h2 { text-align: left; font-size: 21px; margin: 28px 0 10px; }
.doc-page p, .doc-page li { color: var(--text); }
.doc-page ul, .doc-page ol { padding-left: 22px; }
.doc-page mark { background: color-mix(in srgb, var(--warm) 35%, transparent); color: var(--text); padding: 0 4px; border-radius: 4px; }
.doc-page code { background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
.doc-page .draft-note { border-left: 4px solid var(--warm); background: var(--surface); padding: 10px 14px; border-radius: 8px; color: var(--muted); }
.compare.doc td, .compare.doc th { text-align: left; vertical-align: top; }
.legal-menu { display: flex; gap: 18px; margin-left: auto; }
.legal-menu a { color: var(--text); text-decoration: none; font-size: 15px; }
.legal-menu a:hover { color: var(--accent); }
@media (max-width: 860px) { .legal-menu { display: none; } }
.foot-links a { color: inherit; }
/* ===== motion and polish ===== */
:root { --ease: cubic-bezier(.22, .8, .24, 1); --glow: color-mix(in srgb, var(--accent) 45%, transparent); }
body { transition: background-color .35s var(--ease), color .35s var(--ease); }
.top, .card, .plan, .review, .compare, .results div, details, .dialog, .calc input, .chip, .btn { transition: background-color .35s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }

/* progress of the page */
#progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--warm)); z-index: 60; pointer-events: none; }

/* the header becomes compact and solid after the first scroll */
.top.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.top .bar { transition: min-height .3s var(--ease); }
.top.scrolled .bar { min-height: 52px; }
.brand .mark { transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }

/* hero: a living background, a floating logo, a gradient headline */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.hero::before { background: var(--accent); top: -180px; right: -120px; animation: drift1 16s ease-in-out infinite alternate; }
.hero::after { background: var(--warm); bottom: -260px; left: -160px; opacity: .22; animation: drift2 19s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, 60px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, -50px) scale(1.2); } }
.hero h1 { background: linear-gradient(100deg, var(--text) 35%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-art img { animation: float 7s ease-in-out infinite; box-shadow: 0 30px 80px -20px var(--glow); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
.hero .note { animation: fadeUp .8s var(--ease) .5s both; }

/* the first screen arrives in order */
.hero h1 { animation: fadeUp .8s var(--ease) both; }
.hero .lead { animation: fadeUp .8s var(--ease) .12s both; }
.hero .cta { animation: fadeUp .8s var(--ease) .24s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* buttons */
.btn { position: relative; overflow: hidden; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 8px 22px -8px var(--glow); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.btn:active { transform: scale(.97); }

/* blocks appear while scrolling (only when scripts run: see boot.js) */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
h2 { position: relative; padding-bottom: 14px; }
h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--warm)); transform: translateX(-50%) scaleX(0); transition: transform .8s var(--ease) .2s; }
.js h2.in::after, h2:not(.reveal)::after { transform: translateX(-50%) scaleX(1); }

/* cards, plans, steps, gallery */
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--warm)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.steps li { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.steps li::before { transition: transform .4s var(--ease); }
.gallery figure { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.gallery img { transition: transform .6s var(--ease); }
.compare tbody tr { transition: background-color .2s; }
.plan.best { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 0 0 0 var(--glow); } 50% { box-shadow: 0 6px 30px rgba(0, 0, 0, .16), 0 0 0 7px transparent; border-color: var(--accent); } }
.badge { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }
details { transition: border-color .25s, background-color .25s; }
details[open] { border-color: var(--accent); }
details[open] summary { color: var(--accent); }
details p { animation: fadeUp .35s var(--ease) both; }

/* hover effects only where there is a real pointer (a finger has no hover) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn.primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
  .card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px -14px var(--glow); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
  .card:hover::before { transform: scaleX(1); }
  .steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .steps li:hover::before { transform: scale(1.18) rotate(-8deg); }
  .gallery figure:hover { transform: translateY(-5px); box-shadow: 0 18px 44px -16px var(--glow); border-color: var(--accent); }
  .gallery figure:hover img { transform: scale(1.05); }
  .compare tbody tr:hover { background: var(--accent-soft); }
  .plan:hover { transform: translateY(-6px); }
  .review:hover { transform: translateY(-4px); }
  .results div:hover { transform: translateY(-3px); }
}

/* the order window and the burger menu move */
.modal:not([hidden]) { animation: fade .25s ease both; }
.modal:not([hidden]) .dialog { animation: pop .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.lightbox:not([hidden]) { animation: fade .2s ease both; }
.lightbox:not([hidden]) img { animation: pop .3s var(--ease) both; }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.menu a.active { color: var(--accent); }
@media (max-width: 1040px) { .menu a::after { display: none; } .menu.open { animation: dropdown .28s var(--ease) both; } }
@keyframes dropdown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* a bar with the two main actions at the bottom of a phone */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { text-align: center; padding: 12px 8px; }
  body { padding-bottom: 76px; }

  .wrap { width: calc(100% - 28px); }
  .block { padding: 40px 0; }
  .hero { padding: 28px 0 24px; }
  .hero::before, .hero::after { width: 320px; height: 320px; filter: blur(60px); }
  h1 { font-size: 28px; }
  .lead { font-size: 16px; }
  .cta .btn { flex: 1 1 140px; text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery figcaption { font-size: 12px; padding: 6px 8px; }
  .slider .nav { display: none; }
  .review { flex-basis: 88%; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px; }
  .dialog { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; align-self: end; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .modal { align-items: end; padding: 0; }
  .modal:not([hidden]) .dialog { animation: sheet .35s var(--ease) both; }
  .compare th, .compare td { padding: 9px 10px; font-size: 14px; }
  .results { grid-template-columns: 1fr; }
  .steps li { padding: 14px 14px 14px 52px; }
  .foot-grid { flex-direction: column; text-align: center; align-items: center; }
  input, textarea, select { font-size: 16px; } /* a phone does not zoom into a field of this size */
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 400px) { .brand span { font-size: 17px; letter-spacing: .1em; } .tools { gap: 6px; } .chip { padding: 5px 8px; } }

/* without motion: everything is shown at once and nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  h2::after { transform: translateX(-50%) scaleX(1); }
  .hero h1, .hero .lead, .hero .cta, .hero .note { opacity: 1; transform: none; }
}

/* the documents keep their plain headings */
.doc-page h2 { padding-bottom: 0; }
.doc-page h2::after { display: none; }
/* ===== languages ===== */
/* the language switcher: a menu with every language by its own name */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 5px 10px; font: inherit; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--accent); }
.lang summary .globe { flex: none; }
.lang summary .cur { font-weight: 600; letter-spacing: .04em; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .25s var(--ease); }
.lang[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 70; min-width: 210px; max-height: min(70vh, 460px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .45); }
.lang[open] ul { animation: pop .22s var(--ease) both; }
.lang li a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--text); text-decoration: none; }
.lang li a:hover, .lang li a:focus-visible { background: var(--accent-soft); outline: none; }
.lang li a.current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lang li .code { flex: none; width: 28px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lang li a.current .code { color: var(--accent); }
@media (max-width: 700px) { .lang ul { position: fixed; inset-inline: 12px; top: 64px; min-width: 0; max-height: 70vh; } .lang li a { padding: 12px 10px; } }

/* the chooser at the root address */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* right to left (Arabic): the page mirrors itself through dir="rtl"; what was written with left and right is mirrored here */
[dir="rtl"] .menu { margin-left: 0; margin-right: auto; }
[dir="rtl"] .tools { margin-left: 0; }
[dir="rtl"] .steps li { padding: 18px 56px 18px 18px; }
[dir="rtl"] .steps li::before { left: auto; right: 16px; }
[dir="rtl"] .plan ul { text-align: right; }
[dir="rtl"] .plan li { padding: 4px 26px 4px 0; }
[dir="rtl"] .plan li::before { left: auto; right: 0; }
[dir="rtl"] .review::before { right: auto; left: 18px; }
[dir="rtl"] .slider .prev { left: auto; right: -14px; }
[dir="rtl"] .slider .next { right: auto; left: -14px; }
[dir="rtl"] .compare th:first-child, [dir="rtl"] .compare td:first-child { text-align: right; }
[dir="rtl"] .dialog .close { right: auto; left: 12px; }
[dir="rtl"] .lightbox .close { right: auto; left: 20px; }
[dir="rtl"] .tariffs, [dir="rtl"] .opt { text-align: right; }
[dir="rtl"] .hero h1 { background: linear-gradient(260deg, var(--text) 35%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; }
[dir="rtl"] .hero::before { right: auto; left: -120px; }
[dir="rtl"] .hero::after { left: auto; right: -160px; }
[dir="rtl"] .brand { letter-spacing: .14em; }
[dir="rtl"] .foot-grid { text-align: right; }
@media (max-width: 1040px) { [dir="rtl"] .menu { margin-right: 0; } [dir="rtl"] .tools { margin-right: auto; } }
@media (max-width: 700px) { [dir="rtl"] .slider .prev, [dir="rtl"] .slider .next { display: none; } }

/* scripts with their own letterforms need room: Devanagari and Arabic get a taller line, Chinese a looser one */
:lang(hi) body, :lang(hi) .lead, :lang(hi) .card p { line-height: 1.8; }
:lang(ar) body, :lang(ar) .lead, :lang(ar) .card p { line-height: 1.85; }
:lang(zh) body { line-height: 1.75; letter-spacing: .01em; }
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1 { letter-spacing: 0; }
:lang(ja) body { line-height: 1.8; font-family: "Segoe UI", "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) body { line-height: 1.75; font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; word-break: keep-all; }
:lang(ja) body { word-break: normal; line-break: strict; }
:lang(ar) .brand, :lang(ar) .brandline, :lang(hi) .brand, :lang(zh) .brand { letter-spacing: .14em; }
body { font-family: "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Nirmala UI", "Noto Sans Devanagari", "Tahoma", "Noto Sans Arabic", sans-serif; }
