/* ============================================================
   omersal.co — landing page
   Brand identity mirrors the audit PDF teaser:
     Palette:  navy #0F172A · slate #334155 · CTA #0369A1
               bg #F8FAFC · text #020617 · accents red/orange/green
     Fonts:    Playfair Display (headings) · Inter (body) · JetBrains Mono (URLs)
     Style:    Trust & Authority · editorial · McKinsey insight-note tone
   ============================================================ */

:root {
  --navy:        #0F172A;
  --slate:       #334155;
  --slate-2:     #475569;
  --slate-3:     #64748B;
  --slate-4:     #94A3B8;
  --hairline:    #E2E8F0;
  --hairline-2: #F1F5F9;
  --bg:          #F8FAFC;
  --bg-card:     #FFFFFF;
  --text:        #020617;
  --cta:         #0369A1;
  --cta-hover:   #075985;
  --cta-soft:    #DBEAFE;
  --red:         #DC2626;
  --orange:      #EA580C;
  --amber:       #D97706;
  --green:       #047857;
  --link:        #0369A1;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--cta-hover); }

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

/* ---------- Container ---------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Wordmark band (sticky-feel header) ---------- */

.wordmark {
  background: #FFFFFF;
  border-bottom: 0.5pt solid var(--hairline);
  padding: 14px 0;
}

.wordmark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.wordmark-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5px solid var(--hairline);
  background: var(--hairline-2);
}

.wordmark-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1;
}

.wordmark-role {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--slate-3);
  font-weight: 400;
}

/* ---------- Sticky slide-in navbar ---------- */
/* Hidden initially (translateY(-100%)). Slides into view when
   .is-visible is toggled by the IntersectionObserver after the hero
   sentinel scrolls out of the viewport top. */

.stickynav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 0.5px solid var(--hairline);
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.08);
  will-change: transform;
}

.stickynav.is-visible {
  transform: translateY(0);
}

.stickynav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
}

.stickynav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.stickynav-brand:hover { color: var(--navy); }

.stickynav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5px solid var(--hairline);
  background: var(--hairline-2);
}

.stickynav-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.stickynav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.stickynav-links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-2);
  text-decoration: none;
  padding: 6px 0;
  transition: color 200ms ease;
}
.stickynav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--cta);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}
.stickynav-links a:hover {
  color: var(--navy);
}
.stickynav-links a:hover::after {
  transform: scaleX(1);
}

.stickynav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--cta);
  color: #FFFFFF;
  text-decoration: none;
  transition: background 200ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.stickynav-cta:hover {
  background: var(--cta-hover);
  color: #FFFFFF;
}

.hero { position: relative; }

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

.section {
  padding: 88px 0;
}

.section-light { background: var(--bg); }
.section-dark  { background: var(--navy); color: #F8FAFC; }

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 12px;
}
.eyebrow-light { color: #7DD3FC; }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 16px;
}

.section-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-2);
  margin: 0;
  max-width: 65ch;
}

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

.hero {
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(3, 105, 161, 0.04), transparent 60%),
    #FFFFFF;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text { min-width: 0; }

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 8px 0 20px;
  max-width: 18ch;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 32px;
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- CTAs ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  padding: 14px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  text-align: center;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.cta:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

.cta-primary {
  background: var(--cta);
  color: #FFFFFF;
}
.cta-primary:hover { background: var(--cta-hover); color: #FFFFFF; }

.cta-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--hairline);
}
.cta-secondary:hover {
  border-color: var(--slate-4);
  color: var(--navy);
  background: var(--bg);
}

.cta-tier { width: 100%; margin-top: 24px; }

.cta-on-dark {
  background: #FFFFFF;
  color: var(--navy);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 500;
}
.cta-on-dark:hover { background: var(--bg); color: var(--navy); }

.cta-on-dark-secondary {
  background: transparent;
  color: #7DD3FC;
  border-color: rgba(125, 211, 252, 0.4);
}
.cta-on-dark-secondary:hover {
  border-color: #7DD3FC;
  color: #BAE6FD;
  background: rgba(125, 211, 252, 0.08);
}

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

.hero-portrait {
  position: relative;
  text-align: center;
}

.hero-portrait img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  box-shadow:
    0 0 0 1px var(--hairline),
    0 20px 50px -20px rgba(15, 23, 42, 0.25);
  margin: 0 auto;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  padding: 28px 24px;
  background: #FFFFFF;
  border: 0.5px solid var(--hairline);
  border-radius: 8px;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.step:hover {
  border-color: var(--slate-4);
  box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.18);
}

.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--cta);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 10px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate-2);
  margin: 0;
}

/* ---------- Sample findings (colored editorial cards) ---------- */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.example {
  position: relative;
  padding: 26px 26px 24px;
  border: 0.5px solid var(--hairline);
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}
.example:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.22);
}

/* Severity-tinted backgrounds + matching left bars (matches the audit PDF
   finding-card design language — light hue wash + accent bar + accent pill) */
.example-critical {
  background: #FEF2F2;
  border-left-color: var(--red);
  border-color: #FECACA;
}
.example-high {
  background: #FFF7ED;
  border-left-color: var(--orange);
  border-color: #FED7AA;
}
.example-medium {
  background: #FFFBEB;
  border-left-color: var(--amber);
  border-color: #FDE68A;
}

.example-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.example-severity {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.example-critical .example-severity { background: var(--red); }
.example-high     .example-severity { background: var(--orange); }
.example-medium   .example-severity { background: var(--amber); }

.example-fix {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--slate-2);
}

.example-metric-wrap {
  margin-bottom: 14px;
}

.example-metric {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.example-critical .example-metric { color: var(--red); }
.example-high     .example-metric { color: var(--orange); }
.example-medium   .example-metric { color: var(--amber); }

.example-metric-unit {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-3);
}

.example-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 8px;
}

.example-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-2);
  margin: 0;
}

.examples-footnote {
  margin-top: 32px;
  font-size: 14px;
  color: var(--slate-3);
  font-style: italic;
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Pricing tiers ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 440px));
  gap: 28px;
  align-items: stretch;
  justify-content: center;
}

.tier {
  background: #FFFFFF;
  border: 0.5px solid var(--hairline);
  border-radius: 8px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.tier:hover {
  border-color: var(--slate-4);
  box-shadow: 0 14px 36px -18px rgba(15, 23, 42, 0.18);
}

.tier-featured {
  background: var(--navy);
  color: #F8FAFC;
  border-color: var(--navy);
  transform: translateY(-12px);
}
.tier-featured:hover { transform: translateY(-14px); }
.tier-featured .tier-name { color: #F8FAFC; }
.tier-featured .tier-price { color: #FFFFFF; }
.tier-featured .tier-cadence { color: #7DD3FC; }
.tier-featured .tier-features li { color: #CBD5E1; }
.tier-featured .tier-features li::before { color: #7DD3FC; }

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tier-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.tier-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.tier-cadence {
  font-size: 13px;
  color: var(--slate-3);
  margin-bottom: 20px;
  font-style: italic;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  flex: 1;
}

.tier-features li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--slate-2);
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--cta);
  font-weight: 700;
}

/* ---------- Methodology grid ---------- */

.meth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 36px;
}

.meth-item {
  padding: 4px 0;
}

.meth-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 6px;
}

.meth-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-2);
  margin: 0;
  max-width: 56ch;
}

/* ---------- About section ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 90px; /* clear of sticky nav */
  text-align: left;
}

.about-portrait img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  box-shadow:
    0 0 0 1px var(--hairline),
    0 16px 36px -16px rgba(15, 23, 42, 0.18);
  margin-bottom: 20px;
}

.about-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 4px;
}

.about-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 22px;
}

.about-credentials {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 0.5px solid var(--hairline);
}

.about-credentials li {
  padding: 11px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate-2);
  border-bottom: 0.5px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.about-credential-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-3);
}

.about-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
}

.about-body p {
  margin: 0 0 18px;
  max-width: 65ch;
}

.about-body p:last-child { margin-bottom: 0; }

.about-body strong {
  color: var(--navy);
  font-weight: 600;
}

.about-emph {
  font-weight: 600;
  color: var(--navy);
}

.about-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px !important;
  line-height: 1.4 !important;
  color: var(--navy) !important;
  padding: 18px 0 0;
  border-top: 0.5px solid var(--hairline);
  margin-top: 28px !important;
}

/* ---------- Contact (dark band) ---------- */

.contact-inner { text-align: center; max-width: 720px; margin: 0 auto; }

.contact-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.contact-lede {
  font-size: 17px;
  line-height: 1.6;
  color: #CBD5E1;
  margin: 0 0 32px;
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-sep { color: #475569; }

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

.footer {
  background: #FFFFFF;
  padding: 24px 0;
  border-top: 0.5px solid var(--hairline);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--slate-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .section-title, .contact-title { font-size: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait img { width: 220px; height: 220px; }

  .hero-title { font-size: 40px; max-width: none; }
  .lede { font-size: 17px; }
  .section-title, .contact-title { font-size: 28px; }

  .steps { grid-template-columns: 1fr; gap: 16px; }
  .tiers { grid-template-columns: 1fr; gap: 16px; }
  .tier-featured { transform: none; }
  .tier-featured:hover { transform: none; }
  .meth-grid { grid-template-columns: 1fr; gap: 18px; }
  .examples-grid { grid-template-columns: 1fr; gap: 14px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-portrait {
    position: static;
    text-align: center;
  }
  .about-portrait img { width: 160px; height: 160px; margin: 0 auto 16px; }
  .about-credentials { max-width: 480px; margin: 0 auto; }
  .about-body { font-size: 15.5px; }
  .about-tagline { font-size: 16px !important; }

  .wordmark-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wordmark-role { font-size: 12px; }

  /* Mobile sticky nav: drop section links, keep brand + CTA. Scrolling
     the page is the navigation on a one-page site this short. Use longhand
     padding (something in the cascade was suppressing vertical padding
     when shorthand was used). Adds breathing room without shrinking the
     touch target. */
  .stickynav .stickynav-links { display: none; }
  /* Higher-specificity (.stickynav .stickynav-row) needed because a
     base-rule cascade quirk was suppressing vertical padding from the
     bare-class mobile override. Vertical breathing room around the
     "Email me" CTA on mobile. */
  .stickynav .stickynav-row {
    padding: 14px 18px !important;
    gap: 12px;
  }
  .stickynav-name { font-size: 14px; }
  .stickynav-cta { padding: 8px 14px; font-size: 13px; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 34px; line-height: 1.1; }
  .lede { font-size: 16px; }
  .hero-ctas .cta { width: 100%; }
  .step { padding: 22px 20px; }
  .tier { padding: 28px 22px; }
}
