/* One stylesheet for every page, in the Deep Forest colours (decision 0017). Dark, mobile first.
   Motion only for visitors who have not asked for less. */
:root {
  --bg: #0A1712; --bg-2: #11241C; --glass: rgba(255, 255, 255, .045); --line: rgba(232, 241, 236, .1);
  --fg: #E8F1EC; --muted: #9DB5A8; --primary: #4ADE80; --accent: #F5C451; --ink: #0A1712; /* ink: text on a coloured fill */
  /* The agents' colours in the hero, the planner and the pipeline: sky, teal, green, clay, gold, then you in the text colour. */
  --sky: #7DD3FC; --teal: #5EEAD4; --clay: #F59E6B;
  --grad: linear-gradient(120deg, var(--primary), var(--accent)); /* green furrows to the gold sun of the logo */
  --focus: var(--accent); --radius: 16px;
  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(60rem 40rem at 85% -10%, rgba(245, 196, 81, .11), transparent 60%),
                    radial-gradient(50rem 36rem at -10% 10%, rgba(74, 222, 128, .12), transparent 60%);
  background-repeat: no-repeat;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 8vw, 68px); }
h2 { font-size: clamp(28px, 5vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 16px; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 13px/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header: glass bar that stays on top; links wrap on small screens instead of a menu button. */
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(10, 23, 18, .78); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 12px; padding-bottom: 12px; }
/* The Horizon logo (written in by the Worker; decision 0017). */
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 36px; width: auto; }
.site-header nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--fg); text-decoration: none; padding: 6px 0; display: inline-block; }
.site-header nav a[aria-current] { color: var(--primary); }
.site-header nav a:hover { color: var(--primary); }
.site-header nav a.btn { color: var(--ink); padding: 8px 16px; } /* also on its own page, where aria-current would turn it green */
.site-header nav .lang { font: 600 13px var(--display); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
/* "Who we help": a <details> menu that opens below its label (decision 0021). */
.site-header .menu { position: relative; }
.site-header .menu summary { list-style: none; cursor: pointer; padding: 6px 0; color: var(--fg); }
.site-header .menu summary::-webkit-details-marker { display: none; }
.site-header .menu summary::after { content: " ▾"; font-size: 12px; color: var(--muted); }
.site-header .menu summary:hover, .site-header .menu summary.current { color: var(--primary); }
.site-header .menu .menu-head { margin-top: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-header .menu .menu-head:first-child { margin-top: 0; }
.site-header .menu ul { position: absolute; left: 0; top: 100%; z-index: 6; display: grid; gap: 2px; min-width: 230px; margin: 6px 0 0; padding: 8px 14px; list-style: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); }
@media (max-width: 700px) { .site-header .menu ul { position: static; min-width: 0; box-shadow: none; } } /* on phones it opens in place, never off screen */
.site-header nav .lang:hover { border-color: var(--primary); }

.btn { display: inline-block; background: var(--accent); color: var(--ink); font: 700 16px/1.2 var(--display); border: 0; border-radius: 999px; padding: 14px 24px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 30px -8px rgba(245, 196, 81, .55); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -8px rgba(245, 196, 81, .75); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--primary); }
.link-more { font-weight: 600; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--primary); }

section { padding: 72px 0; position: relative; }
.lead { color: var(--muted); font-size: 19px; max-width: 680px; }
.page { padding-top: 64px; padding-bottom: 72px; }
.prose { max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }

/* Hero: text and the live agent network side by side on wide screens. */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.hero .wrap { position: relative; display: grid; gap: 24px; align-items: center; }
.hero p.lead { font-size: 20px; }
.network { width: 100%; height: 340px; display: block; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 72px; }
  .hero .wrap.split { grid-template-columns: 1.05fr 1fr; }
  .network { height: 480px; }
}

/* Cards: glass panels with a gradient edge on hover. */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 32px 0 0; padding: 0; list-style: none; }
.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .25s, background .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(74, 222, 128, .45); background: rgba(255, 255, 255, .065); }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 700 14px var(--display); color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(74, 222, 128, .12); color: var(--primary); }
.card .icon svg { width: 24px; height: 24px; }
/* A one-line promise under a section's cards (Home, "Why us"), and the worth-automating test on the Quick Audit pages. */
.band { display: grid; gap: 4px 24px; align-items: baseline; margin-top: 18px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid rgba(74, 222, 128, .35); background: linear-gradient(120deg, rgba(74, 222, 128, .1), rgba(245, 196, 81, .06)); }
.band strong { font-family: var(--display); color: var(--primary); }
.band p { margin: 0; }
@media (min-width: 760px) { .band:not(.worth) { grid-template-columns: auto 1fr; } }
.band.worth { max-width: 580px; margin: 24px 0 0; }
.band.worth ul { margin: 6px 0 8px; padding-left: 20px; }

/* The four groups on Home. */
.card.group .sectors-line { color: var(--muted); font-size: 15px; }

/* The three options on Home (decision 0022); the middle one, the agent team, is the main offer. */
.options .num { color: var(--primary); }
.options .main { border-color: rgba(245, 196, 81, .5); background: linear-gradient(150deg, rgba(74, 222, 128, .14), rgba(245, 196, 81, .08)); }
.options + .note { margin-top: 18px; }
.card.example .link-more { display: inline-block; margin-top: 4px; }

/* What an agent team does for one group: one line per kind of business. */
.jobs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.jobs li { padding-left: 28px; position: relative; }
.jobs li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.jobs b { font-family: var(--display); }
ol.jobs { counter-reset: step; }
ol.jobs li::before { counter-increment: step; content: counter(step) "."; }

/* Ticker of the kind of work agents do; decorative, stops for reduced motion. */

/* Pipeline: a request moving through the agents to a person, on How we work. */
.pipeline { position: relative; margin-top: 36px; padding: 28px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.pipeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; }
.pipeline ol::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--sky), var(--primary), var(--accent)); opacity: .4; }
.pipeline li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; align-items: center; position: relative; }
.pipeline .dot { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--c, var(--primary)); display: grid; place-items: center; font: 700 14px var(--display); color: var(--c, var(--primary)); animation: station 6s infinite; animation-delay: calc(var(--i) * 1s); }
.pipeline b { font-family: var(--display); }
.pipeline small { color: var(--muted); font-size: 14px; }
.pipeline .packet { position: absolute; left: 33px; top: 40px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 4px var(--primary); animation: packet-y 6s infinite; }
@keyframes station { 0% { box-shadow: 0 0 0 0 var(--c, var(--primary)); background: var(--c, var(--primary)); color: var(--ink); } 14% { box-shadow: 0 0 0 12px transparent; background: var(--bg-2); color: var(--c, var(--primary)); } }
@keyframes packet-y { 0% { top: 40px; opacity: 0; } 4% { opacity: 1; } 83% { top: calc(100% - 54px); opacity: 1; } 92%, 100% { top: calc(100% - 54px); opacity: 0; } }
@media (min-width: 820px) {
  .pipeline { padding: 34px 18px 28px; }
  .pipeline ol { grid-template-columns: repeat(6, 1fr); gap: 8px; text-align: center; }
  .pipeline ol::before { left: calc(100% / 12); right: calc(100% / 12); top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--sky), var(--primary), var(--accent)); }
  .pipeline li { grid-template-columns: 1fr; justify-items: center; gap: 6px; }
  .pipeline .dot { grid-row: auto; }
  .pipeline .packet { top: 49px; left: calc(100% / 12); animation-name: packet-x; }
  @keyframes packet-x { 0% { left: calc(100% / 12); opacity: 0; } 4% { opacity: 1; } 83% { left: calc(100% - 100% / 12 - 14px); opacity: 1; } 92%, 100% { left: calc(100% - 100% / 12 - 14px); opacity: 0; } }
}

/* The owners' questions on Your agent team: each answer opens under its question. */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--glass); padding: 14px 18px; }
.faq summary { cursor: pointer; font: 600 17px/1.4 var(--display); list-style: none; padding-right: 26px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--primary); font-size: 20px; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* The results video on Your agent team. */
.video { margin: 32px 0 0; aspect-ratio: 16 / 9; max-width: 900px; border-radius: 20px; padding: 2px; background: var(--grad); }
.video video { display: block; width: 100%; height: 100%; border-radius: 18px; background: #000; }
.video + .note { max-width: 900px; margin-top: 12px; }

.cta { text-align: center; }
.cta .panel { padding: 56px 20px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(40rem 20rem at 50% 0%, rgba(245, 196, 81, .14), transparent 70%), var(--glass); }
.cta .lead { margin: 0 auto 26px; }
.cta .actions { justify-content: center; margin-top: 0; }

/* The planner demo on the home page. */
.planner { display: grid; gap: 22px; margin-top: 32px; }
.planner > * { min-width: 0; }
@media (min-width: 960px) { .planner { grid-template-columns: 380px 1fr; align-items: start; } }
.panel-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.chips button { font: inherit; font-size: 14px; color: var(--fg); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chips button:hover, .chips button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }
.console { font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); min-height: 3.2em; margin: 0 0 18px; padding: 0; list-style: none; }
.console li::before { content: "› "; color: var(--primary); }
.console li.you::before { color: var(--accent); }
.recipes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.recipes button { font: 600 15px var(--display); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.recipes button[aria-selected="true"] { background: rgba(74, 222, 128, .14); border-color: var(--primary); }
.flow { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; counter-reset: node; }
.flow li { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 2px 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 23, 18, .55); transition: border-color .3s, box-shadow .3s, opacity .4s, transform .4s; }
.flow li + li::before { content: ""; position: absolute; left: 34px; top: -15px; width: 2px; height: 14px; background: var(--line); }
.flow .who { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 700 13px var(--display); color: var(--ink); background: var(--c); }
.flow b { font-family: var(--display); font-size: 15px; color: var(--c); }
.flow .what { font-size: 15px; }
.flow .out { grid-column: 2; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--primary); }
.flow li.active { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 32px -6px var(--c); }
.flow li.done { border-color: rgba(74, 222, 128, .4); }
.flow.assembling li { opacity: 0; transform: translateY(12px); }
.flow.assembling li.in { opacity: 1; transform: none; }
.planner-empty { color: var(--muted); text-align: center; padding: 48px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.note { font-size: 14px; color: var(--muted); }

form { display: grid; gap: 16px; max-width: 580px; margin-top: 24px; }
label { display: grid; gap: 6px; font-weight: 600; }
label span { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: rgba(10, 23, 18, .7); border: 1px solid rgba(232, 241, 236, .22); border-radius: 10px; padding: 11px 13px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { min-height: 130px; resize: vertical; }
.planner form { margin: 0; max-width: none; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #fca5a5; font-weight: 600; margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }
.footer-brand { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 16px; }
.footer-brand img { display: block; height: 30px; width: auto; }
.footer-brand .powered { flex-basis: 100%; font-size: 14px; }
.footer-brand .powered a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-brand .powered a:hover { color: var(--primary); }
.hero-powered { display: inline-block; margin: 22px 0 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.hero-powered a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero-powered a:hover { color: var(--primary); }
.site-footer nav { flex-basis: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0 0 14px; padding: 0; }
.footer-links a { color: var(--fg); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--primary); }

/* Scroll reveals in pure CSS where the browser supports it; elsewhere everything simply shows. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .actions { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lead { animation-delay: .12s; }
  .hero .actions { animation-delay: .24s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: reduce) {
  .pipeline .dot { animation: none; }
  .pipeline .packet { display: none; }
  .card, .btn, .flow li { transition: none; }
}

/* "A morning with your agents" (decision 0034): a timeline with clock times beside the phone message the owner approves. */
.morning { display: grid; gap: 36px; align-items: start; margin-top: 24px; }
@media (min-width: 900px) { .morning { grid-template-columns: 1.5fr 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 16px; border-left: 2px solid var(--line); max-width: 640px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.timeline li.yes::before { background: var(--accent); }
.timeline time { display: block; font: 600 14px/1.3 var(--display); color: var(--accent); letter-spacing: .02em; }
.phone { width: 270px; max-width: 100%; margin: 0 auto; padding: 18px 12px 26px; border-radius: 38px; border: 2px solid var(--line); background: linear-gradient(180deg, #0d1f17, #071009); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); }
.phone::before { content: ""; display: block; width: 84px; height: 6px; margin: 0 auto 26px; border-radius: 6px; background: var(--line); }
.notice { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; font-size: 14px; line-height: 1.45; }
.notice small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.notice b { display: block; font-family: var(--display); margin-bottom: 4px; }
.notice p { margin: 0 0 12px; color: var(--fg); }
.notice .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notice .choices span { text-align: center; padding: 8px 0; border-radius: 999px; font: 700 14px/1.2 var(--display); border: 1px solid var(--line); }
.notice .choices span:first-child { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.phone-label { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.steps3 { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { counter-increment: s; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps3 li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--ink); font: 700 15px/1 var(--display); }
.steps3 b { display: block; font-family: var(--display); margin-bottom: 4px; }
/* "What we can take off your desk" (decision 0034): a compact grid of short titles, each with its one line. */
.desk { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px 28px; }
@media (min-width: 760px) { .desk { grid-template-columns: 1fr 1fr; } }
.desk li { padding: 12px 0 12px 14px; border-left: 3px solid var(--primary); font-size: 15px; line-height: 1.45; color: var(--muted); }
.desk b { display: block; font-family: var(--display); font-size: 16px; color: var(--fg); margin-bottom: 2px; }
#examples { padding: 8px 0 24px; } /* Home's one link to Examples (decision 0035) */
