/* GHSBible marketing site — calm scholarly palette */

:root {
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --text: #1c2433;
  --text-muted: #5c677a;
  --accent: #2f4f6f;
  --accent-hover: #243d57;
  --line: #dde3ea;
  --line-soft: #e8edf2;
  --warm: #9a7b4f;
  --warm-soft: rgba(154, 123, 79, 0.12);
  --shadow: 0 1px 2px rgba(28, 36, 51, 0.06), 0 8px 24px rgba(28, 36, 51, 0.05);
  --radius: 12px;
  --max: 68rem;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 79, 111, 0.06), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(154, 123, 79, 0.05), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner,
.page-main,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__mark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.brand__suffix {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 520px) {
  .brand__suffix {
    display: none;
  }
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.page-main {
  padding-block: 2.5rem 4rem;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 1rem 2.5rem;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #6f5735;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  border-color: #c8d2dc;
  color: var(--text);
}

.store-badge svg {
  flex: 0 0 auto;
}

.store-badge__label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge__small {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.store-badge__big {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero__panel {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 250, 0.95));
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero__panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.1rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--warm);
}

.section {
  margin-top: 3rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.25rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.15rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.prose .lede {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--warm);
  background: var(--warm-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: #4a4032;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.7);
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.85rem;
    font-size: 0.875rem;
  }

  .store-badge {
    flex: 1 1 100%;
  }
}

/* --- Stage 1 homepage, contact, footer --- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__copy {
  max-width: 42rem;
}

.hero__tagline {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.section__intro {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.section__principle {
  margin: 0;
  color: var(--text-muted);
}

.platform-pair {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.screenshot-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.platform-label {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--line-soft);
  border-bottom: 1px solid var(--line);
}

.screenshot-placeholder {
  min-height: 14rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--line-soft),
      var(--line-soft) 10px,
      var(--bg-elevated) 10px,
      var(--bg-elevated) 20px
    );
}

.screenshot-placeholder__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.screenshot-placeholder__note {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.screenshot-placeholder__hint {
  margin: 0;
  max-width: 18rem;
  margin-inline: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.journey {
  margin-top: 3.5rem;
  display: grid;
  gap: 3rem;
}

.journey-step {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.journey-step__label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm);
}

.journey-step h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.journey-step p {
  margin: 0;
  max-width: 34rem;
  color: var(--text-muted);
}

.screenshot-frame--journey {
  max-width: 20rem;
  justify-self: center;
}

.credibility {
  margin-top: 3.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.96));
  box-shadow: var(--shadow);
}

.credibility__headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  letter-spacing: -0.02em;
}

.credibility__body {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.closing-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.closing-cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.closing-cta__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.closing-cta .store-row {
  justify-content: center;
}

.store-badge--coming-soon {
  cursor: default;
  border-style: dashed;
  color: var(--text-muted);
  box-shadow: none;
}

.store-badge--coming-soon:hover {
  transform: none;
  border-color: var(--line);
  color: var(--text-muted);
}

.store-row--compact .store-badge {
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
}

.store-row--compact .store-badge__big {
  font-size: 0.85rem;
}

.site-footer__inner {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.site-footer__name {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--text);
}

.site-footer__abbr {
  font-weight: 500;
  color: var(--text-muted);
}

.site-footer__tagline {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__android {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.android-status--available {
  color: var(--text);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feedback-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.feedback-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.feedback-section > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.form-status--success {
  color: #1f5a3a;
}

.form-status--error {
  color: #8a2f2f;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .journey-step {
    grid-template-columns: 1fr minmax(14rem, 18rem);
    gap: 2rem;
  }

  .journey-step--reverse {
    grid-template-columns: minmax(14rem, 18rem) 1fr;
  }

  .journey-step--reverse .journey-step__copy {
    order: 2;
  }

  .journey-step--reverse .screenshot-frame--journey {
    order: 1;
  }

  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-badge {
    transition: none;
  }
}
