/* homeling.ai (site-2). System fonts only and nothing from other origins. Colours come from the app icon's orange
   and cream; every text pair is at least 4.5:1 in both themes (docs/lanes/site-2-NOTES.md has the table).
   Screenshots are real app renders; their frames match the renders' own background (--shot). */

:root {
  color-scheme: light dark;
  --bg: #fff8f1;
  --bg-tint: #fff0e2;
  --surface: #ffffff;
  --text: #2a1d14;
  --muted: #6b5747;
  --accent: #b23a1c;            /* links and eyebrows */
  --button: #b8401e;            /* white text on it */
  --button-hover: #9f3416;
  --button-text: #ffffff;
  --border: #eedfd0;
  --shot: #ffffff;              /* the renders' window background */
  --bezel: #1d1612;
  --draft: #fff1d6;
  --draft-text: #6a4300;
  --ok: #1d6b34;
  --error: #b3211a;
  --focus: #b8401e;
  --glow-1: rgba(255, 159, 90, 0.45);
  --glow-2: rgba(232, 83, 47, 0.22);
  --panel: linear-gradient(140deg, #fff0e2 0%, #ffe6d2 55%, #ffdcc2 100%);   /* darkest stop keeps --accent at 4.6:1 */
  --shadow: 0 1px 2px rgba(90, 40, 15, 0.08), 0 12px 28px -8px rgba(90, 40, 15, 0.22), 0 40px 80px -24px rgba(90, 40, 15, 0.30);
  --shadow-soft: 0 1px 2px rgba(90, 40, 15, 0.06), 0 10px 24px -10px rgba(90, 40, 15, 0.18);
  --radius: 22px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15100c;
    --bg-tint: #1d1510;
    --surface: #231a14;
    --text: #f7eee5;
    --muted: #bfae9e;
    --accent: #ffb27a;
    --button: #ff9f5a;
    --button-hover: #ffb27a;
    --button-text: #1a1410;
    --border: #3a2c22;
    --shot: #171717;
    --bezel: #0b0907;
    --draft: #3a2a12;
    --draft-text: #ffd9a0;
    --ok: #7be09a;
    --error: #ff8f87;
    --focus: #ffb27a;
    --glow-1: rgba(255, 140, 70, 0.22);
    --glow-2: rgba(232, 83, 47, 0.16);
    --panel: linear-gradient(140deg, #3a2316 0%, #2c1b12 55%, #24170f 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -8px rgba(0, 0, 0, 0.55), 0 40px 80px -24px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.6 var(--font); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 650 16px/1 var(--font); color: var(--button-text); background: var(--button);
  border: 0; border-radius: 999px; padding: 12px 20px; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--button) 70%, transparent);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.pill:hover { background: var(--button-hover); text-decoration: none; }
.pill:active { transform: translateY(1px); }
.site-header .pill { padding: 10px 16px; font-size: 15px; }

/* Hero */
.hero { position: relative; text-align: center; padding: 56px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 50% 30%, var(--glow-1), transparent 70%),
    radial-gradient(30% 40% at 78% 55%, var(--glow-2), transparent 70%),
    radial-gradient(30% 40% at 20% 60%, var(--glow-2), transparent 70%);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; color: var(--accent);
  background: var(--surface); border: 1px solid var(--border); padding: 6px 14px 6px 8px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.badge img { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(46px, 8.2vw, 92px); font-weight: 800; letter-spacing: -0.035em; margin: 22px auto 18px; max-width: 11em; }
.hero h1 .warm {
  background: linear-gradient(100deg, #c9441d, #e0612e); -webkit-background-clip: text;   /* ≥ 3.4:1, large text */ background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) { .hero h1 .warm { background-image: linear-gradient(100deg, #ff8a5c, #ffc08a); } }
.hero .sub { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: var(--muted); max-width: 34em; margin: 0 auto; }

/* Waitlist form */
.signup { max-width: 520px; margin: 34px auto 0; text-align: left; }
.signup .row {
  display: flex; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; box-shadow: var(--shadow-soft);
}
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 17px; color: var(--text); background: transparent;
  border: 0; border-radius: 999px; padding: 10px 16px;
}
.signup input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.signup input[type="email"]:focus-visible { outline-offset: 0; }
.signup .pill { flex: 0 0 auto; }
.signup button[disabled] { opacity: 0.7; cursor: progress; }
.signup .consent { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 12px 18px 0; text-align: center; }
.signup .status { margin: 12px 18px 0; font-weight: 650; text-align: center; }
.signup .status:empty { margin: 0; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }
@media (max-width: 480px) {
  .signup .row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .signup input[type="email"] { padding: 12px 14px; }
  .signup .pill { width: 100%; padding: 14px 20px; }
}

/* The product shot: a Mac window with the approval card over it */
.stage { position: relative; max-width: 1000px; margin: 64px auto 0; padding: 0 0 96px; }
.window {
  position: relative; width: min(100%, 880px); margin: 0 auto; background: var(--shot);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  outline: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.window .bar { display: flex; gap: 8px; align-items: center; height: 38px; padding: 0 16px; background: var(--shot); }
.window .bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window .bar span:nth-child(2) { background: #febc2e; }
.window .bar span:nth-child(3) { background: #28c840; }
.sheet {
  position: absolute; right: 0; bottom: 18px; width: 46%; max-width: 440px; margin: 0;
  background: var(--shot); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  outline: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
@media (max-width: 760px) {
  .stage { margin-top: 44px; padding-bottom: 8px; }
  .sheet { position: relative; right: auto; bottom: auto; width: 92%; max-width: 440px; margin: -28px auto 0; }
}

/* Feature rows */
.features { padding-top: 40px; padding-bottom: 24px; }   /* keeps .wrap's side padding */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 64px 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.feature h2, .band h2, .closing h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 0 0 16px; }
.feature p { font-size: 19px; color: var(--muted); margin: 0; max-width: 28em; }
.feature p + p { margin-top: 12px; }
.feature .note { font-size: 16px; }
.media { position: relative; background: var(--panel); border-radius: 32px; padding: clamp(18px, 4vw, 44px); overflow: hidden; }
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(60% 50% at 85% 0%, rgba(255, 255, 255, 0.35), transparent 70%);
}
@media (prefers-color-scheme: dark) { .media::after { background: radial-gradient(60% 50% at 85% 0%, rgba(255, 170, 110, 0.10), transparent 70%); } }
.card {
  position: relative; z-index: 1; margin: 0; background: var(--shot); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); outline: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.phones { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3vw, 28px); }
.phone {
  margin: 0; width: min(46%, 270px); background: var(--bezel); padding: 7px; border-radius: 42px;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 35px; }
.phones .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature.flip .copy { order: 0; }
}

/* "Works with" band */
.band { text-align: center; padding: 72px 0; }
.band .apps { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; }
.band .apps li {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px 10px 12px; box-shadow: var(--shadow-soft);
}
.band .apps svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.band p { color: var(--muted); font-size: 19px; max-width: 32em; margin: 24px auto 0; }

/* Closing call */
.closing { padding: 24px 0 24px; }
.closing .panel {
  position: relative; text-align: center; background: var(--panel); border-radius: 36px;
  padding: clamp(36px, 7vw, 80px) clamp(18px, 5vw, 64px); overflow: hidden;
}
.closing .panel > img { width: 88px; height: 88px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(180, 70, 30, 0.35)); }
.closing p { color: var(--muted); font-size: 19px; margin: 0 auto; max-width: 30em; }
.closing .needs { font-size: 15px; margin-top: 22px; }

/* Footer */
.site-footer { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer .brand { font-size: 17px; color: var(--muted); }
.site-footer .brand img { width: 26px; height: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

/* Text pages (privacy, terms, affiliate disclosure, contact, and the small answer pages) */
.doc { max-width: 760px; padding-top: 48px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 800; margin: 0 0 14px; }
.doc h2 { font-size: 27px; margin: 48px 0 10px; }
.doc h3 { font-size: 20px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.draft { background: var(--draft); color: var(--draft-text); border-radius: 12px; padding: 10px 14px; font-weight: 650; font-size: 15px; margin: 0; }
.short {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 22px 26px; margin: 28px 0 8px;
}
.short h2 { margin: 0 0 8px; font-size: 22px; }
.short ul { margin: 0; padding-left: 1.2em; }
.short li + li { margin-top: 8px; }
.facts { margin: 14px 0; border-top: 1px solid var(--border); }
.facts div { display: grid; grid-template-columns: 10em 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 600px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.contact-list a { font: 700 21px/1.3 var(--display); }
.contact-list p { margin: 6px 0 0; color: var(--muted); }
.answer { text-align: center; padding-top: 72px; }
.answer > img { width: 96px; height: 96px; margin: 0 auto 22px; }
.answer p { color: var(--muted); font-size: 19px; max-width: 30em; margin: 0 auto 28px; }

/* Explainers and guides (site-3): reading-width articles with real renders in the warm panel, numbered steps,
   keyboard keys, and the guides index's cards */
.guide header { margin-bottom: 8px; }
.guide .lede { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0; }
.guide figure.media { margin: 32px 0 12px; padding: clamp(16px, 3.4vw, 32px); }
.guide figure.media > div { margin: 0 auto; max-width: max-content; }
@media (max-width: 600px) { .guide figure.media { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 14px 10px; } }
.guide figure .window { width: 100%; }
.guide figcaption { position: relative; z-index: 1; margin: 16px auto 0; max-width: 40em; text-align: center; font-size: 15px; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.steps > li {
  counter-increment: step; position: relative; padding: 16px 20px 16px 62px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--button); color: var(--button-text); font: 800 17px/32px var(--display); text-align: center;
}
kbd {
  display: inline-block; min-width: 1.7em; padding: 3px 7px; text-align: center; font: 700 0.85em/1.2 var(--font);
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 7px;
}
.guide-list { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.guide-list a {
  display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.guide-list a:hover h2 { color: var(--accent); }
.guide-list .thumb { background: var(--panel); padding: 18px 18px 0; height: 200px; overflow: hidden; }
.guide-list .thumb img { border-radius: 12px 12px 0 0; box-shadow: var(--shadow-soft); }
.guide-list h2 { font-size: 23px; margin: 18px 20px 6px; }
.guide-list p { margin: 0 20px 20px; color: var(--muted); font-size: 17px; }
.more { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--border); }
.more h2 { font-size: 22px; margin-top: 24px; }

/* Motion: the hero rises in on load, and sections rise in as they scroll into view (scroll-driven, no script).
   Nothing moves for people who ask for less motion, and browsers without scroll timelines show everything as is. */
@keyframes rise { from { opacity: 0; transform: translateY(36px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .lift { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .lift.l2 { animation-delay: 0.08s; }
  .hero .lift.l3 { animation-delay: 0.16s; }
  .hero .lift.l4 { animation-delay: 0.26s; }
  .hero .sheet.lift { animation-delay: 0.5s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  html { scroll-behavior: smooth; }
}
