/* ==========================================================================
   Yuliia.ai — marketing site styles
   Depends on styles/tokens.css (loaded first by every page).
   ========================================================================== */

/* ---- Reset-ish base ------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* keep anchored sections clear of the sticky nav */
}

html,
body {
  overflow-x: clip; /* never allow horizontal page scroll */
}

body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--y-font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 650;
  text-wrap: balance;
}

a {
  color: inherit;
}

/* Visible focus everywhere, on keyboard focus */
:focus-visible {
  outline: 2px solid var(--y-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--y-accent);
  color: var(--y-accent-ink);
}

/* ---- Shared primitives --------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section + .section {
  border-top: 1px solid var(--y-line);
}

.eyebrow {
  font-family: var(--y-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--y-accent);
  margin: 0 0 0.875rem;
}

.section-title {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-lede {
  color: var(--y-muted);
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.mono {
  font-family: var(--y-font-mono);
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--y-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.8125rem 1.375rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease;
}

.btn-primary {
  background: var(--y-accent);
  color: var(--y-accent-ink);
}

.btn-primary:hover {
  filter: brightness(0.94);
}

.btn-secondary {
  background: transparent;
  color: var(--y-ink);
  border-color: var(--y-line);
}

.btn-secondary:hover {
  border-color: var(--y-muted);
}

/* ---- Sticky nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--y-bg);
  border-bottom: 1px solid var(--y-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--y-ink);
  text-decoration: none;
}

.brand-link svg {
  height: 2rem;
  width: auto;
}

.brand-link .brand-mark {
  display: none;
  height: 1.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--y-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:not(.btn):hover {
  color: var(--y-ink);
}

.site-nav .btn {
  padding: 0.625rem 1.125rem;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 10vw, 7.5rem);
  /* faint viewport grid, --y-line strength only */
  background-image: linear-gradient(var(--y-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--y-line) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 1px solid var(--y-line);
}

.hero .container {
  max-width: 54rem;
}

.hero h1 {
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--y-muted);
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.hero-sub .mono {
  color: var(--y-ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-family: var(--y-font-mono);
  font-size: 0.8125rem;
  color: var(--y-muted);
}

/* ---- How it works -------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--y-surface);
  border: 1px solid var(--y-line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--y-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--y-accent);
  margin-bottom: 0.875rem;
}

.steps h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--y-muted);
}

/* ---- Three lanes --------------------------------------------------------- */
.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lane {
  background: var(--y-surface);
  border: 1px solid var(--y-line);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lane-name {
  font-size: 1.25rem;
}

.lane-cost {
  font-family: var(--y-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--y-accent);
}

.lane-cost small {
  display: block;
  font-size: 0.75rem;
  color: var(--y-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.lane p {
  font-size: 0.9375rem;
  color: var(--y-muted);
}

.lane-models {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--y-line);
  padding-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.lane-models li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--y-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

.lane-models .model-cost {
  color: var(--y-muted);
  white-space: nowrap;
}

/* ---- Meet Yuliia --------------------------------------------------------- */
.meet {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--y-line);
  background: var(--y-surface);
  /* faint grid keeps the frame composed while the image is absent */
  background-image: linear-gradient(var(--y-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--y-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* if the file is missing, hide the broken-image glyph and alt overflow */
  color: transparent;
  /* editorial warm-monochrome treatment: keeps the portrait on-brand
     (ink + viewport orange) without an uncanny AI-processed look */
  filter: grayscale(1) contrast(1.06) brightness(1.03) sepia(0.32) hue-rotate(-8deg) saturate(1.55);
}

.portrait figcaption {
  margin-top: 0.75rem;
  font-family: var(--y-font-mono);
  font-size: 0.8125rem;
  color: var(--y-muted);
}

.meet-copy h2 {
  margin-bottom: 1rem;
}

.meet-copy p {
  color: var(--y-muted);
  max-width: 38rem;
}

.meet-copy p + p {
  margin-top: 0.875rem;
}

/* ---- Pricing ------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.tier {
  position: relative;
  background: var(--y-surface);
  border: 1px solid var(--y-line);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-featured {
  border-color: var(--y-accent);
}

.tier-flag {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  font-family: var(--y-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--y-accent);
  color: var(--y-accent-ink);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.tier h3 {
  font-size: 1.125rem;
}

.tier-price {
  font-family: var(--y-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 500;
}

.tier-price small {
  font-size: 0.8125rem;
  color: var(--y-muted);
  font-weight: 400;
}

.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--y-muted);
  border-top: 1px solid var(--y-line);
  padding-top: 1rem;
}

.pricing-footnote {
  margin-top: 1.75rem;
  font-family: var(--y-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--y-muted);
}

/* ---- Evidence ------------------------------------------------------------ */
.evidence-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.evidence-points article {
  border-left: 2px solid var(--y-accent);
  padding-left: 1.25rem;
}

.evidence-points h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.evidence-points p {
  font-size: 0.9375rem;
  color: var(--y-muted);
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq-list {
  max-width: 46rem;
}

.faq-list details {
  border-bottom: 1px solid var(--y-line);
}

.faq-list details:first-of-type {
  border-top: 1px solid var(--y-line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0.25rem;
  font-family: var(--y-font-display);
  font-weight: 600;
  font-size: 1.0625rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--y-font-mono);
  color: var(--y-muted);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "\2212"; /* minus sign */
}

.faq-list details p {
  padding: 0 0.25rem 1.25rem;
  color: var(--y-muted);
  max-width: 42rem;
}

/* ---- Waitlist ------------------------------------------------------------ */
.waitlist .container {
  max-width: 44rem;
  text-align: center;
}

.waitlist .section-lede {
  margin-inline: auto;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.waitlist-form input[type="email"] {
  flex: 1 1 16rem;
  max-width: 24rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--y-ink);
  background: var(--y-surface);
  border: 1px solid var(--y-line);
  border-radius: 0.5rem;
  padding: 0.8125rem 1rem;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--y-muted);
}

/* screen-reader-only content (e.g. the email label) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* honeypot: hidden from people, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  min-height: 1.5rem;
}

.form-status[data-state="ok"] {
  color: var(--y-ok);
}

.form-status[data-state="err"] {
  color: var(--y-err);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--y-line);
  padding-block: 2.5rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--y-muted);
  font-family: var(--y-font-mono);
  font-size: 0.8125rem;
}

.footer-brand svg {
  height: 1.5rem;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--y-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--y-ink);
  text-decoration: underline;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 60rem) {
  .steps,
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .lanes,
  .evidence-points {
    grid-template-columns: 1fr;
  }

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

  .portrait {
    max-width: 20rem;
  }
}

@media (max-width: 40rem) {
  .steps,
  .tiers {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 1rem;
  }

  /* below wordmark minimum width, switch to the mark */
  .brand-link .brand-wordmark {
    display: none;
  }

  .brand-link .brand-mark {
    display: block;
  }
}

@media (max-width: 30rem) {
  .site-nav a[href="#how-it-works"] {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
