/* ============================================================
 * BORAN & PAROT Family — Domain-for-sale landing pages
 * ============================================================
 * Shared design tokens + layout. Matches the boran-parot.family
 * design language: Geist + Geist Mono, six-step neutral scale,
 * no borders, generous vertical rhythm, mono-display headlines.
 *
 * This stylesheet is intentionally self-contained — no Tailwind,
 * no JS framework. One static HTML file per domain ships with
 * this CSS and renders in <30KB total per page.
 * ============================================================ */

/* --- Fonts ------------------------------------------------- */

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/GeistMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Design tokens — light only on these pages -------------- */

:root {
  --bg:           #F5F5F5;
  --level-1:      #EBEBEB;
  --level-2:      #DFDFDF;
  --level-3:      #D2D2D2;
  --text:         #111111;
  --text-muted:   #555555;
  --text-faint:   #6e6e6e;
  --hairline:     rgba(17, 17, 17, 0.08);
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans:    "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Geist Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* --- Reset ------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* --- Base ----------------------------------------------------- */

html {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  /* Reduce CLS by reserving viewport height immediately. */
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* --- Typography utilities ------------------------------------ */

.mono-display {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}

/* --- Layout ------------------------------------------------- */

.shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.section {
  padding-block: clamp(5rem, 12vh, 9rem);
}

/* --- Header ------------------------------------------------- */

.site-header {
  padding-block: clamp(1.5rem, 3vh, 2.25rem);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  width: clamp(96px, 12vw, 144px);
  transition: opacity 280ms var(--ease-expo);
}
.site-header__logo:hover { opacity: 0.7; }

.site-header__cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__divider {
  height: 12px;
  width: 1px;
  background: rgba(17,17,17,0.16);
}

.site-header__icon {
  color: var(--text-faint);
  transition: color 280ms var(--ease-expo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header__icon:hover, .site-header__icon:focus-visible { color: var(--text); }

/* ---------- Lang switcher (vanilla — matches family site) ---------- */

.lang {
  position: relative;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  transition: color 280ms var(--ease-expo);
}
.lang__toggle:hover, .lang__toggle:focus-visible { color: var(--text); }

.lang__code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.lang__chevron {
  transition: transform 300ms var(--ease-expo);
}
.lang__toggle[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  min-width: 14rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  border-radius: 0.5rem;
  background: var(--bg);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.32);
  z-index: 60;
}
@supports (backdrop-filter: blur(16px)) {
  .lang__menu {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
  }
}

.lang__menu li + li { margin-top: 0.25rem; }

.lang__option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.25rem;
  color: var(--text-muted);
  transition: background-color 200ms var(--ease-expo), color 200ms var(--ease-expo);
}
.lang__option:hover, .lang__option:focus-visible {
  background: var(--level-1);
  color: var(--text);
}
.lang__option[aria-current="page"] {
  background: var(--level-1);
  color: var(--text);
}

.lang__option-main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.lang__option-full {
  font-size: 0.75rem;
  color: var(--text-faint);
  transition: color 200ms var(--ease-expo);
}
.lang__option:hover .lang__option-full,
.lang__option:focus-visible .lang__option-full,
.lang__option[aria-current="page"] .lang__option-full { color: var(--text-muted); }

.lang__check {
  color: var(--text);
  visibility: hidden;
}
.lang__option[aria-current="page"] .lang__check { visibility: visible; }

/* Skip link — visually hidden until focused */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  z-index: 100;
  border-radius: 0 0 0.375rem 0;
}
.skip:focus { left: 0; }

/* ---------- Section-heading helper (used in i18n template) ---------- */
.section-heading {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  margin-top: 1.25rem;
  max-width: 32ch;
}

/* ---------- Price-note (small caveat under CTA block) ---------- */
.price-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  max-width: 60ch;
}

/* --- Hero --------------------------------------------------- */

.hero {
  padding-block: clamp(4rem, 10vh, 8rem) clamp(2rem, 6vh, 5rem);
}

/* The status line is a category-label, not body metadata. We avoid
   inline-flex here so the dot aligns to the text's cap-height instead
   of the flex line-box centre (which sits below cap-height for caps). */
.hero__status {
  display: inline-block;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.hero__dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 999px;
  /* Available-now green — confident, premium, not toy-bright.
     Matches the family site's "deliberate" palette while signaling
     "live, ready to acquire". */
  background: #16A34A;
  /* Inline-block default places its bottom edge at the text baseline.
     For uppercase Geist Mono the cap-centre sits ~0.36em above the
     baseline. A 0.6em-tall dot whose centre matches cap-centre needs
     vertical-align ≈ (0.36 - 0.30)em ≈ 0.06em. */
  vertical-align: 0.08em;
  margin-right: 0.65em;
  /* Subtle glow ring — emphasises the "live" feel without adding
     decoration that fights the rest of the design. */
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
  animation: dot-pulse 2.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.10); }
}

.hero__name {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  margin: 0;
  /* Keep ASCII dots / hyphens visually balanced */
  font-feature-settings: "ss01", "cv11";
  word-break: break-word;
}

.hero__tagline {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--text);
  max-width: 32ch;
}

/* --- Pitch -------------------------------------------------- */

.pitch__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2rem, 6vh, 4rem);
}

@media (min-width: 960px) {
  .pitch__body { grid-template-columns: 1fr 1fr; }
}

.pitch__lede {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 32ch;
}

.pitch__detail {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 52ch;
}

.pitch__detail p + p { margin-top: 1.25rem; }

/* --- Ideas grid --------------------------------------------- */

.ideas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 6vh, 4rem);
}

@media (min-width: 720px) {
  .ideas { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .ideas { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.idea {
  background: var(--level-1);
  border-radius: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background 500ms var(--ease-expo), transform 500ms var(--ease-expo);
}

.idea:hover { background: var(--level-2); }

.idea__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.idea__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.idea__body {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 40ch;
}

/* --- Specs ------------------------------------------------- */

.specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 4rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

@media (min-width: 720px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .specs { grid-template-columns: repeat(4, 1fr); }
}

.spec__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.spec__value {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* --- Price block ------------------------------------------- */

.price {
  background: var(--level-1);
  border-radius: 0.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(3rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 720px) {
  .price { grid-template-columns: 1fr auto; }
}

.price__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.price__hint {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  transition: opacity 280ms var(--ease-expo), transform 500ms var(--ease-expo);
}

.cta:hover, .cta:focus-visible { opacity: 0.85; }
.cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.cta__arrow {
  display: inline-block;
  transition: transform 500ms var(--ease-expo);
}
.cta:hover .cta__arrow, .cta:focus-visible .cta__arrow {
  transform: translateX(4px);
}

.cta--ghost {
  background: transparent;
  color: var(--text-muted);
  padding-inline: 0;
}
.cta--ghost:hover { color: var(--text); opacity: 1; }

/* --- Family context ---------------------------------------- */

/* Family-context block — mirrors the family site footer rhythm:
   signature mark on the LEFT, copy on the RIGHT. No separator line;
   restraint over decoration. */
.family {
  margin-top: clamp(4rem, 10vh, 8rem);
  padding-block: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 720px) {
  .family {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.family__copy { color: var(--text-muted); max-width: 52ch; }
.family__copy strong { color: var(--text); font-weight: 500; }

.family__logo {
  color: var(--text);
  width: clamp(140px, 18vw, 240px);
  transition: opacity 280ms var(--ease-expo);
}
.family__logo:hover { opacity: 0.75; }

/* --- Footer ------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vh, 4rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

.site-footer a {
  position: relative;
  display: inline-block;
  padding-inline: 0.32em;
  padding-block: 0.06em;
  margin-inline: -0.12em;
  color: var(--text);
  isolation: isolate;
  transition: color 220ms var(--ease-expo);
}

.site-footer a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  border-radius: 0.375rem;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 280ms var(--ease-expo);
}

.site-footer a:hover, .site-footer a:focus-visible { color: var(--bg); }
.site-footer a:hover::before, .site-footer a:focus-visible::before { transform: scaleY(1); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

/* --- Reveal-on-scroll (CSS only) --------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal 800ms var(--ease-expo) forwards;
  }
  .reveal[data-delay="1"] { animation-delay: 80ms; }
  .reveal[data-delay="2"] { animation-delay: 160ms; }
  .reveal[data-delay="3"] { animation-delay: 240ms; }
  .reveal[data-delay="4"] { animation-delay: 320ms; }
  .reveal[data-delay="5"] { animation-delay: 400ms; }
  .reveal[data-delay="6"] { animation-delay: 480ms; }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Focus ring -------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}
