:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-strong: #f1ede5;
  --ink: #1a1a1a;
  --muted: #4a5560;
  --muted-strong: #2f3a42;
  --line: #d8d4ca;
  --teal: #0d9488;
  --teal-dark: #0b6b63;
  --coral: #e8624a;
  --gold: #f4b942;
  --nav: rgba(247, 247, 245, 0.96);
  --shadow: 0 18px 40px rgba(26, 26, 26, 0.13);
  --radius: 8px;
  --max: 1360px;
  font-size: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111513;
  --surface: #1b211f;
  --surface-strong: #242a27;
  --ink: #f7f7f5;
  --muted: #c7d0cd;
  --muted-strong: #e1e6e3;
  --line: #3b4541;
  --teal: #42c7b8;
  --teal-dark: #7de0d4;
  --coral: #ff8a73;
  --gold: #ffd166;
  --nav: rgba(17, 21, 19, 0.96);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

:root[data-font-level="-3"] {
  font-size: 15px;
}

:root[data-font-level="-2"] {
  font-size: 16px;
}

:root[data-font-level="-1"] {
  font-size: 17px;
}

:root[data-font-level="1"] {
  font-size: 20px;
}

:root[data-font-level="2"] {
  font-size: 22px;
}

:root[data-font-level="3"] {
  font-size: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

img {
  display: block;
  max-width: 100%;
}

p,
li {
  max-width: 70ch;
}

button,
.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 800;
  left: 1rem;
  padding: 0.6rem 0.9rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-140%);
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: auto 1fr auto;
  max-width: min(100%, 1680px);
  min-height: 4.4rem;
  padding-left: clamp(1rem, 2vw, 2.5rem);
  padding-right: clamp(1rem, 2vw, 2.5rem);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  height: 2.8rem;
  width: auto;
}

.brand-name {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  display: none;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  justify-content: center;
}

.site-nav a,
.site-nav summary {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 0.45rem 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav summary:hover,
.site-nav a:focus-visible,
.site-nav summary:focus-visible,
.learn-menu[open] > summary {
  background: var(--surface-strong);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.learn-menu summary::after {
  content: "v";
  font-size: 0.74rem;
  font-weight: 800;
  margin-left: 0.35rem;
}

.site-nav a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--teal-dark);
}

.learn-menu {
  position: relative;
}

.learn-menu summary {
  list-style: none;
}

.learn-menu summary::-webkit-details-marker {
  display: none;
}

.learn-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.2rem;
  left: 0;
  min-width: 17rem;
  padding: 0.5rem;
  position: absolute;
  top: calc(100% + 0.6rem);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.text-controls {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
}

.control-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  min-width: 2.45rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.control-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.control-button:hover:not(:disabled),
.control-button:focus-visible:not(:disabled) {
  background: var(--surface-strong);
  border-color: var(--teal);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  background: var(--coral);
  color: #1a1a1a;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(90deg, rgba(247, 247, 245, 0.98) 0%, rgba(247, 247, 245, 0.9) 43%, rgba(247, 247, 245, 0.18) 78%),
    url("/assets/hero-athina-ad-small.webp") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

:root[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(17, 21, 19, 0.98) 0%, rgba(17, 21, 19, 0.9) 45%, rgba(17, 21, 19, 0.22) 80%),
    url("/assets/hero-athina-ad-small.webp") center right / cover no-repeat;
}

.hero::before {
  display: none;
}

.hero .section-inner {
  align-items: center;
  display: flex;
  min-height: min(620px, 76vh);
  padding-bottom: clamp(2.4rem, 6vw, 4.4rem);
  padding-top: clamp(2.4rem, 6vw, 4.4rem);
  position: relative;
}

.hero-copy {
  max-width: 42rem;
}

.landing-hero-inner {
  justify-content: flex-start;
}

.hero-tagline {
  color: var(--teal-dark);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  margin: 0 0 0.9rem;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  letter-spacing: 0;
  max-width: 12ch;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  max-width: none;
}

h3 {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.lead {
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  max-width: 54rem;
}

.hero .lead {
  color: var(--muted-strong);
  font-weight: 700;
  margin-top: 1.2rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.trust-note {
  color: var(--muted-strong);
  font-weight: 700;
  margin-top: 1.2rem;
}

.trust-panel {
  max-width: 62rem;
}

.trust-panel p:not(.eyebrow) {
  margin-top: 1.1rem;
}

.section {
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  padding-top: clamp(2.4rem, 5vw, 4rem);
}

.section-alt {
  background: var(--surface-strong);
}

.section-header {
  display: block;
  margin-bottom: 1.35rem;
  max-width: 58rem;
}

.section-header p {
  margin: 0.85rem 0 0;
}

.page-hero {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  padding-top: clamp(2.4rem, 5vw, 4rem);
}

.page-hero .lead {
  margin-top: 1.2rem;
}

.grid {
  display: grid;
  gap: 0.8rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.fact-box,
.callout,
.demo-panel,
.sample-card,
.timeline-item,
.price-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(0.85rem, 1.8vw, 1.1rem);
}

.card strong,
.fact-box strong {
  color: var(--ink);
}

.card p,
.sample-card p,
.timeline-item p {
  margin-bottom: 0;
}

.icon {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 800;
  height: 2.35rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 2.35rem;
}

.icon-svg {
  color: var(--teal-dark);
  height: 1.8rem;
  margin-bottom: 0.5rem;
  width: 1.8rem;
}

.demo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
}

.video-frame {
  background: #111513;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.video-frame img {
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  width: 100%;
}

.video-caption {
  background: rgba(0, 0, 0, 0.75);
  bottom: 0;
  color: #ffffff;
  left: 0;
  padding: 0.55rem 0.75rem;
  position: absolute;
  right: 0;
}

.script-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
}

.script-list li {
  border-left: 4px solid var(--teal);
  list-style: none;
  padding-left: 0.8rem;
}

.audio-status {
  color: var(--muted-strong);
  font-weight: 700;
  margin-top: 0.8rem;
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
}

.step::before {
  align-items: center;
  background: var(--teal);
  border-radius: 999px;
  color: #ffffff;
  content: counter(step);
  display: inline-flex;
  font-weight: 800;
  height: 1.65rem;
  justify-content: center;
  margin-bottom: 0.55rem;
  width: 1.65rem;
}

.step .icon-svg {
  margin-left: 2.1rem;
}

.list-check {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
}

.list-check li {
  list-style: none;
  padding-left: 1.6rem;
  position: relative;
}

.list-check li::before {
  color: var(--teal-dark);
  content: "\2713";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.article-body {
  display: grid;
  gap: 1.2rem;
  max-width: 1040px;
}

.article-body h2 {
  margin-top: 1rem;
}

.article-body p,
.article-body li {
  max-width: 92ch;
}

.fact-box {
  border-left: 4px solid var(--teal);
}

.facts-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fact-box {
  display: grid;
  gap: 0.35rem;
}

.fact-box span {
  color: var(--muted-strong);
}

.section-note {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1rem;
}

.description-preview {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.audience-card {
  display: grid;
  gap: 0.25rem;
}

.audience-card p {
  margin: 0;
}

.description-preview h4 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.contact-form-public {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.85rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  padding: clamp(0.9rem, 2vw, 1.2rem);
}

.form-grid {
  align-items: start;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 800;
}

.optional,
.help-text,
.character-count {
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.contact-form-public input,
.contact-form-public select,
.contact-form-public textarea {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 2.45rem;
  padding: 0.5rem 0.65rem;
  width: 100%;
}

.contact-form-public textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.contact-form-public input:focus,
.contact-form-public select:focus,
.contact-form-public textarea:focus {
  border-color: var(--teal);
  outline: 4px solid var(--gold);
  outline-offset: 2px;
}

.contact-form-public textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.field-error {
  color: #b42318;
  font-weight: 800;
  margin: 0;
  min-height: 1rem;
}

:root[data-theme="dark"] .field-error {
  color: #ffb4a8;
}

.form-status {
  border-radius: var(--radius);
  font-weight: 800;
  margin: 0;
  min-height: 1.5rem;
  padding: 0.2rem 0;
}

.form-status[data-state="success"] {
  color: var(--teal-dark);
}

.form-status[data-state="error"] {
  color: #b42318;
}

:root[data-theme="dark"] .form-status[data-state="error"] {
  color: #ffb4a8;
}

.honeypot {
  display: none !important;
}

.source-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.site-footer {
  background: #1a1a1a;
  color: #f7f7f5;
  padding-bottom: 1.8rem;
  padding-top: 2.4rem;
}

.site-footer a {
  color: #baf7ee;
}

.footer-inner {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(14rem, 1.4fr) repeat(3, minmax(8rem, 0.8fr));
}

.footer-logo {
  filter: brightness(0) invert(1);
  max-width: 13rem;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-small {
  border-top: 1px solid #3b4541;
  color: #c7d0cd;
  margin: 1.4rem auto 0;
  max-width: var(--max);
  padding: 1rem clamp(1rem, 4vw, 2rem) 0;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 1240px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: start;
    padding: 0.8rem;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .header-actions {
    justify-self: end;
  }
}

@media (max-width: 1280px) {
  .facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .learn-panel {
    box-shadow: none;
    position: static;
  }

  .section-header,
  .landing-hero-inner,
  .demo-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .facts-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
  }

  .brand img {
    height: 2.35rem;
  }

  .brand-name {
    display: none;
  }

  .menu-button {
    justify-self: end;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .header-actions .button-primary {
    display: none;
  }

  .header-actions .button-secondary {
    display: none;
  }

  .control-button {
    min-width: 2.35rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .hero .section-inner {
    min-height: auto;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(247, 247, 245, 0.98) 0%, rgba(247, 247, 245, 0.94) 58%, rgba(247, 247, 245, 0.82) 100%),
      url("/assets/hero-athina-ad-small.webp") center bottom / cover no-repeat;
  }

  :root[data-theme="dark"] .hero {
    background:
      linear-gradient(180deg, rgba(17, 21, 19, 0.98) 0%, rgba(17, 21, 19, 0.93) 58%, rgba(17, 21, 19, 0.84) 100%),
      url("/assets/hero-athina-ad-small.webp") center bottom / cover no-repeat;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .section-actions .button {
    width: 100%;
  }
}

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