/* ==========================================================================
   Jeevesy — jeevesy.com
   Layout, type scale, and full-bleed panel structure ported from
   triage.cc; the palette and typeface itself are Jeevesy's own — the
   app's single reserved brass accent plus a bolder, full-bleed-strength
   version of its muted five-tint section rotation (JTheme.avatarFill),
   defaulting to neutral where no tint fits. Copy, logo, and screenshots
   are this app's own throughout.
   ========================================================================== */

:root {
  /* Dark is the site's fixed identity now, not an OS-preference fallback
     — People through Live Sessions is the one deliberate light showcase
     in the middle of it (see .feature-panel), everything else stays on
     this dark ground regardless of visitor theme. */
  --bg: #0d0d0c;
  --surface: #1c1a19;
  --surface-raised: #272522;
  --ink: #f5f5f5;
  --ink-soft: rgba(245, 245, 245, 0.65);
  --umber: #99938b;
  --hairline: #33302d;

  --accent: #bd9452;
  --accent-ink: #f3dfb8;

  /* Bold section palette — same hue family as the app's own muted
     five-tint rotation, pushed deeper and more saturated for full-bleed
     panel use instead of a quiet dot accent. */
  --terracotta: #b5553f;
  --olive: #6b6b2e;
  --slate: #343a4d;
  --teal: #1f6f65;

  --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Code", monospace;
  --font-rounded: var(--font-body);

  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 20px;
  --space-md: 32px;
  --space-lg: 56px;
  --space-xl: 96px;
  --space-2xl: 144px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- Type ---------- */
/* Heavier weights throughout than Jeevesy's usual type scale — triage's
   own headlines run bold/extrabold, not a restrained editorial 600. */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--umber);
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw + 1rem, 4.6rem);
}

h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.9rem);
  font-weight: 800;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

.numeral {
  font-family: var(--font-rounded);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
}

.on-color .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.on-color .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

/* ---------- Hero ---------- */
/* No persistent nav — triage.cc doesn't run one either, and the hero's
   own CTA plus the footer's section links cover the same ground. */

.hero {
  background: var(--accent);
  color: #fff;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .lede {
    margin-inline: auto;
  }
  .hero-copy .btn-row {
    justify-content: center;
  }
  .hero-copy .app-badge {
    margin-inline: auto;
  }
  .hero-copy .eyebrow {
    justify-content: center;
  }
}

.hero-copy .app-badge {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  margin-bottom: var(--space-md);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
}

.hero-copy h1 {
  margin-bottom: var(--space-md);
  color: #fff;
}

.hero-copy h1 em {
  font-style: italic;
  color: #2b1f10;
}

.hero-copy .lede {
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-note {
  margin-top: var(--space-sm);
  font-size: 13.5px;
  color: var(--umber);
}

.hero .hero-note {
  color: rgba(255, 255, 255, 0.65);
}

.appstore-badge {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

/* ---------- Device frame (real screenshots — no fabricated UI) ---------- */

.phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1600px;
}

.device-frame {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 375 / 812;
  background: #0a0a0b;
  border-radius: 52px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  padding: 12px;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.phone-stage:hover .device-frame {
  transform: rotateY(-2deg) rotateX(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .device-frame {
    transform: none;
  }
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #0a0a0b;
  border-radius: 999px;
  z-index: 2;
}

.device-frame::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 22%;
  width: 3px;
  height: 64px;
  background: #1c1b1a;
  border-radius: 2px 0 0 2px;
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 40px;
  display: block;
}

.shot-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 375 / 812;
  margin: 0 auto;
  background: #0a0a0b;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.shot-frame::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  background: #0a0a0b;
  border-radius: 999px;
  z-index: 2;
}

.shot-frame::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 22%;
  width: 3px;
  height: 54px;
  background: #1c1b1a;
  border-radius: 2px 0 0 2px;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
  display: block;
}

.shot-caption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--umber);
  margin-top: var(--space-sm);
}

/* ---------- Sections ---------- */

section {
  padding: var(--space-xl) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: var(--space-md);
}

.section-head h2 {
  margin-bottom: var(--space-md);
}

/* ---------- Feature panels ---------- */
/* People through Live Sessions read as one continuous section on the
   page's own light background — no per-section color blocking, just
   the alternating layout and a small tinted dot per pill to tell them
   apart, same restrained distinction the app itself uses. */

.feature-panel {
  /* Re-scope the shared tokens to their light values for this block only
     — every descendant rule below (.feature-tag, .feature-list li,
     .code-card, the feature-head icon...) already reads from these same
     custom properties, so this alone is enough to flip the whole People
     → Live Sessions run light without a light/dark fork per component. */
  --bg: #ffffff;
  --surface: #f7f6f4;
  --surface-raised: #f1efec;
  --ink: #121214;
  --ink-soft: rgba(18, 18, 20, 0.65);
  --umber: #857a72;
  --hairline: #e8e7e4;
  background: var(--bg);
  color: var(--ink);
  padding: var(--space-2xl) 0;
}

.feature-panel .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-panel.reverse .wrap {
  direction: rtl;
}

.feature-panel.reverse .wrap > * {
  direction: ltr;
}

@media (max-width: 860px) {
  .feature-panel .wrap {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    direction: ltr !important;
  }
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: var(--space-md);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icon sized and aligned to match the pill it precedes, rather than
   towering over it as a standalone badge. */
.feature-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.feature-head .feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0;
  flex-shrink: 0;
  background: var(--surface);
}

.feature-head .feature-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink);
}

.feature-head .feature-tag {
  margin-bottom: 0;
}

.feature-panel h3 {
  font-size: clamp(1.8rem, 1.8vw + 1.1rem, 2.5rem);
  margin-bottom: var(--space-sm);
}

.feature-panel .feature-list {
  margin-top: var(--space-md);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  margin-bottom: var(--space-md);
}

.feature-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.feature-copy h3 {
  margin-bottom: var(--space-sm);
}

.feature-copy p {
  color: var(--ink-soft);
  max-width: 44ch;
}

.feature-list {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- Wordmark (real artwork, not a monogram stand-in) ---------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.wordmark .glyph {
  position: relative;
  display: inline-block;
  width: 0.62em;
  height: 0.92em;
  margin: 0 0.03em;
  transform: translateY(0.1em);
}

.wordmark .glyph span {
  position: absolute;
  inset: 0;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.wordmark .glyph .brain {
  background: var(--ink);
  -webkit-mask-image: url(../assets/wordmark/WordmarkLargeBrain.png);
  mask-image: url(../assets/wordmark/WordmarkLargeBrain.png);
}

.wordmark .glyph .accent {
  background: var(--accent);
  -webkit-mask-image: url(../assets/wordmark/WordmarkLargeAccent.png);
  mask-image: url(../assets/wordmark/WordmarkLargeAccent.png);
}

.on-color .wordmark .glyph .brain,
.on-color .wordmark .glyph .accent {
  background: #fff;
}

/* ---------- QR / join-code card (Live Sessions) ---------- */

.code-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 320px;
  margin: 0 auto;
}

.code-card img {
  width: 148px;
  height: 148px;
  margin: 0 auto var(--space-sm);
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 10px;
}

.code-card .code {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.code-card .status {
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--umber);
}

.code-card .status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Privacy panel ---------- */

.privacy-panel {
  background: #121214;
  color: #fff;
  padding: var(--space-2xl) 0;
}

.privacy-panel .inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.privacy-panel .eyebrow {
  color: rgba(255, 255, 255, 0.6);
  justify-content: center;
  display: flex;
}

.privacy-panel h2 {
  color: #fff;
  margin: var(--space-md) 0;
}

.privacy-panel > .wrap > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 56ch;
  margin: 0 auto;
}

.privacy-points {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: left;
}

@media (max-width: 720px) {
  .privacy-points {
    grid-template-columns: 1fr;
  }
}

.privacy-point .feature-icon {
  background: rgba(255, 255, 255, 0.14);
}

.privacy-point b {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

.privacy-point p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  font-weight: 500;
}

/* ---------- Facts grid ("at a glance") ---------- */
/* Direct port of triage.cc's own card grid above its testimonials — same
   six-card layout, same literal palette (cycled), same "one short bold
   line + icon" content shape. */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 780px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

.fact-card {
  background: var(--card-bg, var(--terracotta));
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fact-card.light {
  background: #fff;
  color: #121214;
  border: 1px solid #e8e7e4;
}

.fact-card.light .feature-icon {
  background: #f7f6f4;
}

.fact-card.light .feature-icon svg {
  stroke: #121214;
}

.fact-card.brass {
  background: var(--accent);
  color: #fff;
}

.fact-card.brass .feature-icon {
  background: rgba(255, 255, 255, 0.2);
}

.fact-card.brass .feature-icon svg {
  stroke: #fff;
}

.fact-card .feature-icon {
  margin-bottom: var(--space-sm);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.18);
}

.fact-card .feature-icon svg {
  width: 18px;
  height: 18px;
}

.fact-card b {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
}

/* ---------- Testimonials ---------- */
/* Placeholder quotes, clearly generic/not attributed to a real person or
   publication — filled in purely so the section reads as complete next
   to triage's own "Praise for Triage" block, same layout shape as that. */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 860px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.testimonial-card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.testimonial-card .who {
  font-size: 13px;
  color: var(--umber);
  font-weight: 700;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-band .eyebrow {
  margin-bottom: var(--space-md);
}

.cta-band h2 {
  margin-bottom: var(--space-md);
}

.cta-band .lede {
  margin: 0 auto var(--space-md);
  text-align: center;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-mark {
  display: flex;
  align-items: baseline;
  font-size: 26px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--umber);
  margin-top: var(--space-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col b {
  font-size: 12px;
  color: var(--umber);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--umber);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-shot {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-shot.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-shot {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
