/* SignRoute marketing site — shared styles. Light theme only. */
:root {
  --navy: #3c3b6e;
  --navy-deep: #2b2a55;
  --red: #b22234;
  --red-deep: #8f1a29;
  --ink: #1a2340;
  --muted: #4a5270;
  --bg: #f4f6fb;
  --white: #ffffff;
  --line: #dfe3ee;
  --tint-blue: #e9ebf6;
  --tint-red: #fbecee;
  --green: #1f7a4a;
  --amber: #b26a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26,35,64,.06), 0 8px 24px rgba(26,35,64,.08);
  --wrap: 1140px;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-stretch: 85%;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 40em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* Flag stripe accent */
.stripe {
  height: 8px;
  background:linear-gradient(90deg, var(--navy) 0 30%, var(--red) 30% 50%, var(--white) 50% 60%, var(--red) 60% 80%, var(--white) 80% 90%, var(--red) 90% 100%);
}

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.5rem; font-stretch: 85%; }
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--red); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 12px; border-radius: 10px; font-size: 1rem; }
.nav a:hover { background: var(--tint-blue); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem;
  border-radius: 12px; text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.nav .btn { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.nav a.btn-red, .nav a.btn-red:hover { color: var(--white); }
.nav a.btn-red:hover { background: var(--red-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 64px 0 72px; background:
  radial-gradient(1200px 400px at 85% -10%, rgba(60,59,110,.10), transparent 60%),
  radial-gradient(800px 300px at -10% 110%, rgba(178,34,52,.07), transparent 60%),
  var(--bg); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero .note { font-size: 1rem; color: var(--muted); margin-top: 14px; }
.mock { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 12px; }
.mock svg { width: 100%; border-radius: 12px; }

/* Real app screenshots in a light tablet frame */
.device {
  margin: 0;
  background: linear-gradient(180deg, #ffffff, #eef1f8);
  border: 1px solid #d3d9e8;
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 2px 4px rgba(26,35,64,.06), 0 24px 48px -12px rgba(26,35,64,.22);
}
.device img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #e9edf5; }
.device.crop img { aspect-ratio: var(--ar, 4 / 3); object-fit: cover; object-position: var(--pos, top); }
.device figcaption, .shot-cap { font-size: .95rem; color: var(--muted); padding: 12px 6px 2px; line-height: 1.45; }
.device figcaption b { color: var(--ink); }
.hero .device { transform: rotate(-1deg); }
.shots { display: grid; gap: 20px; }
.real-note { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-top: 18px; }
.real-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Showcase rows (home) */
.showcase { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.showcase + .showcase { border-top: 1px solid var(--line); }
.showcase h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.showcase p { color: var(--muted); }
.showcase .stat { display: inline-block; font-family: var(--head); font-stretch: 85%; font-weight: 800; color: var(--red); font-size: 1.1rem; margin-bottom: 6px; letter-spacing: .02em; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--tint-blue); }
.icon.red { background: var(--tint-red); }
.icon svg { width: 28px; height: 28px; }

.diff { border-top: 5px solid var(--navy); }
.diff:nth-child(2) { border-top-color: var(--red); }

/* Feature list (home) */
.feature-list { display: grid; gap: 14px 32px; list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature-list li strong { display: block; font-size: 1.08rem; }
.feature-list li span { color: var(--muted); }
.check { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; margin-top: 2px; }
.check svg { width: 16px; height: 16px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px 26px 26px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: var(--red); color: var(--white);
  font-family: var(--head); font-weight: 800; font-size: 1.5rem;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 52em; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* CTA band */
.cta { background: var(--navy); color: var(--white); padding: 64px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--white) 40px 80px); }
.cta h2 { color: var(--white); }
.cta p { color: #dfe1f3; font-size: 1.15rem; max-width: 38em; }
.cta .btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.cta .btn-ghost:hover { background: var(--white); color: var(--navy); }

/* Feature page sections */
.page-head { padding: 56px 0 24px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 10px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); }
.toc a:hover { border-color: var(--navy); }
.fgroup { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.fgroup-grid { display: grid; gap: 32px; align-items: start; }
.fgroup .mock { position: relative; }
.fitems { display: grid; gap: 18px; }
.fitem { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: 12px; padding: 20px 22px; }
.fitem:nth-child(even) { border-left-color: var(--red); }
.fitem h3 { font-size: 1.2rem; margin-bottom: .3em; }
.fitem p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--tint-blue); color: var(--navy); vertical-align: middle; margin-left: 6px; }
.tag.soon { background: #fff3dc; color: #7a4a00; }
.tag.draft { background: var(--tint-red); color: var(--red-deep); }

/* Pricing */
.draft-banner { background: #fff3dc; border: 2px dashed #d99a2b; color: #5c3800; border-radius: 12px; padding: 16px 20px; font-weight: 600; margin-bottom: 32px; }
.tiers { display: grid; gap: 22px; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow); position: relative; }
.tier.featured { border: 3px solid var(--navy); }
.tier .badge { position: absolute; top: -14px; left: 26px; background: var(--red); color: var(--white); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.tier h3 { font-size: 1.5rem; margin-bottom: .2em; }
.tier .who { color: var(--muted); margin-bottom: 18px; }
.price { font-family: var(--head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--navy); font-stretch: 85%; }
.price small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.tier li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.tier li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.tier .btn { width: 100%; }

/* Contact */
.contact-grid { display: grid; gap: 22px; }
.mail-box { font-size: 1.15rem; }
.placeholder { background: var(--tint-red); color: var(--red-deep); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

/* Footer */
.site-foot { background: var(--white); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 1rem; color: var(--muted); }
.foot-grid { display: grid; gap: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-foot a:hover { color: var(--red); }
.fine { font-size: .92rem; margin-top: 20px; }
.credit { font-size: .92rem; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.site-foot .credit a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Tablet (iPad portrait and up) */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .section { padding: 88px 0; }
  .grid-3, .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .feature-list, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 720px) and (max-width: 979px) {
  .tiers { grid-template-columns: 1fr; max-width: 560px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
/* Desktop / iPad landscape */
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: .9fr 1.1fr; }
  .fgroup-grid { grid-template-columns: 1fr 1.1fr; }
  .fgroup-grid.flip > .mock, .fgroup-grid.flip > .shots { order: 2; }
  .fgroup .mock, .fgroup .shots { position: sticky; top: 110px; }
  .showcase { grid-template-columns: 1.25fr 1fr; gap: 48px; padding: 40px 0; }
  .showcase.flip > .device { order: 2; }
  .showcase.flip { grid-template-columns: 1fr 1.25fr; }
}
/* Small phones */
@media (max-width: 480px) {
  .site-head { position: static; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 8px 8px; }
  .nav .btn { margin-left: 0; width: 100%; margin-top: 4px; }
  .btn-row .btn { width: 100%; }
  .card, .steps li { padding: 22px; }
}
