/* Home page only. App pages and guides keep using styles.css. */
:root {
  --rs-red: #D40808;
  --ink: #161719;
  --graphite: #25282b;
  --paper: #f7f4ef;
  --line: #e4ddd2;
  --muted: #5f676a;
  --body: #40474a;
  --on-dark-accent: #ff8e86;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }

.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.eyebrow { margin: 0 0 14px; color: var(--rs-red); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.on-dark .eyebrow { color: var(--on-dark-accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn-red { color: #fff; background: var(--rs-red); }
.btn-red:hover, .btn-red:focus-visible { background: #9f0606; }
.btn-ghost { border-color: #cfc6b8; background: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .88rem; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; }
.wordmark img { width: 34px; height: 34px; border-radius: 8px; }
.wordmark b { color: var(--rs-red); }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.02em; }
.hero h1 em { color: var(--rs-red); font-style: normal; }
.lede { max-width: 540px; margin-bottom: 28px; color: var(--body); font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 28px; margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.proof div { color: var(--muted); font-size: .85rem; }
.proof dt { color: var(--ink); font-size: 1.35rem; font-weight: 800; }
.proof dd { margin: 0; }
.stage { position: relative; min-height: 440px; }
.stage-desktop { position: absolute; top: 10px; right: 0; width: 92%; overflow: hidden; border: 1px solid #d9d1c4; border-radius: 12px; background: #fff; box-shadow: 0 30px 70px rgba(22, 23, 25, .18); }
.stage-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #f1ece4; }
.stage-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6cec2; }
.stage-desktop img { display: block; width: 100%; height: auto; }
.stage-phone { position: absolute; bottom: -6px; left: 0; width: 170px; overflow: hidden; border: 7px solid #1b1c1e; border-radius: 26px; background: #fff; box-shadow: 0 24px 50px rgba(22, 23, 25, .28); }
.stage-phone img { display: block; width: 100%; height: auto; }
.stage-note { position: absolute; right: 18px; bottom: 28px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); font-size: .82rem; font-weight: 600; }
.stage-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f7a3f; }

/* Two paths */
.paths { padding: 8px 0 64px; }
.paths .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.path { display: flex; flex-direction: column; gap: 10px; min-height: 210px; padding: 30px; border-radius: 14px; }
.path h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.path p { max-width: 440px; margin: 0; opacity: .85; }
.path .eyebrow { margin: 0; }
.path-apps { color: #fff; background: var(--ink); }
.path-consulting { border: 1px solid var(--line); background: #fff; }
.path-go { margin-top: auto; color: var(--rs-red); font-weight: 700; }
.path-apps .path-go { color: var(--on-dark-accent); }
.path-icons { display: flex; gap: 8px; margin-top: 6px; }
.path-icons img { width: 34px; height: 34px; border-radius: 9px; }
.path:hover .path-go, .path:focus-visible .path-go { text-decoration: underline; }

/* Sections */
.block { padding: 72px 0; border-top: 1px solid var(--line); }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.block h2 { max-width: 640px; margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -.015em; }
.sub { max-width: 620px; margin: 10px 0 0; color: var(--muted); }

.filter { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter button { padding: 7px 14px; border: 0; border-radius: 7px; color: #555; background: transparent; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.filter button[aria-pressed="true"] { color: #fff; background: var(--ink); }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.spotlight video { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; background: #111; }
.spotlight-copy { display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.spotlight-copy h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.6rem; line-height: 1.15; }
.spotlight-copy h3 img { width: 44px; height: 44px; border-radius: 11px; }
.spotlight-copy p { margin: 0; color: var(--body); }
.spotlight-copy ul { margin: 0; padding-left: 18px; color: var(--body); }
.spotlight-copy li { margin: 4px 0; }
.spotlight-status { align-self: flex-start; }
.spotlight-copy .cta-row { margin-top: auto; gap: 10px; }

/* App cards */
.app-group[hidden] { display: none; }
.group-label { margin: 18px 0 12px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.app-card:hover, .app-card:focus-visible { border-color: #cbbfae; box-shadow: 0 10px 28px rgba(22, 23, 25, .07); outline: none; }
.app-card img { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 13px; }
.app-card h4 { margin: 0 0 4px; font-size: 1.02rem; }
.app-card h4 small { color: #80878a; font-size: .78rem; font-weight: 600; }
.app-card p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; }
.app-watch { color: var(--rs-red); }
.product-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.product-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-available { color: #1f7a3f; background: #e5f4ea; }
.status-early { color: #8a5a00; background: #fbf0d9; }
.status-dev { color: #3d4f8f; background: #e6eafa; }

/* Consulting */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.service span { color: var(--rs-red); font-size: .8rem; font-weight: 800; }
.service h3 { margin: 0; font-size: 1.08rem; }
.service p { margin: 0; color: var(--muted); font-size: .9rem; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tools li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .86rem; font-weight: 600; }
.tools .tools-label { padding: 0 6px 0 0; border: 0; color: var(--muted); background: none; font-size: .82rem; font-weight: 700; }

/* How we work */
.on-dark { border-top: 0; color: #fff; background: var(--graphite); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; }
.steps li { padding: 22px 20px 0 0; }
.steps span { color: var(--on-dark-accent); font-size: .8rem; font-weight: 800; }
.steps h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: rgba(255, 255, 255, .74); font-size: .9rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-direct { display: grid; gap: 12px; margin: 22px 0 0; color: var(--body); }
.contact-direct dt { color: var(--ink); font-weight: 700; }
.contact-direct dd { margin: 0; }
.contact-direct a { text-decoration: underline; text-underline-offset: 3px; }
.next-title { margin: 28px 0 8px; font-size: 1rem; }
.next-steps { margin: 0; padding-left: 20px; color: var(--body); }
.next-steps li { margin: 4px 0; }
.contact-form { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; }
.contact-form legend, .contact-form label { color: #444; font-size: .82rem; font-weight: 700; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #d6cec2; border-radius: 8px; color: var(--ink); background: #fdfcfa; font: inherit; font-size: .95rem; }
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: 2px solid rgba(22, 23, 25, .12); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; }
.choices span { display: inline-block; padding: 7px 12px; border: 1px solid #d6cec2; border-radius: 999px; font-size: .84rem; font-weight: 600; cursor: pointer; }
.choices input:checked + span { border-color: var(--rs-red); color: var(--rs-red); background: #fff4f3; }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.form-status.is-ok { color: #1f7a3f; background: #e5f4ea; }
.form-status.is-error { color: #9f0606; background: #fff1f0; }
.form-status a { text-decoration: underline; }
.contact-form { position: relative; }
.form-note { margin: 0; color: var(--muted); font-size: .8rem; }

/* Footer */
.home-footer { padding: 44px 0 28px; color: rgba(255, 255, 255, .75); background: var(--ink); font-size: .88rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.home-footer .wordmark { color: #fff; }
.home-footer h4 { margin: 0 0 10px; color: #fff; font-size: .85rem; }
.home-footer h4 + ul + h4 { margin-top: 16px; }
.home-footer ul { margin: 0; padding: 0; list-style: none; }
.home-footer li { margin: 4px 0; }
.home-footer a:hover, .home-footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-about { max-width: 280px; margin-top: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-legal p { margin: 0; }

@media (max-width: 900px) {
  .hero { padding: 36px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .stage { min-height: 300px; }
  .stage-phone { width: 118px; border-width: 5px; border-radius: 18px; }
  .stage-note { display: none; }
  .paths .wrap, .spotlight, .contact { grid-template-columns: 1fr; }
  .path { min-height: 0; padding: 24px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 6px; }
  .block { padding: 48px 0; }
  .proof { gap: 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .app-grid, .service-grid { grid-template-columns: 1fr; }
  .app-card { padding: 16px; }
  .spotlight-copy { padding: 22px; }
  .filter { width: 100%; }
  .filter button { flex: 1; padding: 8px 6px; }
}
