/* ===== global reset ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --ink: #1f2328;
  --sub: #6b7280;
  --line: #e7e1d8;
  --accent: #b9a88f;
  --accent-ink: #3e372c;
  --primary: #eae3d9;
  --primary-hover: #dfd6c9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 18px rgba(0, 0, 0, .06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .05);
}

/* ===== page ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  margin: 0;
}

/* ===== header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 18px;

  margin: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 54px;
  width: auto;
  display: block;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== language switch ===== */
.langSwitch {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.langBtn,
.langBtnActive {
  border: 1px solid transparent;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  background: transparent;
  color: var(--accent-ink);
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}

.langBtn:hover {
  background: #faf7f2;
  border-color: var(--line);
  transform: translateY(-1px);
}

.langBtnActive {
  background: var(--primary);
  border-color: var(--accent);
}

/* ===== nav buttons ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link,
.linkSecondary {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .15s ease, transform .06s ease, border-color .15s ease;
  white-space: nowrap;
}

.link {
  background: var(--primary);
  color: var(--accent-ink);
  border: 1px solid var(--line);
}

.link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  border-color: var(--accent);
}

.linkSecondary {
  background: var(--card);
  color: var(--accent-ink);
  border: 1px solid var(--line);
}

.linkSecondary:hover {
  background: #faf7f2;
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* ===== main ===== */
.main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 44px 18px;
  flex: 1;
}

/* ===== hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
  padding: 10px 0 26px 0;
}

.heroText {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.headline {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

.subline {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--sub);
  margin: 0;
  max-width: 60ch;
}

.sublineEmph {
  font-weight: 900;
  color: black; /* or slightly stronger color if you want */
}

/* ===== CTA ===== */
.ctaRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ctaPrimary,
.ctaSecondary {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 999px;
  transition: background .15s ease, transform .06s ease, border-color .15s ease;
  white-space: nowrap;
}

.ctaPrimary {
  background: var(--primary);
  color: var(--accent-ink);
  border: 1px solid var(--line);
}

.ctaPrimary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  border-color: var(--accent);
}

.ctaSecondary {
  background: var(--card);
  color: var(--accent-ink);
  border: 1px solid var(--line);
}

.ctaSecondary:hover {
  background: #faf7f2;
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* ===== badge ===== */
.badgeRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fbf8f3;
  border: 1px solid var(--line);
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 12px;
}

.badgeNote {
  font-size: 13px;
  color: var(--sub);
}

/* ===== hero preview ===== */
.heroPreview {
  display: flex;
  justify-content: flex-end;
}

.previewFrame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.previewImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.previewImg:hover {
  filter: brightness(0.97);
}



.previewFallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}
.previewImg {
  cursor: zoom-in;
}

.shotCardBtn {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: inherit;
  cursor: zoom-in;

  /* Keep same look as shotCard */
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
}

.shotCardBtn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #faf7f2;
}
/* ===== section ===== */
.section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.sectionTitle {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--ink);
}

.sectionNote {
  margin: -6px 0 14px 0;
  color: var(--sub);
  font-size: 13px;
}

/* ===== feature cards ===== */
.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.featureCardBtn {
  text-align: left;
  cursor: pointer;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--accent-ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}

.featureCardBtn:hover {
  background: #faf7f2;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ===== screenshots ===== */
.shotGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shotCard {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.shotImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shotFallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}

/* ===== footer ===== */
.footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 13px;
  background: rgba(250, 248, 244, 0.92);
}

.footerCenter {
  color: var(--sub);
}

.footerRight {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footerLinkBtn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--accent-ink);
  border-bottom: 1px dashed rgba(62, 55, 44, 0.35);
  font-weight: 600;
  transition: color .15s ease, border-bottom-color .15s ease;
}

.footerLinkBtn:hover {
  color: var(--accent);
  border-bottom-color: rgba(185, 168, 143, 0.8);
}

.footerDivider {
  opacity: 0.55;
}

.footerMuted {
  color: var(--sub);
}

/* ===== modal system (FINAL, no overlay bugs) ===== */

/* Backdrop is hidden by default.
   JS shows it by removing [hidden]. */
.modalBackdrop {
  position: fixed;
  inset: 0;
  padding: 18px;
  z-index: 1000;

  background: rgba(31, 35, 40, 0.35);

  /* IMPORTANT: default hidden */
  display: none;

  align-items: center;
  justify-content: center;
}

/* visible state */
.modalBackdrop:not([hidden]) {
  display: flex;
}

/* dialog surfaces */
.modal,
.imageLightbox {
  position: relative;
  z-index: 1010;

  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
}

/* normal modal */
.modal {
  width: min(640px, 100%);
}

/* modal header */
.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbf8f3;
}

.modalTitle {
  font-weight: 900;
  font-size: 14px;
  color: var(--accent-ink);
}

.modalClose {
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--card);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  transition: background .15s ease, border-color .15s ease;
}

.modalClose:hover {
  background: #faf7f2;
  border-color: var(--accent);
}

.modalBody {
  padding: 14px 16px 16px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.modalList {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--sub);
}

.disclaimerText p {
  margin: 0 0 10px 0;
  color: var(--sub);
}

.disclaimerNote {
  margin-top: 12px;
  color: var(--sub);
  font-size: 13px;
}

/* ===== image lightbox ===== */
.imageLightbox {
  width: min(92vw, 1600px);
  max-height: 92vh;
  overflow: auto;
}

.imageLightboxBody {
  padding: 12px;
}

.imageLightboxImg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* ===== image lightbox ===== */
.imageLightbox {
  width: min(92vw, 1600px);
  max-height: 92vh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: auto;
}

.imageLightboxBody {
  padding: 12px;
}

.imageLightboxImg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.modal,
.imageLightbox {
  position: relative;
  z-index: 1010;
}

/* ===== focus ring ===== */
.langBtn:focus,
.langBtnActive:focus,
.featureCardBtn:focus,
.modalClose:focus,
.footerLinkBtn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(185,168,143,.25);
}

/* ===== responsive ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .heroPreview {
    justify-content: flex-start;
  }

  .previewFrame {
    max-width: 520px;
  }

  .featureGrid,
  .shotGrid {
    grid-template-columns: 1fr;
  }

  .headerRight {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
}
/* ===== beta request form (matches light theme) ===== */

.betaFormWrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.betaIntro {
  margin: 0 0 6px 0;
  color: var(--sub);
}

.betaGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px; /* row-gap column-gap */
}

.betaField,
.betaFieldWide {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.betaFieldWide {
  grid-column: 1 / -1;
}

.betaConsent {
  grid-column: 1 / -1;
}

.betaField label,
.betaFieldWide label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-ink);
  margin-bottom: 6px; /* 👈 THIS */
}

.betaField input,
.betaFieldWide textarea {
  width: 100%;
  padding: 7px 10px;          /* ⬅ shorter */
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;          /* ⬅ slightly smaller */
  line-height: 1.35;          /* ⬅ prevents tall inputs */
  box-sizing: border-box;
}

.betaFieldWide textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.45;
}

.betaField input:focus,
.betaFieldWide textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185,168,143,.25);
}

.betaCheckbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.35;
}

.betaCheckbox input {
  margin-top: 3px;
}


.betaActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Status messages */
.betaError {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 60, 60, 0.35);
  background: rgba(220, 60, 60, 0.08);
  color: #7a1f1f;
  font-weight: 800;
  font-size: 13px;
}

.betaOk {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(40, 140, 80, 0.35);
  background: rgba(40, 140, 80, 0.08);
  color: #1f5b36;
  font-weight: 900;
  font-size: 13px;
}

.betaFootnote {
  margin: 6px 0 0 0;
  color: var(--sub);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Honeypot hidden */
.hpField {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  opacity: 0;
}

/* Mobile */
@media (max-width: 700px) {
  .betaGrid {
    grid-template-columns: 1fr;
  }
}

.tosBody {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.tosText {
  font-family: inherit;
  line-height: 1.5;
}
/* center nav inherits same font as header */
.topNav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* all states black, no underline */
.topNavLink,
.topNavLink:visited,
.topNavLink:hover,
.topNavLink:active,
.topNavLinkActive,
.topNavLinkActive:visited,
.topNavLinkActive:hover,
.topNavLinkActive:active {
  color: #000;
  text-decoration: none;
  font: inherit;          /* IMPORTANT: match header font */
  font-size: 0.95rem;     /* slightly smaller than default */
  font-weight: 600;
  letter-spacing: 0.01px;
  -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

/* optional: subtle active cue without changing color */
.topNavLinkActive {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ===== modal visibility control (FINAL) ===== */
/* ===== modal visibility control (COMPAT: supports landing + layout) ===== */
.modalBackdrop[hidden] {
  display: none !important;
}

/* Your older pages (layout.html) use aria-hidden */
.modalBackdrop[aria-hidden="true"] {
  display: none !important;
}
.modalBackdrop[aria-hidden="false"] {
  display: flex;
}
.langBtn,
.langBtnActive,
.langBtn:visited,
.langBtnActive:visited,
.langBtn:hover,
.langBtnActive:hover {
  text-decoration: none;
}
.main p,
.main li {
  color: var(--sub);
}

/* ===== markdown content ===== */
.mdContent {
  line-height: 1.65;
  color: var(--sub); /* paragraph default */
}

.mdContent p {
  margin: 0 0 12px 0;
  color: var(--sub);
}

.mdContent h1,
.mdContent h2,
.mdContent h3 {
  color: var(--ink);       /* BLACK */
  font-weight: 900;
  margin: 18px 0 10px 0;
}

.mdContent h1 {
  font-size: 22px;
}

.mdContent h2 {
  font-size: 18px;
}

.mdContent h3 {
  font-size: 15px;
}

.mdContent ul {
  margin: 8px 0 12px 18px;
  color: var(--sub);
}

.mdContent li {
  margin-bottom: 6px;
}

.resIndex {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.resRow {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
}

.resRow:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #faf7f2;
}

.resRowTitle {
  font-weight: 900;
  color: var(--ink);
}

.resRowTeaser {
  color: var(--sub);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .resRow {
    grid-template-columns: 1fr;
  }
}
/* Row layout (avoid clashing with your existing .badge pill class) */
.badgeRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Only interaction behavior; visual comes from .badge */
.badgeBtn {
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, filter 120ms ease;
}

.badgeBtn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.badgeBtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
