:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#5f5f5f;
  --border:#e8e8e8;

  --accent:#b20808;
  --accent-light:#a81b1b;

  --panel:#ceccba58;

  --section-panel-bg:#ffffff;
  --section-features-bg:#ffffff;
  --section-coming-bg:#ffffff;
  --section-signup-bg:#ffffff;

  --max:900px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  font-family: ui-sans-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, "Times New Roman", Times, serif;
}

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

.section{
  width:100%;
  padding:92px 0;
}

/* NAV */
nav{
  position:sticky;
  top:0;
  width:100%;
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:14px 0;
  z-index:10;
}
.nav-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand{
  font-weight:700;
  letter-spacing:.03em;
}

/* Typography */
h1,h2,h3{
  margin:0 0 18px;
  letter-spacing:-0.01em;
  line-height:1.12;
  font-weight:600;
}
h1{ font-size: clamp(34px, 4.2vw, 56px); }
h2{ font-size: clamp(24px, 2.6vw, 34px); }
h3{ font-size: 22px; }

p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:18px;
}

/* Buttons */
.btn{
  padding:11px 18px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:14px;
  font-family: inherit;
}
.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.btn.primary:hover{ background:var(--accent-light); }

/* HERO */
.hero{
  min-height: calc(100vh - 58px);
  padding:0;
  display:flex;
  align-items:stretch;
}
.hero-inner{
  min-height: calc(100vh - 58px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:80px;
  padding-bottom:70px;
}
.scroll-cue{
  margin-top: 26px;
  font-size: 14px;
  color: color-mix(in oklab, var(--muted) 80%, transparent);
}

/* TYPEWRITER (update steps count if you change the hero text length) */
.typewriter{
  display:inline-block;
  overflow:hidden;
  white-space:nowrap;
  border-right:3px solid var(--text);
  width:0;

  animation:
    typing 2.0s steps(36, end) forwards,
    blink .8s step-end infinite;
}
@keyframes typing{ from{ width:0 } to{ width:100% } }
@keyframes blink{ 50%{ border-color:transparent } }
@media (prefers-reduced-motion: reduce){
  .typewriter{ animation:none; width:auto; border-right:none; }
}

/* Section backgrounds */
.section-panel{ background: var(--section-panel-bg); }
.section-features{ background: var(--section-features-bg); }
.section-coming-soon{ background: var(--section-coming-bg); }
.section-signup{ background: var(--section-signup-bg); }

.section-title{
  text-align:center;
  margin-bottom:44px;
}

/* PANEL */
.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:18px;

  min-height: 75vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  padding:64px 34px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  text-align:center;
}
.panel-title{
  font-size: clamp(30px, 3.2vw, 44px);
  margin-bottom: 14px;
}
.panel-lead{
  font-size: clamp(20px, 2.0vw, 28px);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 26px;
}

/* WORD BADGE */
.word-badge{
  position:relative;
  display:inline-block;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px 34px;
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
  height: 78px;
  min-width: 20ch;
}

.word{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%) translateY(8px);
  opacity:0;
  filter: blur(2px);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  color: var(--text);
  white-space:nowrap;
}

.word.is-visible{
  opacity:1;
  transform: translate(-50%, -50%) translateY(0);
  filter: blur(0);
}

/* FEATURES (hover highlight) */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:22px;
}
@media (max-width: 980px){
  .feature-grid{ grid-template-columns: 1fr; }
}

.feature-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:28px 26px;
  text-align:center;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.feature-card:hover{
  background:#f5d57b;
  transform: translateY(-6px);
  box-shadow:0 20px 44px rgba(0,0,0,.16);
  border-color: color-mix(in oklab, var(--accent) 20%, var(--border) 80%);
}

.feature-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 14px;
  width:58px;
  height:58px;
  border-radius:14px;
  background:#fafafa;
  border:1px solid var(--border);
  font-size:28px;
}
.feature-desc{ margin:0; color:var(--muted); font-size:16px; }

/* Coming soon blurred wrapper */
.blur-wrapper{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}

/* This is the blurred “behind glass” layer */
.blurred-content{
  padding:26px 18px 30px;
  background: transparent;
  filter: blur(7px);
  transform: scale(1.01);
  opacity: .95;
}

/* Carousel (base) */
.carousel{
  position:relative;
  padding: 18px 12px 6px;
}
.carousel-track{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  scroll-behavior:smooth;
  padding: 18px 10px 26px;

  scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{ display:none; }

.book{
  flex: 0 0 260px;
  scroll-snap-align: center;
  transition: transform 240ms ease, filter 240ms ease, opacity 240ms ease;
  opacity: .78;
  filter: saturate(.9);
}
.book.is-center{
  transform: scale(1.06);
  opacity: 1;
  filter: none;
}

.book-cover{
  height: 320px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  padding: 22px;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.book-title{
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
}
.book-sub{
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* optional arrows */
.carousel-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
}
.carousel-btn.prev{ left: 8px; }
.carousel-btn.next{ right: 8px; }

@media (max-width: 980px){
  .book{ flex-basis: 220px; }
  .book-cover{ height: 290px; }
}

.blur-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.blur-overlay-inner{
  text-align:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:26px 22px;
  max-width: 520px;
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}
.blur-overlay-inner p{ margin-bottom:18px; }

.blur-wrapper::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(closest-side at 50% 50%,
      rgba(255,255,255,.00) 0%,
      rgba(255,255,255,.10) 55%,
      rgba(0,0,0,.08) 100%);
}

.signup{
  max-width: 560px;
  margin: 0 auto;
}
.signup-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.signup-form input[type=email]{
  flex:1;
  min-width: 240px;
  padding:12px 14px;
  border:1px solid var(--border);
  font-size:16px;
  font-family: inherit;
  border-radius:10px;
}
.success{
  display:none;
  margin-top:12px;
  color:var(--accent);
  font-weight:600;
  text-align:center;
}

footer{
  padding:44px 0;
  border-top:1px solid var(--border);
  background:#fff;
}
.footer-inner{
  color:var(--muted);
  font-size:14px;
  text-align:center;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:999;
}
.modal-box{
  background:#fff;
  max-width:420px;
  width:100%;
  padding:32px;
  border-radius:14px;
  box-shadow: 0 28px 60px rgba(0,0,0,.25);
}
.close{
  float:right;
  cursor:pointer;
  color:var(--muted);
  font-size:18px;
}
.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
.fineprint{
  font-size:14px;
  color:var(--muted);
  margin-top:12px;
}

.blurred-content .carousel-track{
  flex-wrap: wrap;
  overflow: hidden;          
  max-height: 270px;         
  justify-content: center;
  align-content: start;
  gap: 14px;
  padding: 28px 18px 34px;
}

.blurred-content .carousel-btn{ display:none; }

.blurred-content .book{
  flex: 0 0 92px;            
  opacity: .95;
  filter: saturate(1.05);
  transform: none !important; 
}

.blurred-content .book-cover{
  position: relative;
  height: 132px;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.10);

  background:
    radial-gradient(120px 90px at 20% 18%, rgba(178,8,8,.10), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #fbfbfb 0%, #eeeeee 100%);

  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  overflow: hidden;
}

.blurred-content .book-cover::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 18px;
  background: linear-gradient(90deg, rgba(178,8,8,.22), rgba(0,0,0,.06));
  opacity: .9;
}

.blurred-content .book-cover::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
}

.blurred-content .book-title{
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  color: #222;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}
.blurred-content .book-sub{
  font-size: 10.5px;
  line-height: 1.1;
  color: rgba(0,0,0,.55);
  position: relative;
  z-index: 1;
  margin: 0;
}

@media (max-width: 520px){
  .blurred-content .book{ flex-basis: 84px; }
  .blurred-content .book-cover{ height: 124px; }
}

@media (max-width: 600px){

  html, body{
    overflow-x: hidden;
  }

  .container{
    padding: 0 16px;
  }

  .section{
    padding: 56px 0;
  }

  nav{
    padding: 10px 0;
  }

  .nav-inner{
    gap: 12px;
  }

  .brand{
    font-size: 15px;
    line-height: 1.2;
  }

  .nav-inner .btn{
    width: auto;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero{
    min-height: auto;
  }

  .hero-inner{
    min-height: auto;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1{
    font-size: 32px;
    line-height: 1.12;
  }

  h2{
    font-size: 26px;
    line-height: 1.15;
  }

  h3{
    font-size: 20px;
    line-height: 1.2;
  }

  p{
    font-size: 16px;
    line-height: 1.55;
  }

  .typewriter{
    display: block;
    width: auto;
    overflow: visible;
    white-space: normal;
    border-right: none;
    animation: none;
  }

  .scroll-cue{
    margin-top: 18px;
    font-size: 13px;
  }

  .btn{
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .panel{
    min-height: auto;
    padding: 40px 20px;
    border-radius: 16px;
  }

  .panel-title{
    margin-bottom: 10px;
  }

  .panel-lead{
    font-size: 20px;
    margin-bottom: 18px;
  }

  /* Rotating word area: remove fixed sizing pressure */
  .word-badge{
    width: 100%;
    min-width: 0;
    height: 92px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .word{
    max-width: calc(100% - 24px);
    text-align: center;
    white-space: normal;
    font-size: 28px;
    line-height: 1.1;
  }

  .feature-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card{
    padding: 22px 18px;
  }

  .feature-icon{
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .blurred-content{
    padding: 16px 10px 18px;
  }

  .carousel{
    padding: 8px 0 0;
  }

  .carousel-track{
    gap: 12px;
    padding: 10px 6px 18px;
  }

  .book{
    flex: 0 0 72%;
    max-width: 260px;
  }

  .book-cover{
    height: 250px;
    padding: 18px;
  }

  .book-title{
    font-size: 24px;
  }

  .book-sub{
    font-size: 14px;
  }

  .carousel-btn{
    display: none;
  }

  .blur-overlay{
    padding: 16px;
  }

  .blur-overlay-inner{
    max-width: 100%;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .signup{
    max-width: 100%;
  }

  .signup-form{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .signup-form input[type="email"]{
    min-width: 0;
    width: 100%;
  }

  .modal{
    padding: 14px;
  }

  .modal-box{
    max-width: 100%;
    padding: 22px 18px;
    border-radius: 12px;
  }

  .modal-actions{
    flex-direction: column;
  }

  .fineprint{
    font-size: 13px;
    line-height: 1.45;
  }

  footer{
    padding: 30px 0;
  }
}