/* Byrle marketing site — shared styles */

@font-face {
  font-family: "Young Serif";
  src: url("assets/fonts/YoungSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --burgundy: #4a1226;
  --burgundy-deep: #2c0b17;
  --gold: #cbb682;
  --gold-ink: #93732f;
  --parchment: #f4ecd8;
  --night: #1e1410;
  --ink: #241512;
  --ink-soft: #5a4b46;
  --line: #ddccae;
  --max-width: 1080px;
  --serif: "Young Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--burgundy);
  color: var(--parchment);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
}

img {
  max-width: 100%;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(44, 11, 23, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(244, 236, 216, 0.18);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.brand-mark {
  width: 24px;
  height: 24px;
  display: block;
}

.credit .brand-mark {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 4px;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.primary a:not(.btn) {
  color: rgba(244, 236, 216, 0.82);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
}

nav.primary a:not(.btn):hover,
nav.primary a:not(.btn).current {
  color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--burgundy-deep);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: #d9c89a;
}

.btn-ghost {
  border-color: var(--parchment);
  color: var(--parchment);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(244, 236, 216, 0.08);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.96rem;
}

/* Hero */

.hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(ellipse at top right, rgba(203, 182, 130, 0.22), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(74, 18, 38, 0.1), transparent 55%);
}

.hero .wrap {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 4px;
}

.hero .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-actions {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(203, 182, 130, 0.14);
  border: 1px solid rgba(203, 182, 130, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.14;
  margin: 0;
  color: #fff;
}

h1 .accent {
  color: var(--gold);
  font-style: italic;
}

.word-break {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: 4px 0 0;
  max-width: 620px;
}

.word-break p {
  font-size: 1.15rem;
  color: rgba(244, 236, 216, 0.78);
  margin: 4px 0;
}

.word-break b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3em;
}

.word-break b.wine {
  color: #fff;
}

.word-break b.gold-logo {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(244, 236, 216, 0.78);
  max-width: 620px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-actions.centered {
  justify-content: center;
  margin-top: 24px;
}

.import-note {
  text-align: center;
  color: rgba(244, 236, 216, 0.78);
  font-size: 0.98rem;
  margin-top: 28px;
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(244, 236, 216, 0.78);
  margin-top: -4px;
}

/* Sections */

section {
  padding: 72px 0;
}

section.alt {
  background: var(--burgundy-deep);
  border-top: 1px solid rgba(244, 236, 216, 0.15);
  border-bottom: 1px solid rgba(244, 236, 216, 0.15);
}

section.night {
  background: var(--night);
  color: var(--parchment);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.kicker {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.section-head p {
  color: rgba(244, 236, 216, 0.78);
  font-size: 1.05rem;
  margin: 0;
}

section p strong,
.prose strong,
.faq strong {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05em;
}

.cta-band p strong {
  color: var(--gold);
}

.small {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Realization-style statement */

.realization,
.center-text {
  text-align: center;
}

.center-text .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.realization p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: rgba(244, 236, 216, 0.78);
  max-width: 680px;
  margin: 0 auto 18px;
}

.realization p.final {
  font-size: 1.55rem;
  color: #fff;
  font-weight: 700;
}

/* Capability grid */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.capability-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
}

.capability-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--burgundy-deep);
  margin: 0 0 8px;
}

.capability-card p {
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.capability-card .prompt {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

/* Demonstrations (screenshots) */

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
}

.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.demo-card .demo-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 10px;
}

.demo-card .prompt {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--burgundy-deep);
  margin: 0 0 12px;
}

.demo-card .answer {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.demo-screenshot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}

.demo-screenshot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: block;
  transition: box-shadow 0.15s ease;
}

.demo-screenshot-btn:hover .demo-screenshot {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.demo-screenshot-btn .zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(30, 20, 16, 0.76);
  color: var(--parchment);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 10, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  z-index: 200;
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--parchment);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Persona / voice section */

.voice-card {
  background: var(--night);
  color: var(--parchment);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.voice-card .voice-line {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0 0 18px;
  color: #fff;
}

.voice-card .voice-line:last-of-type {
  margin-bottom: 0;
}

.voice-card .voice-attr {
  color: var(--gold);
  font-style: italic;
}

.trait-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 820px;
}

.trait-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
}

.trait-list .trait-note {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* Family / relationship to Cellaronomy */

.family-lockup {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 40px;
}

.family-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.family-diagram .role {
  flex: 1 1 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

.family-diagram .role h3 {
  font-family: var(--serif);
  color: var(--burgundy-deep);
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.family-diagram .role p {
  color: var(--ink-soft);
  margin: 0;
}

.family-diagram .join {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--gold-ink);
  font-size: 1.6rem;
  font-family: var(--serif);
}

@media (max-width: 700px) {
  .family-diagram .join {
    flex-basis: 100%;
    padding: 8px 0;
  }
}

/* Install / connector box */

.connector-box {
  margin: 32px auto 0;
  max-width: 600px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  text-align: left;
}

.connector-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 10px;
}

.connector-url-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(44, 11, 23, 0.55);
  border: 1px solid rgba(244, 236, 216, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 20px;
}

.connector-url-row code {
  font-family: monospace;
  font-size: 1rem;
  color: var(--gold);
  flex: 1 1 auto;
  word-break: break-all;
}

.btn-sm.btn-ghost#copy-install-cmd {
  flex: 0 0 auto;
}

.connector-steps {
  margin: 0 0 16px;
  padding-left: 20px;
}

.connector-steps li {
  margin-bottom: 8px;
  line-height: 1.5;
  padding-left: 0;
  color: var(--ink);
}

.connector-steps li:last-child {
  margin-bottom: 0;
}

.connector-box > p.small {
  margin: 0 0 16px;
}

.connector-webapp-link {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink-soft);
}

.connector-box a {
  color: var(--burgundy);
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: rgba(203, 182, 130, 0.2);
  border: 1px solid rgba(203, 182, 130, 0.5);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* FAQ */

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid rgba(244, 236, 216, 0.15);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--gold);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: rgba(244, 236, 216, 0.78);
  margin: 12px 0 0;
  font-size: 0.98rem;
}

/* Final CTA */

.cta-band {
  background: var(--burgundy-deep);
  color: var(--parchment);
  text-align: center;
  padding: 72px 0;
}

.cta-band p {
  color: rgba(244, 236, 216, 0.85);
  max-width: 540px;
  margin: 0 auto 28px;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* Footer */

footer.site {
  padding: 40px 0;
  border-top: 1px solid rgba(244, 236, 216, 0.15);
  background: var(--burgundy-deep);
}

footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site .foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site a {
  color: rgba(244, 236, 216, 0.78);
  text-decoration: none;
  font-size: 0.98rem;
}

footer.site a:hover {
  color: var(--gold);
}

footer.site .credit {
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(244, 236, 216, 0.78);
}

footer.site .footer-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(244, 236, 216, 0.78);
}

.footer-tidbit {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 236, 216, 0.15);
}

.footer-tidbit summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(244, 236, 216, 0.78);
  list-style: none;
}

.footer-tidbit summary::-webkit-details-marker {
  display: none;
}

.footer-tidbit summary::before {
  content: "+ ";
  color: var(--gold);
  font-weight: 700;
}

.footer-tidbit[open] summary::before {
  content: "\2212 ";
}

.footer-tidbit .word-break {
  margin-top: 14px;
  border-left-color: rgba(244, 236, 216, 0.15);
}

.footer-tidbit .word-break p {
  font-size: 1rem;
}

.footer-tidbit .word-break b {
  font-size: 1.1em;
}

/* About page / prose */

.about-hero {
  padding: 64px 0 32px;
}

.about-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
}

.about-hero + section {
  padding-top: 16px;
}

.prose {
  max-width: 680px;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(244, 236, 216, 0.78);
}

.prose p.hero-sub {
  font-size: 1.15rem;
  line-height: 1.5;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 44px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}

.prose ul {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(244, 236, 216, 0.78);
  padding-left: 22px;
  margin: 16px 0;
}

.prose li {
  margin: 6px 0;
}

.prose figure.portrait {
  margin: 28px auto;
  max-width: 320px;
  text-align: center;
}

.prose figure.portrait img {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(30, 20, 16, 0.25);
}

.prose figure.portrait figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(244, 236, 216, 0.78);
}

.prose figure.portrait figcaption .credit {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(244, 236, 216, 0.78);
  opacity: 0.8;
}

/* Responsive */

@media (max-width: 860px) {
  nav.primary {
    gap: 16px;
  }
  .nav-links {
    gap: 14px;
  }
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .trait-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  header.site .wrap {
    gap: 8px;
  }
  nav.primary {
    gap: 10px;
  }
  .nav-links {
    gap: 10px;
  }
  nav.primary a:not(.btn) {
    font-size: 0.94rem;
  }
  .brand .logo {
    height: 26px;
  }
  .trait-list {
    grid-template-columns: 1fr;
  }
  .voice-card {
    padding: 28px 24px;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
