/* Tokens copied from the app's default theme (theme-style-modern-cool-blue in frontend/src/global.scss) until real branding lands. */
:root {
  --primary: #2b72d6;
  --primary-lt: #7ab3ff;
  --primary-dk: #1e57a5;
  --primary-deep: #12438c;
  --light: #f1f6ff;
  --ink: #112a43;
  --ink-mid: #4d6683;
  --navy: #12273d;
  --navy-deep: #0a1624;
  --success: #2e9767;
  --bg: color-mix(in srgb, var(--primary) 7%, #fff);
  --bg-raised: color-mix(in srgb, var(--primary) 3%, #fff);
  --border: rgba(17, 42, 67, 0.14);
  --radius: 18px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img { transition: none; } }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dk); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--primary-dk); margin-bottom: .75em; }
.lead { font-size: 1.15rem; color: var(--ink-mid); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons: same gradient as the app's .responsive-cta */
.btn {
  display: inline-block; padding: .8em 1.5em; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: #fff;
  background: linear-gradient(112deg, var(--primary) 0%, var(--primary) 50%, var(--primary-deep) 100%);
  box-shadow: 0 6px 18px rgba(30, 87, 165, .3);
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; box-shadow: none; border: 2px solid currentColor; color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { font: 700 1.6rem var(--font-display); letter-spacing: -0.02em; color: inherit; text-decoration: none; margin-right: auto; }
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a { color: inherit; text-decoration: none; font-weight: 500; }
.site-header nav a.btn { padding: .5em 1.1em; }
.site-header nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .site-header .wrap { gap: 12px; }
  .site-header nav { gap: 12px; font-size: .9rem; }
  .site-header nav a.btn { padding: .45em .9em; }
  .site-header nav .hide-sm { display: none; }
  .logo { font-size: 1.25rem; }
}
@media (max-width: 400px) { .site-header nav .hide-xs { display: none; } }

/* Photo hero */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: #fff; padding: 120px 0 80px;
  background: var(--navy-deep) center / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 22, 36, .85) 0%, rgba(10, 22, 36, .55) 50%, rgba(10, 22, 36, .15) 100%);
}
.hero .wrap { position: relative; width: 100%; }
.hero .lead { color: rgba(255, 255, 255, .9); }
.hero .eyebrow { color: var(--primary-lt); }
.hero-sm { min-height: 60vh; }

section { padding: 88px 0; }
.alt { background: var(--bg-raised); }
.dark { background: var(--navy); color: var(--light); }
.dark .lead { color: rgba(241, 246, 255, .85); }
.dark .eyebrow { color: var(--primary-lt); }

/* Phone mockups of real app screenshots */
.phone {
  border: 10px solid var(--navy-deep); border-radius: 36px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(10, 22, 36, .25); background: #fff;
  max-width: 260px; margin: 0 auto;
}

.steps { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 48px; }
.step { text-align: center; }
.step .phone { margin-bottom: 24px; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 600; margin-bottom: 12px;
}

/* Photo + text split */
.split { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr 1fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 20px 40px rgba(10, 22, 36, .18); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack { position: relative; }
.photo-stack .phone { position: absolute; right: -12px; bottom: -40px; max-width: 170px; border-width: 7px; border-radius: 26px; }
@media (max-width: 820px) { .photo-stack .phone { right: 8px; } }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: .7em; }
.checks li::before {
  content: '✓'; content: '✓' / ''; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--success); color: #fff; font-size: .75rem; display: grid; place-items: center;
}

/* Photo tiles row */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 40px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile div { position: absolute; inset: auto 0 0; padding: 48px 20px 20px; background: linear-gradient(transparent, rgba(10, 22, 36, .85)); }
.tile h3 { margin: 0 0 .2em; }
.tile p { margin: 0; font-size: .95rem; opacity: .9; }

/* Numbered setup guide */
.guide { counter-reset: g; list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 20px; }
.guide li {
  counter-increment: g; position: relative; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 28px 24px 92px;
}
.guide li::before {
  content: counter(g); position: absolute; left: 28px; top: 26px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font: 600 1.3rem var(--font-display);
}
.guide li p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .guide li { padding: 80px 20px 20px; } .guide li::before { left: 20px; top: 20px; } }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.dark .card { background: rgba(241, 246, 255, .06); border-color: rgba(241, 246, 255, .15); }
.card p:last-child { margin-bottom: 0; }

/* FAQ uses native <details> */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; content: '+' / ''; color: var(--primary-dk); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; content: '–' / ''; }
.faq details p { margin: 12px 0 0; color: var(--ink-mid); }

/* Photo CTA band */
.band { position: relative; color: #fff; text-align: center; background: var(--navy-deep) center / cover no-repeat; }
.band::before { content: ''; position: absolute; inset: 0; background: rgba(17, 42, 67, .78); }
.band .wrap { position: relative; }
.band .btn-row { justify-content: center; }

footer { background: var(--navy-deep); color: rgba(241, 246, 255, .75); padding: 56px 0 40px; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--primary-lt); }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer .foot-h { font-family: var(--font-body); font-weight: 600; color: var(--light); margin: 0 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
footer .logo { color: var(--light); display: block; margin-bottom: 8px; }
