/* Aethon landing only. The app never loads this stylesheet.
   Palette and type follow the app (css/styles.css): near-black, amber primary, Inter/system sans.
   No web fonts, no animations; the only motion is hover/focus and the play-once hero clip. */

.ae-landing {
  --ae-bg: #0a0b0f;
  --ae-surface: #13141a;
  --ae-surface-2: #1a1b24;
  --ae-line: #2a2b38;
  --ae-line-strong: #3d3e4f;
  --ae-text: #f2f3f7;
  --ae-quiet: #a0a3b8;
  --ae-dim: #7d8096;
  --ae-violet: #f59e0b;        /* amber: the app's primary, used here as the accent */
  --ae-violet-line: #d98a08;
  --ae-fill: #f59e0b;
  --ae-fill-ink: #0a0b0f;
  --ae-serif: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
  margin: 0;
  background: var(--ae-bg);
  color: var(--ae-text);
  font: 16px/1.6 var(--ae-serif);
  -webkit-text-size-adjust: 100%;
}
.ae-landing *, .ae-landing *::before, .ae-landing *::after { box-sizing: border-box; }
:where(.ae-landing) :where(h1, h2, h3, p, figure, ul, ol) { margin: 0; }
.ae-landing h1, .ae-landing h2, .ae-landing h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.ae-landing em { font-style: normal; color: var(--ae-violet); }
:where(.ae-landing) a { color: inherit; text-decoration: none; }
:where(.ae-landing) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ae-landing img { display: block; max-width: 100%; height: auto; }
.ae-landing :focus-visible { outline: 2px solid var(--ae-violet); outline-offset: 3px; }
.ae-landing ::selection { background: var(--ae-violet); color: var(--ae-fill-ink); }

.ae-skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--ae-fill); color: var(--ae-fill-ink) !important; border-radius: 6px; }
.ae-skip:focus { top: 12px; }

.ae-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Links and buttons */
.ae-text-link { color: var(--ae-violet); border-bottom: 1px solid transparent; }
.ae-text-link:hover { border-bottom-color: var(--ae-violet-line); }
.ae-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--ae-line-strong); white-space: nowrap; transition: background-color .15s, border-color .15s; }
.ae-button:hover { border-color: var(--ae-text); }
.ae-primary { background: var(--ae-fill); color: var(--ae-fill-ink); border-color: var(--ae-fill); }
.ae-primary:hover { background: #fbbf24; border-color: #fbbf24; }
.ae-outline { background: transparent; color: var(--ae-text); }
.ae-large { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }

/* Header */
.ae-header { display: flex; align-items: center; gap: 20px; width: min(1160px, 100% - 32px); margin-inline: auto; padding: 14px 0; border-bottom: 1px solid var(--ae-line); }
.ae-brand { display: flex; align-items: center; gap: 14px; }
.ae-brand-home img { width: 110px; height: 42px; object-fit: contain; }
.ae-brand-product { padding-left: 14px; border-left: 1px solid var(--ae-line); font-size: 1.2rem; color: var(--ae-violet); }
.ae-navigation { display: flex; gap: 22px; margin-left: 24px; color: var(--ae-quiet); }
.ae-navigation a:hover { color: var(--ae-text); }
.ae-navigation .ae-nav-signin { display: none; }
.ae-header-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ae-languages { display: flex; gap: 6px; margin-right: 6px; font-size: 0.9rem; color: var(--ae-dim); }
.ae-languages [aria-current] { color: var(--ae-text); }
.ae-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--ae-line-strong); border-radius: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.ae-menu span { display: block; width: 18px; height: 1.5px; background: var(--ae-text); }

/* Hero: copy beside the portrait (play-once clip, poster = the same portrait as WebP), then the workspace screen */
.ae-hero { padding: 48px 0 24px; }
.ae-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 32px 56px; align-items: start; }
.ae-hero-video, .ae-hero-still { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--ae-line); border-radius: 12px; background: var(--ae-surface); }
.ae-landing .ae-hero-still { display: none; }
.ae-eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ae-dim); }
.ae-hero h1 { max-width: 22ch; margin-top: 16px; font-size: clamp(2rem, 4vw, 3.1rem); }
.ae-lede { max-width: 66ch; margin-top: 28px; font-size: 1.12rem; color: var(--ae-quiet); }
.ae-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.ae-micro { margin-top: 14px; font-size: 0.92rem; color: var(--ae-dim); }
.ae-shot { margin-top: 40px; }
.ae-shot img { border: 1px solid var(--ae-line); border-radius: 10px; background: var(--ae-surface); }
.ae-shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--ae-dim); }
.ae-shot-wide img { width: 100%; }

/* Sections */
.ae-section { padding: 72px 0 8px; }
.ae-section-heading { max-width: 70ch; }
.ae-section-heading h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.ae-section-heading p { margin-top: 12px; font-size: 1.08rem; color: var(--ae-quiet); }
.ae-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.ae-card { padding: 24px; border: 1px solid var(--ae-line); border-radius: 10px; background: var(--ae-surface); }
.ae-card h3 { font-size: 1.25rem; }
.ae-card p { margin-top: 10px; color: var(--ae-quiet); }
.ae-card .ae-text-link { display: inline-block; margin-top: 14px; }
.ae-hint { max-width: 70ch; margin-top: 20px; font-size: 0.92rem; color: var(--ae-dim); }

/* How a thread works */
.ae-how { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px 56px; align-items: start; }
.ae-steps { list-style: none; margin: 32px 0 0; padding: 0; }
.ae-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--ae-line); }
.ae-steps h3 { font-size: 1.2rem; }
.ae-steps p { margin-top: 6px; color: var(--ae-quiet); }
.ae-step-number { padding-top: 4px; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ae-violet); }
.ae-shot-phone { margin-top: 0; justify-self: end; width: 100%; max-width: 340px; }
.ae-shot-phone img { border-radius: 26px; border-color: var(--ae-line-strong); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.ae-shot-journey { grid-column: 1 / -1; margin-top: 8px; }

/* Teachers: settings beside the formative view; Access: copy beside a card */
.ae-two-shots { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px 32px; align-items: start; margin-top: 32px; }
.ae-two-shots .ae-shot { margin-top: 0; }
.ae-shot-tall img { width: 100%; }
.ae-access { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px 56px; align-items: start; }
.ae-access h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.ae-access > div > p { max-width: 62ch; margin-top: 12px; font-size: 1.08rem; color: var(--ae-quiet); }
.ae-access .ae-actions { margin-top: 24px; }
.ae-access aside ul { margin: 12px 0 0; padding-left: 18px; color: var(--ae-quiet); }
.ae-access aside li + li { margin-top: 8px; }
#students .ae-steps { max-width: 760px; }
#students .ae-shot { margin-top: 32px; }

/* Plans */
.ae-plan-price { margin-top: 8px; font-size: 2.2rem; line-height: 1; }
.ae-plan-price small { font-size: 0.95rem; color: var(--ae-dim); }
.ae-plan ul { margin: 16px 0 0; padding-left: 18px; color: var(--ae-quiet); }
.ae-plan li + li { margin-top: 6px; }
.ae-plan .ae-button { width: 100%; margin-top: 22px; white-space: normal; }

/* FAQ */
.ae-faq h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
.ae-faq details { border-top: 1px solid var(--ae-line); }
.ae-faq details:last-of-type { border-bottom: 1px solid var(--ae-line); }
.ae-faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font-size: 1.08rem; cursor: pointer; list-style: none; }
.ae-faq summary::-webkit-details-marker { display: none; }
.ae-faq summary span { color: var(--ae-violet); flex: none; }
.ae-faq details[open] summary span { transform: rotate(45deg); display: inline-block; }
.ae-faq details p { max-width: 72ch; padding: 0 0 18px; color: var(--ae-quiet); }
.ae-faq-group { margin: 40px 0 12px; font-size: 1.3rem; }
.ae-policy-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; }
.ae-policy-links a { color: var(--ae-violet); }

/* Closing + footer */
.ae-closing { padding: 80px 0 72px; text-align: center; }
.ae-closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.ae-closing .ae-actions { justify-content: center; }
.ae-footer { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; padding: 28px 0 40px; border-top: 1px solid var(--ae-line); color: var(--ae-quiet); font-size: 0.95rem; }
.ae-footer-brand { color: var(--ae-violet); font-size: 1.1rem; }
.ae-footer p { margin-top: 4px; }
.ae-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-self: center; }
.ae-footer nav a:hover { color: var(--ae-text); }
.ae-footer small { grid-column: 1 / -1; font-size: 0.85rem; color: var(--ae-dim); }

/* Responsive */
@media (max-width: 1100px) {
  .ae-navigation { gap: 16px; }
}
@media (max-width: 960px) {
  .ae-menu { display: flex; }
  .ae-navigation { display: none; position: absolute; left: 16px; right: 16px; top: 74px; z-index: 20; flex-direction: column; gap: 0; margin: 0; padding: 8px 0; background: var(--ae-surface-2); border: 1px solid var(--ae-line-strong); border-radius: 10px; }
  .ae-navigation.is-open { display: flex; }
  .ae-navigation a { padding: 12px 18px; }
  .ae-navigation .ae-nav-signin { display: block; }
  .ae-header { position: relative; }
  .ae-cards { grid-template-columns: 1fr; }
  .ae-two-shots { grid-template-columns: 1fr; }
  .ae-shot-tall { max-width: 360px; }
  .ae-access { grid-template-columns: 1fr; }
  .ae-hero-grid { grid-template-columns: 1fr; }
  .ae-hero-art { max-width: 420px; }
  .ae-how { grid-template-columns: 1fr; }
  .ae-shot-phone { justify-self: start; margin-top: 8px; }
}
@media (max-width: 650px) {
  .ae-brand-product { display: none; }
  .ae-menu { order: 3; }
  .ae-header-end { order: 2; }
  .ae-shot-hero img { max-width: 340px; margin-inline: auto; border-radius: 26px; }
  .ae-how .ae-shot-phone { display: none; }   /* the hero already shows the phone screen at this width */
  .ae-header-cta { display: none; }   /* the hero's Start free sits just below; Sign in stays in the header */
  .ae-header { gap: 12px; padding: 12px 0; }
  .ae-header-end { gap: 8px; }
  .ae-hero { padding-top: 36px; }
  /* Phones: the demo button stays in the first screen; the lede (the answer-engine paragraph) follows it in view, not in the DOM */
  .ae-hero-copy { display: flex; flex-direction: column; }
  .ae-hero-copy .ae-eyebrow { order: 0; } .ae-hero-copy h1 { order: 1; } .ae-hero-copy .ae-actions { order: 2; } .ae-hero-copy .ae-micro { order: 3; } .ae-hero-copy .ae-lede { order: 4; margin-top: 22px; }
  .ae-hero-art { max-width: 340px; }
  .ae-section { padding-top: 56px; }
  .ae-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-landing * { transition: none !important; }
  .ae-landing .ae-hero-video { display: none; }
  .ae-landing .ae-hero-still { display: block; }
}
