/* ------------------------------------------------------------
   Design tokens
   Navy + electric blue + cyan, taken from the File Revival logo.
   ------------------------------------------------------------ */
:root {
  --navy: #0A1F44;
  --paper: #F2F6FC;
  --white: #ffffff;
  --ink: #0B1A33;
  --muted: #51607A;
  --line: #D8E0EC;
  --brand: #0B62E8;
  --brand-d: #074DBF;
  --tint: #E3EEFF;
  --accent: #14C2FF;
  --accent-l: #5AD6FF;
  --warn-bg: #FFF4D6;
  --warn-line: #E8A317;
  --warn-ink: #5C3B00;
  --err: #B42318;
  --font-d: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); margin: 0; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--accent); }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  font: 600 1rem/1 var(--font-b);
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-sm { height: 42px; padding: 0 18px; font-size: .95rem; border-radius: 10px; }
.btn-block { width: 100%; height: 56px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(11,98,232,.85); }
.btn-primary:hover { background: var(--brand-d); transform: translateY(-2px); box-shadow: 0 14px 24px -12px rgba(11,98,232,.9); }

.btn-accent { background: var(--accent); color: var(--navy); box-shadow: 0 10px 22px -12px rgba(20,194,255,.9); }
.btn-accent:hover { background: var(--accent-l); transform: translateY(-2px); box-shadow: 0 16px 26px -14px rgba(20,194,255,.95); }

.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-line:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }

.btn-line-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line-dark:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,246,252,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(10,31,68,.55); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand { --bi-h: 40px; }
.brand-icon { display: block; position: relative; flex: none; height: var(--bi-h); width: calc(var(--bi-h) * 1.4003); transition: transform .35s var(--ease); }
.brand-icon img { height: 100%; width: 100%; }
.brand-word { height: 20px; width: auto; }
.brand:not(.has-anim):hover .brand-icon { transform: rotate(-6deg) scale(1.05); }

.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.nav a { padding: 9px 12px; border-radius: 9px; font-weight: 500; font-size: .98rem; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav a:hover { background: rgba(11,98,232,.09); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; padding: 8px 4px; transition: color .2s; }
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-phone:hover { color: var(--brand); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; transition: background-color .2s; }
.menu-btn:hover { background: rgba(11,98,232,.09); }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero { background: var(--navy); color: #fff; padding-top: 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-bottom: 80px; }
.hero h1 { max-width: 14em; color: #fff; }
.lead { font-size: 1.2rem; line-height: 1.55; color: rgba(255,255,255,.8); max-width: 34em; margin: 22px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; font-size: .98rem; color: rgba(255,255,255,.88); }
.facts svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Recovery panel: the one memorable moment */
.recover-wrap { position: relative; width: 100%; max-width: 500px; justify-self: end; }
.recover { background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.75); overflow: hidden; }
.recover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.recover-device { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--font-d); }
.recover-device svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: #0A4FBF; font-size: .82rem; font-weight: 600; transition: background-color .4s, color .4s; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.1s ease-in-out infinite; }
.pill.done { background: #DDF3E8; color: #0A6B45; }
.pill.done .pill-dot { background: #12915F; animation: none; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #fff; }
.js .tile { background: repeating-linear-gradient(135deg, #EDF2FA 0 6px, #E1E9F5 6px 12px); box-shadow: inset 0 0 0 1.5px #C5D3E8; transition: box-shadow .4s; }
.js .tile.on { box-shadow: inset 0 0 0 0 transparent; }
.scene { position: absolute; inset: 0; transition: opacity .4s ease, transform .5s var(--ease); }
.js .tile:not(.on) .scene { opacity: 0; transform: scale(.88); }

/* photo scenes */
.tile[data-k="a"] { --s1: #9CC9D9; --s2: #E6F1F4; --hill: #2F7D63; --sun: #F3C14B; --sx: 66%; --sy: 20%; }
.tile[data-k="b"] { --s1: #F2B27C; --s2: #FBE3C8; --hill: #7A4636; --sun: #FFF3D0; --sx: 22%; --sy: 28%; }
.tile[data-k="c"] { --s1: #7FA7E0; --s2: #D3E2F8; --hill: #355C4F; --sun: #FFFFFF; --sx: 72%; --sy: 26%; }
.tile[data-k="a"] .scene, .tile[data-k="b"] .scene, .tile[data-k="c"] .scene { background: linear-gradient(var(--s1), var(--s2)); }
.tile[data-k="a"] .scene::before, .tile[data-k="b"] .scene::before, .tile[data-k="c"] .scene::before {
  content: ""; position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); left: var(--sx); top: var(--sy);
}
.tile[data-k="a"] .scene::after, .tile[data-k="b"] .scene::after, .tile[data-k="c"] .scene::after {
  content: ""; position: absolute; left: -12%; bottom: -38%; width: 124%; height: 72%; border-radius: 50%; background: var(--hill);
}
/* document scene */
.tile[data-k="doc"] .scene { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tile[data-k="doc"] .scene::before { content: ""; position: absolute; left: 12%; top: 16%; width: 42%; height: 9%; border-radius: 2px; background: var(--brand); }
.tile[data-k="doc"] .scene::after { content: ""; position: absolute; left: 12%; top: 38%; width: 76%; height: 44%; background: repeating-linear-gradient(#D8E0EC 0 4px, transparent 4px 12px); }
/* video scene */
.tile[data-k="vid"] .scene { background: #12306A; }
.tile[data-k="vid"] .scene::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -11px 0 0 -7px; border-left: 16px solid var(--accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }

.track { height: 6px; border-radius: 3px; background: #E1E9F5; margin-top: 18px; overflow: hidden; }
.track-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 3px; }
html:not(.js) .track-fill { width: 100%; }

/* ---- animated logo ---- */
.logo-box { position: relative; }
.logo-glow { position: absolute; inset: -10% -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,194,255,.38), rgba(20,194,255,0) 72%); opacity: 0; pointer-events: none; }
.logo-fx { position: relative; }
.logo-anim { display: block; width: 100%; height: auto; overflow: visible; }

.rc-logo { padding: 10px 8px 4px; }
.hero-logo { width: min(100%, 380px); margin: 0 auto; cursor: pointer; }
.wordmark { text-align: center; margin-top: 16px; }
.js .wordmark { opacity: 0; }
.wordmark img { margin: 0 auto; height: auto; }
.wordmark .w { width: 82%; }
.wordmark .s { width: 58%; margin-top: 12px; }

/* which hero panel to show: set by "heroStyle" in content.js */
.recover-wrap[data-style="logo"] .tiles,
.recover-wrap[data-style="logo"] .badge { display: none; }
.recover-wrap[data-style="both"] .rc-logo,
.recover-wrap[data-style="photos"] .rc-logo,
.recover-wrap[data-style="photos"] .badge { display: none; }
.recover-wrap[data-style="logo"] .track { margin-top: 14px; }

.badge { position: absolute; left: -34px; bottom: -44px; width: 188px; overflow: hidden; background: #fff; border-radius: 20px; padding: 14px 14px 12px; box-shadow: 0 24px 44px -18px rgba(0,0,0,.65), 0 0 0 1px rgba(10,31,68,.06); cursor: pointer; }

/* scattering pixels, echoing the logo's icon */
.pixels { display: flex; align-items: flex-end; gap: 10px; }
.pixels span { display: block; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), var(--brand)); }
.pixels span:nth-child(1) { width: 30px; height: 26px; }
.pixels span:nth-child(2) { width: 26px; height: 22px; }
.pixels span:nth-child(3) { width: 22px; height: 18px; }
.pixels span:nth-child(4) { width: 18px; height: 15px; }
.pixels span:nth-child(5) { width: 15px; height: 12px; }
.pixels span:nth-child(6) { width: 12px; height: 9px; }
.pixels span:nth-child(7) { width: 9px; height: 7px; }
.pixels span:nth-child(8) { width: 7px; height: 5px; }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: 104px 0; }
.section-white { background: var(--white); }
.head .sub, .side .sub { color: var(--muted); margin-top: 14px; max-width: 34em; font-size: 1.1rem; }
.head { margin-bottom: 56px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { position: relative; padding-top: 70px; }
.steps .num { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1.1rem var(--font-d); }
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 22px; left: 62px; right: -22px; height: 2px; background: var(--line); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 26em; }

/* devices */
.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.dev { padding-top: 24px; border-top: 2px solid var(--line); transition: border-color .25s; }
.dev:hover { border-top-color: var(--brand); }
.dev .ico-svg svg { width: 44px; height: 44px; color: var(--brand); }
.dev h3 { margin: 18px 0 8px; }
.dev p { color: var(--muted); max-width: 22em; }
.note { margin-top: 56px; padding: 18px 24px; border-left: 4px solid var(--accent); background: var(--paper); max-width: 46em; border-radius: 0 10px 10px 0; }

/* request */
.request-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.side { position: sticky; top: 112px; }
.next-title { margin: 40px 0 16px; font-size: 1.05rem; }
.next { counter-reset: n; display: grid; gap: 14px; }
.next li { counter-increment: n; position: relative; padding-left: 40px; color: var(--muted); }
.next li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: #0A4FBF; font: 700 .85rem/26px var(--font-d); text-align: center; }
.call { margin-top: 36px; color: var(--muted); }
.call a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; transition: color .2s; }
.call a:hover { color: var(--brand-d); }
.vm { margin-top: 6px; color: var(--muted); font-size: .96rem; }
.vm-dark { margin-top: -4px; color: rgba(255,255,255,.7); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px; box-shadow: 0 30px 50px -40px rgba(10,31,68,.5); }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 28px; border-radius: 12px; background: var(--warn-bg); border-left: 5px solid var(--warn-line); color: var(--warn-ink); }
.notice svg { width: 24px; height: 24px; flex: none; margin-top: 1px; fill: none; stroke: #B7791F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice strong { display: block; font: 700 1.05rem/1.3 var(--font-d); margin-bottom: 4px; }
.notice p { font-size: .96rem; line-height: 1.5; }

.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.lbl { display: block; padding: 0; font-weight: 600; font-size: .94rem; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
.form-card input[type="text"], .form-card input[type="tel"], .form-card input[type="email"], .form-card input[type="number"], .form-card input[type="date"], .form-card textarea {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #FAFBFD; border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.form-card textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.form-card input:hover, .form-card textarea:hover { border-color: #AEBFD9; }
.form-card input:focus, .form-card textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,98,232,.16); }
.form-card input:user-invalid, .form-card textarea:user-invalid { border-color: var(--err); }
.form-card ::placeholder { color: #8493AA; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #FAFBFD; font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease), box-shadow .2s;
}
.chip em { font-style: normal; font-weight: 500; font-size: .82rem; opacity: .7; margin-left: 8px; }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 16px -10px rgba(11,98,232,.9); }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }

.reveal:not([hidden]) { animation: reveal .32s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.count { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.count-text { font-weight: 600; font-size: .94rem; }
.count-row { display: flex; align-items: center; gap: 16px; }
.count-row input { max-width: 120px; }
.linkbtn { background: none; border: 0; padding: 6px 2px; font: 600 .94rem var(--font-b); color: var(--brand); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color .2s; }
.linkbtn:hover { color: var(--brand-d); }

.field-consent { margin: 0 0 14px; }
.field-consent.last { margin-bottom: 26px; }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.consent a:hover { color: var(--brand-d); }
.hint { margin-top: 10px; color: var(--muted); font-size: .88rem; line-height: 1.5; max-width: 40em; }
.consent { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .96rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }

/* ---- field errors: red outline and a message under the field ---- */
.field-error { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--err); font-size: .92rem; font-weight: 600; line-height: 1.4; animation: errIn .25s var(--ease); }
.field-error::before { content: "!"; flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--err); color: #fff; font: 700 .72rem/17px var(--font-b); text-align: center; }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.has-error .lbl { color: var(--err); }
.has-error input[type="text"], .has-error input[type="tel"], .has-error input[type="email"], .has-error input[type="number"], .has-error input[type="date"], .has-error textarea { border-color: var(--err); background: #FFF8F7; }
.has-error input[type="text"]:focus, .has-error input[type="tel"]:focus, .has-error input[type="email"]:focus, .has-error input[type="number"]:focus, .has-error input[type="date"]:focus, .has-error textarea:focus { border-color: var(--err); box-shadow: 0 0 0 4px rgba(180,35,24,.16); }
.has-error .chip span { border-color: var(--err); background: #FFF8F7; }
.has-error .chip input:checked + span { background: var(--brand); border-color: var(--brand); }
.has-error .consent input { outline: 2px solid var(--err); outline-offset: 2px; border-radius: 3px; }

.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.loading .spin { display: inline-block; }
.btn.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: #FDECEA; color: #7A1A12; font-size: .96rem; }

.success { display: none; padding: 16px 4px; }
.form-card.sent form { display: none; }
.form-card.sent .success { display: block; }
.success:focus { outline: none; }
.success-logo { width: 190px; margin: 0 0 18px -6px; cursor: pointer; }
.success-mark { width: 64px; height: 64px; margin-bottom: 20px; }
.success-mark circle { stroke-dasharray: 145; stroke-dashoffset: 145; }
.success-mark path { stroke-dasharray: 44; stroke-dashoffset: 44; }
.form-card.sent .success-mark circle { animation: draw .6s var(--ease) forwards; }
.form-card.sent .success-mark path { animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.success p { color: var(--muted); margin-bottom: 28px; max-width: 28em; }

/* questions */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
.faq-grid .head { margin-bottom: 0; position: sticky; top: 112px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; letter-spacing: normal; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; background: none; border: 0; text-align: left; cursor: pointer;
  font: 700 1.15rem/1.35 var(--font-d); letter-spacing: -0.01em; color: var(--ink);
  transition: color .2s;
}
.faq-q:hover { color: var(--brand); }
.faq-q .tog { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.faq-q:hover .tog { border-color: var(--brand); }
.faq-q .tog::before, .faq-q .tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), background-color .25s; }
.faq-q .tog::after { transform: rotate(90deg); }
.faq-item.open .tog { background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.faq-item.open .tog::before, .faq-item.open .tog::after { background: #fff; }
.faq-item.open .tog::after { transform: rotate(90deg) scaleX(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility .38s; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > div { visibility: visible; }
.faq-a p { padding: 0 60px 26px 4px; color: var(--muted); max-width: 40em; }

/* contact + footer */
.contact { background: var(--navy); color: #fff; padding: 96px 0 36px; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.footer-logo { width: 260px; height: auto; margin-bottom: 40px; }
.contact .lead { margin: 16px 0 0; }
.contact-links { display: grid; gap: 14px; }
.big { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--font-d); letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-decoration-thickness: 2px; text-underline-offset: 8px; width: fit-content; transition: color .2s, text-decoration-color .2s; word-break: break-word; }
.big:hover { color: var(--accent); text-decoration-color: var(--accent); }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 0; }
.info dt { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.info dd { margin: 0; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 88px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: .92rem; color: rgba(255,255,255,.65); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal a { text-decoration: none; transition: color .2s; }
.legal a:hover { color: #fff; }

.mobile-bar { display: none; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1360px) {
  .header-phone span { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 2px; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(10,31,68,.55); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .menu-btn { display: block; }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 2px; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(10,31,68,.55); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .menu-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .recover-wrap { justify-self: start; }
  .badge { left: -10px; width: 160px; }
  .request-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .side, .faq-grid .head { position: static; }
  .section { padding: 80px 0; }
  .contact { padding-top: 72px; }
  .devices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .header-cta { display: none; }
  .brand { --bi-h: 34px; }
  .brand-word { height: 16px; }
  .hero { padding-top: 48px; }
  .hero-grid { padding-bottom: 56px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps li { padding: 0 0 0 66px; min-height: 46px; }
  .steps li:not(:last-child)::before { top: 52px; left: 22px; right: auto; width: 2px; height: calc(100% - 24px); }
  .devices { grid-template-columns: 1fr; gap: 24px; }
  .form-card { padding: 24px 20px; border-radius: 18px; }
  .row2 { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; }
  .faq-a p { padding-right: 8px; }
  .footer-logo { width: 220px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { height: 48px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------
   Privacy Policy and Terms of Service pages
   ------------------------------------------------------------ */
body.legal-page { padding-bottom: 0; background: var(--white); }
.legal-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; }
.legal-hero .eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.legal-hero h1 { color: #fff; }
.legal-hero .updated { margin-top: 14px; color: rgba(255,255,255,.72); }

.legal-grid { display: grid; grid-template-columns: 3fr 9fr; gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 104px; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h2 { font: 600 .8rem/1 var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); text-decoration: none; font-size: .94rem; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.legal-toc a:hover { color: var(--brand); border-color: var(--brand); background: rgba(11,98,232,.05); }

.legal-doc { max-width: 46rem; }
.legal-intro p { font-size: 1.12rem; line-height: 1.65; color: var(--ink); margin: 0 0 16px; }
.legal-doc section { margin-top: 48px; padding-top: 4px; }
.legal-doc h2 { font-size: 1.45rem; margin-bottom: 14px; }
.legal-doc p { margin: 0 0 14px; color: #2A3A57; }
.legal-doc ul { list-style: disc; padding-left: 1.3em; margin: 0 0 16px; display: grid; gap: 9px; }
.legal-doc li { color: #2A3A57; padding-left: 4px; }
.legal-doc li::marker { color: var(--brand); }
.legal-doc strong { color: var(--ink); }
.legal-doc a:not(.legal-other) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.legal-doc a:not(.legal-other):hover { color: var(--brand-d); }

.legal-other { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 64px; padding: 22px 26px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); text-decoration: none; transition: border-color .2s, transform .22s var(--ease), box-shadow .22s var(--ease); }
.legal-other:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 28px -22px rgba(10,31,68,.6); }
.legal-other .t { display: block; font: 700 1.15rem var(--font-d); color: var(--ink); }
.legal-other .d { display: block; margin-top: 2px; color: var(--muted); font-size: .96rem; }
.legal-other .go { font-size: 1.5rem; color: var(--brand); transition: transform .22s var(--ease); }
.legal-other:hover .go { transform: translateX(4px); }

.legal-foot { background: var(--navy); color: #fff; padding: 36px 0; }
.legal-foot .legal { margin: 0; padding: 0; border: 0; }

.legal-page .btn .short { display: none; }
@media (max-width: 760px) {
  .legal-page .btn .long { display: none; }
  .legal-page .btn .short { display: inline; }
}
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; gap: 0; padding-top: 48px; padding-bottom: 80px; }
  .legal-toc { display: none; }
  .legal-hero { padding: 48px 0 44px; }
}
@media print {
  .site-header, .legal-toc, .legal-foot, .legal-other { display: none !important; }
  .legal-hero { background: none; color: #000; padding: 0 0 12px; }
  .legal-hero h1, .legal-hero .updated { color: #000; }
  .legal-grid { display: block; padding: 0; }
}

/* ------------------------------------------------------------
   Pricing section
   ------------------------------------------------------------ */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.price { padding-top: 24px; border-top: 2px solid var(--line); transition: border-color .25s; }
.price:hover { border-top-color: var(--brand); }
.price-amt { font: 700 2.1rem/1.1 var(--font-d); color: var(--brand); margin-bottom: 10px; }
.price h3 { margin-bottom: 8px; }
.price p { color: var(--muted); max-width: 22em; }
.speed-title { margin: 56px 0 18px; font-size: 1.2rem; }
.speeds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.speed { display: grid; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.speed:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 18px 30px -22px rgba(11,98,232,.6); }
.speed strong { font: 700 1.05rem var(--font-d); }
.speed-time { color: var(--muted); font-size: .94rem; }
.speed-extra { color: var(--brand); font-weight: 700; }
.price-notes { margin-top: 36px; display: grid; gap: 12px; max-width: 46em; }
.price-notes li { position: relative; padding-left: 32px; color: var(--ink); }
.price-notes li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint); }
.price-notes li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid #0A4FBF; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.9); }

/* ------------------------------------------------------------
   Request form: closed at first, then steps
   ------------------------------------------------------------ */
.form-card { scroll-margin-top: 92px; }
.form-card .notice { margin-bottom: 22px; }
.form-card.sent .notice, .form-card.sent .start { display: none; }
.start-text { color: var(--muted); margin: 0 0 20px; }
.progress { margin-bottom: 28px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bars span { height: 5px; border-radius: 3px; background: var(--line); transition: background-color .35s var(--ease); }
.bars span.on { background: var(--brand); }
.progress p { margin: 10px 0 0; font-weight: 600; font-size: .92rem; color: var(--muted); }
.step-nav { display: flex; gap: 12px; margin-top: 8px; }
.step-nav .btn { height: 56px; }
.step-nav .btn-primary { flex: 1; }
.step-nav .btn-line-dark { flex: none; }
.dev-row { padding: 20px 20px 0; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; }
.dev-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dev-title { font: 700 1rem var(--font-d); }
.add-device { display: inline-block; margin: 0 0 26px; }
.hint.warn { padding: 10px 14px; border-radius: 10px; border-left: 4px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
@media (max-width: 960px) {
  .prices { grid-template-columns: 1fr; gap: 24px; }
  .speeds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .dev-row { padding: 16px 16px 0; }
  .step-nav .btn-line-dark { padding: 0 18px; }
}
