:root{
  --bg:        #f4edd9;
  --bg-soft:   #ece4cf;
  --bg-warm:   #e6dcc2;
  --ink:       #1c1b17;
  --ink-2:     #2a2823;
  --muted:     #6b6657;
  --muted-2:   #8a8472;
  --line:      #d8cfb6;
  --line-2:    #c8bd9f;
  --accent:    #1c1b17;
  --on-dark:   #f6f1e2;
  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1180px;
  --ease-out:  cubic-bezier(.2,.7,.2,1);
}
*,*::before,*::after{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection{ background: var(--ink); color: var(--bg); }

/* ------- Typography ------- */
.serif{ font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight:400; }
.mono { font-family: 'Geist', sans-serif; }
h1,h2,h3,h4{
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1{ font-size: clamp(48px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.03em; }
h2{ font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.015em; }
h3{ font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; }
h4{ font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
p{ margin: 0; }
.lede{ color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 56ch; }
a{ color: inherit; text-decoration: none; }

/* ------- Layout ------- */
.wrap{ width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.stack > * + *{ margin-top: var(--gap, 16px); }
.center{ text-align: center; }

/* ------- Nav (Figma: rounded-14 rectangle, white 50% + backdrop-blur) ------- */
.nav{
  position: fixed; top: 32px; left: 72px; right: 72px;
  z-index: 50;
  display:flex; justify-content:center;
  pointer-events: none;
}
.nav-inner{
  pointer-events: auto;
  position: relative;
  display:flex; align-items:center; justify-content:space-between;
  gap: 28px;
  width: 100%; max-width: 1296px;
  height: 64px;
  padding: 0 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 10px 24px -16px rgba(28,27,23,0.18);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled .nav-inner{
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 18px 40px -20px rgba(28,27,23,0.22);
}
.brand{ display:flex; align-items:center; color: var(--ink); flex: 0 0 auto; }
.brand-logo{ height: 32px; width: auto; display:block; }
.nav-center{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display:flex; align-items:center; gap: 40px;
}
.nav-link{ font-size: 15px; color: var(--ink); font-weight: 500; }
.nav-link:hover{ color: var(--muted); }
.nav-actions{ display:flex; align-items:center; gap: 12px; }
.nav-spacer{ height: 96px; }

/* ------- Buttons (Figma: rounded-md 8px, Geist Medium) ------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 14px; font-weight: 500;
  line-height: 20px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary{
  background: #171717; color: #fafafa;
}
.btn-primary:hover{ background:#000; transform: translateY(-1px); }
.btn-ghost{
  background: transparent; color: #0a0a0a; border-color: #e5e5e5;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.6); border-color: #d4d4d4; }
.btn-lg{ padding: 8px 16px; font-size: 16px; line-height: 24px; }
.btn-sm{ padding: 8px 12px; font-size: 14px; line-height: 20px; }
.btn .play-icon{ width: 12px; height: 12px; flex: 0 0 auto; }

/* ------- Hero (Figma: 216px top, 96px gap to visual, 24px lateral) ------- */
.hero{ padding: 120px 0 160px; }
.hero-inner{ text-align: center; max-width: 762px; margin: 0 auto; }
.hero h1{ margin-bottom: 16px; }
.hero-sub{
  max-width: 709px; margin: 0 auto 32px;
  color: var(--muted); font-size: 18px; line-height: 1.5;
}
.hero-cta-row{ display:flex; flex-direction:column; align-items:center; gap: 10px; }

/* Hero visual — full width minus 24px lateral, 96px gap from CTA */
.hero-visual-wrap{
  padding: 96px 24px 0;
  width: 100%;
}
.hero-visual{
  position: relative;
  width: 100%;
  height: 760px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-visual-bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center 60%;
}
/* Mockup: anchored to bottom, full 1920x1080 ratio so the whole UI is visible */
.hero-mockup-img,
.hero-mockup-video{
  position:absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 1280px;
  max-width: calc(100% - 64px);
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 -8px 60px -24px rgba(28,27,23,0.45),
    -24px 0 60px -28px rgba(28,27,23,0.30),
    24px 0 60px -28px rgba(28,27,23,0.30);
}
.hero-mockup-video{
  display:block;
  background:#fcfcfd;
}
@media (max-width: 1340px){
  .hero-visual{ height: clamp(480px, 56vw, 760px); }
}
@media (max-width: 1100px){
  .hero-visual{ height: clamp(420px, 58vw, 720px); }
  .hero-mockup-img,
  .hero-mockup-video{ max-width: calc(100% - 48px); }
}
@media (max-width: 700px){
  .hero-visual-wrap{ padding: 56px 16px 0; }
  .hero-visual{ height: 60vw; min-height: 260px; }
  .hero-mockup-img,
  .hero-mockup-video{ max-width: calc(100% - 24px); }
}

/* ------- Mockup component (used in module visuals) ------- */
.mockup{
  background: #fdfaf2;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 30px 60px -20px rgba(28,27,23,0.25),
    0 12px 28px -10px rgba(28,27,23,0.18);
  overflow:hidden;
  color: var(--ink);
  font-size: 13px;
}
.mockup-bar{
  height: 30px; display:flex; align-items:center; gap:6px;
  padding: 0 12px; background: #f1ebdb; border-bottom: 1px solid var(--line);
}
.mockup-dot{ width:10px; height:10px; border-radius:50%; background:#d6cdb5; }
.mockup-dot.r{ background:#e3b7a8; }
.mockup-dot.y{ background:#e9d49a; }
.mockup-dot.g{ background:#b9cfa3; }
.mockup-body{ padding: 18px; }

/* ------- Section spacing ------- */
section{ padding: 140px 0; }
section[id]{ scroll-margin-top: 0; }
#product{ padding-bottom: 32px; }
.section-head{ text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .lede{ margin: 16px auto 0; }

/* ------- Modules alternating ------- */
.module{
  display:grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.module:first-child{ border-top: 0; padding-top: 0; }
.module .body h3{ font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; margin-bottom: 18px; }
.module .body p{ color: var(--muted); font-size: 17px; max-width: 46ch; }
.module .visual{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px -28px rgba(28,27,23,.18);
}
.module-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fcfcfd;
}
.module.reverse{ direction: rtl; }
.module.reverse > *{ direction: ltr; }
.module-eyebrow{
  margin-bottom: 18px;
  font-family:'Geist', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ------- FAQ ------- */
.faq-section{
  display:grid; grid-template-columns: 1fr 1.6fr; gap: 80px;
  max-width: 1180px; margin: 0 auto; align-items: start;
}
.faq-section .section-head{
  text-align: left; margin: 0; max-width: none;
}
.faq-section .section-head h2{ text-wrap: balance; }
.faq{ width: 100%; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-q{
  width: 100%; background:none; border:0; padding: 26px 4px;
  display:flex; justify-content: space-between; align-items: center; gap: 24px;
  text-align: left; cursor: pointer;
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.faq-q:hover{ color: var(--ink-2); }
.faq-q .toggle{
  flex: 0 0 22px; width: 22px; height: 22px; position: relative;
}
.faq-q .toggle::before,
.faq-q .toggle::after{
  content:""; position:absolute; background: var(--ink); transition: transform .25s ease;
}
.faq-q .toggle::before{ left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-q .toggle::after{ top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-q .toggle::after{ transform: translateX(-50%) scaleY(0); }
.faq-a{
  overflow: hidden; max-height: 0;
  transition: max-height .35s ease;
}
.faq-a-inner{
  padding: 0 4px 26px;
  color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 68ch;
}
.faq-item.open .faq-a{ max-height: 400px; }

/* ------- Waitlist ------- */
.waitlist{
  margin: 0 auto;
  background: url('assets/waitlist.jpg') center / cover no-repeat;
  border-radius: var(--radius);
  padding: 170px 48px;
  text-align: center;
  color: #fff;
  position: relative; overflow:hidden;
}
.waitlist::before{
  content:""; position:absolute; inset:0;
  background: rgba(0,0,0,0.2);
  pointer-events:none;
}
.waitlist > *{ position: relative; }
.waitlist h2{ margin-bottom: 14px; color: #fff; }
.waitlist p{ color: rgba(255,255,255,.85); margin-bottom: 28px; }
.wl-form{ max-width: 480px; margin: 0 auto; }
.wl-composite{
  display: flex; align-items: center;
  background: #fdfaf2;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 4px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wl-composite:focus-within{
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28,27,23,0.08);
}
.wl-input{
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent; outline: none;
  padding: 10px 12px;
  font: inherit; color: var(--ink);
}
.wl-input::placeholder{ color: var(--muted-2); }
.wl-submit{ flex: 0 0 auto; padding: 10px 16px; border-radius: 7px; }
.wl-success{ display:none; margin-top: 18px; color: #fff; font-style: italic; font-family:'Instrument Serif',serif; font-size: 20px; }
.waitlist.sent .wl-form{ display:none; }
.waitlist.sent .wl-success{ display:block; }

/* ------- Contact ------- */
.contact-section{ padding: 140px 0 96px; }
.contact-grid{
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  max-width: 1100px; margin: 0 auto;
  align-items: start;
}
.contact-intro h2{ margin-bottom: 16px; text-wrap: balance; }
.contact-intro .lede{ margin: 0; max-width: 36ch; }
.contact-form{ display: flex; flex-direction: column; gap: 16px; }
.contact-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label{
  display: flex; flex-direction: column; gap: 6px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.contact-form input,
.contact-form textarea{
  font: inherit; color: var(--ink);
  padding: 12px 14px;
  background: #fdfaf2;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea{ resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28,27,23,0.08);
}
.contact-form .btn{ align-self: flex-start; margin-top: 8px; }
.contact-success{
  display: none;
  margin-top: 4px;
  color: var(--ink);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
}
.contact-form.sent .btn,
.contact-form.sent .contact-row,
.contact-form.sent > label{ display: none; }
.contact-form.sent .contact-success{ display: block; }
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; gap: 36px; }
  .contact-row{ grid-template-columns: 1fr; }
}

/* ------- Video Modal (lightbox) ------- */
.video-modal{
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 11, 9, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 32px;
  animation: videoModalIn .2s ease-out;
}
.video-modal[hidden]{ display: none; }
@keyframes videoModalIn{
  from{ opacity: 0; }
  to  { opacity: 1; }
}
.video-modal-player{
  width: 100%;
  max-width: 1280px;
  max-height: calc(100vh - 64px);
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  outline: none;
}
.video-modal-close{
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.video-modal-close:hover{ background: rgba(255,255,255,0.18); transform: scale(1.04); }
.video-modal-close svg{ width: 20px; height: 20px; }
body.modal-open{ overflow: hidden; }
@media (max-width: 600px){
  .video-modal{ padding: 16px; }
  .video-modal-close{ top: 12px; right: 12px; width: 38px; height: 38px; }
}

/* ------- Footer ------- */
footer{ padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 80px; }
footer .wrap{ max-width: 1392px; padding: 0 24px; }
.foot-row{
  display:flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  flex-wrap: wrap;
}
.foot-brand{ display:block; }
.foot-brand-logo{ height: 28px; width: auto; display:block; }
.foot-tag{ color: var(--muted); font-size: 14px; font-family:'Geist',sans-serif; margin-top: 10px; }
.foot-links{ display:flex; gap: 20px; font-size: 14px; color: var(--muted); }
.foot-links a:hover{ color: var(--ink); }
.foot-copy{ text-align: center; margin-top: 40px; font-family:'Geist',sans-serif; font-size: 13px; color: var(--muted-2); }

/* ------- Pricing ------- */
.pricing-section{ padding: 140px 0 96px; }
.pricing-section .section-head{ margin-bottom: 32px; }
.pricing-wrap{
  max-width: 520px; margin: 0 auto;
  text-align: center;
}
.pricing-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative;
}
.pricing-price{
  display: flex; align-items: baseline; gap: 6px;
  font-family: 'Instrument Serif', serif;
  color: var(--ink);
  line-height: 1;
}
.pricing-currency{ font-size: 36px; }
.pricing-amount{ font-size: 84px; letter-spacing: -0.02em; }
.pricing-period{ font-size: 15px; color: var(--muted); font-family: 'Geist', sans-serif; }
.pricing-note{ color: var(--muted); font-size: 15px; max-width: 38ch; margin: 2px 0 0; }
.pricing-card .btn{ margin-top: 12px; }
.pricing-includes{
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--ink-2); font-size: 14.5px;
  text-align: left;
}
.pricing-includes li{
  display: flex; align-items: center; gap: 10px;
}
.pricing-includes .check-icon{
  width: 16px; height: 16px;
  flex: 0 0 16px;
  color: var(--ink);
}
.pricing-billing{
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  margin: -6px 0 0;
}

/* ------- Reveal animations ------- */
.fade-up{
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s var(--ease-out),
    transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.fade-up.in-view{ opacity: 1; transform: none; }
.fade-up.delay-1{ transition-delay: .08s; }
.fade-up.delay-2{ transition-delay: .16s; }
.fade-up.delay-3{ transition-delay: .24s; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up{ opacity: 1; transform: none; }
}

/* ------- Responsive ------- */
@media (max-width: 1100px){
  .nav{ top: 20px; left: 20px; right: 20px; }
}
@media (max-width: 900px){
  .module{ grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .module.reverse{ direction: ltr; }
  .module.reverse .visual{ order: -1; }
  .faq-section{ grid-template-columns: 1fr; gap: 36px; }
  .nav-center{ display:none; }
  .hero{ padding: 56px 0 96px; }
  section{ padding: 96px 0; }
  .section-head{ margin-bottom: 64px; }
}
@media (max-width: 560px){
  .waitlist{ padding: 44px 24px; }
  section{ padding: 80px 0; }
  .section-head{ margin-bottom: 48px; }
  .hero{ padding: 40px 0 80px; }
  .pricing-amount{ font-size: 88px; }
  .pricing-card{ padding: 44px 28px; }
  .nav-actions .btn-ghost{ display: none; }
  .nav{ top: 16px; left: 12px; right: 12px; }
  .nav-inner{ padding: 0 16px; height: 56px; }
}
