/* RhemaNote marketing site. Same design language as the app: cream paper, warm
   ink, olive and pine, Newsreader for the reflective voice, Hanken Grotesk for
   chrome. No dashes in copy, no emojis, warmth without noise. */

:root {
  --cream: #FBF8F2;
  --paper: #F3EDE2;
  --ink: #251C15;
  --ink-soft: #584A3E;
  --olive: #5C6B43;
  --pine: #37514A;
  --slate: #41525A;
  --gold: #BC7A2C;
  --line: #E4DCCE;
  --cream-text: #F6ECD9;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body::after {
  /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h1 em, h2 em { font-style: italic; color: var(--olive); }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--cream-text); opacity: 0.75; }

/* reveals: JS adds .js so content is never hidden without the observer */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .stagger span { opacity: 1; transform: none; animation: none; }
  .js .hero-phone { animation: none; }
  .ribbon-track { animation: none; }
}

/* buttons and forms */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  border: none; border-radius: 999px; padding: 0.85rem 1.6rem; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 28, 21, 0.18); }
.btn-ink { background: var(--ink); color: var(--cream-text); }
.btn-olive { background: var(--olive); color: var(--cream-text); }
.btn-cream { background: var(--cream-text); color: var(--ink); }
.btn-small { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

.waitlist { display: flex; gap: 0.6rem; margin-top: 1.6rem; max-width: 460px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 0.95rem;
  padding: 0.85rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.75); color: var(--ink);
}
.waitlist input[type="email"]:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-done { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--olive); margin-top: 1.6rem; }
.waitlist-error { font-size: 0.85rem; color: #8C3B2E; margin-top: 0.5rem; }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.1s linear; }

/* hero headline stagger: words rise on load */
.js .stagger span { display: inline-block; opacity: 0; transform: translateY(0.55em); animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.js .stagger span:nth-child(1) { animation-delay: 0.05s; }
.js .stagger span:nth-child(2) { animation-delay: 0.13s; }
.js .stagger span:nth-child(3) { animation-delay: 0.21s; }
.js .stagger span:nth-child(4) { animation-delay: 0.29s; }
.js .stagger span:nth-child(5) { animation-delay: 0.37s; }
.js .stagger span:nth-child(6) { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* hero phone idle float */
.js .hero-phone { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(-3deg); }
  50% { transform: translateY(calc(-50% - 10px)) rotate(-2.4deg); }
}
.js .hero-art:hover .hero-phone { animation-play-state: paused; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 2rem;
  padding: 1rem clamp(1.2rem, 5vw, 4rem);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(37, 28, 21, 0.08); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-brand { margin-right: auto; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  max-width: 1280px; margin: 0 auto;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); margin-top: 1.4rem; max-width: 34rem; }
.hero-note { font-size: 0.82rem; color: var(--ink-soft); opacity: 0.75; margin-top: 0.7rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.7rem; list-style: none; }
.hero-facts li {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pine);
  display: flex; align-items: center; gap: 0.45rem;
}
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }

.hero-art { position: relative; min-height: 540px; }
.hero-painting {
  position: absolute; inset: 6% 0 6% 12%;
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(37, 28, 21, 0.28);
}
.hero-painting img { width: 100%; height: 100%; object-fit: cover; }
.hero-painting::after { content: ""; position: absolute; inset: 0; background: rgba(37, 28, 21, 0.18); }
/* device frame: bezel, screen radius, dynamic island. Screenshots already
   carry the iOS status bar and home indicator, so framed they read as
   hardware, not floating rectangles. */
.phone {
  position: relative; display: block;
  padding: clamp(8px, 3.2%, 12px); border-radius: 13.5%/6.4%;
  background: linear-gradient(150deg, #453b31, #171310 55%, #2c251e);
  box-shadow: inset 0 0 0 1.5px rgba(246, 236, 217, 0.14),
              0 34px 70px rgba(37, 28, 21, 0.4);
}
.phone img { width: 100%; border-radius: 11%/5.3%; display: block; }
.phone::before {
  content: ""; position: absolute; z-index: 2;
  top: 5.2%; left: 50%; transform: translateX(-50%);
  width: 25%; height: 2.6%; border-radius: 999px; background: #0a0806;
}
.phone::after {
  /* glass edge catch-light down the left of the screen */
  content: ""; position: absolute; inset: 3% 4%; border-radius: 11%/5.3%;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.09), transparent 28%);
}

.hero-phone {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(-3deg);
  width: min(62%, 300px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-art:hover .hero-phone { transform: translateY(-50%) rotate(-1deg) scale(1.015); }

/* ribbon */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); padding: 0.9rem 0; background: var(--paper); }
.ribbon-track { display: flex; gap: 2.4rem; width: max-content; animation: ribbon 26s linear infinite; }
.ribbon-track span {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft);
}
.ribbon-track i { color: var(--gold); font-style: normal; font-size: 1.2rem; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* the loop */
.loop { max-width: 1280px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem) 1rem; }
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.loop-card {
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.7rem; position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.loop-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(37, 28, 21, 0.1); }
.loop-num {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--gold);
}
.loop-card h3 { font-size: 1.7rem; margin: 0.8rem 0 0.6rem; }
.loop-card p { font-size: 0.95rem; color: var(--ink-soft); }
.loop-card:nth-child(1) { border-top: 3px solid var(--olive); }
.loop-card:nth-child(2) { border-top: 3px solid var(--gold); }
.loop-card:nth-child(3) { border-top: 3px solid var(--pine); }

/* stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 3.4rem; padding: 2.2rem 1rem; border-block: 1px solid var(--line);
}
.stat { text-align: center; }
.stat strong {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--pine); display: block; font-variant-numeric: tabular-nums;
}
.stat span {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 0.3rem;
}

/* voices */
.voices { max-width: 1280px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem); text-align: center; }
.voices-note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.7; margin-top: 0.6rem; }
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.8rem; text-align: left; }
.voice {
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative;
}
.voice::before {
  content: "\201C"; font-family: var(--serif); font-size: 3.4rem; line-height: 0;
  color: var(--gold); position: absolute; top: 2.2rem; left: 1.6rem; opacity: 0.5;
}
.voice:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(37, 28, 21, 0.1); }
.voice blockquote { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--ink); padding-top: 1rem; }
.voice figcaption { display: flex; flex-direction: column; gap: 0.1rem; margin-top: auto; }
.voice-name { font-weight: 600; font-size: 0.9rem; }
.voice-meta { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }

/* features */
.features { max-width: 1280px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem); display: grid; gap: clamp(4rem, 8vw, 7rem); }
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }
.feature-copy p { margin-top: 1.2rem; color: var(--ink-soft); max-width: 33rem; }
.feature-fine { font-family: var(--mono); font-size: 0.72rem !important; letter-spacing: 0.06em; color: var(--pine) !important; }
.feature-shot { position: relative; display: flex; justify-content: center; }
.feature-shot .phone {
  width: min(74%, 300px);
  box-shadow: inset 0 0 0 1.5px rgba(246, 236, 217, 0.14),
              0 26px 60px rgba(37, 28, 21, 0.3);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:nth-child(odd) .feature-shot .phone { transform: rotate(2deg); }
.feature:nth-child(even) .feature-shot .phone { transform: rotate(-2deg); }
.feature-shot:hover .phone { transform: rotate(0deg) scale(1.02); }
.feature-shot::before {
  content: ""; position: absolute; inset: 12% 6%; z-index: -1; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line);
}

/* trust band */
.trust { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 4rem); }
.trust-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trust::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(24, 32, 29, 0.82), rgba(24, 32, 29, 0.88)); }
.trust-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; color: var(--cream-text); }
.trust-inner h2 em { color: var(--cream-text); opacity: 0.85; }
.trust-inner p { margin-top: 1.4rem; opacity: 0.88; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem); text-align: center; }
.faq-list { margin-top: 2.4rem; text-align: left; display: grid; gap: 0.7rem; }
.faq details {
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.4rem; transition: background 0.2s ease;
}
.faq details[open] { background: rgba(255, 255, 255, 0.85); }
.faq summary {
  font-family: var(--serif); font-size: 1.15rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 1.1rem; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.8rem; font-size: 0.95rem; color: var(--ink-soft); }

/* closing */
.closing { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 4rem); }
.closing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(28, 24, 19, 0.72), rgba(28, 24, 19, 0.86)); }
.closing-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; text-align: center; color: var(--cream-text); }
.closing-inner img { margin: 0 auto 1.6rem; }
.closing-inner h2 em { color: var(--cream-text); opacity: 0.85; }
.closing-inner p { margin-top: 1rem; opacity: 0.85; }
.closing .waitlist { margin: 1.8rem auto 0; }
.closing .waitlist input[type="email"] { background: rgba(251, 248, 242, 0.14); border-color: rgba(246, 236, 217, 0.3); color: var(--cream-text); }
.closing .waitlist input[type="email"]::placeholder { color: rgba(246, 236, 217, 0.55); }
.closing .waitlist-done { color: var(--cream-text); }

/* footer */
.footer { background: var(--ink); color: var(--cream-text); text-align: center; padding: 3.2rem 1.4rem 2.4rem; }
.footer p { font-family: var(--serif); font-style: italic; opacity: 0.8; margin-top: 0.9rem; }
.footer img { margin: 0 auto; }
.footer nav { display: flex; justify-content: center; gap: 1.8rem; margin-top: 1.4rem; }
.footer nav a { color: var(--cream-text); opacity: 0.75; text-decoration: none; font-size: 0.88rem; }
.footer nav a:hover { opacity: 1; }
.footer-fine { font-family: var(--mono) !important; font-style: normal !important; font-size: 0.66rem; letter-spacing: 0.08em; opacity: 0.45 !important; margin-top: 1.6rem !important; }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 3.5rem clamp(1.2rem, 5vw, 3rem) 5rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.4rem; }
.legal .updated { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.98rem; }
.legal ul { padding-left: 1.3rem; margin-top: 0.5rem; }
.legal a { color: var(--olive); }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 480px; order: -1; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-shot { order: 2; }
  .loop-grid, .voices-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 0.6rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem clamp(1.2rem, 5vw, 4rem); font-size: 1rem; }
}
@media (max-width: 560px) {
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
}
