/* ============================================================
   RepOtz Pitch Landing — shared stylesheet (preview-style)
   Palette: emerald (#059669, #064E3B), gold (#D97706), cream (#FAF7F0)
   Typography: Poppins (aligned with main repotz.com)
   ============================================================ */

:root {
  --emerald-900: #064E3B;   /* deep accent, headings */
  --emerald-700: #047857;
  --emerald-600: #059669;   /* primary */
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;
  --emerald-50:  #ECFDF5;

  --gold-700: #B45309;
  --gold-600: #D97706;      /* accent */
  --gold-500: #F59E0B;
  --gold-200: #FDE68A;
  --gold-100: #FEF3C7;

  --cream:    #FAF7F0;       /* page background */
  --paper:    #FFFFFF;
  --ink:      #0F1F1B;       /* near-black with green undertone */
  --ink-soft: #1F2937;
  --muted:    #6B7280;
  --hairline: #E5E7EB;
  --red:      #DC2626;

  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 27, 0.05);
  --shadow:    0 8px 30px rgba(15, 31, 27, 0.08);
  --shadow-lg: 0 30px 80px rgba(6, 78, 59, 0.18);

  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--emerald-600); text-decoration: none; }
a:hover { color: var(--emerald-900); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--emerald-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 1.25rem;
  display: block;
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

.serif-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-600);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--emerald-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold-600);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-700); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--emerald-900);
  border-color: var(--emerald-900);
}
.btn-ghost:hover { background: var(--emerald-900); color: #fff; }

.btn-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250, 247, 240, 0.85);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--emerald-900);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { height: 28px; width: auto; }

.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch a {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--muted);
}
.lang-switch a.active {
  background: var(--emerald-900);
  color: #fff;
}
.lang-switch span { color: var(--hairline); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(217, 119, 6, 0.08), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(5, 150, 105, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: center;
}
.hero-headline {
  grid-column: 1 / -1;
  max-width: 1100px;
}
.hero-headline .eyebrow { margin-bottom: 0.75rem; display: inline-block; }
.hero-headline h1 { margin: 0; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-600);
  font-weight: 700;
}
.hero h1 strong {
  color: var(--emerald-900);
  font-weight: 700;
}
.hero .lead { max-width: 540px; margin-top: 1.25rem; }
.hero-signature {
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  color: var(--emerald-900);
  max-width: 540px;
  line-height: 1.45;
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-meta::before {
  content: "•";
  color: var(--emerald-600);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Hero side artifact: two table-tent cards + AI flow between them */
.hero-artifact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(0.1rem, 0.4vw, 0.4rem);
  align-items: stretch;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hero-card-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.hero-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
  font-weight: 700;
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-card-label--bad { color: #DC2626; }
.hero-card-label--good { color: #047857; }
.hero-card-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.hero-card-label-icon svg {
  width: clamp(16px, 1.4vw, 20px);
  height: auto;
  display: block;
}

.hero-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 31, 27, 0.12), 0 4px 14px rgba(15, 31, 27, 0.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-card-head {
  background: #1E40AF;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.2;
  text-align: center;
  padding: 0.6rem 0.75rem 1.4rem;
  position: relative;
  clip-path: ellipse(110% 100% at 50% 0%);
}

.hero-card--good .hero-card-head {
  background: var(--emerald-700);
}

.hero-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
  background: #fff;
  min-height: 150px;
}

.google-g {
  width: clamp(64px, 9vw, 96px);
  height: auto;
}
.hero-card-stars {
  color: var(--gold-500);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  letter-spacing: 0.2em;
}

.thumbs-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.thumb {
  width: clamp(24px, 3.25vw, 32px);
  height: auto;
  display: block;
}

.hero-card-tagline {
  font-style: italic;
  font-size: clamp(0.72rem, 0.95vw, 0.85rem);
  line-height: 1.4;
  color: #1E40AF;
  margin: 0;
  max-width: 18ch;
}

.hero-card-foot {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 0.6rem;
  row-gap: 0.35rem;
  padding: 0.85rem 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(15, 31, 27, 0.06);
}
.hero-card-foot .tap-icon {
  width: clamp(38px, 5vw, 52px);
  height: auto;
  color: var(--ink);
  grid-row: 1;
  grid-column: 1;
  justify-self: center;
}
.hero-card-foot .hero-qr-link {
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  display: block;
  line-height: 0;
  border-radius: 4px;
  transition: transform 0.15s ease;
}
.hero-card-foot .hero-qr-link:hover,
.hero-card-foot .hero-qr-link:focus-visible {
  transform: scale(1.04);
  outline: none;
}
.hero-card-foot .hero-qr {
  width: clamp(80px, 10vw, 100px);
  height: auto;
  border-radius: 4px;
  display: block;
}
.hero-card-foot .tap-label {
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  grid-row: 2;
  grid-column: 1 / span 2;
  text-align: center;
}

.hero-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0;
}
.hero-arrow {
  width: clamp(38px, 5vw, 56px);
  height: auto;
  display: block;
}
.ai-chip {
  width: clamp(40px, 5vw, 58px);
  height: auto;
  display: block;
}

@media (max-width: 540px) {
  .hero-artifact { max-width: 420px; }
  .hero-card-head { padding: 0.75rem 0.5rem 1.25rem; }
  .hero-card-body { padding: 0.75rem 0.6rem 0.85rem; min-height: 130px; }
  .hero-card-foot { padding: 0.6rem 0.5rem 0.75rem; }
}

/* ---------- Section ---------- */

section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.section-head .lead { margin-top: 0.75rem; }

.google-mark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  gap: 1px;
}
.google-mark .b { color: #4285F4; }
.google-mark .r { color: #EA4335; }
.google-mark .y { color: #FBBC05; }
.google-mark .g { color: #34A853; }
.stars { color: var(--gold-600); font-size: 1.15rem; letter-spacing: 0.15em; }

/* ---------- Differentiators ---------- */

.diff-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
@media (max-width: 800px) { .diff-list { grid-template-columns: 1fr; } }
.diff {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.diff-image {
  display: block;
  width: clamp(72px, 8vw, 104px);
  height: auto;
  margin-bottom: 1rem;
}
.diff h3 {
  font-size: 1.2rem;
  color: var(--emerald-900);
  margin: 0 0 0.5rem;
}
.diff p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.diff .pill {
  display: inline-block;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ---------- Watch-the-pitch CTA section ---------- */

.watch {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(217, 119, 6, 0.10), transparent 50%),
    var(--emerald-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.watch::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 60%);
  pointer-events: none;
}
.watch h2, .watch h3 { color: #fff; }
.watch .eyebrow { color: var(--gold-200); }
.watch-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) { .watch-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.watch h2 em {
  font-style: italic;
  color: var(--gold-200);
  font-weight: 700;
}
.watch p { color: rgba(255, 255, 255, 0.85); }
.watch .pitch-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}
.watch .pitch-meta .dot {
  width: 6px; height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  display: inline-block;
}
.watch-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.watch .btn-gold { box-shadow: 0 8px 30px rgba(217, 119, 6, 0.3); }
.watch-proof {
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}
.watch-proof strong {
  color: #fff;
  font-weight: 700;
}

/* QR card */
.qr-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}
.qr-card::after {
  /* gold corner accent */
  content: "";
  position: absolute;
  top: -10px; right: -10px;
  width: 30px; height: 30px;
  background: var(--gold-500);
  border-radius: 50%;
  border: 4px solid var(--emerald-900);
}
.qr-card .qr-frame {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: grid;
  place-items: center;
}
.qr-card .qr-frame canvas,
.qr-card .qr-frame img { width: 100% !important; height: 100% !important; }
.qr-card .qr-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-900);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.qr-card .qr-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

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

.site-footer {
  background: #0A1F18;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--gold-200); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-tagline {
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold-200);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--emerald-900);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* If JS is off OR observer never fires (e.g. crawlers, screenshot tools),
   ensure content is still visible after a brief grace period. */
.no-js .reveal,
.reveal.fallback {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PDF.js viewer
   ============================================================ */

.viewer-shell {
  min-height: 100vh;
  background: #1A2E25;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.viewer-toolbar .brand { color: #fff; font-size: 1rem; }
.viewer-toolbar .brand img { filter: brightness(0) invert(1); }
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}
.viewer-controls button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.viewer-controls button:hover:not(:disabled) {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
}
.viewer-controls button:disabled { opacity: 0.4; cursor: not-allowed; }
.viewer-controls .page-input {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  width: 50px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.3rem;
  font-family: inherit;
}
.viewer-controls .page-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}
.viewer-controls .divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.4rem;
}
.viewer-controls .lang-btn {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.viewer-controls .download-btn {
  background: var(--gold-600);
  border-color: var(--gold-600);
}
.viewer-controls .download-btn:hover { background: var(--gold-700); border-color: var(--gold-700); }

.viewer-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
}
#pdf-canvas {
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Fullscreen toggle button */
.viewer-controls .fullscreen-btn {
  display: inline-grid;
  place-items: center;
  padding: 0.4rem 0.55rem;
}
.viewer-controls .fullscreen-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.viewer-controls .fullscreen-btn .icon-exit { display: none; }
body.is-fullscreen .viewer-controls .fullscreen-btn .icon-enter { display: none; }
body.is-fullscreen .viewer-controls .fullscreen-btn .icon-exit { display: block; }

.viewer-shell:fullscreen {
  background: #1A2E25;
  width: 100vw;
  height: 100vh;
}
.viewer-loading {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 4rem 1rem;
  font-size: 0.9rem;
}
.viewer-loading::before {
  content: "";
  display: inline-block;
  width: 24px; height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.75rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .viewer-toolbar { flex-direction: column; gap: 0.5rem; padding: 0.5rem; }
  .viewer-controls { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
