/* subs.fit — the Subs marketing site. Static HTML and CSS, no scripts.
   Colours follow the app's palettes in app/src/components/theme.ts (light and dark). */

:root {
  color-scheme: light dark;
  --bg: #F3F4F7;
  --card: #FFFFFF;
  --surface: #F6F7F9;
  --text: #15181E;
  --muted: #667085;
  --subtle: #98A2B3;
  --border: #E4E7EC;
  --border-strong: #CFD4DC;
  --primary: #6B3FA0;
  --primary-hover: #5B3489;
  --primary-text: #FFFFFF;
  --primary-soft: #EFE7F8;
  --shadow: rgba(16, 24, 40, 0.08);
  --shadow-strong: rgba(16, 24, 40, 0.22);
  --phone: #1B1E25;
  --header: rgba(243, 244, 247, 0.82);
  --max: 1080px;
  --r: 14px;
  --r-lg: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1116;
    --card: #171B22;
    --surface: #1F242D;
    --text: #EDEFF2;
    --muted: #9AA4B2;
    --subtle: #6E7887;
    --border: #2A303A;
    --border-strong: #3A4150;
    --primary: #A57BD6;
    --primary-hover: #B690E0;
    --primary-text: #14171A;
    --primary-soft: #2A2040;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-strong: rgba(0, 0, 0, 0.6);
    --phone: #2A2F3A;
    --header: rgba(14, 17, 22, 0.82);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 10px; }
h3 { font-size: 1.1rem; margin-bottom: 4px; }
p { max-width: 60ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.eyebrow {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lede { font-size: 1.15rem; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--primary-text); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-text); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--text); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .btn { color: var(--primary-text); }
.site-nav .btn:hover { color: var(--primary-text); }
@media (max-width: 720px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 36px; }
.section-head .lede { max-width: 56ch; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, var(--primary-soft) 0%, transparent 70%),
    var(--bg);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); margin-bottom: 18px; }
.hero .lede { font-size: 1.2rem; }
.hero .note { margin-top: 18px; }
.hero-phone { justify-self: center; width: min(300px, 78vw); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-phone { width: min(260px, 70vw); }
}

/* ---------- phone frames ---------- */
.phone {
  background: var(--phone);
  padding: 8px;
  border-radius: 44px;
  box-shadow: 0 24px 48px -16px var(--shadow-strong), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { width: 100%; height: auto; border-radius: 36px; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; max-width: 520px; }
.phones .phone:nth-child(2) { margin-top: 40px; }
@media (max-width: 480px) {
  .phones { gap: 12px; }
  .phone { padding: 6px; border-radius: 30px; }
  .phone img { border-radius: 24px; }
  .phones .phone:nth-child(2) { margin-top: 28px; }
}

/* ---------- browser and tablet frames ---------- */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.screens .wide { grid-column: 1 / -1; }
.browser {
  margin: 0; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 24px 48px -24px var(--shadow-strong);
}
.browser .chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.browser .chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser .chrome em { font-style: normal; flex: 1; margin-left: 8px; padding: 2px 10px; border-radius: 6px; background: var(--card); color: var(--subtle); font-size: 12px; text-align: center; }
.browser img { width: 100%; height: auto; }
.tablet { margin: 0; }
.tablet .device { background: var(--phone); padding: 14px; border-radius: 22px; box-shadow: 0 24px 48px -24px var(--shadow-strong), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.tablet img { width: 100%; height: auto; border-radius: 10px; }
.tablet figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; color: var(--muted); }
.chips strong { color: var(--text); }
section.alt .chips li { background: var(--surface); }
@media (max-width: 720px) { .screens { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- two-column feature sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip > .split-copy { order: 2; }
.split .phones { justify-self: center; width: 100%; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > .split-copy { order: 0; }
}

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 22px; margin-top: 28px; }
.steps li { position: relative; padding-left: 56px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--primary-text);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- feature list with icons ---------- */
.features { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.features .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.features .icon svg { width: 22px; height: 22px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: 0 1px 2px var(--shadow);
}
section.alt .card { background: var(--surface); }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card h3 svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.card p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.disclaimer { margin-top: 28px; font-size: 0.9rem; color: var(--subtle); max-width: 70ch; }

/* ---------- call to action ---------- */
.cta .panel {
  background: linear-gradient(135deg, var(--primary-soft), var(--card));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 48px 32px; text-align: center;
  box-shadow: 0 1px 2px var(--shadow);
}
.cta .panel p { margin: 0 auto; }
.cta .actions { justify-content: center; }
.cta .note { margin-top: 20px; }
@media (max-width: 720px) { .cta .panel { padding: 36px 20px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 44px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer p { max-width: none; }
.site-footer .legal { width: 100%; font-size: 0.85rem; color: var(--subtle); }

/* ---------- 404 ---------- */
.page-head { padding: 96px 0 120px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }

/* ---------- demo request form (/demo) ---------- */
:root { --danger: #B42318; --danger-bg: #FDECEA; }
@media (prefers-color-scheme: dark) { :root { --danger: #F97066; --danger-bg: #3A1A18; } }
.lead { padding: 40px 0 72px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.lead-intro { grid-column: 1; }
.lead-form { grid-column: 2; grid-row: 1 / span 2; }
.lead-points { grid-column: 1; }
.lead h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.points { list-style: none; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 30px; color: var(--muted); }
.points li strong { color: var(--text); }
.points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
.lead-form {
  position: relative; display: grid; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: 0 1px 2px var(--shadow);
}
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.lead-form .opt { font-weight: 400; color: var(--subtle); font-size: 0.85rem; margin-left: 4px; }
.lead-form input, .lead-form select {
  font: inherit; width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text);
}
.lead-form input:focus, .lead-form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.lead-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.lead-form legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.lead-form .radio { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.lead-form .radio input { width: 20px; height: 20px; min-height: 0; accent-color: var(--primary); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { width: 100%; min-height: 50px; font-size: 1.05rem; }
.lead-form .small { margin: 0; }
.form-error { background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.cf-turnstile { min-height: 65px; }
@media (max-width: 860px) {
  .lead { padding: 28px 0 56px; }
  .lead-grid { grid-template-columns: 1fr; gap: 24px; }
  .lead-intro, .lead-form, .lead-points { grid-column: 1; grid-row: auto; }
  .lead h1 { font-size: 1.8rem; margin-bottom: 8px; }
  .lead .lede { font-size: 1.02rem; }
}
@media (max-width: 480px) { .lead-form { padding: 18px; } .lead-form .two { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: start; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: 0 1px 2px var(--shadow); display: grid; gap: 18px;
}
.price-card .amount { font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.price-card .price .amount { font-size: clamp(3rem, 7vw, 4.2rem); color: var(--primary); }
.price-card .cap .amount { font-size: 1.9rem; }
.price-card .per { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; }
.price-card .cap { padding-top: 18px; border-top: 1px solid var(--border); }
.price-card .actions { margin-top: 6px; }
.price-notes { list-style: none; display: grid; gap: 16px; color: var(--muted); }
.price-notes li { position: relative; padding-left: 30px; }
.price-notes li strong { color: var(--text); }
.price-notes li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; gap: 24px; } }
