/* By The Water — marketing site styles (landing + guides)
   Palette from the app: cream paper, ink serif, rust willow, gold sunrise. */

:root {
  --cream: #F7F5EE;
  --cream-2: #F0EBDD;
  --card: #FFFDF6;
  --ink: #2C241E;
  --ink-soft: #5A4B3E;
  --faint: #8A7A6A;
  --rust: #8B4523;
  --rust-2: #A9542B;
  --gold: #C99A5B;
  --gold-soft: #E9D9BC;
  --line: #E2DAC8;
  --shadow: 0 18px 40px -18px rgba(44, 36, 30, .28);
  --serif: "Crimson Text", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 1.155rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--rust); text-decoration-color: rgba(139, 69, 35, .35); text-underline-offset: 3px; }
a:hover { color: var(--rust-2); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.16; letter-spacing: -.012em; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 245, 238, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-family: var(--sans); font-size: .82rem; letter-spacing: .02em; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--rust); }
.nav-cta {
  background: var(--rust); color: var(--cream) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
  transition: background .18s ease;
}
.nav-cta:hover { background: var(--rust-2); }
@media (max-width: 720px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90rem 42rem at 78% -18rem, rgba(233, 217, 188, .8), transparent 60%),
    radial-gradient(60rem 30rem at -10% 8rem, rgba(240, 235, 221, .9), transparent 65%),
    var(--cream);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 44px; align-items: center; padding-top: 72px; padding-bottom: 40px;
}
.hero-kicker {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rust);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); margin-bottom: 6px; }
.hero h1 .accent { color: var(--rust); font-style: italic; font-weight: 600; }
.lede { font-size: 1.28rem; color: var(--ink-soft); max-width: 34em; margin: 14px 0 26px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  border-radius: 12px; padding: 10px 18px 10px 14px;
  font-family: var(--sans); line-height: 1.15;
  transition: transform .18s ease, background .18s ease;
}
.badge-btn:hover { background: #3D322A; color: var(--cream); transform: translateY(-2px); }
.badge-btn svg { width: 26px; height: 26px; flex: none; }
.badge-btn small { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.badge-btn span { font-size: 1.02rem; font-weight: 700; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-stats div { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.32rem; font-weight: 700; color: var(--ink); }

.hero-verse {
  margin-top: 26px; font-style: italic; color: var(--faint); font-size: 1.02rem; max-width: 32em;
}
.hero-verse cite { font-style: normal; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-left: 8px; }

.hero-phone { position: relative; justify-self: center; }
.hero-phone img {
  width: min(320px, 78vw); border-radius: 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: rotate(1.6deg);
}
.hero-phone::before {
  content: ""; position: absolute; inset: 12% -14% -6% -14%; z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 154, 91, .35), transparent 72%);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-phone { order: -1; }
  .hero-phone img { transform: none; }
}

/* ripple divider */
.ripple {
  height: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='38' viewBox='0 0 120 38'%3E%3Cpath d='M0 19 q15 -9 30 0 t30 0 t30 0 t30 0' fill='none' stroke='%23C99A5B' stroke-opacity='.42' stroke-width='1.6'/%3E%3Cpath d='M0 28 q15 -7 30 0 t30 0 t30 0 t30 0' fill='none' stroke='%238B4523' stroke-opacity='.18' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}

/* ---------- sections ---------- */

section { padding: 64px 0; }
.section-kicker {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.section-intro { color: var(--ink-soft); max-width: 46em; margin-bottom: 34px; }

/* screenshot rail */
.shots { padding: 26px 0 56px; }
.shot-rail {
  display: flex; gap: 20px; overflow-x: auto; padding: 18px 22px 26px;
  scroll-snap-type: x mandatory; max-width: calc(var(--wrap) + 44px); margin: 0 auto;
}
.shot-rail::-webkit-scrollbar { height: 8px; }
.shot-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.shot-rail figure { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shot-rail img {
  width: 230px; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 12px 28px -14px rgba(44, 36, 30, .3);
}
.shot-rail figcaption { font-family: var(--sans); font-size: .76rem; color: var(--faint); margin-top: 10px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px 24px; position: relative;
}
.step .num {
  font-family: var(--serif); font-style: italic; font-size: 2.4rem; font-weight: 600;
  color: var(--gold); line-height: 1; margin-bottom: 10px; display: block;
}
.step h3 { font-size: 1.24rem; margin-bottom: 8px; }
.step p { font-size: 1.02rem; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* word tiles */
.tiles-section { background: var(--cream-2); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 12px 16px; text-decoration: none; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.tile img { width: 56px; height: 56px; }
.tile strong { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.tile span { font-family: var(--sans); font-size: .72rem; color: var(--faint); letter-spacing: .02em; }

/* features */
.feat {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px; align-items: center; padding: 34px 0;
}
.feat + .feat { border-top: 1px solid var(--line); }
.feat:nth-child(even) .feat-media { order: 2; }
.feat h3 { font-size: 1.62rem; margin-bottom: 12px; }
.feat p { color: var(--ink-soft); }
.feat ul { margin: 14px 0 0 1.2em; color: var(--ink-soft); }
.feat li { margin-bottom: 6px; }
.feat-media img, .feat-media video {
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -16px rgba(44, 36, 30, .3);
  margin: 0 auto;
}
.feat-media img { max-height: 460px; width: auto; }
.feat-media video { width: min(340px, 88vw); }
@media (max-width: 820px) {
  .feat { grid-template-columns: 1fr; gap: 22px; }
  .feat:nth-child(even) .feat-media { order: 0; }
}

/* guides grid */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 18px; text-decoration: none; display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.guide-card .tag {
  font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rust);
}
.guide-card h3 { font-size: 1.22rem; color: var(--ink); }
.guide-card p { font-size: .98rem; color: var(--ink-soft); flex: 1; }
.guide-card .more { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--rust); }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary {
  font-family: var(--serif); font-weight: 700; font-size: 1.14rem;
  cursor: pointer; list-style: none; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-52%);
  color: var(--gold); font-size: 1.5rem; font-weight: 400; transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 1.05rem; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(50rem 26rem at 50% 120%, rgba(201, 154, 91, .3), transparent 70%),
    var(--ink);
  color: var(--cream); border-radius: 24px;
  padding: 56px 30px; text-align: center;
  max-width: var(--wrap); margin: 0 auto;
}
.cta-band img { margin: 0 auto 18px; border-radius: 16px; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.cta-band h2 em { color: var(--gold); }
.cta-band p { color: rgba(247, 245, 238, .78); max-width: 40em; margin: 0 auto 26px; }
.cta-band .store-badges { justify-content: center; }
.cta-band .badge-btn { background: var(--cream); color: var(--ink); }
.cta-band .badge-btn:hover { background: #fff; color: var(--ink); }

/* footer */
.site-footer { padding: 44px 0 54px; }
.footnote {
  font-family: var(--sans); font-size: .78rem; color: var(--faint);
  text-align: center; line-height: 2;
}
.footnote a { color: var(--ink-soft); }

/* ---------- guide pages ---------- */

.article-hero {
  background:
    radial-gradient(70rem 30rem at 85% -14rem, rgba(233, 217, 188, .75), transparent 60%),
    var(--cream-2);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 38px;
}
.crumbs { font-family: var(--sans); font-size: .78rem; color: var(--faint); margin-bottom: 20px; }
.crumbs a { color: var(--faint); }
.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); max-width: 21em; }
.article-hero .meta { font-family: var(--sans); font-size: .78rem; color: var(--faint); margin-top: 14px; }
.guide-symbol {
  display: inline-flex; width: 74px; height: 74px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.guide-symbol img { width: 46px; height: 46px; }

article.guide { max-width: 720px; margin: 0 auto; padding: 40px 22px 20px; }
article.guide h2 { font-size: 1.58rem; margin: 40px 0 14px; }
article.guide h3 { font-size: 1.22rem; margin: 26px 0 10px; }
article.guide p { margin-bottom: 16px; }
article.guide ul, article.guide ol { margin: 0 0 18px 1.35em; }
article.guide li { margin-bottom: 10px; }

.answer-first {
  font-size: 1.22rem; line-height: 1.66; color: var(--ink);
  background: var(--card); border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0; padding: 20px 24px; margin-bottom: 8px;
}

blockquote.verse {
  font-style: italic; font-size: 1.24rem; line-height: 1.6; color: var(--ink-soft);
  text-align: center; max-width: 30em; margin: 34px auto; position: relative; padding: 0 20px;
}
blockquote.verse::before {
  content: ""; display: block; width: 74px; height: 10px; margin: 0 auto 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='10' viewBox='0 0 74 10'%3E%3Cpath d='M1 5.5 q9 -5.5 18.5 0 t18.5 0 t18.5 0 t17 0' fill='none' stroke='%23C99A5B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
blockquote.verse cite {
  display: block; font-style: normal; font-family: var(--sans);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rust); margin-top: 12px;
}

/* word fact table (word-study guides) */
.word-facts {
  width: 100%; border-collapse: collapse; margin: 24px 0 8px;
  font-size: 1.02rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.word-facts th, .word-facts td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.word-facts tr:last-child th, .word-facts tr:last-child td { border-bottom: 0; }
.word-facts th {
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); width: 38%; font-weight: 700;
}
.word-facts .orig { font-size: 1.3rem; }
.table-scroll { overflow-x: auto; }

/* verse list w/ thumbs */
ul.symbol-list { list-style: none; margin-left: 0 !important; }
ul.symbol-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 10px !important;
}
ul.symbol-list img.thumb { flex: none; width: 54px; height: 54px; margin-top: 2px; }

/* study-in-app CTA box */
.study-box {
  background:
    radial-gradient(34rem 16rem at 90% -6rem, rgba(201, 154, 91, .28), transparent 70%),
    var(--cream-2);
  border: 1px solid var(--gold-soft); border-radius: 18px;
  padding: 28px 28px 26px; margin: 40px 0;
}
.study-box h2 { margin: 0 0 10px !important; font-size: 1.42rem !important; }
.study-box p { color: var(--ink-soft); }
.study-box .store-badges { margin-top: 18px; }

/* related */
.related {
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px;
}
.related h3 { margin: 0 0 12px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 8px; }
.related a { font-size: 1.06rem; }

/* guide-page CTA band spacing */
.guide-page section[aria-label] { padding: 30px 22px 64px; }

@media (max-width: 640px) {
  body { font-size: 1.08rem; }
  section { padding: 48px 0; }
  .cta-band { border-radius: 0; }
  .word-facts th { width: 42%; }
}
