/* ShieldAtom website styles. Colours are set once here, for light and dark. */
:root {
  --bg: #ffffff; --bg-soft: #f5f8ff; --card: #ffffff;
  --ink: #0f1b3d; --ink-2: #33415f; --muted: #51607a; --line: #dce4f5;
  --brand: #1f4fd8; --brand-ink: #163ba6; --btn: #1f4fd8; --btn-hover: #163ba6;
  --hero-a: #0b1f6b; --hero-b: #1239d6; --hero-c: #0b74b8;
  --footer: #0b1436; --shadow: 0 8px 28px rgba(15, 27, 61, 0.07);
  --accent: #1f4fd8; --accent-soft: #eef3ff;
  --gold: #8a5a00; --gold-soft: #fff1cf;
  --radius: 20px;
  color-scheme: light;
}
.accent-cyan { --accent: #0a6fa8; --accent-soft: #e6f4fd; }
.accent-amber { --accent: #8a5a00; --accent-soft: #fff1cf; }
.accent-green { --accent: #0b6b5e; --accent-soft: #e4f5f1; }
.accent-violet { --accent: #5b3fc4; --accent-soft: #eee9ff; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070c1d; --bg-soft: #0b1330; --card: #0e1630;
    --ink: #eaf0ff; --ink-2: #c5d0ec; --muted: #a3b0d0; --line: #22305a;
    --brand: #8eabff; --brand-ink: #b4c7ff; --btn: #2c5be6; --btn-hover: #4a74f0;
    --hero-a: #060d33; --hero-b: #0d2a9e; --hero-c: #085a8f;
    --footer: #050916; --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    --accent: #8eabff; --accent-soft: #16214a;
    --gold: #f5b84a; --gold-soft: #3a2a08;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .accent-cyan { --accent: #5cc8f5; --accent-soft: #0f2a44; }
  :root:not([data-theme="light"]) .accent-amber { --accent: #f5b84a; --accent-soft: #3a2a08; }
  :root:not([data-theme="light"]) .accent-green { --accent: #5eead4; --accent-soft: #0c2f2b; }
  :root:not([data-theme="light"]) .accent-violet { --accent: #b6a4ff; --accent-soft: #241b4a; }
}
:root[data-theme="dark"] {
  --bg: #070c1d; --bg-soft: #0b1330; --card: #0e1630;
  --ink: #eaf0ff; --ink-2: #c5d0ec; --muted: #a3b0d0; --line: #22305a;
  --brand: #8eabff; --brand-ink: #b4c7ff; --btn: #2c5be6; --btn-hover: #4a74f0;
  --hero-a: #060d33; --hero-b: #0d2a9e; --hero-c: #085a8f;
  --footer: #050916; --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --accent: #8eabff; --accent-soft: #16214a;
  --gold: #f5b84a; --gold-soft: #3a2a08;
  color-scheme: dark;
}
:root[data-theme="dark"] .accent-cyan { --accent: #5cc8f5; --accent-soft: #0f2a44; }
:root[data-theme="dark"] .accent-amber { --accent: #f5b84a; --accent-soft: #3a2a08; }
:root[data-theme="dark"] .accent-green { --accent: #5eead4; --accent-soft: #0c2f2b; }
:root[data-theme="dark"] .accent-violet { --accent: #b6a4ff; --accent-soft: #241b4a; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.icon { width: 22px; height: 22px; flex: none; }
.icon.lg { width: 34px; height: 34px; color: var(--brand); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.fine { font-size: 13.5px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); color: #fff; }
.btn-white { background: #fff; color: #0f2a8a; }
.btn-white:hover { color: #0b1f6b; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--brand); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }
.text-link .icon { width: 18px; height: 18px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { color: var(--brand); background: var(--accent-soft); }
.theme-toggle, .nav-toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; }
.theme-toggle { margin: 0 6px; }
.nav-toggle { display: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* hero */
.hero { background: linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%); color: #fff; overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding-top: 72px; }
.hero-copy { flex: 1 1 440px; padding-bottom: 80px; }
.eyebrow { display: inline-block; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; }
.lead { margin-top: 20px; font-size: 19px; color: #dce6ff; max-width: 540px; }
.hero-note { margin-top: 16px; font-size: 14.5px; color: #dce6ff; max-width: 480px; }
.hero-visual { flex: 1 1 440px; display: flex; align-items: flex-end; justify-content: center; gap: 20px; min-width: 0; }
.hero-visual .phone { margin-bottom: -40px; }
.hero-visual .dash { border-radius: 16px 16px 0 0; flex: 1 1 260px; max-width: 330px; }
.hero-visual.single .dash { max-width: 460px; }
.hero-visual.single .phone { width: 270px; }

/* phone frame with rotating screens */
.phone { position: relative; width: 224px; flex: none; aspect-ratio: 1080 / 1960; border: 8px solid #0a1230; border-radius: 34px; overflow: hidden; background: #fbf8ff; box-shadow: 0 24px 60px rgba(5, 14, 56, 0.35); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.7s ease; }
.phone img.is-active { opacity: 1; }
.phone.static { width: 260px; aspect-ratio: auto; box-shadow: var(--shadow); }
.phone.static img { position: static; display: block; height: auto; opacity: 1; }

/* ERP dashboard mock */
.dash { background: #fff; color: #0f1b3d; border-radius: 16px; padding: 18px 18px 0; box-shadow: 0 20px 50px rgba(5, 14, 56, 0.35); }
.dash-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.dash .pill { color: #51607a; border-color: #d7dfef; }
.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tile { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.tile span { font-size: 11.5px; color: #51607a; }
.tile b { font-size: 18px; }
.t-blue { background: #eef3ff; } .t-blue b { color: #1f4fd8; }
.t-navy { background: #eef3ff; }
.t-amber { background: #fff4dd; } .t-amber b { color: #8a5a00; }
.t-teal { background: #e4f5f1; } .t-teal b { color: #0b6b5e; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin-top: 16px; }
.dash-bars i { flex: 1; background: #c9d8fb; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 0.9s ease both; }
.dash-bars i.now { background: #f5a623; }
@keyframes grow { from { transform: scaleY(0.1); } to { transform: scaleY(1); } }

/* sections */
.section { padding: 88px 0; }
.section.alt, .band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* home: app cards */
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.app-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.app-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.app-card > p { margin-top: 20px; color: var(--ink-2); }
.app-card .actions { margin-top: auto; padding-top: 28px; }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id h3, .app-id h2 { font-size: 26px; }
.app-id span { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.app-id.on-dark { margin-bottom: 22px; }
.app-id.on-dark strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 22px; }
.app-id.on-dark span { color: #dce6ff; }
.app-logo { border-radius: 24%; flex: none; display: block; }
.app-logo.tile { display: inline-flex; align-items: center; justify-content: center; background: #eef3ff; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); stroke-width: 2.6; }
.soon { margin-top: 28px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.soon h3 { font-size: 21px; }
.soon p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.values h3 { margin-top: 14px; font-size: 21px; }
.values p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* app page */
.facts { border-bottom: 1px solid var(--line); background: var(--bg); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.facts-grid b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 28px; color: var(--accent); }
.facts-grid span { font-size: 14.5px; color: var(--muted); }
.subnav { position: sticky; top: 69px; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.subnav a { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-radius: 999px; }
.subnav a:hover, .subnav a.is-current { background: var(--accent-soft); color: var(--accent); }
.group-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.group-grid.flip { flex-direction: row-reverse; }
.group-main { flex: 999 1 520px; min-width: 0; }
.group-image { flex: 1 1 260px; display: flex; justify-content: center; position: sticky; top: 150px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.feature { display: flex; gap: 16px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 20px; }
.feature-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.feature h3 { font-family: Inter, system-ui, sans-serif; font-size: 16.5px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.feature p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.plan-tag { display: inline-block; vertical-align: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.plan-tag.gold { background: var(--gold-soft); color: var(--gold); }

/* plans */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.plans.cols-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 26px 22px; display: flex; flex-direction: column; }
.plan.highlight { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -13px; left: 20px; background: var(--btn); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 21px; }
.price { margin-top: 12px; }
.price b { font-family: "Space Grotesk", sans-serif; font-size: 34px; }
.price span { color: var(--muted); font-size: 14px; }
.later { font-size: 13.5px; color: var(--muted); min-height: 21px; }
.plan-for { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); min-height: 66px; }
.plan .ticks { font-size: 14.5px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.plans + .fine { margin-top: 22px; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.pricing-head { margin-bottom: 32px; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* videos */
.video-feature { max-width: 900px; margin: 0 auto 20px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.video-card[hidden] { display: none; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: linear-gradient(120deg, #0b1f6b 0%, #1239d6 58%, #0b74b8 100%); overflow: hidden; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 999px; background: #fff; color: #1239d6; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease; }
.video .play .icon { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.video-meta { padding: 18px 20px 20px; }
.video-meta h3 { font-size: 19px; }
.video-meta p { margin: 6px 0 10px; color: var(--muted); font-size: 14.5px; }
.soon-card { border-style: dashed; border-width: 2px; display: flex; align-items: center; padding: 28px; min-height: 180px; }
.soon-card h3 { font-size: 19px; }
.soon-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip-btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.chip-btn.is-on { background: var(--btn); border-color: var(--btn); color: #fff; }

/* page heads, bands */
.page-head { background: linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%); color: #fff; padding: 64px 0; }
.page-head.tall { padding: 120px 0; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); }
.page-head p { margin-top: 12px; color: #dce6ff; font-size: 18px; }
.cta-band { background: linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%); color: #fff; text-align: center; padding: 80px 0; }
.cta-band h2 { font-size: clamp(28px, 3vw, 38px); }
.cta-band p { margin: 12px auto 0; color: #dce6ff; font-size: 17px; max-width: 560px; }

/* topic pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; margin-bottom: 14px; }
.crumbs a { color: #dce6ff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #dce6ff; }
.topic-head p { max-width: 720px; }
.topic-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.topic-link { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px 52px 22px 22px; color: var(--ink); transition: border-color 0.2s ease, transform 0.2s ease; }
.topic-link:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.topic-link strong { font-size: 17px; }
.topic-link span { font-size: 14.5px; color: var(--muted); }
.topic-link .icon { position: absolute; right: 20px; top: 24px; color: var(--accent); }
.prose p { font-size: 17.5px; margin-bottom: 16px; }

/* contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.contact-cards { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px; color: var(--ink); }
a.contact-card:hover { border-color: var(--brand); color: var(--ink); }
.contact-card h2 { font-size: 19px; }
.contact-card p { color: var(--muted); font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
.contact-form { flex: 2 1 420px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 30px; box-shadow: var(--shadow); min-width: 0; }
.contact-form h2 { font-size: 24px; margin-bottom: 8px; }
.contact-form label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 14.5px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.contact-form .fine { margin-top: 16px; }

/* legal */
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* footer */
.site-footer { background: var(--footer); color: #c8d3f0; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 56px; padding-bottom: 36px; }
.site-footer .brand { color: #fff; font-size: 20px; }
.foot-brand p { margin-top: 12px; max-width: 320px; }
.site-footer .fine { color: #a9b6d6; }
.site-footer h2 { font-family: Inter, sans-serif; font-size: 14.5px; font-weight: 600; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.site-footer .foot a { display: block; color: #c8d3f0; padding: 5px 0; overflow-wrap: anywhere; }
.site-footer .foot a:hover { color: #fff; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; padding-bottom: 28px; color: #a9b6d6; font-size: 13.5px; }

/* scroll reveal: only hides things when the script is running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* phones and small tablets */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 24px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 13px 12px; font-size: 16px; }
  .theme-toggle { margin: 6px 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .group-image { position: static; }
  .section { padding: 64px 0; }
  .hero-grid { padding-top: 48px; gap: 32px; }
  .hero-copy { padding-bottom: 24px; }
  .plan-for { min-height: 0; }
}
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-visual { flex-direction: column; align-items: center; }
  .hero-visual .dash { max-width: 100%; width: 100%; flex: none; order: -1; border-radius: 16px; padding-bottom: 0; }
  .hero-visual .phone { margin-bottom: -60px; }
  .actions .btn { flex: 1 1 100%; }
  .app-card, .contact-form { padding: 24px 20px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .nav { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dash-bars i { animation: none; }
  .btn, .app-card, .phone img { transition: none; }
}
