/* ZenninOut — Claude design language. Warm paper, clay accent, serif display. */

:root {
  --paper:        #F0EEE6;
  --paper-2:      #E9E6DC;
  --paper-3:      #DDD9CC;
  --raised:       #F6F4ED;
  --ink:          #1F1E1D;
  --ink-2:        #3D3D3A;
  --ink-3:        #6B6A65;
  --ink-4:        #97968F;
  --stroke:       #D6D2C4;
  --clay:         #C15F3C;
  --clay-2:       #D97757;
  --clay-tint:    rgba(193, 95, 60, 0.10);
  --sage:         #7A8F6A;
  --sage-tint:    rgba(122, 143, 106, 0.12);
  --indigo:       #3B5266;
  --shadow-sm:    0 1px 2px rgba(31,30,29,0.04), 0 1px 1px rgba(31,30,29,0.03);
  --shadow-md:    0 8px 24px rgba(31,30,29,0.06), 0 2px 6px rgba(31,30,29,0.04);
  --radius:       18px;
  --radius-lg:    24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--clay); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Display font: a graceful serif for headlines. */
h1, h2, h3, .display {
  font-family: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 14px; color: var(--ink-2); }
.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 56ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.trust { color: var(--ink-3); font-size: 0.92rem; margin-top: 18px; max-width: 60ch; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-2) 100%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
}
.brand-word { font-family: "Iowan Old Style", "Charter", serif; font-size: 1.08rem; font-weight: 600; }
.brand-word.small { font-size: 0.95rem; opacity: 0.7; }
.nav-links { display: flex; gap: 24px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); }
.nav-cta {
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--clay); text-decoration: none; }
.lang-button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--stroke); background: var(--raised); color: var(--ink-2);
  border-radius: 999px; font-size: 0.9rem; cursor: pointer;
}
.lang-button:hover { background: var(--paper); }

/* Sections */
main { display: block; }
section.band {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 40px);
}
section.band.light { background: var(--raised); max-width: none; }
section.band.light > * { max-width: 1080px; margin-inline: auto; }
.band-sub { color: var(--ink-3); max-width: 64ch; font-size: 1.04rem; }
.band-sub.small { font-size: 0.92rem; opacity: 0.85; }

/* Hero */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px) clamp(72px, 9vw, 120px);
  text-align: left;
  position: relative;
}
.hero h1 { max-width: 22ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--clay); }
.btn.primary.big { padding: 18px 28px; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--stroke); }
.btn.ghost:hover { border-color: var(--ink-3); }

/* Tagline band */
.tagline { text-align: center; }
.tagline h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); max-width: 18ch; margin-inline: auto; }
.tagline p { max-width: 56ch; margin-inline: auto; color: var(--ink-3); }

/* Breath orb */
.orb-stage {
  position: relative;
  height: 280px;
  margin-top: 56px;
  display: grid;
  place-items: center;
}
.orb {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, var(--clay-2) 55%, var(--clay) 100%);
  box-shadow:
    0 30px 60px -20px rgba(193, 95, 60, 0.45),
    inset 0 -10px 30px rgba(0,0,0,0.08);
  animation: breathe 10s ease-in-out infinite;
  position: relative; z-index: 3;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--clay);
  opacity: 0.25;
  animation: ring 10s ease-in-out infinite;
}
.orb-ring.r1 { width: 200px; height: 200px; animation-delay: 0s; }
.orb-ring.r2 { width: 260px; height: 260px; animation-delay: -1.5s; opacity: 0.15; }
.orb-caption {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin: 0;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.78); }
  50% { transform: scale(1.18); }
}
@keyframes ring {
  0%, 100% { transform: scale(0.78); opacity: 0.05; }
  50% { transform: scale(1.18); opacity: 0.35; }
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.feature-card {
  background: var(--raised);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feature-card .tag {
  display: inline-block;
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clay); background: var(--clay-tint);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card .cite { display: block; margin-top: 12px; color: var(--ink-4); font-size: 0.82rem; font-style: italic; }

/* Science */
.science-list {
  list-style: none;
  counter-reset: science;
  padding: 0;
  margin: 36px 0 24px;
  display: grid;
  gap: 14px;
}
.science-list li {
  counter-increment: science;
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px 28px 24px 70px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.science-list li::before {
  content: counter(science, decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  font-family: "Iowan Old Style", "Charter", serif;
  color: var(--clay); font-weight: 600; font-size: 1.05rem;
}
.science-list .claim { font-family: "Iowan Old Style", "Charter", serif; font-size: 1.18rem; line-height: 1.32; color: var(--ink); margin: 0 0 8px; }
.science-list .summary { color: var(--ink-2); margin: 0 0 10px; }
.science-list .citation {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-3);
  font-style: italic;
}
.science-list .doi { display: inline-block; margin-top: 4px; font-size: 0.84rem; }
.disclaimer {
  margin-top: 28px; padding: 18px 22px;
  background: var(--sage-tint); border-left: 3px solid var(--sage);
  border-radius: 12px; color: var(--ink-2); font-size: 0.94rem;
}

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 14px;
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.lang-grid a { color: var(--ink-2); padding: 6px 0; }
.lang-grid a:hover { color: var(--clay); text-decoration: none; }
.lang-grid .en { color: var(--ink-4); font-size: 0.82rem; margin-left: 6px; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.testimonial {
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial .before {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 8px;
}
.testimonial .quote-1 { color: var(--ink-3); font-style: italic; }
.testimonial .after {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay); margin: 14px 0 8px;
}
.testimonial .quote-2 { font-family: "Iowan Old Style", "Charter", serif; font-size: 1.08rem; color: var(--ink); }
.testimonial .who { margin-top: 14px; color: var(--ink-3); font-size: 0.88rem; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 0;
  transition: background .15s ease;
}
.faq-list details[open] { background: var(--raised); }
.faq-list summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: "Iowan Old Style", "Charter", serif;
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--clay);
  font-size: 1.4rem;
  font-family: -apple-system, sans-serif;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-answer {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Download */
.download { text-align: center; }
.download h2 { max-width: 22ch; margin-inline: auto; }
.download p { margin-inline: auto; max-width: 56ch; color: var(--ink-3); }
.download .cta-row { justify-content: center; }

/* Footer */
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 40px) 48px;
  border-top: 1px solid var(--stroke);
  display: flex; flex-direction: column; gap: 12px;
  color: var(--ink-3); font-size: 0.9rem;
}
.footer-row { display: flex; align-items: center; gap: 16px; }
.rights { margin-left: auto; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-3); }
.footer-links .dot { color: var(--ink-4); }

/* Language drawer */
.lang-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31,30,29,0.4);
  display: grid; place-items: end center;
}
/* `display: grid` above outranks the UA's [hidden] rule, so without this the
   drawer rendered OPEN on every page load, covering the hero. */
.lang-drawer[hidden] { display: none; }
.lang-drawer-inner {
  background: var(--paper);
  width: min(100%, 520px);
  max-height: 80vh;
  border-radius: 24px 24px 0 0;
  padding: 18px 18px 24px;
  display: flex; flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.18);
}
.lang-drawer-inner header { display: flex; align-items: center; }
.lang-drawer-inner h3 { margin: 0 auto 0 4px; font-size: 1.05rem; }
.lang-drawer-inner button {
  background: transparent; border: 0; color: var(--ink-3);
  font-size: 1.6rem; cursor: pointer; padding: 4px 10px; line-height: 1;
}
#langSearch {
  margin: 12px 0; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--raised); font-size: 1rem; color: var(--ink);
}
.lang-list {
  list-style: none; padding: 0; margin: 0;
  overflow-y: auto; flex: 1;
}
.lang-list li a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 8px; border-bottom: 1px solid var(--stroke);
  color: var(--ink);
}
.lang-list li a .en { color: var(--ink-4); font-size: 0.82rem; }
.lang-list li a:hover { background: var(--clay-tint); text-decoration: none; }

/* RTL tweaks */
html[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .rights { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .science-list li { padding: 24px 70px 24px 28px; }
html[dir="rtl"] .science-list li::before { left: auto; right: 22px; }

@media (prefers-reduced-motion: reduce) {
  .orb, .orb-ring { animation: none; }
}


/* ── Screenshots & videos rails ─────────────────────────────────────── */
.shots-rail, .video-rail {
  display: flex; gap: 1.25rem; overflow-x: auto; padding: 1.5rem 0 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots-rail::-webkit-scrollbar, .video-rail::-webkit-scrollbar { height: 8px; }
.shots-rail::-webkit-scrollbar-thumb, .video-rail::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 4px;
}
.shot { flex: 0 0 auto; scroll-snap-align: center; }
.shot img {
  width: min(64vw, 264px); height: auto; display: block;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: 0 14px 34px rgba(31, 30, 29, .12);
}
.video-card { flex: 0 0 auto; width: min(72vw, 300px); scroll-snap-align: center; }
.video-card video {
  width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: 0 14px 34px rgba(31, 30, 29, .12); background: var(--paper);
}
.video-card h3 { margin: .9rem 0 .3rem; font-size: 1.02rem; }
.video-card p { font-size: .9rem; opacity: .8; line-height: 1.55; margin: 0; }
