/* BestEmailOCR.com — inbox scanner review design */
:root {
  --navy: #081420;
  --navy-light: #0f2235;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #059669;
  --green-light: #ecfdf5;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 35px rgba(15,23,42,0.12);
  --radius: 10px;
  --radius-lg: 18px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); line-height: 1.7; font-size: 1.0625rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 840px; }
.section { padding: 5rem 0; }
.section--alt { background: var(--gray-50); }
.text-center { text-align: center; }
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.13; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.65rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.45rem; }
p { color: var(--gray-600); margin-bottom: 1rem; }
p + p { margin-top: 1rem; }
.subtitle { font-size: 1.2rem; color: var(--gray-500); line-height: 1.6; max-width: 760px; }
.badge, .eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.section-header { margin-bottom: 3rem; }
.nav { padding: 1rem 0; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 1.35rem; align-items: center; }
.nav-links a { color: var(--gray-600); font-size: .94rem; font-weight: 700; }
.nav-links a:hover { color: var(--gray-900); }
.signup-form--nav { display: flex; gap: .5rem; align-items: stretch; }
.signup-form--nav input[type="email"] { width: 158px; padding: .5rem .75rem; border-radius: 7px; border: 1px solid var(--gray-300); font: inherit; font-size: .875rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .88rem 1.35rem; border-radius: var(--radius); font-weight: 800; border: 0; cursor: pointer; font: inherit; line-height: 1; text-decoration: none; }
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 12px 28px rgba(37,99,235,.24); }
.btn--primary:hover { background: linear-gradient(135deg, var(--blue-hover), #0891b2); color: #fff; transform: translateY(-1px); }
.btn--secondary { background: #fff; color: var(--gray-900); border: 1px solid var(--gray-200); }
.btn--secondary:hover { color: var(--gray-900); border-color: var(--gray-300); background: var(--gray-50); }
.btn--small { padding: .5rem 1.05rem; font-size: .875rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--gray-800); cursor: pointer; }
.emailocr-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 12% 20%, rgba(37,99,235,.34), transparent 29%), radial-gradient(circle at 88% 5%, rgba(6,182,212,.32), transparent 33%), linear-gradient(135deg, #061223 0%, #0f2341 53%, #111827 100%); padding: 5.75rem 0 4.3rem; color: #fff; }
.emailocr-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.emailocr-hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 3rem; align-items: center; }
.emailocr-hero h1 { color: #fff; margin-bottom: 1.1rem; }
.emailocr-hero .subtitle { color: rgba(255,255,255,.78); }
.emailocr-hero .subtitle a { color: #fff; font-weight: 900; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 1.1rem; }
.hero-proof { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero-proof span { color: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .35rem .7rem; font-size: .85rem; background: rgba(255,255,255,.06); }
.inbox-board { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 25px; padding: 1rem; box-shadow: 0 28px 80px rgba(0,0,0,.28); backdrop-filter: blur(16px); }
.board-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-bottom: .8rem; }
.board-top strong { color: #fff; }
.board-row { display: grid; grid-template-columns: 34px 1fr 48px; gap: .7rem; align-items: center; padding: .85rem; border-radius: 15px; margin-bottom: .55rem; color: rgba(255,255,255,.86); background: rgba(255,255,255,.06); }
.board-row:hover { color: #fff; background: rgba(255,255,255,.12); }
.board-row span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.13); font-weight: 900; }
.board-row strong { color: #fff; }
.board-row em { color: #67e8f9; font-style: normal; justify-self: end; font-weight: 900; }
.board-row--winner { background: linear-gradient(135deg, rgba(37,99,235,.32), rgba(6,182,212,.14)); border: 1px solid rgba(125,211,252,.42); }
.inbox-board p { color: rgba(255,255,255,.58); font-size: .88rem; margin: .35rem .25rem 0; }
.answer-strip { background: var(--navy); padding: 0 0 2rem; }
.answer-box { background: #fff; border: 1px solid rgba(37,99,235,.22); border-radius: 18px; padding: 1.35rem 1.5rem; box-shadow: 0 22px 58px rgba(0,0,0,.18); }
.answer-box p { color: var(--gray-900); font-size: 1.07rem; margin: 0; }
.method-grid, .use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method-grid div, .use-grid div { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: 0 8px 26px rgba(15,23,42,.04); }
.method-grid span { color: var(--blue); font-weight: 900; font-size: .8rem; }
.method-grid strong, .use-grid strong { display: block; color: var(--gray-900); font-size: 1.05rem; margin: .35rem 0; }
.method-grid p, .use-grid span { color: var(--gray-600); font-size: .95rem; margin: 0; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); font-size: .92rem; }
.compare-table th { text-align: left; background: var(--navy); color: #fff; padding: .9rem 1rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.compare-table td { border-top: 1px solid var(--gray-200); padding: .85rem 1rem; vertical-align: top; color: var(--gray-600); }
.compare-table tr:first-child td { background: var(--blue-light); color: var(--gray-900); }
.compare-table a { font-weight: 900; }
.split { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 3rem; align-items: center; }
.metric-stack { display: grid; gap: 1rem; }
.metric-stack div { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.3rem; background: linear-gradient(135deg, var(--gray-50), #fff); }
.metric-stack strong { display: block; color: var(--gray-900); font-size: 2rem; line-height: 1; }
.metric-stack span { color: var(--gray-600); font-size: .92rem; }
.rank-list { display: grid; gap: 1.4rem; }
.rank-card { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; }
.rank-num { width: 50px; height: 50px; border-radius: 16px; background: #fff; border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--gray-900); box-shadow: 0 8px 26px rgba(15,23,42,.06); }
.rank-body { background: #fff; border: 1px solid var(--gray-200); border-radius: 22px; padding: 1.6rem; box-shadow: 0 12px 36px rgba(15,23,42,.05); }
.rank-card--winner .rank-body { border: 2px solid var(--blue); box-shadow: 0 22px 60px rgba(37,99,235,.16); }
.rank-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .5rem; }
.rank-head span { color: var(--blue); text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; font-weight: 900; }
.rank-head strong { color: var(--gray-900); font-size: 1.2rem; }
.rank-meta { color: var(--gray-500); font-size: .92rem; }
.facts { display: grid; gap: .4rem; background: var(--gray-50); border-radius: 14px; padding: 1rem; margin: 1rem 0; }
.facts span { color: var(--gray-600); font-size: .94rem; }
.facts strong { color: var(--gray-900); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pc { list-style: none; display: grid; gap: .45rem; }
.pc li { color: var(--gray-600); font-size: .94rem; display: flex; gap: .5rem; }
.pc--pros span { color: var(--green); font-weight: 900; }
.pc--cons span { color: #dc2626; font-weight: 900; }
.verdict { background: var(--blue-light); border-radius: 14px; padding: 1rem; color: var(--gray-700); margin: 1rem 0; }
.verdict strong { color: var(--gray-900); }
.editorial ul, .related-list { margin-left: 1.25rem; color: var(--gray-600); }
.related-list li { margin-bottom: .7rem; }
.final-cta { text-align: center; background: linear-gradient(135deg, #081420, #0f2235); padding: 5rem 0; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.76); }
.final-cta a:not(.btn) { color: #fff; font-weight: 900; }
.final-cta .signup-form { margin: 1.4rem auto .75rem; display: flex; gap: .75rem; max-width: 500px; }
.signup-form input[type="email"] { flex: 1; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--gray-300); font: inherit; }
.microcopy { font-size: .9rem; margin: 0; }
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-section details { border-bottom: 1px solid var(--gray-200); }
.faq-section summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1.2rem 0; list-style: none; font-weight: 800; color: var(--gray-900); }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary b { color: var(--blue); font-size: 1.25rem; transition: transform .2s; }
.faq-section details[open] summary b { transform: rotate(45deg); }
.faq-answer { padding-bottom: 1.2rem; }
.faq-answer p { margin: 0; font-size: .96rem; }
.footer-cta { background: var(--navy); color: #fff; padding: 4.5rem 0; text-align: center; }
.footer-cta h2 { color: #fff; }
.footer-cta p { color: var(--gray-400); }
.footer-cta .signup-form { margin: 1.2rem auto 0; display: flex; gap: .75rem; max-width: 520px; }
.footer-cta-stats, .footer-trust, .social-toast, .sticky-cta, .announcement-bar, .scroll-progress { display: none; }
.footer { background: #050b13; color: var(--gray-400); padding: 2rem 0; }
.footer a { color: var(--gray-300); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .method-grid, .use-grid { grid-template-columns: 1fr; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-num { margin: 0 auto -.5rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow-lg); }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .nav .container { position: relative; }
  .final-cta .signup-form, .footer-cta .signup-form { flex-direction: column; }
}
