/* DigiContractor website styles
   Brand: purple #6750A4 (from the app icon) + safety amber accent.
   Plain CSS, no build step. */

:root {
  --brand: #6750a4;
  --brand-600: #5b4696;
  --brand-700: #4a3a78;
  --brand-900: #2a2146;
  --ink: #1c1a24;
  --text: #3f3a4d;
  --muted: #645d72;
  --line: #e5e0ee;
  --line-strong: #cfc6e6;
  --mist: #f7f5fb;
  --lav: #efeaf9;
  --paper: #ffffff;
  --amber: #f6a609;
  --amber-600: #e09600;
  --amber-soft: #fff4d9;
  --amber-ink: #7a4b00;
  --good: #2e7d32;
  --good-soft: #e8f5e9;
  --bad: #c62828;
  --bad-soft: #fdecea;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(28, 26, 36, 0.05);
  --shadow: 0 1px 2px rgba(28, 26, 36, 0.04), 0 14px 30px -18px rgba(74, 58, 120, 0.28);
  --shadow-lg: 0 30px 60px -28px rgba(28, 20, 60, 0.55);

  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: 24px;
  --section: 88px;
  --ring: var(--brand);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 12px; }
.icon { width: 22px; height: 22px; flex: none; }

/* Dark surfaces use an amber focus ring so it stays visible. */
.hero, .page-hero, .trust, .cta-box, .site-footer { --ring: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem; line-height: 1.2;
  border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { border-radius: 12px; }
.btn .icon { width: 18px; height: 18px; }
.btn-accent { background: var(--amber); color: var(--ink); box-shadow: 0 10px 20px -12px rgba(246, 166, 9, 0.95); }
.btn-accent:hover { background: var(--amber-600); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -14px rgba(74, 58, 120, 0.9); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: var(--paper); color: var(--brand-700); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); background: var(--lav); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 10px; }
.btn-sm:focus-visible { border-radius: 10px; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.3;
  padding: 7px 13px; border-radius: 999px;
  background: var(--lav); color: var(--brand-700);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.pill-light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
.pill-amber { background: var(--amber-soft); color: var(--amber-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 10px 28px -18px rgba(28, 20, 60, 0.45); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(74, 58, 120, 0.6); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 24px; flex: 1; }
.nav a {
  color: var(--text); font-size: 0.92rem; font-weight: 500; line-height: 1.2;
  padding: 10px; border-radius: 10px; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.nav a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--lav); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.link-login {
  font-size: 0.92rem; font-weight: 600; line-height: 1.2; color: var(--brand-700);
  padding: 10px; border-radius: 10px; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.link-login:hover { background: var(--lav); text-decoration: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px;
  cursor: pointer; color: var(--ink);
  transition: background-color 0.15s, border-color 0.15s;
}
.nav-toggle:hover { background: var(--lav); border-color: var(--brand); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1239.98px) {
  .site-header .wrap { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav, .header-actions { display: none; }
  .site-header.open { box-shadow: 0 24px 40px -24px rgba(28, 20, 60, 0.5); }
  .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 20px; max-height: 100dvh; overflow-y: auto; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    order: 3; flex-basis: 100%; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line);
  }
  .site-header.open .nav a { padding: 14px 12px; font-size: 1rem; }
  .site-header.open .header-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    order: 4; flex-basis: 100%; padding-top: 16px; border-top: 1px solid var(--line);
  }
  .site-header.open .link-login {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    border: 1px solid var(--line-strong); border-radius: 12px; font-size: 0.97rem;
  }
  .site-header.open .header-actions .btn { min-height: 48px; font-size: 0.97rem; border-radius: 12px; }
}
@media (max-width: 400px) {
  .site-header.open .header-actions { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(246, 166, 9, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(139, 116, 204, 0.5), transparent 65%),
    linear-gradient(140deg, #251c40 0%, #3e3068 45%, #6750a4 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hazard {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--ink) 12px 24px);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px;
  align-items: center; padding-block: 76px 84px;
}
.hero h1 { color: #fff; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: 1.125rem; line-height: 1.6; color: rgba(255, 255, 255, 0.88); max-width: 33em; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: grid; gap: 10px; margin-top: 30px; padding-top: 22px; max-width: 30em;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem; line-height: 1.45; color: rgba(255, 255, 255, 0.84);
}
.hero-facts li { display: flex; align-items: flex-start; gap: 10px; }
.hero-facts .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--amber); }
.hero-crane { position: absolute; right: -40px; bottom: -6px; width: 520px; opacity: 0.09; pointer-events: none; color: #fff; }
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.hero-device { position: relative; width: 268px; max-width: 100%; }
.float-card {
  position: absolute; right: calc(100% - 30px); bottom: 96px; z-index: 2;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-lg); font-size: 0.82rem; line-height: 1.35;
}
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--good-soft); color: var(--good); display: grid; place-items: center; flex: none; }
.float-card .ico .icon { width: 18px; height: 18px; }
.float-card b { display: block; font-size: 0.9rem; }
.float-card span { color: var(--muted); }
@media (max-width: 1099.98px) { .float-card { display: none; } }

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 52px 60px; gap: 44px; }
  .hero-crane { width: 360px; right: -80px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #251c40 0%, #43346f 55%, #6750a4 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-hero .wrap { position: relative; padding-block: 68px 64px; max-width: 900px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.14; letter-spacing: -0.025em; margin: 18px 0 14px; }
.page-hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; line-height: 1.6; max-width: 38em; margin-inline: auto; margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; line-height: 1.6; margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.3;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.section-foot { text-align: center; margin-top: 40px; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; border-radius: 8px; }
.text-link .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lav); color: var(--brand); margin-bottom: 18px;
}
.card .ico.amber { background: var(--amber-soft); color: var(--amber-ink); }
.card ul.ticks, .card ul.dashes { margin-top: 14px; }
.card .card-link { margin-top: 14px; }
.card.stack { display: flex; flex-direction: column; }
.card.stack .card-link { margin-top: auto; padding-top: 14px; }

ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
ul.ticks li:last-child, ul.dashes li:last-child { margin-bottom: 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
ul.dashes li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 0.95rem; line-height: 1.55; }
ul.dashes li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 2px; background: var(--amber-600); border-radius: 2px; }

/* Feature groups (features page) */
.feature-group + .feature-group { margin-top: 68px; }
.feature-group > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; text-wrap: wrap; }
.feature-group > h2 .num { font-size: 0.78rem; font-family: var(--font-body); font-weight: 700; color: var(--amber-ink); background: var(--amber-soft); border-radius: 8px; padding: 4px 9px; letter-spacing: 0.04em; flex: none; }
.feature-group > p { color: var(--muted); max-width: 46em; margin-bottom: 26px; }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.narrow-right { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split .eyebrow + h2 { margin-bottom: 14px; }
.split > div > p { color: var(--muted); font-size: 1.04rem; }
.split ul.ticks { margin-top: 20px; }
@media (max-width: 900px) { .split, .split.narrow-right { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 24px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 18px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.timeline { max-width: 820px; margin: 0 auto; counter-reset: tl; }
.timeline .tl { position: relative; padding: 0 0 36px 68px; }
.timeline .tl::before {
  counter-increment: tl; content: counter(tl);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
.timeline .tl::after { content: ""; position: absolute; left: 21px; top: 54px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl:last-child::after { display: none; }
.timeline h3 { font-size: 1.18rem; margin: 6px 0 6px; }
.timeline p { color: var(--muted); margin-bottom: 12px; }
.timeline .who { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-ink); background: var(--amber-soft); padding: 3px 8px; border-radius: 6px; }

/* ---------- Phone preview mockups (illustrative, never real screenshots) ---------- */
.phones { display: flex; justify-content: center; align-items: stretch; gap: 32px; flex-wrap: wrap; }
.phone-fig { margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.phone-fig figcaption { margin-top: 16px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.phone-fig figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.phone {
  position: relative; width: 268px; flex: 1 0 auto; display: flex; text-align: left;
  border-radius: 38px; padding: 10px; background: #15121d;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b2639;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 64px; height: 6px; border-radius: 6px; background: #2b2639; z-index: 2; }
.phone .screen { flex: 1; min-width: 0; border-radius: 29px; overflow: hidden; background: var(--mist); font-size: 12px; line-height: 1.4; color: var(--ink); display: flex; flex-direction: column; }
.phone img.shot { width: 100%; height: auto; border-radius: 29px; display: block; }
.preview-tag {
  position: absolute; top: -10px; right: -10px; z-index: 3;
  background: var(--amber); color: var(--ink); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.preview-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin: 28px 0 0; }
.hero .preview-note { color: rgba(255, 255, 255, 0.72); margin-top: 18px; }

.m-top { background: linear-gradient(150deg, #4a3a78, #6750a4); color: #fff; padding: 34px 16px 16px; }
.m-top small { opacity: 0.85; font-size: 10.5px; display: block; }
.m-top b { font-family: var(--font-display); font-size: 15px; color: #fff; }
.m-body { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.m-chips { display: flex; gap: 6px; }
.m-chip { font-size: 10.5px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.m-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; }
.m-stat b { display: block; font-family: var(--font-display); font-size: 17px; }
.m-stat span { font-size: 9.5px; color: var(--muted); }
.m-stat.good b { color: var(--good); }
.m-stat.bad b { color: var(--bad); }
.m-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.m-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.m-ava { width: 26px; height: 26px; border-radius: 8px; background: var(--lav); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: 10.5px; flex: none; }
.m-row .grow { flex: 1; min-width: 0; }
.m-row b { display: block; font-size: 11.5px; }
.m-row small { color: var(--muted); font-size: 9.5px; }
.m-tag { font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex: none; }
.m-tag.p { background: var(--good-soft); color: var(--good); }
.m-tag.a { background: var(--bad-soft); color: var(--bad); }
.m-cam {
  position: relative; border-radius: 14px; height: 208px; overflow: hidden;
  background: linear-gradient(180deg, #cfc6e6 0%, #b9aedb 55%, #8f81bf 100%);
}
.m-cam .head { position: absolute; border-radius: 50% 50% 46% 46%; background: #6f629c; }
.m-cam .head::after { content: ""; position: absolute; left: 50%; top: 96%; transform: translateX(-50%); width: 190%; height: 120%; border-radius: 40% 40% 0 0; background: #6f629c; }
.m-cam .box { position: absolute; border: 2px solid var(--amber); border-radius: 8px; }
.m-cam .box i { position: absolute; left: -2px; bottom: -17px; font-style: normal; font-size: 8.5px; font-weight: 700; background: var(--amber); color: var(--ink); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.m-btn { background: var(--brand); color: #fff; text-align: center; font-weight: 600; font-size: 11.5px; border-radius: 10px; padding: 10px; }
.m-btn.ghost { background: #fff; color: var(--brand-700); border: 1px solid var(--line); }
.m-cal { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.m-cal .dow, .m-cal .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.m-cal .dow span { font-size: 8.5px; color: var(--muted); font-weight: 600; }
.m-cal .days { margin-top: 6px; }
.m-cal .days span { font-size: 9.5px; font-weight: 600; border-radius: 6px; padding: 5px 0; background: var(--mist); color: var(--muted); }
.m-cal .days .p { background: var(--good-soft); color: var(--good); }
.m-cal .days .a { background: var(--bad-soft); color: var(--bad); }
.m-cal .days .o { background: var(--amber-soft); color: var(--amber-ink); }
.m-cal .days .e { background: transparent; }
.m-legend { display: flex; gap: 10px; font-size: 9.5px; color: var(--muted); }
.m-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 4px; }
.m-sheet { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.m-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 11px; }
.m-line:last-child { border-bottom: 0; }
.m-line span { color: var(--muted); }
.m-line.total { font-weight: 700; font-size: 12.5px; border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 2px; padding-top: 9px; }
.m-line.total span { color: var(--ink); }
.m-line .neg { color: var(--bad); }
.m-line .pos { color: var(--good); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px 28px; box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan.featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--brand); }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan .tagline { color: var(--muted); font-size: 0.93rem; line-height: 1.55; min-height: 3.1em; margin-bottom: 18px; }
.plan .price { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.2; }
.plan .price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price.tba {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; letter-spacing: 0; line-height: 1.3;
  color: var(--brand-700); background: var(--lav); border-radius: 999px; padding: 7px 14px 7px 11px;
}
.plan .price.tba .icon { width: 16px; height: 16px; }
.plan .price-sub { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.plan .price-sub:empty { display: none; }
.plan-list { margin: 22px 0 26px; border-bottom: 1px solid var(--line); }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.97rem; line-height: 1.4; color: var(--text); }
.plan-list .icon { width: 20px; height: 20px; color: var(--brand); }
.plan .btn { margin-top: auto; }
.plans > noscript, .plans > p { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.plans-note { text-align: center; color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin: 28px auto 0; max-width: 46em; }
@media (max-width: 940px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; } .plan .tagline { min-height: 0; } }

.trial-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--lav); border: 1px solid #dcd3f0; border-radius: var(--r-lg); padding: 26px 30px; margin-bottom: 36px; }
.trial-band .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--brand-700); line-height: 1; text-align: center; padding-right: 28px; border-right: 1px solid #d3c8ec; }
.trial-band .big small { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-top: 6px; }
.trial-band h3 { font-size: 1.15rem; margin-bottom: 6px; }
.trial-band p { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 860px) {
  .trial-band { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; }
  .trial-band .big { text-align: left; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid #d3c8ec; }
  .trial-band .big small { display: inline; margin-left: 8px; }
}

/* ---------- Trust ---------- */
.trust { background: linear-gradient(140deg, #1f1836 0%, #33275a 100%); color: rgba(255, 255, 255, 0.86); }
.trust h2, .trust h3 { color: #fff; }
.trust .eyebrow { color: var(--amber); }
.trust .section-head p { color: rgba(255, 255, 255, 0.76); }
.trust .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.trust .card p { color: rgba(255, 255, 255, 0.76); }
.trust .card .ico { background: rgba(246, 166, 9, 0.16); color: var(--amber); }
.trust .fine { text-align: center; font-size: 0.88rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); margin: 36px auto 0; max-width: 48em; }
.trust .fine a { color: #fff; text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--mist); border-top: 1px solid var(--line); padding-block: 72px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; text-align: center;
  padding: 60px 28px; background: linear-gradient(135deg, #43346f 0%, #6750a4 75%, #7861b8 100%);
  box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; margin: 18px 0 12px; }
.cta-box p { color: rgba(255, 255, 255, 0.88); font-size: 1.04rem; max-width: 38em; margin-inline: auto; margin-bottom: 0; }
.cta-box .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { font-size: 1.25rem; margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.faq h2:first-child { margin-top: 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; border-radius: var(--r);
  font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.4; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--text); font-size: 0.97rem; line-height: 1.65; max-width: 62ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--lav); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-card h3 { margin-bottom: 4px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
.contact-status { margin: 22px 0 0; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); scroll-margin-top: 96px; }
.form h2 { font-size: 1.4rem; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 0.97rem; color: var(--ink); background: var(--mist);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 13px;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236750a4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 3px rgba(103, 80, 164, 0.25); }
.form .btn { margin-top: 6px; }
.form-note { font-size: 0.84rem; line-height: 1.55; color: var(--muted); margin: 16px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.form-note .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }
.form-note.done { background: var(--good-soft); color: #1e5a22; border-radius: var(--r-sm); padding: 12px 14px; }
.form-note.done .icon { color: var(--good); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 44px 0 12px; scroll-margin-top: 96px; }
.legal h2 .sec { color: var(--brand); margin-right: 6px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal .meta { color: var(--muted); font-size: 0.9rem; }
.notice { border: 1px solid #f0d28a; background: var(--amber-soft); color: var(--amber-ink); border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.93rem; line-height: 1.55; margin-bottom: 24px; }
.notice b { color: #5b3800; }
.toc { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin: 24px 0 8px; }
.toc b { font-family: var(--font-display); color: var(--ink); }
.toc ol { margin: 12px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 0.93rem; }
.toc li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- Good-to-know list ---------- */
.know { border: 1px solid var(--line-strong); background: var(--paper); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.know h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.know h3 .icon { color: var(--amber-600); }
.know p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #15121d; color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; line-height: 1.6; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 64px 48px; }
.site-footer .logo { color: #fff; }
.footer-brand p { max-width: 30em; margin: 16px 0 18px; }
.footer-brand .footer-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.footer-brand .footer-mail .icon { width: 18px; height: 18px; color: var(--amber); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer a { color: rgba(255, 255, 255, 0.8); transition: color 0.15s; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom {
  position: relative; padding-block: 22px 28px;
  display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.62);
}
.site-footer .bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, 0.12); }
@media (max-width: 900px) {
  .site-footer .top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; padding-block: 52px 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-block: 44px 32px; }
  .site-footer li a { padding: 8px 0; }
  .site-footer .bottom { flex-direction: column; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound .code { font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: var(--brand); line-height: 1; }
.notfound p { color: var(--muted); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 760px) {
  :root { --section: 60px; }
  .section-head { margin-bottom: 36px; }
  .section-foot { margin-top: 32px; }
  .page-hero .wrap { padding-block: 52px 48px; }
  .page-hero p { font-size: 1.02rem; }
  .cta-band { padding-block: 52px; }
  .cta-box { padding: 44px 22px; }
  .feature-group + .feature-group { margin-top: 52px; }
  .toc ol { columns: 1; }
  .form { padding: 24px 20px; }
  .know { padding: 22px 20px; }
  .plan { padding: 26px 22px 22px; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }

  /* Compact cards: icon beside the text, so long card lists stay scannable. */
  .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .card .ico { grid-row: 1 / span 6; width: 42px; height: 42px; margin: 0; }
  .card > :not(.ico) { grid-column: 2; }
  .card h3 { margin: 2px 0 6px; }
  .card.stack { display: grid; }
  .card.stack .card-link { margin-top: 0; }

  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .step::before { grid-row: 1 / span 2; margin: 0; }
  .step h3 { margin: 2px 0 6px; }
  .step > * { grid-column: 2; }

  .timeline .tl { padding-left: 58px; }
  .timeline .tl::before { width: 40px; height: 40px; border-radius: 12px; }
  .timeline .tl::after { left: 19px; top: 50px; }

  /* Preview phones become a swipeable row instead of a very tall stack. */
  .phones {
    flex-wrap: nowrap; justify-content: flex-start; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding: 16px var(--gutter) 14px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .phones > .phone-fig { flex: none; scroll-snap-align: center; }
  .phones > .phone-fig:only-child { margin-inline: auto; }
  .hero h1 { margin: 18px 0 16px; }
  .hero .lead { font-size: 1.06rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cta-box .hero-cta .btn { flex: 0 1 auto; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; }
  .cta-box .hero-cta { align-items: stretch; }
  .faq summary { padding: 16px 48px 16px 18px; font-size: 0.97rem; }
  .faq summary::after { right: 20px; }
  .faq .answer { padding: 0 18px 18px; }
  .contact-card { padding: 18px; gap: 14px; }
  .notfound .code { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover { transform: none; }
}
