/* TileFlow website. Mobile first. Brand blue matches the app (src/styles.css brand-*). */
:root {
  --brand-50: #eff5ff;
  --brand-100: #dce8fd;
  --brand-200: #bcd3fb;
  --brand-300: #8fb5f6;
  --brand-400: #5a8eec;
  --brand-500: #1f5fd6;
  --brand-600: #1a4fb5;
  --brand-700: #173f8f;
  --navy: #0a1633;
  --navy-2: #0f1f47;
  --ink: #0b1220;
  --ink-2: #3d4a5f;
  --ink-3: #66748a;
  --line: #e5e9f0;
  --soft: #f6f8fc;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --r: 18px;
  --shadow: 0 1px 2px rgba(10, 22, 51, 0.04), 0 8px 24px -12px rgba(10, 22, 51, 0.12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: #fff;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-500); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 6px 18px -8px rgba(31, 95, 214, 0.8); }
.btn-primary:hover { background: var(--brand-600); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px -8px rgba(31, 168, 85, 0.8); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-300); color: var(--brand-600); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(10, 22, 51, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-login { color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 15px; padding: 10px 10px; border-radius: 10px; }
.nav-login:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (min-width: 960px) {
  .nav-links { display: flex; gap: 4px; margin-left: 28px; }
  .nav-links a { color: rgba(255, 255, 255, 0.72); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
  .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow-x: clip; color: #fff; margin-top: -64px; padding: 112px 0 0;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(31, 95, 214, 0.45), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(90, 142, 236, 0.22), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 920px; margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.86);
}
.pill b { background: var(--brand-500); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; }
.hero h1 { text-wrap: balance; margin-top: 22px; font-size: clamp(36px, 9.4vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 .grad { background: linear-gradient(90deg, #8fb5f6, #dce8fd 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 20px auto 0; max-width: 620px; font-size: clamp(16.5px, 2.6vw, 19.5px); line-height: 1.6; color: rgba(255, 255, 255, 0.74); }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin: 30px auto 0; max-width: 420px; }
.hero-cta .btn { width: 100%; min-height: 54px; font-size: 16.5px; }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.66); }
.assure span { display: inline-flex; align-items: center; gap: 7px; }
.assure svg { width: 16px; height: 16px; color: #5ad08a; }
@media (min-width: 560px) {
  .hero-cta { flex-direction: row; justify-content: center; max-width: none; }
  .hero-cta .btn { width: auto; padding: 0 28px; }
}

/* product shot */
.stage { position: relative; margin: 48px auto 0; max-width: 1080px; padding-bottom: 0; }
.stage::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 12%; height: 70%;
  background: radial-gradient(closest-side, rgba(31, 95, 214, 0.55), transparent); filter: blur(40px); pointer-events: none;
}
.laptop { position: relative; display: none; }
.laptop .screen {
  border-radius: 14px 14px 0 0; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 0;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.laptop .screen .bar { height: 30px; background: #eef1f6; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #e1e6ee; }
.laptop .screen .bar i { width: 10px; height: 10px; border-radius: 99px; background: #d3d9e3; }
.laptop .screen .bar span { margin: 0 auto; font-size: 11.5px; color: #66748a; background: #fff; border-radius: 6px; padding: 2px 40px; }
.laptop .screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.phone {
  position: relative; width: min(300px, 78vw); margin: 0 auto; border-radius: 40px; padding: 10px; background: #0b1220;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -24px rgba(0, 0, 0, 0.75);
}
.phone img { border-radius: 30px; border-top: 34px solid #fff; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #fff; }
.phone::after { content: ''; position: absolute; top: 19px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 99px; background: #0b1220; }
/* phones: the phone rises from the bottom edge of the hero */
.hero .phone { height: min(460px, 112vw); overflow: hidden; border-radius: 40px 40px 0 0; padding-bottom: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.hero .phone img { border-radius: 30px 30px 0 0; }
.hero + .after-hero { padding-top: 48px; }
@media (min-width: 760px) {
  .laptop { display: block; width: 88%; }
  .hero .stage { margin-bottom: -120px; }
  .stage .phone, .hero .phone { position: absolute; right: 0; bottom: -40px; width: 24%; height: auto; min-width: 0; padding: 7px; border-radius: 30px; overflow: visible; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -24px rgba(0, 0, 0, 0.75); }
  .stage .phone img, .hero .phone img { border-radius: 24px; border-top-width: 22px; }
  .stage .phone::after { top: 12px; width: 46px; height: 13px; margin-left: -23px; }
  .hero + .after-hero { padding-top: 170px; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 104px 0; } }
.soft { background: var(--soft); }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-500); }
.title { text-wrap: balance; margin-top: 12px; font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.sub { margin-top: 14px; font-size: clamp(16.5px, 2.2vw, 19px); color: var(--ink-2); max-width: 640px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* facts band */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { background: #fff; padding: 22px 18px; }
.facts b { display: block; font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.facts span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts div { padding: 28px 26px; } }

/* flow */
.flow { margin-top: 40px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; counter-reset: f; }
.flow li {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
}
.flow .n { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); }
.flow .n svg { width: 20px; height: 20px; }
.flow b { display: block; font-size: 16px; }
.flow small { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .flow li { flex-direction: column; align-items: flex-start; border-radius: 0; border-right-width: 0; box-shadow: none; padding: 20px 18px; }
  .flow li:first-child { border-radius: 14px 0 0 14px; }
  .flow li:last-child { border-radius: 0 14px 14px 0; border-right-width: 1px; }
  .flow li:not(:last-child)::after {
    content: ''; position: absolute; right: -7px; top: 36px; width: 12px; height: 12px; z-index: 1;
    background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
  }
}

/* feature rows */
.feature { display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature h3 { margin-top: 12px; font-size: clamp(25px, 5vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.feature p.sub { margin-top: 14px; }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.ticks li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 99px; background: var(--brand-50) center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ticks li b { color: var(--ink); font-weight: 600; }
.shot {
  border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(10, 22, 51, 0.04), 0 30px 60px -30px rgba(10, 22, 51, 0.35);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot-wrap { position: relative; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, var(--brand-50), #fff 60%); border: 1px solid #e8eef9; }
@media (max-width: 759px) {
  .shot-wrap { padding: 22px 0 0; background: linear-gradient(180deg, var(--brand-50), #fff); border-radius: 24px; overflow: hidden; }
  .shot { width: min(280px, 76vw); margin: 0 auto; padding: 8px 8px 0; border-radius: 36px 36px 0 0; background: #0b1220; border: 0; box-shadow: 0 24px 48px -24px rgba(10, 22, 51, 0.5); }
  .shot img { aspect-ratio: 390 / 600; border-radius: 28px 28px 0 0; object-position: top; background: #fff; }
}
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .feature.flip { grid-template-columns: 1.25fr 1fr; }
  .feature.flip .copy { order: 2; }
  .feature + .feature { margin-top: 120px; }
  .shot-wrap { padding: 28px; }
}

/* module grid */
.mods { margin-top: 44px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .mods { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mods { grid-template-columns: repeat(4, 1fr); } }
.mod { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.mod:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.mod .n { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); }
.mod .n svg { width: 22px; height: 22px; }
.mod h4 { margin-top: 16px; font-size: 17px; letter-spacing: -0.015em; }
.mod p { margin-top: 6px; font-size: 15px; color: var(--ink-3); line-height: 1.55; }

/* roles */
.roles { margin: 40px -20px 0; padding: 0 20px 8px; display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.roles::-webkit-scrollbar { display: none; }
.role { scroll-snap-align: start; }
@media (min-width: 700px) { .roles { margin: 44px 0 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .roles { grid-template-columns: repeat(5, 1fr); } }
.role { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.role .tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-600); background: var(--brand-50); padding: 4px 10px; border-radius: 99px; }
.role h4 { margin-top: 14px; font-size: 17px; }
.role p { margin-top: 6px; font-size: 15px; color: var(--ink-3); line-height: 1.55; }

/* security (dark) */
.dark { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; position: relative; overflow: hidden; }
.dark::before { content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(31, 95, 214, 0.35), transparent); pointer-events: none; }
.dark .wrap { position: relative; }
.dark .kicker { color: var(--brand-300); }
.dark .sub { color: rgba(255, 255, 255, 0.7); }
.sec { margin-top: 44px; display: grid; gap: 14px; }
@media (min-width: 640px) { .sec { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sec { grid-template-columns: repeat(3, 1fr); } }
.sec li { border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.035); border-radius: var(--r); padding: 22px; }
.sec .n { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(90, 142, 236, 0.16); color: #a9c6fa; }
.sec .n svg { width: 22px; height: 22px; }
.sec h4 { margin-top: 16px; font-size: 17px; }
.sec p { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, 0.66); line-height: 1.55; }

/* devices */
.devices { margin-top: 44px; display: grid; gap: 14px; }
@media (min-width: 800px) { .devices { grid-template-columns: repeat(3, 1fr); } }
.device { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; }
.device .n { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.device .n svg { width: 22px; height: 22px; }
.device h4 { margin-top: 16px; font-size: 18px; }
.device p { margin-top: 6px; font-size: 15px; color: var(--ink-3); }

/* steps */
.steps { margin-top: 44px; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 24px; }
.steps li::before {
  counter-increment: s; content: '0' counter(s); display: block; font-size: 14px; font-weight: 700; color: var(--brand-500); letter-spacing: 0.04em;
}
.steps h4 { margin-top: 10px; font-size: 18px; }
.steps p { margin-top: 6px; color: var(--ink-3); font-size: 15px; }

/* faq */
.faq { margin: 40px auto 0; max-width: 820px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 99px; background: var(--soft) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }

/* final cta */
.final {
  position: relative; overflow: hidden; border-radius: 28px; padding: 48px 22px; text-align: center; color: #fff;
  background: radial-gradient(70% 90% at 80% 0%, rgba(90, 142, 236, 0.5), transparent 60%), linear-gradient(135deg, var(--brand-600), var(--navy));
}
.final h2 { font-size: clamp(28px, 6vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.final p { margin: 14px auto 0; max-width: 560px; color: rgba(255, 255, 255, 0.78); font-size: 17.5px; }
.final .hero-cta { margin-top: 28px; }
@media (min-width: 860px) { .final { padding: 72px 40px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--ink-3); }
.foot { display: grid; gap: 32px; }
.foot .brand { color: var(--ink); }
.foot p { margin-top: 12px; max-width: 320px; line-height: 1.6; }
.foot h5 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--ink-3); }
.foot a:hover { color: var(--brand-500); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.copy-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
@media (min-width: 860px) { .foot { grid-template-columns: 1.4fr 2fr; } .cols { grid-template-columns: repeat(3, 1fr); } }

/* mobile sticky demo bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.mbar .btn { width: 100%; min-height: 50px; }
@supports (animation-timeline: scroll()) {
  .mbar { animation: mbar-in linear both; animation-timeline: scroll(root); animation-range: 0 520px; }
  @keyframes mbar-in { 0%, 80% { transform: translateY(110%); opacity: 0; } 100% { transform: none; opacity: 1; } }
}
body.has-mbar { padding-bottom: 76px; }
@media (min-width: 760px) { .mbar { display: none; } body.has-mbar { padding-bottom: 0; } }

/* legal pages */
.legal-head { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; margin-top: -64px; padding: 120px 0 48px; }
.legal-head h1 { font-size: clamp(32px, 7vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.legal-head p { margin-top: 10px; color: rgba(255, 255, 255, 0.66); }
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h2 { margin: 40px 0 12px; font-size: 21px; letter-spacing: -0.015em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 8px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--brand-400); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* phones: icon beside the text keeps the long card lists short */
@media (max-width: 599px) {
  .mod, .sec li, .device { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .mod .n, .sec .n, .device .n { grid-row: span 2; width: 42px; height: 42px; }
  .mod h4, .sec h4, .device h4 { margin-top: 0; }
  .mod p, .sec p, .device p { grid-column: 2; }
  .mods, .sec, .devices { gap: 10px; }
}

/* utility classes (no inline styles: the CSP has no 'unsafe-inline') */
.sprite { position: absolute; }
section.pt0 { padding-top: 0; }
.wrap.narrow { max-width: 800px; }
.copy-line.flat { margin-top: 0; border-top: 0; padding-top: 0; }
.legal-head.tall { padding-bottom: 96px; }
.hero-cta.left { justify-content: flex-start; margin-left: 0; }
