:root {
  color-scheme: light;
  --navy: #061a4d;
  --navy-2: #123c73;
  --teal: #009e8d;
  --teal-dark: #007f73;
  --aqua: #e5faf7;
  --blue-soft: #eaf7ff;
  --ink: #102248;
  --muted: #52627e;
  --line: #cbd8e6;
  --paper: #ffffff;
  --shadow: 0 18px 46px rgba(11, 48, 91, .14);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; overflow-x: hidden; background: linear-gradient(180deg, #fff 0, #fff 65%, #eef8ff 100%); color: var(--ink); font-size: 16px; line-height: 1.45; }
button, input, textarea { font: inherit; }
button, a, label[for="docx"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #5cc9ff; outline-offset: 3px; }

.site-header { position: relative; z-index: 20; width: min(1560px, calc(100% - 56px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 320px; height: 76px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; transform: scale(1.13); }
nav { display: flex; align-items: center; }
nav a, .pricing-trigger { color: var(--navy); font-weight: 750; font-size: 1.08rem; padding: 8px 26px; text-decoration: none; border: 0; border-left: 1px solid #7290ac; background: transparent; cursor: pointer; }
nav > :first-child { border-left: 0; }
nav a:hover, .pricing-trigger:hover { color: var(--teal-dark); }
.pricing-panel { position: absolute; z-index: 30; top: 76px; right: 0; width: min(390px, calc(100vw - 28px)); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.pricing-panel h2 { margin: 0 38px 8px 0; color: var(--navy); font-size: 1.45rem; }
.pricing-panel p { margin: 0 0 15px; color: var(--muted); }
.pricing-panel dl { display: grid; gap: 0; margin: 0; }
.pricing-panel dl div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.pricing-panel dt { color: var(--ink); }
.pricing-panel dd { margin: 0; color: var(--navy); font-weight: 850; white-space: nowrap; }
.pricing-close { position: absolute; top: 10px; right: 11px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.65rem; cursor: pointer; }

main { overflow: hidden; }
.hero { min-width: 0; width: min(1580px, calc(100% - 56px)); margin: 4px auto 8px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(500px, .95fr); gap: clamp(30px, 4vw, 68px); align-items: start; }
.hero-copy { min-width: 0; padding-top: 5px; }
.eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-size: .82rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0; color: var(--navy); font-size: clamp(2.55rem, 3.8vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
h1::after { content: ""; display: block; width: 43%; height: 9px; margin: 9px 0 11px 8px; border-radius: 50%; border-top: 6px solid var(--teal); transform: rotate(-1deg); }
.intro { max-width: 46%; margin: 0 0 9px; color: #344665; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.intro-stage { position: relative; min-height: 230px; }
.benefits { position: relative; z-index: 1; max-width: 40%; list-style: none; margin: 0; padding: 0; font-weight: 680; }
.benefits li { margin: 8px 0; padding-left: 40px; }
.benefits li::before { content: "✓"; position: absolute; width: 29px; height: 29px; margin-left: -43px; border-radius: 50%; background: var(--teal); color: #fff; text-align: center; line-height: 29px; font-weight: 900; }
.hero-mascot { position: absolute; z-index: 0; right: 0; bottom: 0; width: min(69%, 596px); max-height: 305px; object-fit: contain; object-position: bottom right; }
.no-ai { min-height: 64px; display: flex; align-items: center; gap: 15px; margin-top: 14px; padding: 10px 21px; border-radius: 22px; background: linear-gradient(90deg, #dff9f4, #edfdf9); }
.shield { display: grid; place-items: center; flex: 0 0 39px; height: 44px; color: var(--teal-dark); border: 3px solid var(--teal-dark); border-radius: 45% 45% 52% 52%; font-size: 1.25rem; font-weight: 900; }
.no-ai-copy { margin: 0; color: #354664; }
.no-ai-copy strong { color: var(--navy); }

.checker { margin-top: 5px; overflow: visible; border: 1px solid #c7d7e7; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.checker-titlebar { display: flex; align-items: center; gap: 16px; min-height: 62px; padding: 10px 28px; border-radius: 23px 23px 0 0; color: #fff; background: linear-gradient(110deg, #153c70, #0b2d5d); }
.checker-titlebar h2 { margin: 0; font-size: clamp(1.25rem, 1.5vw, 1.35rem); line-height: 1.15; letter-spacing: -.02em; }
.document-icon { font-size: 2.3rem; }
.checker-body { position: relative; padding: 14px 28px 16px; }
.input-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin-bottom: 9px; border-radius: 14px; background: #edf3f9; }
.tab { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.tab.active { background: #fff; color: var(--navy); box-shadow: 0 2px 9px rgba(15, 44, 84, .1); }
label:not(.drop-zone) { display: block; margin: 0 0 8px; color: var(--navy); font-weight: 800; }
textarea { width: 100%; min-height: 174px; resize: vertical; padding: 15px; border: 1.5px solid #aebfd2; border-radius: 14px; color: var(--ink); background: #fff; line-height: 1.5; }
textarea::placeholder, input::placeholder { color: #738199; }
.drop-zone { min-height: 197px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 24px; border: 2px dashed #23b4a5; border-radius: 20px; background: radial-gradient(circle at 65% 10%, #edffff, #ecfaf9 56%, #fff); color: var(--navy); text-align: center; cursor: pointer; }
.drop-zone.dragging { border-style: solid; background: #ddfaf4; }
.upload-state { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.drop-zone strong { font-size: 1.18rem; }
.drop-zone small { margin-top: 8px; color: var(--muted); }
.upload-icon { color: var(--teal); font-size: 2.55rem; font-weight: 900; line-height: 1; }
.ready-icon, .error-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 2px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 1.35rem; font-weight: 900; }
.error-icon { background: #b94a48; }
.upload-filename { max-width: 100%; color: var(--navy); font-size: 1.05rem; font-weight: 850; overflow-wrap: anywhere; }
.upload-word-count, #upload-error-message { color: var(--muted); }
.choose-file { display: inline-block; min-width: 190px; margin: 7px 0 0; padding: 7px 20px; border: 2px solid var(--navy); border-radius: 999px; background: #fff; font-weight: 800; }

.style-field { position: relative; margin-top: 10px; }
.combobox-wrap { position: relative; }
.combobox-wrap input { width: 100%; height: 50px; padding: 0 50px 0 49px; border: 1.5px solid #aebfd2; border-radius: 14px; color: var(--navy); font-weight: 700; }
.combobox-wrap input[type="search"]::-webkit-search-cancel-button,
.combobox-wrap input[type="search"]::-webkit-search-decoration { display: none; -webkit-appearance: none; appearance: none; }
.combobox-wrap input[type="search"]::-ms-clear { display: none; width: 0; height: 0; }
.search-icon { position: absolute; z-index: 1; left: 18px; top: 16px; width: 19px; height: 19px; border: 3px solid #8294aa; border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 8px; height: 3px; right: -7px; bottom: -4px; background: #8294aa; transform: rotate(45deg); }
.clear-button { position: absolute; right: 6px; top: 4px; width: 42px; height: 42px; border: 0; background: transparent; color: #76869b; font-size: 1.7rem; cursor: pointer; }
.style-options { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% - 2px); max-height: 260px; overflow: auto; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 14px 30px rgba(12, 40, 75, .18); }
.style-option { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.style-option:hover, .style-option:focus { background: var(--aqua); }
.field-help { min-height: 20px; margin: 6px 2px 0; color: var(--muted); font-size: .85rem; }
.primary-button, .unlock-button { width: 100%; min-height: 56px; margin-top: 7px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(100deg, #078e80, #00a692); font-size: 1.15rem; font-weight: 850; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 142, 126, .2); }
.primary-button:hover, .unlock-button:hover { background: linear-gradient(100deg, #007c70, #008f80); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.unlock-button { background: var(--navy); box-shadow: none; }
.check-price-note { margin: 3px 0 0; color: var(--teal-dark); font-size: .88rem; font-weight: 800; line-height: 20px; text-align: center; }
.check-result { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 15px; border-radius: 13px; background: #f0f7ff; color: var(--navy); }
.check-result > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; }
.check-result div { display: grid; }
.check-result div span { color: var(--muted); font-size: .88rem; }

.results { width: min(1380px, calc(100% - 56px)); margin: 18px auto 46px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.results h2, .how-it-works h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.75rem); letter-spacing: -.03em; }
.result-summary { margin: 8px 0 0; color: var(--teal-dark); font-weight: 800; }
.copy-button { min-height: 48px; padding: 0 20px; border: 2px solid var(--teal-dark); border-radius: 999px; background: #fff; color: var(--teal-dark); font-weight: 800; cursor: pointer; }
.preview-tabs { display: flex; gap: 24px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.preview-tab { padding: 10px 2px; border: 0; border-bottom: 4px solid transparent; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.preview-tab.active { border-bottom-color: var(--teal); color: var(--navy); }
.essay-preview { min-height: 260px; max-height: 560px; overflow: auto; margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; color: #182642; font-family: Georgia, "Times New Roman", serif; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-status { min-height: 22px; color: var(--teal-dark); font-weight: 700; }
.result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin-top: 24px; }
.result-grid section { padding: 22px; border-radius: 16px; background: #f5f9fd; }
.result-grid h3 { margin: 0 0 12px; color: var(--navy); }
.finding-list, .review-list, .coverage-list { margin: 0; padding-left: 22px; }
.finding-list li, .review-list li, .coverage-list li { margin: 10px 0; }
.finding-list code { display: block; margin-top: 4px; color: #304463; font-family: inherit; font-size: .9rem; overflow-wrap: anywhere; }
.finding-list details { margin: 7px 0 16px; }
.finding-list summary { width: fit-content; color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.finding-examples { margin: 8px 0 0; padding-left: 20px; }
.finding-examples li { margin: 9px 0; color: var(--muted); }
.finding-examples code { color: #304463; }
.comparison-arrow { display: inline-block; margin: 0 .38em; color: var(--navy); font-weight: 900; }
.applied-changes { margin: 7px 0 0; padding-left: 22px; }
.applied-changes li { margin: 4px 0; color: #40536f; }
.review-list details { margin-top: 7px; }
.review-list summary { width: fit-content; color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.review-entries { margin: 8px 0 0; padding-left: 20px; }
.review-entries li { color: var(--muted); }
.result-grid > section > .empty { margin: 0; }
.empty { color: var(--muted); }

.trust-strip { width: min(1500px, calc(100% - 56px)); margin: 0 auto 30px; display: grid; grid-template-columns: .75fr 1.65fr .9fr 1.15fr; }
.trust-strip > div { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 80px; padding: 9px 20px; border-left: 1px solid #9db0c3; }
.trust-strip > div:first-child { border-left: 0; }
.trust-strip > div > span { flex: 0 0 auto; color: var(--teal-dark); font-size: 2.2rem; font-weight: 800; }
.trust-strip p { display: grid; margin: 0; }
.trust-strip strong { color: var(--navy); font-size: 1.15rem; }
.trust-strip small { color: var(--muted); line-height: 1.35; }
.how-it-works { width: min(1200px, calc(100% - 56px)); margin: 70px auto; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; text-align: left; }
.steps article { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.steps strong { color: var(--navy); font-size: 1.15rem; }
.steps p { margin-bottom: 0; color: var(--muted); }
footer { padding: 28px; color: #40536f; font-size: 1rem; text-align: center; }
footer p { margin: 0; }
.footer-reminder { font-style: italic; }
.footer-contact { margin-top: 6px; font-style: normal; }
.footer-contact a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
  .hero-copy { min-height: 0; }
  .checker { margin-top: 0; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  .site-header { width: min(100% - 28px, 680px); min-height: 0; flex-wrap: wrap; gap: 0; }
  .brand { width: 235px; height: 72px; }
  nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  nav a, .pricing-trigger { min-width: 0; padding: 9px 3px; border-left: 1px solid var(--line); font-size: .8rem; text-align: center; }
  .pricing-panel { top: 100%; right: 0; }
  .hero, .results, .trust-strip, .how-it-works { width: min(calc(100% - 28px), 680px); }
  .hero { display: block; margin-top: 0; }
  .hero-copy, .checker, h1, .intro, .benefits { width: 100%; max-width: 100%; min-width: 0; }
  .hero-copy { min-height: auto; padding-bottom: 0; }
  .intro, .benefits { max-width: none; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.55rem); }
  .intro-stage { min-height: 0; }
  .benefits { max-width: 100%; }
  .hero-mascot { position: relative; right: auto; bottom: auto; display: block; width: min(92%, 520px); max-height: none; margin: 12px auto 0; }
  .no-ai { margin-top: 18px; border-radius: 20px; }
  .no-ai-copy { min-width: 0; }
  .checker-body { padding: 20px; }
  .checker-titlebar { padding: 16px 22px; }
  .input-tabs { grid-template-columns: 1fr; }
  .result-grid, .steps { grid-template-columns: 1fr; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .copy-button { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { justify-content: flex-start; border-left: 0; border-top: 1px solid #b9c8d6; }
  .trust-strip > div:first-child { border-top: 0; }
}

@media (max-width: 430px) {
  body { font-size: 15px; }
  .benefits li { padding-left: 38px; }
  .benefits li, .intro, h1 { overflow-wrap: break-word; }
  .no-ai { padding: 12px 15px; }
  .shield { flex-basis: 40px; height: 45px; }
  .checker { border-radius: 18px; }
  .checker-titlebar { border-radius: 17px 17px 0 0; }
  textarea { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
