/* ==========================================================
   AE SPELL CHECKER - LEAN BRAND BLUEPRINT
   Brand palette:
   #333333 charcoal
   #66CCFF blue
   #85C441 green
   #DD7B43 ignore / warning / negative
   ========================================================== */

:root {
  --bg: #333333;
  --bg-dark: #2B2B2B;
  --bg-light: #3A3A3A;
  --panel: #3D3D3D;
  --panel-soft: #373737;
  --text: #F4F4F1;
  --muted: #C7C7C3;
  --subtle: #93938F;
  --line: rgba(255,255,255,.12);

  --blue: #66CCFF;
  --green: #85C441;
  --orange: #DD7B43;

  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section-wide {
  border-block: 1px solid rgba(255,255,255,.08);
  background: var(--bg-dark);
}

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 max(20px, calc((100vw - var(--max))/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(51,51,51,.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
}

.topbar nav > a:not(.buy-link) {
  color: var(--muted);
}

.topbar nav > a:not(.buy-link):hover {
  color: white;
}

.buy-link {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--blue);
  color: #22333B;
  font-weight: 700;
}

/* TYPE */
.product-tag,
.eyebrow {
  display: inline-block;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow.blue { color: var(--blue); }
.eyebrow.green { color: var(--green); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 25px;
  font-size: clamp(54px, 7vw, 94px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 700;
}

h1 span {
  color: var(--blue);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 13px;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

/* BUTTONS */
.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease;
}

.button:hover { transform: translateY(-2px); }

.button-blue {
  background: var(--blue);
  color: #22333B;
}

.button-blue:hover { filter: brightness(1.06); }

.button-ghost {
  border: 1px solid rgba(255,255,255,.20);
  color: white;
}

.large-button {
  min-height: 58px;
  padding-inline: 26px;
}

/* HERO */
.hero {
  min-height: calc(100svh - 72px);
  padding-block: 88px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 68px;
}

.product-tag {
  margin-bottom: 18px;
  color: var(--green);
}

.hero-copy > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-facts {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-facts span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: #D8D8D4;
  font-size: 11px;
}

/* MEDIA PLACEHOLDERS */
.media-label {
  margin: 0 0 8px 4px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.media-frame {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: #2C2C2C;
  box-shadow: 0 26px 70px rgba(0,0,0,.20);
}

.media-placeholder,
.mini-media {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 16px;
  text-align: center;
  background:
    linear-gradient(rgba(102,204,255,.03), rgba(102,204,255,.01)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.015) 12px, rgba(255,255,255,.015) 24px);
  color: #9FA8AC;
}

.media-placeholder strong,
.mini-media span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.media-placeholder span,
.mini-media small {
  color: #7D8589;
  font-size: 9px;
}

.media-hero { aspect-ratio: 4 / 3; }
.media-hero .media-placeholder,
.media-wide .media-placeholder,
.media-cinema .media-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.media-wide { min-height: 390px; }
.media-cinema { aspect-ratio: 16 / 6.3; min-height: 265px; }

/* HOW */
.how {
  padding-block: 100px;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.action-card {
  padding: 14px 14px 25px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  border: 1px solid rgba(255,255,255,.08);
}

.number {
  width: 36px;
  height: 26px;
  margin: 6px 0 10px 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #2B2B2B;
  font-size: 9px;
  font-weight: 800;
}

.blue-bg { background: var(--blue); }
.green-bg { background: var(--green); }
.orange-bg { background: var(--orange); color: white; }

.mini-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
}

.action-card h3,
.action-card p {
  margin-left: 8px;
  margin-right: 8px;
}

.action-card p {
  color: var(--muted);
  font-size: 13px;
}

/* SCAN */
.scan {
  padding-block: 110px;
}

.scan-copy {
  max-width: 780px;
  margin-bottom: 42px;
}

.scan-copy .eyebrow {
  margin-bottom: 12px;
}

.scan-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}


/* DICTIONARY */
.dictionary {
  padding-block: 110px;
}

.dictionary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.dictionary-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: var(--panel);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.custom-accent { background: var(--blue); }
.brand-accent { background: var(--green); }

.dictionary-title {
  margin-top: 45px;
}

.chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .10em;
}

.blue-chip {
  background: rgba(102,204,255,.10);
  color: var(--blue);
}

.green-chip {
  background: rgba(133,196,65,.10);
  color: var(--green);
}

.dictionary-card p {
  max-width: 520px;
  color: var(--muted);
}

.word-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-blue {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(102,204,255,.24);
  background: rgba(102,204,255,.05);
  color: #D8F4FF;
  font-size: 12px;
}

.brand-example {
  margin-top: 30px;
  display: grid;
  gap: 7px;
}

.example-label {
  margin-bottom: 2px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .10em;
}

.brand-example > div {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(0,0,0,.14);
  font-size: 12px;
  font-weight: 500;
}

.brand-example .good span {
  color: var(--green);
  margin-right: 9px;
}

.brand-example .bad span {
  color: var(--orange);
  margin-right: 9px;
}

/* FEATURES */
.features {
  padding-block: 110px;
}

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

.feature-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: var(--panel-soft);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 60px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 800;
}

.blue-text { color: var(--blue); }
.green-text { color: var(--green); }
.orange-text { color: var(--orange); }

.feature-card h3 {
  font-size: 17px;
}

.feature-card p {
  color: var(--muted);
  font-size: 12px;
}

/* SUPPORT */
.support {
  padding-block: 110px;
}

.support-heading {
  margin-bottom: 30px;
}

.support-heading h2 {
  max-width: 540px;
}

.language-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.language-list > div {
  height: 72px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 600;
}

.language-list strong {
  font-size: 14px;
  font-weight: 600;
}

.language-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}

/* FINAL CTA */
.final-cta {
  padding-block: 105px;
  background:
    radial-gradient(circle at 50% 50%, rgba(102,204,255,.10), transparent 26rem),
    var(--bg-dark);
  border-block: 1px solid rgba(255,255,255,.08);
}

.final-inner {
  text-align: center;
}

.final-logo {
  width: 94px;
  margin: 0 auto 30px;
  border-radius: 12px;
}

.final-inner h2 {
  max-width: 840px;
  margin-inline: auto;
}

.final-inner h2 br {
  display: block;
}

.final-subhead {
  margin: -2px 0 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

/* FOOTER */
.footer {
  min-height: 96px;
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--subtle);
  font-size: 10px;
}

.footer .brand {
  color: #D0D0CC;
  font-size: 11px;
}

.footer .brand-logo {
  width: 30px;
  height: 30px;
}

/* SUBTLE REVEAL */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .language-list {
    grid-template-columns: 1fr 1fr;
  }


  .topbar nav > a:not(.buy-link) { display: none; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-media {
    max-width: 720px;
  }

  .three-up,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .three-up .action-card:last-child {
    grid-column: span 2;
  }

  .dictionary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }

  .topbar {
    height: 64px;
    padding-inline: 14px;
  }

  .topbar .brand span {
    display: none;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .buy-link {
    padding: 9px 12px;
    font-size: 11px;
  }

  .hero {
    padding-block: 64px 72px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  h2 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero-copy > p,
  .scan-copy p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .how,
  .scan,
  .dictionary,
  .features,
  .support {
    padding-block: 78px;
  }

  .three-up,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .three-up .action-card:last-child {
    grid-column: auto;
  }

  .dictionary-card {
    min-height: 340px;
    padding: 24px;
  }

  .feature-icon {
    margin-bottom: 42px;
  }

  .language-list {
    grid-template-columns: 1fr;
  }

  .language-list > div {
    height: 72px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Hero screenshot */
.hero-shot {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.30);
}


/* Scan / Review / Replace screenshots */
.mini-media.has-shot {
  overflow: hidden;
  aspect-ratio: 5 / 3;
  border: 1px solid rgba(255,255,255,.10);
  background: #1D1D1D;
}

.step-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Compact section headers */
.compact-heading {
  margin-bottom: 30px;
}

.compact-heading h2.eyebrow {
  margin: 0;
  line-height: 1.2;
}

/* Scan mode image pair */
.scan-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scan-media-item {
  min-width: 0;
}

.scan-media-frame {
  min-height: 300px;
}

.scan-media-frame .media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

@media (max-width: 760px) {
  .scan-media-grid {
    grid-template-columns: 1fr;
  }

  .scan-media-frame,
  .scan-media-frame .media-placeholder {
    min-height: 240px;
  }
}


/* Explicit section background rhythm
   Keep both tones inside the charcoal Midnight Snacks palette. */
.tone-dark {
  background: var(--bg);
  color: var(--text);
}

.tone-light {
  background: var(--bg-dark);
  color: var(--text);
}

/* Shell sections need full-bleed background without changing inner width */
.hero.tone-dark,
.scan.tone-dark,
.features.tone-light {
  position: relative;
  z-index: 0;
}

.hero.tone-dark::before,
.scan.tone-dark::before,
.features.tone-light::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: -1;
}

.hero.tone-dark::before,
.scan.tone-dark::before {
  background: var(--bg);
}

.features.tone-light::before {
  background: var(--bg-dark);
}


/* Scan what matters screenshots */
.scan-media-frame.has-shot {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: #1D1D1D;
}

.scan-section-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
