:root {
  --navy: #0b2340;
  --navy-mid: #1b3f66;
  --navy-deep: #061526;
  --brass: #c4a35a;
  --brass-light: #d8c08a;
  --sage: #3e5c4a;
  --bg: #eef2f6;
  --bg-warm: #f4f1ea;
  --surface: #f7f9fc;
  --ink: #0b1628;
  --muted: #5b6b7c;
  --line: #c5d0dc;
  --white: #ffffff;
  --radius: 1rem;
  --shadow: 0 24px 60px rgba(6, 21, 38, 0.18);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(238, 242, 246, 0.9);
  border-bottom: 1px solid rgba(197, 208, 220, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo img {
  border-radius: 0.55rem;
}

.site-nav {
  display: none;
  gap: 1.25rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 35, 64, 0.22);
}
.btn--primary:hover {
  background: var(--navy-mid);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--brass {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: var(--navy-deep);
}
.btn--small {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

/* Hero: one composition, brand first */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 163, 90, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(62, 92, 74, 0.35), transparent 50%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
}

.hero__grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  padding: 5.5rem 0 3.5rem;
  min-height: inherit;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.95;
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--brass-light);
  animation: rise 0.9s 0.08s ease both;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(242, 246, 250, 0.88);
  animation: rise 1s 0.14s ease both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.05s 0.2s ease both;
}

.hero__visual {
  display: flex;
  justify-content: center;
  animation: float-in 1.1s 0.18s ease both;
}

.phone {
  width: min(280px, 70vw);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.18);
  background: var(--navy-deep);
  transform: rotate(-2deg);
}

.phone img {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--sage);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section__lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
}
.feature-list p {
  margin: 0;
  color: var(--muted);
}

.screens {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.screen-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
}
.screen-rail figure {
  margin: 0;
  scroll-snap-align: start;
}
.screen-rail .phone {
  width: 100%;
  transform: none;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(11, 35, 64, 0.12);
}
.screen-rail figcaption {
  margin-top: 0.65rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.pro {
  background: var(--navy);
  color: var(--white);
}
.pro h2 {
  color: var(--white);
}
.pro .section__lede {
  color: rgba(242, 246, 250, 0.78);
}
.pro ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(242, 246, 250, 0.88);
}
.pro li + li {
  margin-top: 0.45rem;
}

.download {
  text-align: center;
}
.download .hero__cta {
  justify-content: center;
}

.note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: var(--surface);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--navy);
}

/* Legal / article */
body.legal,
body.article {
  background: var(--bg-warm);
}
.legal-main,
.article-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
}
.legal-main h1,
.article-main h1 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.crumbs {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.crumbs a {
  color: inherit;
}
.resource-grid {
  display: grid;
  gap: 1.25rem;
}
.resource-grid article {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.resource-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.resource-grid h3 a {
  color: var(--navy);
  text-decoration: none;
}
.resource-grid p {
  margin: 0;
  color: var(--muted);
}
.faq details {
  margin: 0.75rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding-top: 6.5rem;
  }
  .hero__visual {
    justify-content: flex-end;
  }
  .phone--hero {
    width: min(320px, 34vw);
  }
  .feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}
