/* Self-hosted fonts (no third-party requests; GDPR-safe) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/newsreader-400.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/newsreader-500.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/newsreader-600.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/newsreader-italic-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/plexmono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/plexmono-500.woff2') format('woff2'); }

/* ============================================================
   Arya — landing page
   Warm cream ground, single clay/terracotta accent, Newsreader
   serif display + Inter UI + IBM Plex Mono for technical bits.
   Sentence case, generous whitespace, soft borders & shadows.
   ============================================================ */

:root {
  /* surfaces */
  --cream: #FBF8F3;
  --paper: #FFFFFF;
  --sand: #F7F1E8;
  --tint: #F3EDE3;
  --border: #E7DFD2;
  --border-soft: #EFE7DA;

  /* ink */
  --ink: #2A2622;
  --ink-2: #554E45;
  --mut: #8A8074;

  /* accent */
  --clay: #B5623F;
  --clay-deep: #9A4E30;
  --clay-tint: #F0E0D5;
  --clay-wash: #FBEEE7;
  --ok: #6F9063;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;

  /* shadow (warm) */
  --sh-sm: 0 1px 2px rgba(42, 38, 34, .05);
  --sh: 0 4px 16px rgba(42, 38, 34, .06);
  --sh-lg: 0 24px 60px -18px rgba(42, 38, 34, .22);

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 14px;
}
.eyebrow--light { color: #E8C4B2; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12; letter-spacing: -.01em;
  margin: 0 0 14px; color: var(--ink);
}
.lead { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 60ch; }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tint { background: linear-gradient(180deg, var(--sand), #F5EEE3); border-block: 1px solid var(--border-soft); }
.section__head { max-width: 720px; margin-bottom: 48px; }

/* ---------- buttons ---------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--pill);
  padding: 11px 20px; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn__icon { width: 18px; height: 18px; }
.btn--primary { background: var(--clay); color: var(--btn-fg); box-shadow: 0 6px 18px -6px rgba(181, 98, 63, .6); }
.btn--primary:hover { background: var(--clay-deep); box-shadow: 0 10px 24px -8px rgba(181, 98, 63, .7); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--border); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: #D8CBB8; background: #fff; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16.5px; }
.btn--xl { padding: 18px 34px; font-size: 18px; }

:where(a, button, summary, input, details):focus-visible {
  outline: 3px solid rgba(181, 98, 63, .45); outline-offset: 2px; border-radius: 8px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck { border-color: var(--border); box-shadow: var(--sh-sm); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--clay); }
.nav__links .nav__ext { color: var(--mut); }
.nav__links .nav__ext span { font-size: 12px; }
.nav .btn--sm { margin-left: 4px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--sand); border: 1px solid var(--border); border-radius: 9px;
  box-shadow: var(--sh-sm);
}
.brand__mark svg { width: 24px; height: 24px; display: block; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -.01em; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 30% auto -10%; height: 520px;
  background: radial-gradient(60% 60% at 30% 30%, rgba(181, 98, 63, .10), transparent 70%);
  pointer-events: none;
}
.hero__inner { text-align: center; max-width: 860px; margin-inline: auto; position: relative; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -.022em;
  margin: 6px 0 22px; color: var(--ink);
}
.hero__title .accent { color: var(--clay); font-style: italic; }
.hero__sub { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 0 auto 30px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { font-size: 14px; color: var(--mut); margin: 18px 0 0; }
.hero__note-soon { display: block; color: var(--clay); font-weight: 500; margin-top: 3px; }
.hero__note-soon[hidden] { display: none; }  /* author display:block otherwise defeats [hidden] */

/* "how to open an unverified build" guidance — revealed by JS once a real download is linked */
.build-note {
  max-width: 46ch; margin: 14px auto 0;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.build-note strong { color: var(--clay); font-weight: 600; }
.build-note--dark { color: #CFC3B6; }
.build-note--dark strong { color: #E8C4B2; }

.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; padding: 0; margin: 30px 0 0; }
.trust__chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--pill);
  padding: 8px 15px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); box-shadow: var(--sh-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut); flex: none; }
.dot--ok { background: var(--ok); }

/* ---------- showcase / rotating banner ---------- */
.showcase { position: relative; margin-top: clamp(40px, 6vw, 68px); }
.showcase__glow {
  position: absolute; inset: auto 6% -30px 6%; height: 120px; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(181, 98, 63, .18), transparent 70%);
  filter: blur(8px);
}
.showcase__frame {
  position: relative; z-index: 1;
  aspect-ratio: 1240 / 780;
  /* transparent sizing box — each screenshot sits directly on the page,
     with only its own corners + shadow reading as the frame */
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.mock { display: block; }
/* each screenshot sits on the page as its own window card, hugging its aspect ratio */
img.mock {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(42, 38, 34, .12);
  box-shadow: 0 18px 44px -16px rgba(42, 38, 34, .28);
}
svg.mock { width: 100%; height: 100%; filter: drop-shadow(0 14px 26px rgba(42, 38, 34, .16)); }

/* SVG text classes (inline mockups) */
.t-mut { fill: var(--mut); font-family: var(--sans); }
.t-ink { fill: var(--ink); font-family: var(--sans); }
.t-side { fill: var(--ink-2); font-family: var(--sans); }
.t-brand { fill: var(--clay); font-family: var(--serif); font-weight: 600; }

.dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dots__dot {
  width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer;
  background: #D8CBB8; border-radius: var(--pill);
  transition: width .25s ease, background .25s ease;
}
.dots__dot:hover { background: var(--clay-tint); }
.dots__dot.is-active { width: 28px; background: var(--clay); }

/* ---------- wedge ---------- */
.wedge { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.wedge__title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 0 auto 18px; max-width: 20ch; }
.wedge__body { font-size: 19px; color: var(--ink-2); max-width: 58ch; margin: 0 auto; }
.wedge__body strong { color: var(--ink); }

/* ---------- cards / replace ---------- */
.replace { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  background: var(--clay-wash); color: var(--clay); border-radius: 14px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 10px; }
.card__body { color: var(--ink-2); margin: 0 0 16px; font-size: 16px; }
.card__replaces { font-family: var(--mono); font-size: 12.5px; color: var(--mut); margin: 0; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
.feature { padding: 8px 4px; }
.feature__ic { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--paper); border: 1px solid var(--border); color: var(--clay); border-radius: 12px; box-shadow: var(--sh-sm); }
.feature__ic svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 16px 0 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

/* ---------- privacy ---------- */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.privacy__item { background: var(--paper); padding: 28px; }
.privacy__k { display: block; font-weight: 600; color: var(--ink); font-size: 16.5px; margin-bottom: 8px; }
.privacy__k::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 9px; }
.privacy__item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.usecase { position: relative; background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 30px 30px 28px; box-shadow: var(--sh-sm); }
.usecase__n { font-family: var(--mono); font-size: 13px; color: var(--clay); }
.usecase h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 8px 0 10px; line-height: 1.2; }
.usecase p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- compare ---------- */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ctable th, .ctable td { padding: 15px 18px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--border-soft); }
.ctable thead th { font-weight: 600; color: var(--mut); background: var(--sand); font-size: 14px; }
.ctable thead th.ctable__arya { color: var(--clay); background: var(--clay-wash); }
.ctable tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink); }
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: 0; }
.ctable .ctable__arya, .ctable td.y { background: color-mix(in srgb, var(--clay-wash) 55%, #fff); }
.ctable td.y span { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--clay); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; }
.ctable td.y strong { color: var(--clay); }
.ctable td.n { color: var(--mut); }
.ctable td.p { color: var(--ink-2); }
.compare__foot { font-size: 13.5px; color: var(--mut); margin: 16px 2px 0; max-width: 74ch; }

/* ---------- final CTA band ---------- */
.cta-band { background: linear-gradient(160deg, #2E2822, #221E1A); color: #F4ECE2; padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.cta-band__inner { max-width: 720px; }
.cta-band__title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 16px; color: #fff; }
.cta-band__sub { font-size: 19px; color: #CFC3B6; margin: 0 auto 34px; max-width: 54ch; }
.cta-band__fine { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: #9C9084; margin: 22px 0 0; }

.signup__row { display: flex; justify-content: center; }
.signup__notify { max-width: 440px; margin: 26px auto 0; }
.signup__label { display: block; font-size: 15px; color: #E4D8CB; margin-bottom: 12px; }
.signup__field { display: flex; gap: 10px; }
.signup__field input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 16px;
  padding: 13px 16px; border-radius: var(--pill); border: 1px solid #4A4139;
  background: #17130F; color: #fff;
}
.signup__field input::placeholder { color: #8C8175; }
.signup__field .btn { flex: none; }
.signup__msg { min-height: 20px; font-size: 14px; margin: 12px 0 0; color: #E8C4B2; }
.signup__msg.is-ok { color: #B7D3A9; }
.signup__msg.is-err { color: #E9A79A; }

/* ---------- footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer__brand p { color: var(--mut); margin: 12px 0 0; font-size: 15px; }
.footer__brand a { color: var(--ink-2); text-decoration-color: var(--border); }
.footer__brand a:hover { color: var(--clay); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.footer__links a:hover { color: var(--clay); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft); color: var(--mut); font-size: 13.5px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--clay); }

/* ---------- FAQ ---------- */
.faqwrap { padding-top: clamp(56px, 8vw, 96px); }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item { background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 4px 22px; box-shadow: var(--sh-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--clay); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .replace, .features, .privacy { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .replace, .features, .privacy, .usecases { grid-template-columns: 1fr; }
  .privacy { border-radius: var(--r); }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .signup__field { flex-direction: column; }
  .signup__field .btn { width: 100%; justify-content: center; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

/* ============================================================
   Reduced motion — honour the user's OS preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
