/* ============================================================
   ePoster — State landing page stylesheet
   One file, plain CSS, no build step. Tokens up top; sections
   follow page order. Breakpoints: 900px and 560px.
   ============================================================ */

:root {
  /* Brand palette — yellow + dark blue only */
  --yellow-100: #FFF6E6;
  --yellow-500: #F19D11;
  --yellow-600: #BA7502;
  --yellow-700: #825100;
  --blue-100: #E5EAF0;
  --blue-300: #90A3B7;
  --blue-500: #133254;
  --blue-900: #001226;
  --gray-50:  #F9FAFB;
  --gray-100: #F4F5F6;
  --gray-200: #E9EBED;
  --gray-300: #D6D9DC;
  --gray-400: #9FA5AD;
  --gray-500: #6E7A87;
  --gray-700: #3D4751;
  --gray-900: #1B2128;
  --chrome:   #1F2937;
  --green:    #1F7A45;

  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-input: 4px;
  --radius-button: 8px;
  --radius-card: 12px;

  --shadow-card: 0 2px 8px rgba(19, 50, 84, 0.08);
  --shadow-md: 0 4px 12px rgba(19, 50, 84, 0.10);
  --ring-focus: 0 0 0 3px rgba(241, 157, 17, 0.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-900);
  background: var(--gray-50);
}
img { max-width: 100%; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-500); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-button) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
a { color: var(--yellow-700); text-decoration: none; }
a:hover { color: var(--yellow-600); }
h1, h2, h3 { color: var(--blue-500); font-weight: 700; margin: 0; }
p { margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; border-top: 1px solid var(--gray-200); }
section[id] { scroll-margin-top: 88px; }
.section--white { background: #fff; }
.section--page { background: var(--gray-50); }
.section-title { font-size: clamp(22px, 3vw, 36px); margin-bottom: 12px; }
.section-lede { color: var(--gray-500); max-width: 640px; margin-bottom: 48px; }
.section-lede--tight { margin-bottom: 24px; }
.section-lede--mid { margin-bottom: 40px; }

/* ---------- Buttons, forms ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-button);
  font: 700 16px var(--font-sans);
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.btn--primary { background: var(--yellow-500); color: var(--blue-900); }
.btn--primary:hover { background: var(--yellow-600); color: var(--blue-900); }
.btn--outline { background: #fff; color: var(--blue-500); border: 1.5px solid var(--blue-500); }
.btn--outline:hover { background: var(--gray-100); color: var(--blue-500); }
.btn--sm { padding: 10px 20px; font-size: 15px; }

.email-form { display: flex; gap: 12px; }
/* Hero form: cap to the copy column's width so it never spans the full page */
.hero .email-form { max-width: 480px; }
/* Button keeps its natural single-line size; the input flexes around it.
   Without this, a wrapped button label makes the whole row tall. */
.email-form .btn { flex-shrink: 0; white-space: nowrap; }
.email-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-input);
  font: 400 16px var(--font-sans);
  color: var(--gray-900);
  background: #fff;
  outline: none;
}
.email-form input:focus { box-shadow: var(--ring-focus); }
.form-reassure { font-size: 14px; color: var(--yellow-700); margin-top: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Shared <use> icons (symbols defined at top of the HTML body) */
.icon-check { color: var(--green); }
.icon-chevron { color: var(--yellow-500); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.site-nav__inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.site-nav__logo { height: 30px; flex-shrink: 0; }
.site-nav__links { display: flex; gap: 24px; flex: 1; }
.site-nav__links a { font-size: 15px; font-weight: 700; color: var(--gray-500); transition: color .15s; }
.site-nav__links a:hover { color: var(--gray-900); }
.site-nav__signin { font-size: 15px; font-weight: 700; color: var(--blue-500); }

/* ---------- Hero ---------- */
.hero { background: #fff; border-bottom: 1px solid var(--gray-200); overflow: hidden; }
.hero__inner {
  /* First screen = nav + hero + trust bar: the hero fills the viewport minus
     the nav (72px) and the trust bar (~118px), so social proof anchors the fold
     instead of empty space. */
  min-height: calc(100vh - 190px);
  padding-top: 72px; padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero__copy p { font-size: 19px; color: var(--gray-700); max-width: 480px; margin-bottom: 14px; }
.hero__copy p:last-of-type { margin-bottom: 32px; }
.hero__art { display: flex; justify-content: center; align-items: center; }
.hero__art picture {
  display: block; flex-shrink: 0;
  width: 92%;
  max-width: calc(100vw - 48px);
  transform: translateX(min(34%, calc(10vw - 60px)));
}
.hero__art img { width: 100%; height: auto; display: block; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--blue-500); }
.trust-bar__inner {
  padding-top: 26px; padding-bottom: 26px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
}
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-item__icon { flex-shrink: 0; color: var(--yellow-500); }
.trust-item__stat { display: block; font-size: 22px; font-weight: 700; color: var(--yellow-500); line-height: 1.1; margin-bottom: 3px; }
.trust-item__desc { display: block; font-size: 14px; color: var(--blue-100); line-height: 1.45; }
.trust-dot {
  width: 14px; height: 14px; border-radius: 999px; background: #2FBF71;
  flex-shrink: 0; margin: 0 10px;
  animation: glow-dot 2.6s ease-in-out infinite;
}
@keyframes glow-dot {
  0%, 100% { box-shadow: 0 0 5px 2px rgba(47,191,113,0.45); }
  50% { box-shadow: 0 0 14px 4px rgba(47,191,113,0.85); }
}

/* ---------- Three steps ---------- */
.steps { background: #fff; padding: 104px 0; }
.steps .section-title { margin-bottom: 40px; }
.steps__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step__head { display: flex; align-items: center; gap: 14px; }
.step__num {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  background: var(--yellow-500); color: var(--blue-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step__line { flex: 1; height: 2px; background: var(--gray-200); }
.step__title { font-size: 17px; font-weight: 700; color: var(--blue-500); }
.step p { font-size: 14px; color: var(--gray-700); line-height: 1.6; }
.step__shot { height: 210px; margin-top: 6px; overflow: hidden; }
.step__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* --fit: show the whole screenshot (for UI shots wider than the card) */
.step__shot--fit { padding: 14px; }
.step__shot--fit img { object-fit: contain; }
/* --top: crop from the top edge instead of the center (for tall documents) */
.step__shot--top img { object-position: top; }
/* --bare: no card frame — the screenshot sits directly on the page at its own height */
.step__shot--bare { height: auto; }
.step__shot--bare img { height: auto; object-fit: contain; }

/* Screenshot placeholder — remove once real assets are in */
.placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-500);
  font-size: 13px; text-align: center; padding: 16px;
}

/* ---------- Included documents ---------- */
.poster-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.poster-list__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 2px solid var(--yellow-500);
}
.poster-list__head--fed { border-bottom-color: var(--blue-300); }
.poster-list__head strong { font-size: 16px; color: var(--blue-500); }
.poster-list__head span { font-size: 13px; color: var(--gray-500); }
.poster-list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 2px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}
.poster-list { list-style: none; margin: 0; padding: 0; }
.poster-list .num { font-size: 12px; color: var(--gray-400); font-weight: 700; min-width: 18px; }
.poster-list .name { flex: 1; }
.poster-list .note { font-size: 11px; color: var(--gray-500); }
.poster-list .lang { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--gray-400); flex-shrink: 0; }
.poster-toggle {
  background: none; border: none; padding: 12px 2px; cursor: pointer;
  font: 700 14px var(--font-sans); color: var(--yellow-700);
}
.poster-toggle:hover { color: var(--yellow-600); }

/* ---------- Changelog ---------- */
.changelog { overflow: hidden; }
.changelog__head, .changelog__row {
  display: grid;
  grid-template-columns: 150px 1.1fr 2.4fr;
  gap: 16px;
}
.changelog__head {
  padding: 14px 24px;
  background: var(--blue-500);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue-100);
}
.changelog__row {
  padding: 20px 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--gray-200);
  transition: background .15s;
}
.changelog__row:last-child { border-bottom: none; }
.changelog__row:hover { background: var(--yellow-100); }
.changelog__row .date { font-size: 14px; font-weight: 700; color: var(--blue-500); }
.changelog__row .poster { font-size: 14px; font-weight: 700; }
.changelog__row .detail { font-size: 14px; color: var(--gray-700); }

/* ---------- Blog strip ---------- */
/* Gray band separates the blog strip from the changelog table above it */
.blog-strip {
  margin-top: 64px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: 32px;
}
.blog-strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.blog-strip__head h3 { font-size: 20px; }
.blog-strip__head a { font-size: 14px; font-weight: 700; }
.blog-strip__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--gray-100); }
.blog-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.blog-card__date { font-size: 12px; color: var(--gray-500); }
.blog-card__title { font-size: 16px; font-weight: 700; color: var(--blue-500); line-height: 1.4; }

/* ---------- Penalties ---------- */
.penalties__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.penalty-group__head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-500);
}
.penalty-group__head strong { font-size: 15px; color: var(--blue-500); }
.penalty-group__head span { font-size: 13px; color: var(--gray-500); }
.penalty-group__head--second { padding-top: 32px; }
.penalty-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.penalty-row .cite { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.penalty-row .cite a { color: var(--gray-500); text-decoration: underline; }
.penalty-row__amount { text-align: right; flex-shrink: 0; }
.penalty-row__amount strong { display: block; font-size: 22px; color: var(--blue-500); white-space: nowrap; }
.penalty-row__amount span { font-size: 12px; color: var(--gray-500); }
.penalties__fineprint { font-size: 14px; color: var(--gray-500); margin-top: 20px; line-height: 1.6; max-width: 600px; }
.penalties__fineprint--sm { font-size: 13px; margin-top: 12px; }
.penalties__fineprint a { color: var(--gray-500); text-decoration: underline; }

.side-cta {
  background: var(--blue-500);
  border-radius: var(--radius-card);
  padding: 32px;
  position: sticky; top: 88px;
}
.side-cta h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.side-cta p { font-size: 14px; color: var(--blue-100); line-height: 1.6; margin-bottom: 24px; }
.side-cta .btn { width: 100%; }
.side-cta__note { margin-top: 12px; font-size: 13px; color: var(--blue-300); text-align: center; }

/* ---------- Free vs Pro ---------- */
.compare-wrap { max-width: 860px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th { padding: 16px 20px; font-weight: 700; text-align: center; }
.compare th:first-child { width: 46%; text-align: left; }
.compare thead th { background: var(--blue-500); color: var(--blue-100); }
.compare thead th:first-child { color: #fff; }
.compare thead th.pro { background: var(--yellow-500); color: var(--blue-900); }
.compare tbody tr:nth-child(even) { background: var(--gray-50); }
.compare tbody tr { border-bottom: 1px solid var(--gray-200); }
.compare tbody tr:last-child { border-bottom: none; }
.compare td { padding: 14px 20px; }
.compare td + td { padding: 14px; text-align: center; }
.compare .na { color: var(--gray-300); font-weight: 700; }
.compare tfoot tr { border-top: 1px solid var(--gray-200); }
.compare tfoot td { padding: 16px; text-align: center; }
.compare-footnote { max-width: 860px; margin-top: 16px; font-size: 14px; color: var(--gray-700); }
.compare-footnote a { font-weight: 700; }

/* ---------- Pro product section ---------- */
.section-title--pro { margin-bottom: 40px; max-width: 720px; }
.pro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pro-copy p { font-size: 17px; color: var(--gray-700); line-height: 1.6; margin-bottom: 14px; }
.pro-copy .pro-copy__cta-lead { margin-bottom: 28px; }
.pro-copy .after-cta { font-size: 14px; margin: 16px 0 0; }
.pro-copy .after-cta a { font-weight: 700; }
.pro-copy .hq-note { font-size: 13px; color: var(--gray-500); margin-top: 20px; }
.pro-carousel__stage { position: relative; height: 360px; }
.pro-carousel__slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
}
.pro-carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.pro-carousel__shot { height: 320px; overflow: hidden; background: #fff; }
.pro-carousel__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-carousel__caption { margin-top: 10px; text-align: center; }
.pro-carousel__caption strong { font-size: 14px; color: var(--blue-500); }
.pro-carousel__caption span { display: block; font-size: 13px; color: var(--gray-700); margin-top: 2px; }
.pro-carousel__dots { display: flex; justify-content: center; gap: 0; margin-top: 4px; }
/* 25px hit target, 9px visible dot — padding is kept transparent by background-clip */
.pro-carousel__dots button {
  width: 25px; height: 25px; border-radius: 999px; border: none; padding: 8px;
  cursor: pointer; background-color: var(--gray-300); background-clip: content-box;
  transition: background-color .2s;
}
.pro-carousel__dots button.is-active { background-color: var(--blue-500); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.faq-wrap h2 { margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item summary {
  padding: 18px 4px;
  font-weight: 700; color: var(--blue-500);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; }
.faq-item .answer { padding: 0 4px 20px; font-size: 14px; color: var(--gray-700); line-height: 1.65; }
.faq-item .answer a { font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--blue-500); padding: 80px 0; }
.final-cta__inner { max-width: 680px; margin: 0 auto; padding: 0 24px; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 40px); line-height: 1.15; margin-bottom: 14px; }
.final-cta p { font-size: 18px; color: var(--blue-100); margin-bottom: 32px; }
.final-cta .email-form { justify-content: center; }
.final-cta .email-form input { max-width: 320px; border-color: rgba(255,255,255,0.2); }
.final-cta .form-reassure { color: var(--blue-300); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--chrome); padding: 56px 24px 40px; }
.footer-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
}
.site-footer__logo { height: 28px; margin-bottom: 14px; display: block; }
.site-footer .site-footer__tagline { margin-bottom: 14px; }
.site-footer__edoc { display: inline-flex; margin-bottom: 12px; }
.site-footer__edoc img { height: 24px; }
.site-footer p { font-size: 14px; color: var(--gray-400); line-height: 1.55; max-width: 280px; }
.site-footer p a { color: #fff; font-weight: 700; }
.footer-col strong { display: block; font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col nav a { font-size: 14px; color: var(--gray-400); }
.footer-col nav a:hover { color: #fff; }
.site-footer .footer-disclaimer { max-width: 1120px; margin: 32px auto 0; font-size: 12px; color: var(--gray-500); line-height: 1.6; }
.footer-legal {
  max-width: 1120px; margin: 20px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; color: var(--gray-500);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-legal a { color: var(--gray-500); }

/* ---------- Sticky CTA bar ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--chrome);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 20px rgba(19,50,84,0.3);
  padding: 10px 0;
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-bar__inner strong { font-size: 14px; color: #fff; }
.sticky-bar .btn { min-height: 44px; padding: 12px 24px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 900px) {
  .section, .steps { padding: 56px 0; }
  .trust-bar__inner, .steps__grid, .poster-cols, .penalties__grid,
  .pro-grid, .blog-strip__grid { grid-template-columns: 1fr; gap: 32px; }
  .side-cta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .changelog__head { display: none; }
  .changelog__row { grid-template-columns: 1fr; gap: 4px; }
  .site-nav__links { display: none; }
  .step__line { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav__inner { gap: 16px; }
  .email-form { flex-direction: column; }
  .email-form input, .email-form .btn { width: 100%; max-width: none; min-height: 48px; }
}

/* ---------- edoc: state-landing tweaks (added during port; not in the mockup) ---------- */
/* Blog strip rendered without the changelog above it (no changes data yet):
   drop the divider top margin so it sits flush under the section top padding. */
.blog-strip--solo { margin-top: 0; }
