/* Shared stylesheet for the prerendered marketing/SEO pages under public/.
   These pages are served as static files, outside the Vite app, so they
   cannot reference the hashed styles.css bundle - this file is their
   equivalent. It is NOT hashed, so keep changes additive: an old cached copy
   has to keep rendering older pages correctly.

   Palette and type mirror LandingPage's tokens in QRPulse.Web/styles.css -
   indigo primary, violet hero accent, #1E1B4B nav ink. */

/* Self-contained on purpose: this page is served as a static file, not
   through the Vite app, so it can't reference the hashed styles.css
   bundle. Palette and type mirror LandingPage's tokens in styles.css -
   indigo primary, violet hero accent, #1E1B4B nav ink. */
:root {
  --ink: #1E1B4B;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --violet: #7C3AED;
  --teal: #0D9488;
  --amber: #D97706;
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(90deg, var(--ink) 0%, #312E81 60%, #4338CA 100%);
  color: #fff;
}

.nav a { color: #fff; text-decoration: none; }
.nav .logo { font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }

.nav-cta {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.nav-cta:hover { background: rgba(255, 255, 255, 0.26); }

.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 15% 20%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 10%, rgba(13, 148, 136, 0.16), transparent 60%),
    linear-gradient(180deg, #EEF2FF 0%, #F3F4F6 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: #EEF2FF;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0 auto 1rem;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.dek {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h3 { margin: 1.75rem 0 0.4rem; font-size: 1.05rem; color: var(--text); }

main > p { margin: 0 0 1.1rem; }

ul { padding-left: 1.3rem; margin: 0 0 1.25rem; }
li { margin-bottom: 0.5rem; }

.lede { font-size: 1.08rem; }

/* Pull quote for the two lines the whole page turns on. */
.promise {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.promise p { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.promise p + p { margin-top: 0.5rem; font-size: 1rem; font-weight: 400; color: var(--text-secondary); }

.tier-list { list-style: none; padding: 0; }

.tier-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.1rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.cta-block {
  margin: 3rem 0 1rem;
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cta-block h2 { margin-top: 0; }
.cta-block p { color: var(--text-secondary); }

.btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn:hover { background: linear-gradient(90deg, var(--primary-hover), #6D28D9); }

.btn-sub { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-tertiary); }

.faq { margin-top: 0.5rem; }
.faq h3 { margin-bottom: 0.3rem; }
.faq p { margin: 0 0 1.25rem; color: var(--text-secondary); }

.updated { margin-top: 3rem; font-size: 0.85rem; color: var(--text-tertiary); }

footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
}

@media (max-width: 520px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 0.9rem; font-size: 0.88rem; }
  main { padding-top: 2rem; }
}

/* ---- Additions for case-study / how-to pages ---- */

/* Numbered how-to steps. Counter rather than <ol> default markers so the
   number can sit in a filled circle beside a bolded step title. */
.steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: 1.1rem;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps strong {
    display: block;
    color: var(--ink);
}

/* Aside for a caveat the reader needs but that shouldn't interrupt the
   narrative - e.g. which plan a described feature actually requires. */
.note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #78350F;
}

.note p { margin: 0; }
.note a { color: #92400E; }

/* ---- Additions for the QR content-type pages ---- */

/* Inline and block payload samples. The content-type pages show the exact
   string encoded into the code (WIFI:, BEGIN:VCARD, mailto:, SMSTO:, tel:),
   which is the whole reason those pages are worth reading - so it needs to
   be legible and obviously verbatim. .payload wraps rather than scrolls:
   a vCard is several lines and a horizontal scrollbar on a phone hides the
   half of it that matters. */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #EEF2FF;
    color: #312E81;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.payload {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--violet);
    border-radius: 10px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.payload code {
    background: none;
    padding: 0;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Cross-links between content pages, sitting above the footer. */
.related {
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.related h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.related p { margin: 0; color: var(--text-secondary); }

