/* =====================================================
   RosaWrist — Landing Page
   Illuminated Manuscript × Contemplative Minimal
   ===================================================== */

/* ── Custom Properties ── */
:root {
  --bg-deep:        #140D1F;
  --bg-mid:         #1F122E;
  --gold:           #FFBF33;
  --gold-light:     #FFD94D;
  --gold-warm:      #FF991A;
  --brown:          #8C4014;
  --lavender:       #D9B3F2;
  --green:          #4DD999;
  --sky:            #80D9FF;
  --pink:           #FF99B3;

  --text-primary:   rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted:     rgba(255, 255, 255, 0.50);

  /* Watch frame defaults */
  --watch-w:        140px;
  --watch-h:        164px;
  --watch-r:        42px;
  --bezel:          8px;
  --bezel-bg:       #2A2035;
  --bezel-hi:       #3A2E4A;

  --section-gap:    7rem;
  --max-w:          1100px;
  --narrow-w:       680px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--text-primary);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--gold);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 500;
  color: var(--text-primary);
}

h4 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text-primary); font-weight: 500; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow { max-width: var(--narrow-w); }

section { padding: var(--section-gap) 0; }

/* ── Ornament Divider ── */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,191,51,0.25), transparent);
}

.ornament-divider span {
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ── CTA Button ── */
.btn-primary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-warm));
  color: #1A0800;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 24px rgba(255,191,51,0.25);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   WATCH FRAME — reusable CSS component
   ═══════════════════════════════════════════ */
.watch-frame {
  position: relative;
  width: var(--watch-w);
  height: var(--watch-h);
  background: var(--bezel-bg);
  border-radius: var(--watch-r);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 var(--bezel) var(--bezel-hi),
    0 0 0 calc(var(--bezel) + 1px) rgba(255,255,255,0.04),
    0 24px 64px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.watch-screen {
  position: absolute;
  top: var(--bezel);
  left: var(--bezel);
  right: var(--bezel);
  bottom: var(--bezel);
  background: #140C1F;
  border-radius: calc(var(--watch-r) - var(--bezel));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Crown — right side upper */
.watch-crown {
  position: absolute;
  right: calc(-1 * var(--bezel) - 5px);
  top: 36px;
  width: 9px;
  height: 30px;
  background: linear-gradient(180deg, var(--bezel-hi), var(--bezel-bg));
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Screenshot placeholder inside screen */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.placeholder-label {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.58rem;
  color: rgba(255,191,51,0.38);
  text-align: center;
  word-break: break-all;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem 5rem;
  animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.subhead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Hero watch container */
.hero-watch-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.watch-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(255,191,51,0.16) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero watch size override */
.watch-frame--hero {
  --watch-w:  162px;
  --watch-h:  189px;
  --watch-r:  48px;
  --bezel:    10px;
}

.hero-bead-motif {
  width: 86%;
  height: 86%;
}

/* ═══════════════════════════════════════════
   WHY IT MATTERS
   ═══════════════════════════════════════════ */
.why-section { text-align: center; }

.why-section h2 { margin-bottom: 1.5rem; }

.why-body {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
}

/* ═══════════════════════════════════════════
   HOW IT PRAYS — BENEFITS
   ═══════════════════════════════════════════ */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.benefit-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5.5rem;
}

.benefit-row:last-child { margin-bottom: 0; }

.benefit-row--text-right { flex-direction: row-reverse; }

.benefit-row--centered {
  justify-content: center;
  text-align: center;
}

.benefit-text {
  flex: 1;
  max-width: 440px;
}

.benefit-text--centered {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-numeral {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: 0.5rem;
  font-style: italic;
  line-height: 1;
}

.benefit-text h3 { margin-bottom: 0.75rem; }

.benefit-visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.watch-frame--benefit {
  --watch-w:  148px;
  --watch-h:  173px;
}

/* Haptic icon (benefit III) */
.haptic-icon {
  margin: 1.1rem 0;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════
   SCREENSHOT GALLERY
   ═══════════════════════════════════════════ */
.gallery-section h2.section-heading { margin-bottom: 3rem; }

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.watch-frame--gallery {
  --watch-w:  128px;
  --watch-h:  150px;
  --watch-r:  38px;
  --bezel:    7px;
}

.gallery-caption {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS — THREE STEPS
   ═══════════════════════════════════════════ */
.steps-section h2 { text-align: center; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.step-card {
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255,191,51,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.018);
  text-align: center;
}

.step-numeral {
  font-family: 'EB Garamond', serif;
  font-size: 3.25rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
  font-style: italic;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════
   PRIVACY
   ═══════════════════════════════════════════ */
.privacy-section { text-align: center; }

.privacy-section h2 { margin-bottom: 1rem; }

.privacy-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 2rem;
}

.privacy-details {
  text-align: left;
  border: 1px solid rgba(255,191,51,0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.018);
}

.privacy-details summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  user-select: none;
  transition: background 0.15s;
}

.privacy-details summary:hover { background: rgba(255,191,51,0.04); }

.privacy-details summary::-webkit-details-marker { display: none; }

.privacy-details summary::before {
  content: '▶';
  font-size: 0.55rem;
  transition: transform 0.2s;
  opacity: 0.7;
}

.privacy-details[open] summary::before { transform: rotate(90deg); }

.privacy-policy {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,191,51,0.08);
}

.privacy-policy p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.58);
  margin-bottom: 0.875rem;
  line-height: 1.75;
}

.privacy-policy p:last-child { margin-bottom: 0; }

.policy-meta {
  font-style: italic;
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
  margin-bottom: 1.25rem !important;
}

.privacy-policy a { color: var(--gold); }

.footnote-section {
  max-width: var(--narrow-w);
  margin: 0 auto;
  padding: 1.5rem;
}

.footnote-section p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */
.final-cta { text-align: center; }

.final-cta h2 { margin-bottom: 0.75rem; }

.final-cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
}

/* ═══════════════════════════════════════════
   ABOUT MODAL
   ═══════════════════════════════════════════ */
.about-modal {
  inset: 0;
  margin: auto;
  border: 1px solid rgba(255,191,51,0.15);
  border-radius: 20px;
  background: var(--bg-mid);
  color: var(--text-primary);
  max-width: 500px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

.about-modal::backdrop {
  background: rgba(10, 5, 18, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.about-modal h2 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.about-modal p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   BETA MODAL
   ═══════════════════════════════════════════ */
.beta-modal {
  inset: 0;
  margin: auto;
  border: 1px solid rgba(255,191,51,0.15);
  border-radius: 20px;
  background: var(--bg-mid);
  color: var(--text-primary);
  max-width: 500px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

.beta-modal::backdrop {
  background: rgba(10, 5, 18, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  padding: 2.5rem 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--text-primary); }

.beta-modal h2 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.modal-intro {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.testflight-steps {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,191,51,0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.testflight-steps p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
}

.testflight-steps ol {
  padding-left: 1.25rem;
  margin: 0;
}

.testflight-steps li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 0.25rem;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.form-field input:focus {
  border-color: rgba(255,191,51,0.4);
}

.btn-submit {
  align-self: stretch;
  text-align: center;
  margin-top: 0.25rem;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.modal-fine-print {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.beta-success {
  text-align: center;
  padding: 1.5rem 0;
}

.beta-success .success-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.beta-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.beta-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.footer-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 860px) {
  :root { --section-gap: 5rem; }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-content { max-width: 100%; }

  .subhead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta { align-items: center; }

  .benefit-row,
  .benefit-row--text-right {
    flex-direction: column !important;
    text-align: center;
    align-items: center;
    gap: 2.5rem;
  }

  .benefit-row--text-right .benefit-text { order: 1; }
  .benefit-row--text-right .benefit-visual { order: 2; }

  .benefit-text { max-width: 100%; }

  .benefit-text--centered { align-items: center; }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  :root { --section-gap: 4rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}
