:root {
  --navy: #173b6d;
  --navy-deep: #0f2a50;
  --blue: #2f80ed;
  --mist: #eaf4f7;
  --ink: #16263d;
  --muted: #5b6b80;
  --line: #d6e2ea;
  --paper: #ffffff;
  --ok: #1e9e5a;
  --radius: 14px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav .btn-primary { color: #fff; }
.nav .btn-outline { color: var(--navy); }
.btn-small { padding: 9px 16px; font-size: .92rem; }
@media (max-width: 860px) { .nav { gap: 10px; } .nav a:not(.btn) { display: none; } }
@media (max-width: 430px) { .brand { font-size: 0; gap: 0; } .btn-small { padding: 8px 12px; font-size: .86rem; } }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; font-size: .98rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1f6fdc; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--mist); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #245a9c 100%); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #a9cdfb; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.13rem; color: #d6e4f7; margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 56px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .92rem; color: #cfe0f6; }
.hero-points li::before { content: "✓"; color: #7fd6a4; font-weight: 700; margin-right: 7px; }
.hero-shot { align-self: end; display: flex; justify-content: center; max-height: 560px; overflow: hidden; }
.hero-shot .shot.phone { max-width: 300px; border-radius: 34px 34px 0 0; border-bottom: 0; box-shadow: 0 -8px 50px rgba(0,0,0,.4); }
.hero-shot .shot.phone img { border-radius: 26px 26px 0 0; }
@media (max-width: 900px) { .hero-shot { max-height: 420px; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-points { margin-bottom: 36px; } }

/* Screenshot slots: show the image when it exists, a labelled placeholder when it doesn't */
.shot { position: relative; background: #f6fafc; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.missing img { display: none; }
.shot.missing::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  color: var(--muted); font-size: .92rem; font-weight: 500;
  background: repeating-linear-gradient(135deg, #f1f6f9 0 14px, #e9f1f5 14px 28px);
}
/* Portrait app screenshots in a phone-style frame */
.shot.phone { aspect-ratio: auto; width: 100%; max-width: 264px; margin: 0; border-radius: 30px; border: 7px solid #14243b; background: #14243b; box-shadow: 0 18px 44px rgba(15, 42, 80, .22); }
.shot.phone img { height: auto; object-fit: initial; border-radius: 22px; }
.shot.phone.missing { aspect-ratio: 1 / 2; }
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.phones .shot.phone:nth-child(2) { margin-top: 44px; }
@media (max-width: 520px) { .phones { gap: 12px; } .phones .shot.phone { border-width: 5px; border-radius: 22px; } .phones .shot.phone img { border-radius: 16px; } .phones .shot.phone:nth-child(2) { margin-top: 28px; } }

/* Sections */
section { padding: 84px 0; }
section.tint { background: var(--mist); }
.section-head { max-width: 46em; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; color: var(--navy); letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* Problem strip */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pain h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.pain p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

/* Workflow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
.step .who { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 600; color: var(--blue); background: #e8f1fd; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 12px; color: var(--navy); }
.feature p { color: var(--muted); margin: 0 0 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; } .feature.flip .feature-text { order: 0; } }

/* Roles */
/* Flex, not grid, so a short last row sits centred instead of leaving a gap on the right */
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.role { flex: 0 0 calc((100% - 36px) / 3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.role h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--navy); }
.role p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .role { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 560px) { .role { flex-basis: 100%; } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust div { border-left: 3px solid var(--blue); padding: 4px 0 4px 16px; }
.trust h3 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.trust p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Call to action */
.cta { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cta p { color: #d6e4f7; margin: 0 auto 26px; max-width: 36em; font-size: 1.06rem; }
.cta .contact-line { margin-top: 18px; font-size: .95rem; color: #cfe0f6; }
.cta .contact-line a { color: #fff; }

/* Footer */
.site-footer { background: #0c2140; color: #b8c9e0; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #dbe7f7; text-decoration: none; margin-left: 20px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding: 56px 0 84px; }
.legal .wrap { max-width: 800px; }
.legal h1 { color: var(--navy); font-size: 2rem; margin: 0 0 6px; letter-spacing: -.01em; }
.legal .updated { color: var(--muted); margin: 0 0 30px; font-size: .95rem; }
.legal h2 { color: var(--navy); font-size: 1.2rem; margin: 34px 0 8px; }
.legal p, .legal li { color: #2b3b52; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--mist); color: var(--navy); }
.legal .note { background: #fff8e6; border: 1px solid #f0d98c; border-radius: 10px; padding: 14px 16px; font-size: .94rem; }
.table-scroll { overflow-x: auto; }
