/* ═══════════════════════════════════════════════════════════
   OmniTab.net — Main Stylesheet (v2.1)
   Fonts: DM Sans (body) + Instrument Serif (display)
   Palette: Deep forest green + warm cream + sharp emerald accents
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Core palette */
  --bg:           #faf9f6;
  --bg-alt:       #f0efeb;
  --bg-dark:      #0f1f17;
  --bg-card:      #ffffff;
  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --text-on-dark: #e8e6e1;

  /* Brand greens */
  --accent:       #1b7f5a;
  --accent-hover: #15664a;
  --accent-light: #e6f5ee;
  --accent-glow:  rgba(27, 127, 90, 0.12);

  /* Pricing highlight */
  --featured:     #0d4f36;
  --featured-bg:  #f0faf5;

  /* Borders & shadows */
  --border:       #e2e1dc;
  --border-light: #eeede8;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);

  /* Radius */
  --radius:       8px;
  --radius-lg:    14px;

  /* Fonts */
  --font-body:    'DM Sans', -apple-system, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ══════════════ SKIP LINK (accessibility) ══════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
}

/* ══════════════ FOCUS STYLES (accessibility) ══════════════ */

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ══════════════ HEADER / NAV ══════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.btn-cta-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}
.btn-cta-nav:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* ══════════════ HERO ══════════════ */

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--bg-dark);
  margin-bottom: 20px;
}
.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero visual — browser frame mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-browser-frame {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.browser-content {
  padding: 20px;
}

/* Skeleton placeholder rows */
.hero-placeholder { display: flex; flex-direction: column; gap: 10px; }
.ph-row { border-radius: 4px; }
.ph-header { height: 28px; width: 60%; background: var(--accent-light); }
.ph-filter { height: 20px; width: 40%; background: var(--border-light); }
.ph-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ph-data { height: 16px; width: 100%; background: var(--bg-alt); }
.ph-data:nth-child(odd) { width: 92%; }
.ph-data:nth-child(3) { width: 85%; }

/* ══════════════ PROOF / PAIN POINTS ══════════════ */

.proof {
  background: var(--bg);
}

.proof-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.proof-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.proof-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.proof-item {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--bg-dark);
  line-height: 1.5;
}

.proof-resolution {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* ══════════════ SECTIONS (shared) ══════════════ */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
  color: var(--bg-dark);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.7;
}

/* ══════════════ FEATURES ══════════════ */

.features {
  background: var(--bg-alt);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.features-more {
  text-align: center;
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
}
.features-more a {
  color: var(--accent);
  transition: color 0.15s;
}
.features-more a:hover {
  color: var(--accent-hover);
}

/* ══════════════ WHO IT'S FOR ══════════════ */

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

.who-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.who-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.15s, color 0.15s;
}
.who-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════ HOW IT WORKS ══════════════ */

.how-it-works {
  background: var(--bg);
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════ NOT JUST A TAB SAVER ══════════════ */

.not-just {
  background: var(--bg-alt);
}

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

.not-just-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400;
  color: var(--bg-dark);
  margin-bottom: 16px;
}

.not-just-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ══════════════ PRICING ══════════════ */

.pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  position: relative;
  transition: box-shadow 0.2s;
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bg-dark);
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.55;
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-features li:first-child {
  font-weight: 600;
  color: var(--text);
}

.btn-tier {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.15s;
}
.btn-tier:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* ══════════════ FINAL CTA ══════════════ */

.final-cta {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: #fff;
}

.final-cta p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  font-size: 17px;
}

.final-cta .btn-cta {
  background: #fff;
  color: var(--bg-dark);
}
.final-cta .btn-cta:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

/* ══════════════ FOOTER ══════════════ */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand .logo-mark { color: var(--accent-light); }
.footer-brand .logo-text { color: #fff; }

.footer-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ══════════════ PAGE CONTENT (Privacy, ToS, Features, etc.) ══════════════ */

.page-content {
  padding: 40px 0 80px;
}

.content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrap h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.meta-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.content-wrap h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 36px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.content-wrap h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.content-wrap p,
.content-wrap li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.content-wrap ul, .content-wrap ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-wrap strong { color: var(--text); }

.content-wrap a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Trust cross-link box (appears on legal pages) */
.trust-crosslink {
  background: var(--accent-light);
  border: 1px solid rgba(27, 127, 90, 0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.trust-crosslink a {
  color: var(--accent);
  font-weight: 600;
}

/* Tier badges (features page) */
.tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.tier-free {
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tier-plus {
  color: var(--accent);
  border: 1px solid var(--accent);
}
.tier-pro {
  color: var(--featured);
  border: 1px solid var(--featured);
}

/* Table styling (features comparison, etc.) */
.content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.content-wrap th,
.content-wrap td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  color: var(--text-muted);
}
.content-wrap th {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ══════════════ 404 PAGE ══════════════ */

.page-404 {
  padding: 120px 0 160px;
  text-align: center;
}

.page-404-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  text-align: center;
}

.page-404-message {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-align: center;
}

/* ══════════════ ADMIN PAGES ══════════════ */

.admin-page { background: var(--bg); }

.admin-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.admin-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fee;
  color: #c33;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
}

.admin-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.admin-main h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 24px;
}

/* ══════════════ RESPONSIVE ══════════════ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 40px;
  }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn-cta-nav) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 28px; }
  .who-tags { gap: 8px; }
  .who-tag { font-size: 13px; padding: 6px 14px; }
}

/* ══════════════ REDUCED MOTION (accessibility) ══════════════ */

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