/* ROIN marketing site — warm paper, serif display, terracotta accent. */

:root {
  --paper: #F0EEE6;
  --ink: #191612;
  --body: #4A443C;
  --muted: #6B6357;
  --accent: #B44A28;
  --accent-soft: #E08A62;
  --card: #FFFFFF;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; text-wrap: pretty; }

@keyframes roinBlink {
  0%, 60% { opacity: 1; }
  80%, 100% { opacity: 0.25; }
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
}
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--ink); color: #FFFFFF; }
.btn-outline { border: 1px solid rgba(25, 22, 18, 0.2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}
.logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  flex-wrap: wrap;
}
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}
.nav-cta:hover { background: var(--accent); color: var(--paper); }

/* Hero */

.hero { padding: 88px 0 64px; max-width: 940px; }
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.06;
  font-weight: 300;
}
.hero-lede {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.6;
  max-width: 60ch;
  color: var(--body);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* Shared section headings */

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
}

/* Set up around your shop */

.yours {
  padding-top: 64px;
  padding-bottom: 96px;
  border-top: 1px solid rgba(25, 22, 18, 0.12);
}
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}
.yours .section-title { max-width: 18ch; }
.yours-intro {
  margin-top: 20px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--body);
}
.config-list { display: grid; gap: 24px; }
.config-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(25, 22, 18, 0.14);
}
.config-item h3 { font-size: 19px; }
.config-item p { font-size: 15.5px; line-height: 1.6; color: var(--body); }

/* Assistant band */

.assistant {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 68px 52px 72px;
  margin-bottom: 96px;
}
.assistant .two-col { gap: 52px; align-items: center; }
.assistant-eyebrow {
  font-size: 13.5px;
  color: var(--accent-soft);
  margin-bottom: 20px;
}
.assistant .section-title { max-width: 16ch; }
.assistant-copy {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(240, 238, 230, 0.82);
}
.assistant-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--accent-soft);
  font-size: 16px;
  border-bottom: 1px solid rgba(224, 138, 98, 0.4);
}
.assistant-link:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

.chat {
  background: rgba(240, 238, 230, 0.06);
  border: 1px solid rgba(240, 238, 230, 0.14);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(240, 238, 230, 0.6);
}
.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: roinBlink 1.6s infinite;
}
.bubble { padding: 13px 16px; font-size: 15px; line-height: 1.55; }
.bubble-user {
  align-self: flex-end;
  max-width: 82%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px 14px 4px 14px;
}
.bubble-bot {
  align-self: flex-start;
  max-width: 90%;
  background: rgba(240, 238, 230, 0.1);
  border-radius: 14px 14px 14px 4px;
}

/* The system does the busywork */

.busywork { padding-bottom: 96px; }
.busywork .section-title { max-width: 20ch; }
.busywork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.busywork-card {
  background: var(--paper);
  border: 1px solid rgba(25, 22, 18, 0.14);
  padding: 30px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.busywork-card h3 { font-size: 20px; line-height: 1.25; }
.busywork-card p { font-size: 15.5px; line-height: 1.62; color: var(--body); }

/* Contact */

.contact {
  border-top: 1px solid rgba(25, 22, 18, 0.12);
  padding: 76px 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: end;
}
.contact h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  max-width: 16ch;
}
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.contact-body p { font-size: 17px; line-height: 1.65; color: var(--body); }
.contact-body .btn { padding: 15px 30px; }

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(25, 22, 18, 0.08);
  margin-top: 44px;
}

/* Phones: keep the page inside the screen */

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .hero-lede { font-size: 18px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .assistant { padding: 48px 22px 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-dot { animation: none; }
}

/* ---------- Inner pages (Platform, Assistant) ---------- */

.wrap-wide {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header.ruled { padding: 22px 0; border-bottom: 1px solid rgba(25, 22, 18, 0.12); }
.site-nav a.current { color: var(--accent); }
/* Home page: the header sits on the black intro band, edge to edge. */
.site-header.on-dark { margin: 0 calc(50% - 50vw); padding: 26px calc(50vw - 50%); background: #000; }
.site-header.on-dark a { color: #fff; }
.site-header.on-dark a:hover { color: var(--accent); }
.site-header.on-dark .nav-cta { background: #fff; color: #000; }
.site-header.on-dark .nav-cta:hover { background: var(--accent); color: #fff; }

.page-hero { padding: 80px 0 64px; max-width: 820px; }
.page-hero p.hero-proof {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--accent);
  max-width: none;
}
/* First section: a copy of the app's sign-in brand panel (black, converging lines, tagline). */
/* --below: extra black under the headline so the band reaches the bottom of the window (731px = 91px header + 640px panel). */
.si-panel { --below: max(0px, calc(100vh - 731px)); position: relative; margin: 0 calc(50% - 50vw); min-height: calc(640px + var(--below)); padding: 48px calc(50vw - 50%) calc(48px + var(--below)); background: #000; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; font-family: "Public Sans", sans-serif; }
.si-panel > .brand-hero-graphic { position: absolute; left: auto; right: 0; bottom: var(--below); width: min(100%, 860px); height: 384px; overflow: visible; clip-path: inset(0 0 0 -2000px); }
.si-panel h1.si-tagline { position: relative; margin-top: auto; color: #fff; font-family: "Public Sans", sans-serif; font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 380px; }

.si-panel + .block { border-top: 0; }

/* Lines draw in on page load. */
.brand-hero-graphic .ln { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .25s, stroke-width .25s, opacity .25s; animation: lnDraw 1.4s ease-out both; }
.brand-hero-graphic .dt { transition: fill .25s, r .25s; }
@keyframes lnDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .brand-hero-graphic .ln { animation: none; } }

.page-hero.narrow { max-width: 780px; }
.kicker {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.page-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; }
.page-hero p {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 58ch;
}

.block { border-top: 1px solid rgba(25, 22, 18, 0.12); padding: 56px 0 76px; }
.block.plain { border-top: 0; padding: 76px 0; }
.h2-sm { font-size: clamp(24px, 3.2vw, 34px); }
.lead { margin-top: 18px; font-size: 16.5px; line-height: 1.65; color: var(--body); }
.lead + .lead { margin-top: 16px; }

/* Jobs: one at a time, with tabs across the top */
.jobs { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.job-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0 20px;
}
.job-tab {
  all: unset;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 2px 16px;
  border-top: 1px solid rgba(25, 22, 18, 0.14);
  opacity: 0.55;
  transition: opacity .2s;
}
.job-tab:hover, .job-tab.is-active { opacity: 1; }
.job-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-tab-name { font-size: 16.5px; line-height: 1.3; color: var(--ink); }
/* Thin bar under the active tab that fills as its time runs out. */
.job-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: jobBar 7s linear both;
}
.jobs.is-paused .job-bar { animation: none; }
@keyframes jobBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.job-panel {
  background: var(--card);
  border: 1px solid rgba(25, 22, 18, 0.1);
  border-radius: 16px;
  padding: 36px 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
  align-items: center;
}
.job-panel[hidden] { display: none; }
.job-copy { display: flex; flex-direction: column; gap: 14px; }
.job-copy h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.job-copy h3.job-title-sm { font-size: 24px; }
.job-copy p { font-size: 16px; line-height: 1.62; color: var(--body); }
.job-panel .shot { margin: 0; }

.dir-num { font-size: 13.5px; color: var(--accent); }
.dir-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(25, 22, 18, 0.1);
}
.dir-points span { font-size: 14.5px; line-height: 1.5; color: var(--body); }

/* Lifecycle list */
.stages { display: flex; flex-direction: column; }
.stage {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(25, 22, 18, 0.14);
}
.stage-name { font-size: 14px; color: var(--accent); }
.stage-body { font-size: 15.5px; line-height: 1.55; color: var(--body); }

/* Dark band with accent-ruled columns */
.dark-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 60px 44px 66px;
}
.dark-band.spaced { margin-bottom: 76px; }
.dark-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-top: 44px;
}
.dark-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}
.dark-col h3 { font-size: 18px; }
.dark-col p { font-size: 15.5px; line-height: 1.6; color: rgba(240, 238, 230, 0.78); }

/* Small white list panels */
.panel {
  border: 1px solid rgba(25, 22, 18, 0.14);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(25, 22, 18, 0.12);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(25, 22, 18, 0.07);
  font-size: 14.5px;
}
.panel-row strong { font-weight: 500; }
.panel-row .count { font-size: 13px; color: var(--muted); }
.chip {
  border: 1px solid rgba(25, 22, 18, 0.18);
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.chip.accent { border-color: var(--accent); color: var(--accent); }
.chips { display: flex; gap: 6px; }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.metric {
  background: var(--card);
  border: 1px solid rgba(25, 22, 18, 0.14);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.metric-value { font-family: var(--serif); font-size: 27px; letter-spacing: -0.02em; }
.metric-delta { font-size: 13px; color: var(--muted); }
.fineprint {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Integrations */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { border: 1px solid rgba(25, 22, 18, 0.18); border-radius: 3px; padding: 8px 12px; font-size: 14px; }

/* Ruled points (assistant section) */
.points { display: flex; flex-direction: column; gap: 22px; }
.point {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(25, 22, 18, 0.14);
}
.point h3 { font-size: 18px; }
.point p { font-size: 15.5px; line-height: 1.6; color: var(--body); }
.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-size: 16px;
  border-bottom: 1px solid rgba(180, 74, 40, 0.4);
}
.text-link:hover { border-color: var(--accent); }

/* Closing CTA */
.closer {
  border-top: 1px solid rgba(25, 22, 18, 0.12);
  padding: 60px 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: end;
}
.closer h2 { font-size: clamp(24px, 3.4vw, 38px); max-width: 20ch; }
.closer-body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.closer-body p { font-size: 16.5px; line-height: 1.6; color: var(--body); }
.closer-body .btn { font-weight: 500; }
.site-footer.tight { padding: 28px 0 40px; font-size: 13.5px; border-top-color: rgba(25, 22, 18, 0.1); margin-top: 36px; }

/* Assistant page */
.contrast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.contrast {
  background: var(--paper);
  border: 1px solid rgba(25, 22, 18, 0.14);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contrast span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contrast h3 { font-size: 19px; line-height: 1.3; }
.beats { display: flex; flex-direction: column; gap: 28px; }
.beat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.beat span { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.beat h3 { font-size: 18.5px; }
.beat p { font-size: 16px; line-height: 1.6; color: var(--body); }
.ticket {
  border: 1px solid rgba(25, 22, 18, 0.14);
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ticket-meta {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(25, 22, 18, 0.1);
}
.ticket-note { align-self: flex-start; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ticket-q {
  align-self: flex-end;
  max-width: 84%;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 16px;
  border-radius: 10px 10px 2px 10px;
  font-size: 14.5px;
  line-height: 1.5;
}
.ticket-a {
  align-self: flex-start;
  max-width: 88%;
  background: #E7E3D7;
  padding: 13px 16px;
  border-radius: 10px 10px 10px 2px;
  font-size: 14.5px;
  line-height: 1.5;
}
.ticket-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
  border-top: 1px solid rgba(25, 22, 18, 0.1);
}
.ticket-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.straight { padding-bottom: 76px; max-width: 700px; }
.straight h2 { font-size: 24px; }
.straight ul {
  margin: 20px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--body);
}
.straight li { text-wrap: pretty; }

@media (max-width: 640px) {
  .wrap-wide { padding: 0 16px; }
  .page-hero { padding: 56px 0 48px; }
  .si-panel { --below: 0px; min-height: 520px; padding: 28px calc(50vw - 50%); }
  .si-panel > .brand-hero-graphic { height: 60%; }
  .si-panel h1.si-tagline { font-size: 32px; }
  .page-hero p { font-size: 18px; }
  .job-panel { padding: 26px 22px 28px; gap: 28px; }
  .stage { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .dark-band { padding: 44px 22px 48px; }
}

/* ---------- Demo request form ---------- */

.contact { align-items: start; }
.contact-intro p { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--body); max-width: 44ch; }
.demo-form {
  background: var(--card);
  border: 1px solid rgba(25, 22, 18, 0.07);
  border-radius: 18px;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13.5px; color: var(--body); }
.field em { font-style: normal; color: var(--muted); }
.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(25, 22, 18, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.demo-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; margin-top: 4px; padding: 15px 30px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Thank-you page */
.thanks { padding: 120px 0 140px; max-width: 640px; }
.thanks h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; font-weight: 300; }
.thanks p { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--body); }
.thanks .btn { margin-top: 34px; }

@media (max-width: 640px) {
  .demo-form { padding: 22px 18px 24px; }
}

/* Mini app screenshots inside the direction cards.
   To use a real screenshot instead, replace a <figure class="shot">…</figure> with:
   <figure class="shot"><img src="img/your-screenshot.png" alt="What it shows"></figure> */
.shot {
  margin: auto 0 0;
  border: 1px solid rgba(25, 22, 18, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  font-size: 13px;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #E7E3D7;
  border-bottom: 1px solid rgba(25, 22, 18, 0.1);
}
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(25, 22, 18, 0.18); }
.shot-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-body { padding: 14px; background: var(--card); }
.shot-chart { display: block; width: 100%; height: 90px; overflow: visible; }
.shot-chart .grid { stroke: rgba(25, 22, 18, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.shot-chart polyline { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.shot-chart .line-sell { stroke: var(--accent); }
.shot-chart .line-buy { stroke: var(--ink); opacity: 0.55; }
.shot-chart .dot-sell { fill: var(--accent); }
.shot-chart .dot-buy { fill: var(--muted); }
.shot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(25, 22, 18, 0.08);
}
.shot-stats span { display: block; font-size: 11px; color: var(--muted); }
.shot-stats strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.shot-stats .accent { color: var(--accent); }
.shot-split { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.shot-doc {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid rgba(25, 22, 18, 0.12);
  border-radius: 4px;
  background: var(--paper);
  aspect-ratio: 8.5 / 11;
}
.shot-doc b { height: 6px; width: 60%; background: rgba(25, 22, 18, 0.35); border-radius: 2px; }
.shot-doc em { height: 4px; background: rgba(25, 22, 18, 0.15); border-radius: 2px; }
.shot-doc em.short { width: 65%; }
.shot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(25, 22, 18, 0.07);
  min-width: 0;
}
.shot-row:last-child { border-bottom: 0; }
.shot-row span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-row strong { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-fields .shot-row span { width: 52px; flex: none; }
.shot-fields .shot-row strong { flex: 1; }
.shot-row i { font-style: normal; font-size: 12px; width: 18px; text-align: center; }
.shot-row i.ok { color: #3F7A4A; }
.shot-row.flag strong, .shot-row.flag i { color: var(--accent); }
.shot-list .shot-row strong { flex: none; }
.shot-list .shot-row span { flex: 1; }
.shot-list .shot-row em { font-style: normal; flex: none; padding: 3px 8px; }
.shot-list .shot-row b { font-weight: 500; color: var(--accent); width: 12px; flex: none; }

@media (max-width: 640px) {
  .shot-list .shot-row span { display: none; }
  .shot-list .shot-row strong { flex: 1; }
}
.footer-email { color: var(--muted); }
.footer-email:hover { color: var(--accent); }

/* Screen animations in the jobs section.
   Rate intelligence plays once each time its tab comes up (the panel is
   re-shown, which restarts the animation). Document intake loops every 7s. */
@keyframes riPop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes riUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Lines draw left to right. A clip reveal, because dash-based drawing breaks
   with non-scaling strokes on a stretched chart. */
@keyframes riDraw { from { clip-path: inset(-10px 100% -10px 0); } to { clip-path: inset(-10px 0 -10px 0); } }
.anim-rate .line-sell { animation: riDraw 1.6s cubic-bezier(.4, 0, .2, 1) .3s both; }
.anim-rate .line-buy { animation: riDraw 1.6s cubic-bezier(.4, 0, .2, 1) .5s both; }
.anim-rate .shot-chart circle { transform-box: fill-box; transform-origin: center; }
.anim-rate .dot-sell { animation: riPop .4s ease-out 1.85s both; }
.anim-rate .dot-buy { animation: riPop .4s ease-out 2.05s both; }
.anim-rate .shot-stats > div { animation: riUp .5s ease-out both; }
.anim-rate .shot-stats > div:nth-child(1) { animation-delay: 2.2s; }
.anim-rate .shot-stats > div:nth-child(2) { animation-delay: 2.4s; }
.anim-rate .shot-stats > div:nth-child(3) { animation-delay: 2.6s; }

@keyframes diDoc { 0% { opacity: 0; transform: translateY(-8px); } 6%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes diScan { 0%, 6% { top: 0; opacity: 0; } 9% { opacity: 1; } 30% { top: 100%; opacity: 1; } 34%, 100% { top: 100%; opacity: 0; } }
@keyframes diRow { 0% { opacity: 0; transform: translateX(-6px); } 5%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes diTick { 0% { opacity: 0; transform: scale(.4); } 4% { opacity: 1; transform: scale(1.25); } 7%, 84% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(1); } }
.shot-doc .scan { display: none; }
.anim-intake .shot-doc { animation: diDoc 7s ease-out infinite both; }
.anim-intake .shot-doc .scan {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(180, 74, 40, .5);
  animation: diScan 7s linear infinite both;
}
.anim-intake .shot-row { animation: diRow 7s ease-out infinite both; }
.anim-intake .shot-row i { display: inline-block; animation: diTick 7s ease-out infinite both; }
.anim-intake .shot-row:nth-child(1) { animation-delay: 2s; }
.anim-intake .shot-row:nth-child(1) i { animation-delay: 2.3s; }
.anim-intake .shot-row:nth-child(2) { animation-delay: 2.45s; }
.anim-intake .shot-row:nth-child(2) i { animation-delay: 2.75s; }
.anim-intake .shot-row:nth-child(3) { animation-delay: 2.9s; }
.anim-intake .shot-row:nth-child(3) i { animation-delay: 3.2s; }
.anim-intake .shot-row:nth-child(4) { animation-delay: 3.35s; }
.anim-intake .shot-row:nth-child(4) i { animation-delay: 3.65s; }

/* Reduced motion: still screens, no rotation (jobs.js), a full bar on the active tab. */
@media (prefers-reduced-motion: reduce) {
  .anim-rate *, .anim-intake *, .anim-intake .shot-doc, .job-bar { animation: none !important; }
  .anim-intake .shot-doc .scan { display: none; }
}
