/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F1E6;
  color: #262220;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: #1B1B23;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.center { text-align: center; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A9824C;
  font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

/* subtle paper grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27,27,35,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.wordmark {
  font-family: ui-serif, Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: #1B1B23;
  letter-spacing: -.01em;
}
.wordmark em { font-style: italic; color: #A9824C; }
.header-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.header-nav a:not(.btn) { opacity: .78; transition: opacity .15s; }
.header-nav a:not(.btn):hover { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1B1B23; color: #F7F1E6;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { background: #33333f; transform: translateY(-1px); }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-gold { background: #C9A560; color: #1B1B23; }
.btn-gold:hover { background: #d8b877; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 110px; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero h1 {
  font-size: 58px; letter-spacing: -.015em; margin-bottom: 22px;
}
.hero .lede { font-size: 19px; color: #4a453e; max-width: 480px; margin-bottom: 32px; }

.signup-form { display: flex; gap: 10px; max-width: 440px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 0;
  padding: 14px 18px; border-radius: 999px;
  border: 1.5px solid rgba(27,27,35,.18); background: #fff;
  font-size: 16px; color: #1B1B23;
  outline: none; transition: border-color .15s;
}
.signup-form input[type="email"]:focus { border-color: #A9824C; }
.form-note { font-size: 13.5px; color: #8a8378; margin-top: 12px; }

.form-status { font-size: 14.5px; margin-top: 12px; display: none; }
.form-status.visible { display: block; }
.form-status.success { color: #3f7a4e; }
.form-status.error { color: #b4483a; }

/* ---------- iPad mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.ipad-frame {
  width: 100%; max-width: 480px;
  background: linear-gradient(160deg, #2b2b33, #16161b);
  border-radius: 34px;
  padding: 16px;
  box-shadow: 0 40px 80px -30px rgba(27,27,35,.45), 0 10px 30px -10px rgba(27,27,35,.3);
  position: relative;
}
.ipad-hero { transform: rotate(-2.2deg); }
.ipad-cam {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: #050506; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.ipad-screen {
  background: #FBF7EE;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3.05;
  display: flex; flex-direction: column;
}
.app-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(27,27,35,.08);
  background: #F3ECDC;
}
.app-chrome-title { font-size: 12.5px; font-weight: 600; color: #6b6459; letter-spacing: .01em; }
.app-chrome-dot { width: 9px; height: 9px; border-radius: 50%; background: #C9A560; }
.app-chrome-dot.ghost { background: transparent; }

.page { padding: 22px 24px 26px; flex: 1; position: relative; }
.verse-ref {
  font-family: ui-serif, Georgia, serif; font-weight: 600; font-size: 15px;
  color: #1B1B23; margin-bottom: 10px;
}
.verse-ref-sub { font-family: -apple-system, sans-serif; font-weight: 500; font-size: 11px; color: #a39a89; margin-left: 8px; }
.verse-text { font-family: ui-serif, Georgia, serif; font-size: 14.5px; color: #33302a; position: relative; margin-bottom: 10px; }

.ink-highlight {
  background: linear-gradient(120deg, rgba(201,165,96,.38), rgba(201,165,96,.38));
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 1px 2px; border-radius: 2px;
}
.ink-highlight-gold {
  background: linear-gradient(120deg, rgba(180,207,180,.45), rgba(180,207,180,.45));
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 1px 2px; border-radius: 2px;
}
.note-flag { color: #A9824C; font-size: 12px; margin-left: 2px; }

.margin-note { margin: 14px 0 8px; opacity: .92; }
.ink-svg { width: 100%; height: auto; max-width: 210px; }
.margin-caption {
  display: block; font-family: ui-serif, Georgia, serif; font-style: italic;
  font-size: 11.5px; color: #7d7669; margin-top: 2px;
}

.audio-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1B1B23; color: #F7F1E6;
  padding: 9px 16px 9px 14px; border-radius: 999px;
  font-size: 11.5px; margin: 6px 0 12px;
}
.audio-chip-standalone { display: flex; width: 100%; margin: 10px 0; }
.audio-play {
  width: 20px; height: 20px; border-radius: 50%; background: #C9A560; color: #1B1B23;
  display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0;
}
.audio-wave { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.audio-wave i {
  display: block; width: 2.5px; background: #C9A560; border-radius: 2px; opacity: .85;
}
.audio-wave i:nth-child(1){height:40%} .audio-wave i:nth-child(2){height:80%}
.audio-wave i:nth-child(3){height:55%} .audio-wave i:nth-child(4){height:100%}
.audio-wave i:nth-child(5){height:65%} .audio-wave i:nth-child(6){height:35%}
.audio-wave i:nth-child(7){height:85%} .audio-wave i:nth-child(8){height:50%}
.audio-wave i:nth-child(9){height:70%} .audio-wave i:nth-child(10){height:45%}
.audio-label { font-weight: 600; white-space: nowrap; }

.media-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.photo-pin, .diagram-pin {
  display: flex; flex-direction: column; gap: 6px;
}
.photo-swatch {
  width: 104px; height: 72px; border-radius: 10px;
  background: linear-gradient(150deg, #E7C9A6, #C97F5C 60%, #7C4A3B);
  box-shadow: 0 6px 16px -6px rgba(27,27,35,.35);
}
.photo-caption { font-size: 10.5px; color: #8a8378; font-style: italic; font-family: ui-serif, Georgia, serif; }
.diagram-pin .ink-svg { width: 104px; }

.pencil {
  position: absolute; right: 4%; bottom: 6%;
  width: 150px; height: 14px; transform: rotate(48deg);
  z-index: 5;
}
.pencil-body {
  width: 120px; height: 14px; border-radius: 7px;
  background: linear-gradient(180deg, #f3f3f3, #d8d8db);
  box-shadow: 0 6px 14px -4px rgba(27,27,35,.35);
}
.pencil-tip {
  position: absolute; left: -16px; top: 1px;
  width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-right: 18px solid #f3f3f3;
}
.pencil-tip::after {
  content: ""; position: absolute; left: 12px; top: -3px;
  width: 0; height: 0;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  border-right: 6px solid #C9A560;
}

/* ---------- Tradition ---------- */
.tradition { padding: 60px 0 110px; }
.tradition-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.tradition h2 { font-size: 36px; margin-bottom: 26px; }
.tradition p { font-size: 17.5px; color: #4a453e; }

/* ---------- How it works ---------- */
.how { padding: 90px 0; background: #1B1B23; color: #F7F1E6; }
.how .eyebrow { color: #C9A560; }
.how h2 { color: #F7F1E6; font-size: 38px; margin-bottom: 56px; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.step {
  background: rgba(247,241,230,.05);
  border: 1px solid rgba(247,241,230,.1);
  border-radius: 18px; padding: 28px 24px;
}
.step-num { display: block; font-family: ui-serif, Georgia, serif; font-size: 15px; color: #C9A560; margin-bottom: 14px; }
.step h3 { color: #F7F1E6; font-size: 19px; margin-bottom: 10px; }
.step p { color: rgba(247,241,230,.68); font-size: 14.5px; margin: 0; }

/* ---------- Features ---------- */
.features { padding: 110px 0; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  margin-bottom: 130px;
}
.feature:last-child { margin-bottom: 0; }
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-visual { order: 1; }
.feature h2 { font-size: 32px; margin-bottom: 18px; }
.feature-copy p { color: #4a453e; font-size: 16.5px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checklist li {
  font-size: 15px; color: #33302a; font-weight: 500;
  padding-left: 26px; position: relative;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #A9824C; font-weight: 700;
}
.feature-visual .ipad-frame { max-width: 440px; margin: 0 auto; }

/* ---------- Lasting ---------- */
.lasting { padding: 100px 0; background: #F3ECDC; }
.lasting-inner { max-width: 780px; margin: 0 auto; }
.lasting h2 { font-size: 36px; margin-bottom: 22px; }
.lasting-lede { font-size: 17.5px; color: #4a453e; margin: 0 auto 56px; max-width: 620px; }
.lasting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.lasting-item h4 { font-size: 17px; margin-bottom: 8px; }
.lasting-item p { font-size: 14.5px; color: #6b6459; margin: 0; }

/* ---------- Translations ---------- */
.translations { padding: 90px 0 100px; }
.translations h2 { font-size: 32px; margin-bottom: 40px; }
.translation-badges {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.translation-badge-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.translation-badge {
  font-family: ui-serif, Georgia, serif; font-weight: 600; font-size: 17px;
  padding: 16px 34px; border-radius: 14px;
  background: #fff; border: 1.5px dashed rgba(27,27,35,.18);
  opacity: .75;
}
.translation-badge-primary {
  background: #1B1B23; color: #F7F1E6; border: 1.5px solid #1B1B23;
  box-shadow: 0 10px 24px -14px rgba(27,27,35,.4);
  opacity: 1;
}
.translation-step {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #A9824C; font-weight: 600;
}
.translations-note { color: #8a8378; font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta { padding: 110px 0; background: #1B1B23; text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta h2 { color: #F7F1E6; font-size: 38px; margin-bottom: 16px; }
.cta p { color: rgba(247,241,230,.68); font-size: 16.5px; margin-bottom: 32px; }
.signup-form-dark { margin: 0 auto; }
.signup-form-dark input[type="email"] {
  background: rgba(247,241,230,.06); border-color: rgba(247,241,230,.2); color: #F7F1E6;
}
.signup-form-dark input[type="email"]::placeholder { color: rgba(247,241,230,.4); }
.form-note-dark { color: rgba(247,241,230,.45); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0; border-top: 1px solid rgba(27,27,35,.08); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.wordmark-footer { font-size: 19px; }
.footer-tagline { color: #8a8378; font-size: 14px; margin: 8px 0 0; }
.footer-meta { text-align: right; font-size: 13.5px; color: #8a8378; }
.footer-meta p { margin: 0 0 4px; }
.footer-meta a:hover { color: #A9824C; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { font-size: 44px; }
  .hero-visual { order: -1; }
  .ipad-hero { max-width: 380px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature-reverse .feature-copy { order: 1; }
  .feature-reverse .feature-visual { order: 2; }
  .lasting-grid { grid-template-columns: 1fr; gap: 34px; }
  .header-nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 36px; }
  .pencil { right: -2%; bottom: 3%; width: 120px; }
  .pencil-body { width: 96px; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .translation-badges { gap: 12px; }
  .translation-badge { padding: 13px 24px; font-size: 15px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
