/* Public home page ------------------------------------------------------------- */
.home {
  --home-brand: #3154f5;
  --home-brand-dark: #2440c8;
  --home-ink: #172033;
  --home-muted: #5b6678;
  --home-line: #e3e7ef;
  --home-soft: #f6f7fb;
  --home-navy: #0f1b3d;
  color: var(--home-ink);
  background: #fff;
  scroll-behavior: smooth;
}
.home * { scroll-margin-top: 5rem; }
.home-wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }

.home-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--home-line); background: rgba(255, 255, 255, .95); }
.home-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.home-brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; font-size: 1.0625rem; font-weight: 700; text-decoration: none; }
.home-brand img { width: 2rem; height: 2rem; }
.home-nav { display: flex; gap: 2rem; margin-right: auto; margin-left: 1.5rem; }
.home-nav a { color: var(--home-muted); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.home-nav a:hover { color: var(--home-ink); }
.home-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 1.25rem; white-space: nowrap; }
.home-signin { color: var(--home-ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.home-signin:hover { color: var(--home-brand); }

.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: .6rem 1.25rem; border: 1px solid transparent; border-radius: .5rem; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.home-button-primary { background: var(--home-brand); color: #fff; }
.home-button-primary:hover { background: var(--home-brand-dark); }
.home-button-secondary { border-color: #cfd6e3; background: #fff; color: var(--home-ink); }
.home-button-secondary:hover { background: var(--home-soft); }
.home-button-small { min-height: 2.5rem; padding: .4rem 1rem; }
.home a:focus-visible { outline: 3px solid rgba(49, 84, 245, .4); outline-offset: 2px; }

.home-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; background: linear-gradient(180deg, var(--home-soft) 0%, #fff 100%); text-align: center; }
.home-hero h1 { max-width: 15em; margin: 0 auto; font-size: clamp(2.25rem, 5.2vw, 3.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.home-lead { max-width: 39rem; margin: 1.25rem auto 0; color: var(--home-muted); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.6; }
.home-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.home-small { margin: .9rem 0 0; color: var(--home-muted); font-size: .875rem; }
.home-preview { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.home-preview-frame { overflow: hidden; border: 1px solid var(--home-line); border-radius: .85rem; box-shadow: 0 24px 60px rgba(15, 27, 61, .13); background: #fff; }
.home-preview-bar { display: flex; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--home-line); background: var(--home-soft); }
.home-preview-bar span { width: .6rem; height: .6rem; border-radius: 50%; background: #d3d9e4; }
.home-preview img { display: block; width: 100%; height: auto; }
.home-preview figcaption { margin-top: .85rem; color: var(--home-muted); font-size: .8125rem; }

.home-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.home-section-soft { background: var(--home-soft); }
.home-heading { max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.home-heading h2, .home-security h2, .home-final h2 { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.home-heading p { margin: .85rem 0 0; color: var(--home-muted); font-size: 1.0625rem; line-height: 1.6; }

.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.home-feature { padding: 1.5rem; border: 1px solid var(--home-line); border-radius: .75rem; background: #fff; }
.home-feature-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: #eef1ff; color: var(--home-brand); }
.home-feature-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.home-feature h3, .home-step h3 { margin: 1rem 0 .4rem; font-size: 1.0625rem; font-weight: 600; }
.home-feature p, .home-step p { margin: 0; color: var(--home-muted); font-size: .9375rem; line-height: 1.6; }

.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.home-step-number { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--home-brand); color: #fff; font-size: .9375rem; font-weight: 700; }

.home-security { background: var(--home-navy); color: #fff; }
.home-security-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.home-security p { margin: .85rem 0 0; color: #cdd6ea; font-size: 1.0625rem; line-height: 1.6; }
.home-security a { display: inline-block; margin-top: 1.25rem; color: #fff; font-weight: 600; }
.home-security ul { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.home-security li { display: flex; gap: .75rem; color: #cdd6ea; font-size: .9375rem; line-height: 1.6; }
.home-security li strong { display: block; color: #fff; font-size: 1rem; font-weight: 600; }
.home-security svg { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .2rem; fill: none; stroke: #8ea2ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }

.home-final { text-align: center; }
.home-final p { max-width: 34rem; margin: .85rem auto 0; color: var(--home-muted); font-size: 1.0625rem; line-height: 1.6; }

.home-footer { border-top: 1px solid var(--home-line); color: var(--home-muted); font-size: .875rem; }
.home-footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 2.5rem 0; }
.home-footer .home-brand { color: var(--home-ink); }
.home-footer p { margin: .6rem 0 0; }
.home-footer-links { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.home-footer h2 { margin: 0 0 .6rem; color: var(--home-ink); font-size: .875rem; font-weight: 600; }
.home-footer ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.home-footer a:not(.home-brand) { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.home-footer a:not(.home-brand):hover { color: var(--home-ink); text-decoration: underline; }

@media (max-width: 900px) {
  .home-nav { display: none; }
  .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-steps, .home-security-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .home-wrap { width: calc(100% - 2rem); }
  .home-features { grid-template-columns: minmax(0, 1fr); }
  .home-header-inner { gap: .75rem; }
  .home-brand { font-size: 1rem; }
  .home-actions { gap: .75rem; }
  .home-actions .home-button-small { padding-inline: .75rem; }
  .home-cta .home-button { width: 100%; }
  .home-footer-links { gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home { scroll-behavior: auto; }
}
