/* ============================================================
   RES Solutions & Vibe Studio - Site Design System (single source)
   ============================================================
   Consolidates: base page styles + "global styles" + the old
   vsr-global-overrides.css + vsr-home-repair.css into ONE file.
   No !important. Mobile-first typography. One place to edit fonts.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #08080a;
  --surface: #121215;
  --surface-2: #1a1a1e;
  --ink: #f0f0f0;
  --ink-soft: #a0a0a8;
  --muted: #8a8a94;            /* raised from #646470 for AA contrast (~5.9:1) */
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.10);
  --accent-glow: rgba(6, 182, 212, 0.22);
  --body: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.3);
  --header-h: 72px;
  --font-base: 17px;
  --font-small: 14px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-feature-settings: "tnum" 1; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--font-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: top 120ms ease; }
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 780px; }
section { padding: 72px 0; }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.lede { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
/* Content headings always use the body font (Bricolage Grotesque).
   Mono stays only on labels/eyebrows/CTAs/nav by design. */
h1, h2, h3, h4, h5, h6 { font-family: var(--body); }
.section-header { margin-bottom: 40px; max-width: 680px; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header--center .eyebrow { display: block; text-align: center; }
.section-header h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
}
.section-header h2 mark { background: none; color: var(--accent); }
.section-header p { color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 17px); max-width: 56ch; }
.section-header--center p { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 5. Header (shared, editable in one place) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 12px; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo-res-img { height: 36px; width: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-text .sub {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 520;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background 150ms ease;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Mobile nav (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 160ms ease, opacity 160ms ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 32px;
    right: 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 16px; font-size: 16px; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  cursor: pointer;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 100ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.92; color: var(--bg); }
.btn-accent { background: var(--accent); color: #08080a; }
.btn-accent:hover { opacity: 0.88; box-shadow: 0 0 20px var(--accent-glow); color: #08080a; }
.btn-ghost { background: transparent; color: var(--ink-soft); box-shadow: 0 0 0 1px var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 7. Hero ---------- */
.hero { padding: 96px 0 40px; text-align: center; }
.hero + section { padding-top: 32px; }
.hero .section-header { margin-bottom: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-weight: 480;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.032em;
  max-width: 18ch;
  margin: 0 auto 24px;
}
.hero h1 mark { background: none; color: var(--accent); }
.hero .lede { max-width: 56ch; margin: 0 auto 44px; }
.hero-actions { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- 8. Problem / quote ---------- */
.problem { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.problem blockquote {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.018em;
  max-width: 24ch;
  color: var(--ink-soft);
  margin: 0 auto 24px;
  text-align: center;
}
.problem p { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 17px); max-width: 52ch; line-height: 1.65; margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 9. Division cards ---------- */
.division-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.division-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease;
}
.division-card:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--accent-glow) 0 0 32px -8px; }
.division-card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}
.division-card .card-logo { height: 46px; width: auto; margin-bottom: 20px; }
.division-card h3 { font-size: 26px; font-weight: 650; line-height: 1.15; letter-spacing: -0.018em; margin-bottom: 12px; }
.division-card h3 mark { background: none; color: var(--accent); }
.division-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.62; }

/* ---------- 10. Software catalog (tabs + tiles) ---------- */
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; width: 100%; }
.category-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  min-width: 0;
  transition: all 140ms ease;
}
.category-tab:hover { color: var(--ink); border-color: var(--border-strong); }
.category-tab.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 44px; align-items: stretch; }
.app-list--pair { grid-template-columns: repeat(2, minmax(260px, 360px)); justify-content: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.app-list--quad { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .app-list--quad { grid-template-columns: repeat(4, 1fr); } }
.app-tile {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 180ms ease, transform 180ms ease;
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: stretch;
}
.app-tile:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--accent-glow) 0 0 24px -6px; transform: translateY(-2px); }
.app-tile-link { display: flex; flex-direction: column; height: 100%; padding: 28px 24px; text-decoration: none; color: inherit; border-radius: 8px; }
.app-tile .icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; min-width: 0; }
.app-tile .app-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-tile .app-name { font-family: var(--body); font-weight: 620; font-size: 18px; letter-spacing: -0.01em; color: var(--ink-soft); line-height: 1.28; min-width: 0; }
.app-tile p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; flex: 0 0 auto; }
.app-tile .tile-sub { margin-top: 0; }
.app-tile .tile-cta { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* ---------- 11. Closing CTA band ---------- */
.closing {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(6, 182, 212, 0.02) 100%);
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--border-strong);
}
.closing h2 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 18px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.closing h2 mark { background: none; color: var(--accent); }
.closing p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 34px; font-size: 17px; }

/* ---------- 12. Contact form ---------- */
.contact-section { padding: 80px 0 56px; background: var(--surface); border-top: 1px solid var(--border); }
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.form-group .req { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--body);
  font-size: 16px;                       /* ≥16px: prevents iOS zoom on focus */
  font-weight: 400;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0a0a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.form-group .field-error { display: none; font-size: 13px; color: #f87171; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #f87171; }
.form-group.has-error .field-error { display: block; }
.form-status { display: none; text-align: center; font-size: 15px; padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 18px; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #f87171; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25); }
.form-status.is-success { color: #4ade80; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.25); }
.form-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.form-submit-row { text-align: center; margin-top: 8px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .btn-submit { width: 100%; } }

/* ---------- 13. Coco chat ---------- */
.coco-section { padding: 72px 0; border-top: 1px solid var(--border); overflow: hidden; }
.coco-chat { max-width: 640px; width: 100%; margin: 0 auto; background: var(--surface); border-radius: 12px; border: 1px solid var(--border-strong); overflow: hidden; }
.coco-messages { padding: 22px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.coco-msg { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.coco-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coco-bubble { background: var(--bg); border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.coco-bubble p { margin: 0; }
.coco-user { flex-direction: row-reverse; }
.coco-user .coco-bubble { background: var(--accent-soft); border: 1px solid var(--border-strong); color: var(--ink); }
.coco-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.coco-suggestion {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  cursor: pointer;
  transition: background 120ms ease;
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
.coco-suggestion:hover { background: rgba(6, 182, 212, 0.18); }
.coco-input-row { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg); align-items: center; }
.coco-input { flex: 1; min-width: 0; font-family: var(--body); font-size: 16px; font-weight: 400; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 11px 15px; color: var(--ink); outline: none; }
.coco-input:focus { border-color: var(--accent); }
.coco-send { width: 44px; height: 44px; border-radius: 8px; background: var(--accent); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #08080a; transition: opacity 120ms ease; flex-shrink: 0; }
.coco-send:hover { opacity: 0.85; }
.coco-disclaimer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; font-family: var(--mono); letter-spacing: 0.03em; padding: 0 16px; }
.coco-typing .coco-bubble::after { content: '…'; animation: coco-blink 1s steps(2) infinite; }
@keyframes coco-blink { 50% { opacity: 0.3; } }

/* ---------- 14. Product pages ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 120ms ease;
}
.back-link:hover { color: var(--accent); }
.product-hero { text-align: center; padding: 40px 0 24px; }
.product-hero .eyebrow { display: block; margin-bottom: 14px; }
.product-hero h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto 10px; }
.product-hero h1 mark { background: none; color: var(--accent); }
.hero-tagline { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; letter-spacing: -0.014em; color: var(--ink-soft); max-width: 26ch; margin: 0 auto 18px; line-height: 1.3; }
.product-hero .lede { max-width: 58ch; margin: 0 auto 34px; }
.product-hero .hero-actions { margin-bottom: 48px; }
.features-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.video-section { text-align: center; }
.video-section .eyebrow { display: block; margin-bottom: 12px; }
.video-section .lede { max-width: 46ch; margin: 0 auto 26px; }
.product-shot { max-width: 880px; margin: 0 auto 8px; border-radius: 14px; border: 1px solid var(--border-strong); box-shadow: var(--shadow-card); overflow: hidden; background: var(--surface); }
.product-shot img { width: 100%; height: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--accent-glow) 0 0 24px -10px; }
.feature-card .feature-icon { width: 42px; height: 42px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; font-weight: 640; letter-spacing: -0.012em; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.section-tag { margin-bottom: 10px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .app-list, .app-list--quad, .app-list--pair { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- 15. Legal pages ---------- */
.legal-section { padding: 60px 0 96px; }
.legal-body h3 { font-size: 21px; font-weight: 640; letter-spacing: -0.014em; margin: 38px 0 12px; }
.legal-body h3:first-of-type { margin-top: 0; }
.legal-body p, .legal-body ul { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; }
.legal-body ul li { margin-bottom: 6px; }
.legal-body strong { color: var(--ink); font-weight: 600; }

/* ---------- 16. Footer (shared, editable in one place) ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-col h6 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; font-weight: 500; }
.footer-col p { color: var(--muted); font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color 120ms ease; }
.footer-col a:hover { color: var(--ink); }
.footer-logos { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logos img { height: 28px; width: auto; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom .mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-bottom .links a:hover { color: var(--ink-soft); }

/* ---------- 17. Responsive ---------- */
@media (max-width: 880px) {
  .wrap { padding: 0 20px; }
  .division-cards { grid-template-columns: 1fr; }
  .app-list, .app-list--quad, .app-list--pair { grid-template-columns: repeat(2, 1fr); max-width: 100%; gap: 14px; }
  .category-tabs { flex-direction: column; }
  .category-tab { flex: 1 1 auto; width: 100%; white-space: normal; font-size: 15px; padding: 14px 18px; letter-spacing: 0.04em; }
  .app-tile-link { padding: 26px 22px; text-align: center; }
  .app-tile .icon-row { justify-content: center; }
  .app-tile p { text-align: center; margin-left: auto; margin-right: auto; }
  .app-tile .tile-cta { display: block; }
  .feature-card { text-align: center; }
  .feature-card .feature-icon { margin-left: auto; margin-right: auto; }
  .division-card { text-align: center; }
  .division-card .card-logo { margin-left: auto; margin-right: auto; }
  .section-header:not(.section-header--center) { text-align: center; }
  .section-header:not(.section-header--center) .eyebrow { display: block; }
  .section-header:not(.section-header--center) p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 24px; }
  .hero + section { padding-top: 24px; }
  .site-header { padding-top: 8px; }
  .header-inner { padding: 12px 16px; border-radius: 10px; }
  .site-nav { left: 20px; right: 20px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .division-card { padding: 32px 26px; }
  .closing { padding: 72px 0; }
  .logo-text .sub { max-width: 22ch; }
}

/* ---------- 18. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 599px) {
  .app-list, .app-list--quad, .app-list--pair { grid-template-columns: 1fr; gap: 16px; }
}
@media print {
  .site-header, footer, .hero-actions, .coco-section, .contact-section { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 17. Seoforgia standalone page ---------- */
.seo-nav { border-bottom: 1px solid var(--border); background: rgba(8, 8, 10, 0.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 60; }
.seo-nav-inner { display: flex; align-items: center; gap: 28px; padding: 16px 0; }
.seo-logo { display: inline-flex; align-items: center; margin-right: auto; }
.seo-logo img { height: 26px; width: auto; display: block; }
.seo-nav-links { display: flex; align-items: center; gap: 22px; }
.seo-nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 140ms ease; }
.seo-nav-links a:hover { color: var(--ink); }
.seo-nav-cta { padding: 9px 18px; font-size: 13px; }
.seo-hero h1 { font-family: var(--body); font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 18px auto 10px; max-width: 24ch; color: var(--ink); }
.seo-hero .seo-hero-sub { margin: 0 auto 20px; max-width: 34ch; font-size: clamp(17px, 1.9vw, 22px); font-weight: 500; color: var(--ink-soft); letter-spacing: -0.01em; line-height: 1.35; }
.seo-hero .lede { max-width: 60ch; margin: 0 auto 36px; font-size: 15px; line-height: 1.6; }
.seo-platform { padding: 72px 0; text-align: center; }
.seo-hero + .seo-platform { padding-top: 10px; }
.seo-hero + .seo-platform .feature-grid { margin-top: 0; }
.seo-platform .lede { max-width: 56ch; margin-left: auto; margin-right: auto; }
.seo-platform h2 { font-family: var(--body); font-size: clamp(26px, 3.4vw, 40px); font-weight: 680; letter-spacing: -0.025em; line-height: 1.12; margin: 16px auto 22px; max-width: 22ch; }
.seo-platform h2 .seo-h2-sub { display: block; margin-top: 10px; font-size: clamp(17px, 1.9vw, 22px); font-weight: 500; color: var(--ink-soft); letter-spacing: -0.01em; line-height: 1.35; }
.seo-platform .feature-grid { margin-top: 48px; }
.seo-demo { padding: 72px 0 96px; text-align: center; }
.seo-demo h2 { font-family: var(--body); font-size: clamp(26px, 3.4vw, 40px); font-weight: 680; letter-spacing: -0.025em; line-height: 1.12; margin: 16px 0 22px; }
.seo-demo .hero-actions { margin-top: 28px; }
/* Seoforgia inline forms (demo + waitlist) */
.seo-form-panel { margin: 26px auto 0; max-width: 540px; text-align: left; }
.seo-form-panel[hidden] { display: none; }
.seo-form { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 26px; }
.seo-form h3 { font-size: 18px; font-weight: 640; letter-spacing: -0.01em; margin-bottom: 6px; }
.seo-form > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.seo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seo-form input { width: 100%; font-family: var(--body); font-size: 16px; font-weight: 400; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 11px 14px; color: var(--ink); outline: none; margin-bottom: 10px; }
.seo-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seo-form .btn { width: 100%; margin-top: 4px; }
.seo-form-status { display: none; font-size: 14px; line-height: 1.5; margin-top: 12px; padding: 11px 14px; border-radius: 8px; }
.seo-form-status.is-success { display: block; color: #4ade80; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.25); }
.seo-form-status.is-error { display: block; color: #f87171; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25); }
@media (max-width: 600px) { .seo-form-row { grid-template-columns: 1fr; } .seo-form { padding: 22px 18px; } }
.seo-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.seo-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.seo-footer-inner span { color: var(--muted); font-size: 13px; }
.seo-footer-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px) {
  .seo-nav-links { display: none; }
  .seo-nav-inner { gap: 16px; padding: 12px 0; }
}

/* ---------- 19. Phone typography bump (≤600px) ---------- */
@media (max-width: 600px) {
  /* Tile titles + tile content (main ask) */
  .app-tile .app-name { font-size: 21px; }
  .app-tile p { font-size: 16px; line-height: 1.6; }
  .app-tile .tile-cta { font-size: 14px; }
  .app-tile-link { padding: 26px 20px; }
  /* Section / page headings */
  .section-header h2 { font-size: 30px; }
  .hero h1 { font-size: 42px; }
  .product-hero h1 { font-size: 37px; }
  .closing h2 { font-size: 34px; }
  .legal-body h3 { font-size: 22px; }
  .division-card h3 { font-size: 27px; }
  .feature-card h3 { font-size: 20px; }
  .seo-hero h1 { font-size: 33px; }
  .seo-platform h2, .seo-demo h2 { font-size: 28px; }
  /* Descriptive / body text */
  .lede { font-size: 17px; }
  .hero-tagline { font-size: 21px; }
  .closing p { font-size: 18px; }
  .problem blockquote { font-size: 24px; }
  .problem p { font-size: 17px; }
  .feature-card p { font-size: 16px; }
  .division-card p { font-size: 17px; }
  .legal-body p, .legal-body ul { font-size: 16px; }
  .seo-hero-note { font-size: 15px; }
  .seo-platform .lede { font-size: 16.5px; }
  .hero-badge { font-size: 14.5px; }
  .coco-bubble { font-size: 16px; }
  .form-note { font-size: 14px; }
  .form-group label { font-size: 13px; }
  /* Footer */
  .footer-col h6 { font-size: 13px; }
  .footer-col p { font-size: 15px; }
  .footer-col a { font-size: 15px; }
  .footer-bottom .links a { font-size: 15px; }
  .footer-bottom .mono { font-size: 13px; }
  .seo-footer-inner span { font-size: 14px; }
  .seo-footer-tag { font-size: 13px; }
}

/* per-app legal links row (product pages + Seoforgia) */
.app-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.app-legal-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.app-legal-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.app-legal-links a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .app-legal { padding: 14px 20px; justify-content: flex-start; }
}

/* login page */
.login-section { padding: 72px 0 96px; }
.login-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-card);
}
.login-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 20px; }
.login-actions a { font-size: 13px; color: var(--accent); text-decoration: none; }
.login-actions a:hover { text-decoration: underline; }
.login-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) {
  .login-section { padding: 48px 0 72px; }
  .login-card { padding: 26px 20px; }
}

/* product / login logo */
.product-logo { display: block; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 22px; }
.login-logo { display: block; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 18px; }

/* seoforgia top-right Log in */
.seo-login-bar { display: flex; justify-content: flex-end; padding-top: 14px; }
.seo-login-link { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.seo-login-link:hover { color: var(--ink); }

/* product page top-right Log in */
.login-bar { display: flex; justify-content: flex-end; padding-top: 14px; }
.login-link { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.login-link:hover { color: var(--ink); }
