/* ReaProphet one-page marketing site
   Drop into /docs for GitHub Pages.
*/

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f0f3f8;
  --text: #233040;
  --muted: #617187;
  --line: rgba(35, 48, 64, 0.12);
  --line-strong: rgba(35, 48, 64, 0.22);
  --dark: #1f2631;
  --dark-2: #2a3341;
  --accent: #eebf45;
  --accent-deep: #cf9f2d;
  --shadow: 0 14px 40px rgba(30, 41, 59, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1220px;
  --header-h: 82px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: #17202d;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(35, 48, 64, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.header-cta {
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #21170a;
  box-shadow: 0 10px 22px rgba(207, 159, 45, 0.28);
}

.button-primary:hover,
.button-primary:focus {
  background: #f3c95d;
}

.button-secondary {
  background: rgba(255,255,255,0.7);
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus {
  background: #fff;
}

.button.big {
  min-height: 52px;
  padding-inline: 1.4rem;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8a6b20;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero {
  padding: 4.75rem 0 3rem;
  background:
    radial-gradient(circle at top right, rgba(238, 191, 69, 0.18), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 48rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0 1.4rem;
}

.hero-points {
  padding-left: 1.15rem;
  color: var(--muted);
}

.hero-media {
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  border: 1px solid rgba(35, 48, 64, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-media img {
  width: 100%;
  border-radius: 16px;
}

.media-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}


.section {
  padding: 5.25rem 0;
}

.section-light {
  background: var(--bg);
}

.section-dark {
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: rgba(255,255,255,0.88);
}

.section-dark h2,
.section-dark h3,
.section-dark figcaption {
  color: #fff;
}

.section-dark .eyebrow {
  color: #f5d377;
}

.section-intro {
  margin-bottom: 2.5rem;
}

.section-intro.narrow {
  max-width: 50rem;
}

.section-intro h2 {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  margin-bottom: 0.6rem;
}

.section-intro p:last-child {
  color: var(--muted);
  max-width: 50rem;
}

.section-dark .section-intro p:last-child {
  color: rgba(255,255,255,0.72);
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid rgba(35, 48, 64, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feature-row.reverse {
  grid-template-columns: 0.92fr 1fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}
.feature-row.reverse .feature-media {
  order: 1;
}

.feature-copy p,
.feature-copy li {
  color: var(--muted);
}

.feature-copy ul {
  margin-top: 0.7rem;
}

.feature-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(35, 48, 64, 0.08);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.screen-card {
  margin: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

.screen-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.screen-card figcaption {
  padding: 1rem 1rem 1.1rem;
  color: rgba(255,255,255,0.84);
  font-size: 0.96rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.workflow-copy p:last-child {
  color: var(--muted);
}

.workflow-list {
  display: grid;
  gap: 1rem;
}

.workflow-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid rgba(35, 48, 64, 0.08);
  box-shadow: 0 10px 24px rgba(31, 38, 49, 0.06);
}

.workflow-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
}

.workflow-item p {
  margin: 0;
  color: var(--muted);
}

.workflow-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #24180a;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 22px rgba(207, 159, 45, 0.24);
}

.cta-section {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, #dceeff, #bddcff);
  color: #102033;
  border-radius: 28px;
  padding: 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 18px 40px rgba(78, 134, 201, 0.18);
}

.cta-box .eyebrow {
  color: rgba(16, 32, 51, 0.72);
}

.cta-box p:last-child {
  margin-bottom: 0;
  color: rgba(16, 32, 51, 0.84);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.site-footer {
  padding: 2rem 0 2.6rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(18rem, 1.28fr);
  align-items: start;
  gap: 2rem;
  border-top: 1px solid rgba(35, 48, 64, 0.09);
  padding-top: 1.35rem;
}

.footer-inner p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}


@media (max-width: 1100px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .workflow-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3.8rem;
  }
}

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

  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.35rem, var(--max));
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button.big {
    width: 100%;
  }

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------
   Screenshot lightbox / zoom viewer
--------------------------------------- */
.hero-media img,
.feature-media img,
.screen-card img {
  cursor: zoom-in;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(9, 13, 19, 0.92);
  color: #fff;
}

.image-lightbox.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.image-lightbox__header,
.image-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(20, 27, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

.image-lightbox__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.image-lightbox__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.image-lightbox__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.image-lightbox__stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 1rem;
  overscroll-behavior: contain;
}

.image-lightbox__image {
  display: block;
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.16s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.image-lightbox__image.is-zoomed {
  cursor: zoom-out;
}

.image-lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.image-lightbox__button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  min-width: 42px;
  min-height: 40px;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__button:hover,
.image-lightbox__button:focus-visible {
  background: rgba(255, 255, 255, 0.17);
  outline: none;
}

.image-lightbox__button--close {
  font-size: 1.25rem;
}

.image-lightbox__zoom {
  min-width: 64px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

.image-lightbox__count {
  min-width: 66px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.image-lightbox__hint {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .image-lightbox__header,
  .image-lightbox__footer {
    padding: 0.65rem 0.7rem;
  }

  .image-lightbox__hint {
    display: none;
  }

  .image-lightbox__stage {
    padding: 0.6rem;
  }

  .image-lightbox__image {
    max-width: 96vw;
    max-height: 74vh;
  }

  .image-lightbox__button {
    min-width: 40px;
    min-height: 38px;
    padding: 0.5rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox__image {
    transition: none;
  }
}


.footer-disclaimer {
  max-width: 44rem;
}

.footer-disclaimer p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer strong {
  color: var(--text);
}


/* ---------------------------------------
   Supporting feature cards
--------------------------------------- */
.supporting-features {
  margin-top: 3.25rem;
}

.section-intro.compact {
  margin-bottom: 1.5rem;
}

.section-intro.compact h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
}

.supporting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.supporting-card {
  background: var(--panel);
  border: 1px solid rgba(35, 48, 64, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 10px 28px rgba(31, 38, 49, 0.06);
}

.supporting-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

.supporting-card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.supporting-card p:last-child {
  margin-bottom: 0;
}

.supporting-note {
  font-size: 0.9rem;
  opacity: 0.88;
}

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


/* ---------------------------------------
   Hero-to-features spacing
--------------------------------------- */
.hero {
  padding-bottom: 0.8rem;
}

#features {
  padding-top: 2rem;
}

/* ---------------------------------------
   Focused responsive/mobile polish
--------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 2rem;
  }

  .hero-media {
    max-width: 860px;
  }

  .feature-row {
    gap: 1.35rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.8rem;
    padding: 0.7rem 0 0.55rem;
  }

  .logo-wrap {
    min-width: 0;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo-sub {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    width: auto !important;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav ul {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.1rem 0 0.2rem;
  }

  .site-nav a {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero {
    padding: 2.5rem 0 0.7rem;
  }

  .hero-grid {
    gap: 1.6rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-points {
    margin-bottom: 0;
  }

  #features {
    padding-top: 1.65rem;
  }

  .section-intro {
    margin-bottom: 1.65rem;
  }

  .feature-stack {
    gap: 1.15rem;
  }

  .feature-row,
  .feature-row.reverse {
    padding: 1rem;
    border-radius: 18px;
  }

  .feature-copy h3 {
    font-size: 1.35rem;
  }

  .feature-copy ul {
    padding-left: 1.1rem;
  }

  .feature-media img,
  .hero-media img {
    border-radius: 12px;
  }

  .supporting-features {
    margin-top: 2.35rem;
  }

  .supporting-card {
    padding: 1.15rem;
  }

  .screenshot-grid {
    gap: 1rem;
  }

  .workflow-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.95rem;
  }

  .workflow-step {
    width: 40px;
    height: 40px;
  }

  .cta-box {
    padding: 1.4rem;
    border-radius: 20px;
  }

  .footer-inner {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.1rem, var(--max));
  }

  .section {
    padding: 3.35rem 0;
  }

  #features {
    padding-top: 1.5rem;
  }

  .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
  }

  .hero-actions {
    margin: 1.25rem 0 1.15rem;
  }

  .hero-media {
    padding: 0.7rem;
    border-radius: 18px;
  }

  .media-note {
    margin-top: 0.65rem;
    font-size: 0.82rem;
  }

  .feature-row,
  .feature-row.reverse {
    gap: 1rem;
  }

  .screen-card figcaption {
    padding: 0.85rem;
  }

  .workflow-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .workflow-step {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .site-footer {
    padding-bottom: 2rem;
  }
}

@media (max-width: 420px) {
  .logo-sub {
    display: none;
  }

  .header-inner {
    padding-top: 0.6rem;
  }

  .site-nav ul {
    gap: 0.8rem;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero-points {
    padding-left: 1rem;
  }

  .feature-row,
  .supporting-card {
    box-shadow: 0 8px 22px rgba(31, 38, 49, 0.07);
  }

  .image-lightbox__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .image-lightbox__count {
    min-width: 0;
    width: 100%;
    text-align: center;
    order: -1;
  }

  .image-lightbox__controls {
    flex-wrap: nowrap;
    gap: 0.28rem;
    width: 100%;
  }

  .image-lightbox__button {
    min-width: 34px;
    min-height: 34px;
    padding: 0.42rem 0.48rem;
    font-size: 0.88rem;
  }

  .image-lightbox__zoom {
    min-width: 48px;
    font-size: 0.84rem;
  }
}
