/* ==========================================================================
   RealAutomation — stylesheet
   One file, no build step. Edit colours in :root and the whole site follows.
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #11161C;
  --ink-2:      #1A2129;
  --bg:         #FFFFFF;
  --bg-soft:    #F7F5F2;
  --bg-tint:    #FBEEE7;

  --text:       #14191F;
  --muted:      #5C6873;
  --muted-dark: #9AA6B2;

  --accent:     #C25A2E;
  --accent-ink: #A2481F;
  --accent-lite:#F3A77C;

  --line:       #E4E0DA;
  --line-dark:  rgba(255,255,255,.12);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --wrap: 1140px;
  --gut: 24px;
  --r: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(17,22,28,.06), 0 4px 14px rgba(17,22,28,.05);
  --shadow-md: 0 2px 6px rgba(17,22,28,.07), 0 18px 44px rgba(17,22,28,.09);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.22rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 780px; }

section { padding: clamp(64px, 9vw, 112px) 0; }
section.tight { padding: clamp(48px, 6vw, 72px) 0; }

.soft { background: var(--bg-soft); }
.dark { background: var(--ink); color: #EEF1F4; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lede, .dark .muted { color: #A9B4BF; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow { color: var(--accent-lite); }

.lede { font-size: clamp(1.07rem, 1.7vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .92em 1.6em;
  border-radius: 999px;
  font-weight: 600; font-size: .97rem; letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(194,90,46,.26); }
.btn--primary:hover { background: var(--accent-ink); box-shadow: 0 10px 26px rgba(194,90,46,.32); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--text); }
.btn--ghost:hover { border-color: #C9C3BA; }
.dark .btn--ghost { background: transparent; border-color: var(--line-dark); color: #fff; }
.dark .btn--ghost:hover { border-color: rgba(255,255,255,.32); }
.btn--sm { padding: .68em 1.2em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.arrowlink {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .95rem; color: var(--accent); text-decoration: none;
}
.arrowlink span { transition: transform .18s ease; }
.arrowlink:hover span { transform: translateX(3px); }
.dark .arrowlink { color: var(--accent-lite); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 14px rgba(17,22,28,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.06rem; color: var(--text); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 700; }
.brand i { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5em .8em; border-radius: 8px;
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.is-active { color: var(--text); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--text); transition: transform .2s ease, top .2s ease; }
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #EEF1F4;
  padding: clamp(70px, 11vw, 132px) 0 clamp(64px, 9vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(194,90,46,.34), transparent 62%),
    radial-gradient(700px 420px at 4% 108%, rgba(84,110,133,.26), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent-lite); }
.hero .lede { max-width: 54ch; color: #B6C1CC; margin-top: .4em; }
.hero .btn-row { margin-top: 2rem; }

.hero-strip {
  margin-top: clamp(38px, 5vw, 58px); padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  font-size: .88rem; color: #93A0AC;
}
.hero-strip span { display: inline-flex; align-items: center; gap: .5em; }
.hero-strip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D8D2C9; }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .97rem; color: var(--muted); line-height: 1.6; }
.soft .card { background: #fff; }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card p { color: #A2AEB9; }

.icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--accent);
}
.icon svg { width: 21px; height: 21px; }
.dark .icon { background: rgba(194,90,46,.17); color: var(--accent-lite); }

/* Problem list */
.painlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.painlist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  font-size: 1rem; line-height: 1.55;
}
.painlist li::before {
  content: "✕"; flex: none;
  width: 22px; height: 22px; border-radius: 6px; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--accent); font-size: .72rem; font-weight: 700;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.step { background: #fff; padding: 30px 28px; display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
.step .num {
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--accent);
  line-height: 1; padding-top: 2px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Case cards */
.case { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.case-head { padding: 26px 26px 0; }
.case-tag { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); background: var(--bg-tint); padding: .38em .8em; border-radius: 999px; margin-bottom: 14px; }
.case-body { padding: 0 26px 26px; }
.case-body p { font-size: .97rem; color: var(--muted); }
.case-meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .3em .75em; }

/* Split / about */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--wide { grid-template-columns: 1fr 1fr; }

.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line-dark); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--ink-2); padding: 26px 24px; }
.stat b { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: #fff; line-height: 1; margin-bottom: .35em; }
.stat span { font-size: .9rem; color: #9AA6B2; line-height: 1.45; display: block; }

/* Video slots */
.videos { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.video {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0C1116; display: grid; place-items: center; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-placeholder { text-align: center; color: #6F7D8A; font-size: .85rem; padding: 16px; }
.video-placeholder svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .55; }
.video-cap { padding: 16px 18px 20px; }
.video-cap strong { display: block; font-size: .97rem; color: #fff; margin-bottom: 4px; font-weight: 600; }
.video-cap span { font-size: .87rem; color: #93A0AC; }

/* Pricing */
.price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; background: #fff; display: flex; flex-direction: column; }
.price-card.is-feature { border-color: var(--accent); box-shadow: 0 12px 34px rgba(194,90,46,.14); position: relative; }
.price-card.is-feature::after { content: "Most builds"; position: absolute; top: -11px; left: 26px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; }
.price-card h3 { margin-bottom: .3em; }
.price-figure { font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--text); margin: 10px 0 4px; line-height: 1.1; }
.price-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.price-card li { font-size: .94rem; color: var(--muted); padding-left: 26px; position: relative; line-height: 1.5; }
.price-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: .88rem; }

/* Tick list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 27px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: .88rem; }
.dark .ticks li { color: #A2AEB9; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 42px 22px 0; position: relative;
  font-weight: 600; font-size: 1.04rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 48px 24px 0; margin: 0; color: var(--muted); font-size: .99rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 78% 0%, rgba(194,90,46,.38), transparent 62%);
}
.cta-band .wrap { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { max-width: 52ch; margin-inline: auto; color: #B6C1CC; }
.cta-band .btn-row { justify-content: center; margin-top: 1.8rem; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; letter-spacing: -.005em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem;
  padding: .82em .95em; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--text); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,90,46,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.contact-aside { display: grid; gap: 22px; align-content: start; }
.contact-item { display: grid; gap: 3px; }
.contact-item b { font-size: .84rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.contact-item a, .contact-item span { font-size: 1.04rem; text-decoration: none; }
.contact-item a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: #9AA6B2; padding: 60px 0 32px; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { max-width: 36ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bot { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; color: #74818D; }

/* Prose (about / legal) */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.1em; color: var(--muted); }
.prose li { margin-bottom: .5em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .price { grid-template-columns: 1fr; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 20px;
    box-shadow: 0 14px 30px rgba(17,22,28,.08);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .75em .6em; font-size: 1.02rem; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .hero h1 { max-width: none; }
}
