/* racon marketing site. Palette from the brand mockup: forest, mint, pine, sage, mist. No external requests. */
:root {
  --forest: #1a292d; --forest-2: #243a3e; --mint: #87cba4; --mint-soft: #cfeadb; --pine: #3e6a59;
  --sage: #709a95; --mist: #f3f6f2; --white: #fefefe; --line: #dde5df; --sand: #d9c9a3; --alert: #b4453a;
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max: 1120px; --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--forest); background: var(--white); }
img, svg { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--forest); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 620; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.eyebrow { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 1.1em; }
.eyebrow.dark { color: var(--pine); }
.accent { color: var(--mint); }
.fine { font-size: 0.875rem; opacity: 0.8; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.55em 1.15em; border-radius: 999px; background: var(--mint); color: var(--forest);
  font-weight: 620; text-decoration: none; border: 2px solid var(--mint); transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); background: var(--mint-soft); border-color: var(--mint-soft); color: var(--forest); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.9; }
.btn.ghost:hover { background: rgba(135, 203, 164, 0.15); border-color: var(--mint); }
.btn.big { font-size: 1.1rem; padding: 0.75em 1.5em; }

/* header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(26, 41, 45, 0.92); backdrop-filter: blur(10px); color: var(--white); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; color: var(--white); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--white); text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--mint); }
.nav .btn { padding: 0.4em 1em; font-size: 0.95rem; }
.nav .btn.ghost { color: var(--white); }
.nav-toggle { display: none; background: none; border: 2px solid var(--mint); color: var(--white); border-radius: 999px; padding: 0.3em 0.9em; font: inherit; cursor: pointer; }

/* hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(135, 203, 164, 0.22), transparent 60%), var(--forest);
  color: var(--white); padding: clamp(56px, 9vw, 120px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #dbe7e0; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.trail { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; stroke: var(--mint); stroke-width: 2; fill: none; opacity: 0.45; }
.trail circle { fill: var(--mint); stroke: none; }

/* the illustrated prospect card */
.mock { margin: 0; background: var(--white); color: var(--forest); border-radius: var(--radius); padding: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); transform: rotate(1.2deg); }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mock-name { font-weight: 650; font-size: 1.1rem; margin: 0; }
.mock-sub { margin: 0; font-size: 0.85rem; color: var(--pine); }
.pill { display: inline-block; padding: 0.15em 0.8em; border-radius: 999px; font-size: 0.8rem; font-weight: 650; background: var(--mint); color: var(--forest); }
.pill.later { background: var(--mist); border: 1px solid var(--sage); }
.pill.watch { background: #eee4cb; }
.bars { display: grid; gap: 8px; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 56px 1fr 30px; align-items: center; gap: 10px; font-size: 0.9rem; }
.track { height: 10px; border-radius: 6px; background: var(--mist); overflow: hidden; display: block; }
.fill { display: block; height: 100%; background: var(--forest); border-radius: 6px; }
.fill.alt { background: var(--mint); }
.w82 { width: 82%; } .w71 { width: 71%; }
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.88rem; }
.signals li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: start; }
.signals em { display: block; font-style: normal; font-size: 0.78rem; color: var(--sage); }
.tag { font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; background: var(--mint-soft); color: var(--pine); border-radius: 6px; padding: 2px 6px; text-align: center; }
.tag.mute { background: var(--mist); color: var(--sage); }
.mock figcaption { margin-top: 14px; font-size: 0.75rem; color: var(--sage); text-align: right; }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--forest); color: var(--white); }
.section.dark a { color: var(--mint); }
.section.final { background: linear-gradient(180deg, var(--mint-soft), var(--mist)); }
.section-lead { font-size: 1.2rem; max-width: 40em; color: var(--pine); }
.section.dark .section-lead, .section.dark p { color: #cfe0d8; }
.statement { background: var(--mist); padding: clamp(64px, 9vw, 110px) 0; }
.statement .big { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.statement .big span { color: var(--pine); }
.statement p { color: var(--pine); font-size: 1.15rem; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { border-top: 3px solid var(--forest); padding-top: 18px; }
.num { display: block; font-size: 0.9rem; font-weight: 700; color: var(--pine); letter-spacing: 0.1em; margin-bottom: 8px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 14px; }
.card p { color: var(--pine); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.teach { background: var(--mist); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 0.5em; width: 5px; height: 9px; border: solid var(--forest); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; margin-top: 36px; }
.quad article { border-left: 3px solid var(--mint); padding-left: 20px; }
.quad h3 { color: var(--white); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 620; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pine); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--pine); }

/* footer */
.foot { background: var(--forest); color: var(--white); padding: 48px 0 24px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.foot a { color: #cfe0d8; text-decoration: none; }
.foot a:hover { color: var(--mint); }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--forest-2); font-size: 0.85rem; color: var(--sage); }

/* RaconBot page */
.doc { padding: clamp(40px, 7vw, 90px) 0; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc code { background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.92em; overflow-wrap: anywhere; }
.doc pre { background: var(--forest); color: var(--mint-soft); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 0.92rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* motion: content is visible without JS; with JS it fades in once */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .steps, .trio, .quad { grid-template-columns: 1fr; }
  .mock { transform: none; max-width: 520px; }
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--forest); flex-direction: column; align-items: flex-start;
    padding: 18px 20px 24px; gap: 14px; border-top: 1px solid var(--forest-2); }
  .nav-links.open { display: flex; }
  .trail { height: 70px; }
}
