/* ─────────────────────────────────────────
   Sacred Pause — Landing Page Styles
   ───────────────────────────────────────── */

/* Design tokens */
:root {
  --bg:          #F7F6F2;
  --accent:      #8FAF9D;
  --accent-dark: #6d9080;
  --secondary:   #7C9EB2;
  --highlight:   #D6C6B8;
  --text:        #333333;
  --text-muted:  #666666;
  --white:       #ffffff;
  --card-bg:     #fefefc;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(0,0,0,0.07);
  --font-sans:   -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;
  --nav-height:  64px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ───────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  z-index: 100;
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.09); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand svg { flex-shrink: 0; }

.nav-cta {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: var(--font-sans);
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

/* ── Section helpers ──────────────────── */
.section {
  padding: 80px 5vw;
}
.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.section-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Hero ─────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  padding-left: 5vw;
  padding-right: 5vw;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

/* Email form */
.email-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.email-row { display: flex; gap: 8px; }
.email-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--highlight);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.email-form input[type="email"]:focus { border-color: var(--accent); }
.email-form input[type="email"]::placeholder { color: #aaa; }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 13px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.form-note { font-size: 0.8rem; color: var(--text-muted); padding-left: 4px; }
.form-success {
  display: none;
  background: #edf4f0;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* iPhone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.device-iphone {
  width: 240px;
  height: 490px;
  background: #222;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
}
.device-iphone::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 26px;
  background: #111;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.device-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.screen-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--accent) 0%, var(--secondary) 50%, var(--highlight) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.screen-placeholder svg { opacity: 0.6; }
.screen-placeholder span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  line-height: 1.4;
}

/* ── Features ─────────────────────────── */
.features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  background: #edf4f0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Device Showcase ──────────────────── */
.showcase { background: var(--bg); }
.showcase .section-body { margin-bottom: 52px; }

/* Composite overlay: iPhone overlapping right side of iPad */
.devices-composite {
  position: relative;
  width: 612px;
  height: 380px;
  margin: 0 auto;
}
.devices-composite .device-ipad {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 494px;
  height: 380px;
  border-radius: 31px;
  padding: 0;
  border: 6px solid #2a2a2a;
  overflow: hidden;
  clip-path: inset(0 round 31px);
}
.devices-composite .device-ipad::after { width: 65px; bottom: 3px; }
.devices-composite .device-ipad .device-screen {
  border-radius: 25px;
  clip-path: inset(0 round 25px);
  background: var(--bg);
}
.devices-composite .device-ipad .device-screen img {
  object-fit: contain;
}
.devices-composite .device-iphone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 168px;
  height: 342px;
  border-radius: 30px;
  padding: 9px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.devices-composite .device-iphone::before {
  top: 9px;
  width: 48px;
  height: 18px;
}
.devices-composite .device-iphone .device-screen { border-radius: 23px; }

/* iPad mockup */
.device-ipad {
  width: 380px;
  height: 292px;
  background: #2a2a2a;
  border-radius: 24px;
  padding: 14px 14px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
}
.device-ipad::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  background: #444;
  border-radius: 2px;
}
.device-ipad .device-screen { border-radius: 12px; }

/* Apple Watch mockup */
.device-watch {
  width: 176px;
  height: 215px;
  background: #1a1a1a;
  border-radius: 50px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
}
/* Digital crown */
.device-watch::after {
  content: '';
  position: absolute;
  top: 50%; right: -5px;
  transform: translateY(-50%);
  width: 5px; height: 36px;
  background: #2a2a2a;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 0 2px rgba(0,0,0,0.4);
}
.device-watch .device-screen { border-radius: 42px; }

/* ── How It Works ─────────────────────── */
.how { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--secondary));
  opacity: 0.4;
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  width: 52px; height: 52px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Pricing ──────────────────────────── */
.pricing { background: var(--bg); }
.pricing-table {
  margin-top: 48px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  max-width: 680px;
}
.pricing-header {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.pricing-header > div, .pricing-row > div {
  padding: 14px 20px;
}
.pricing-header > div:not(:first-child),
.pricing-row > div:not(:first-child) {
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9375rem;
  color: var(--text);
}
.pricing-row:nth-child(even) { background: #fafaf8; }
.pricing-row > div:not(:first-child) {
  text-align: center;
  border-left: 1px solid rgba(0,0,0,0.06);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.check { color: var(--accent); font-size: 1rem; font-weight: 700; }
.pricing-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Privacy ──────────────────────────── */
.privacy-band {
  background: var(--highlight);
  padding: 72px 5vw;
  text-align: center;
}
.privacy-band .section-title { color: var(--text); }
.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.privacy-list li {
  font-size: 0.9375rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 500px;
  text-align: left;
}
.privacy-list li::before {
  content: '✦';
  color: var(--accent-dark);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
}

/* ── Footer CTA ───────────────────────── */
.footer-cta {
  background: var(--white);
  padding: 80px 5vw;
  text-align: center;
}
.footer-cta .section-title { margin-bottom: 12px; }
.footer-cta .section-body { margin: 0 auto 32px; }
.footer-cta .email-form {
  align-items: center;
  margin: 0 auto;
}
.footer-cta .email-row { justify-content: center; }

/* ── Footer ───────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent-dark); }

/* ── Responsive ───────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  /* Composite: scale to fit narrower screens */
  .devices-composite { width: 500px; height: 309px; }
  .devices-composite .device-ipad { width: 403px; height: 309px; border-radius: 26px; padding: 0; border: 5px solid #2a2a2a; overflow: hidden; clip-path: inset(0 round 26px); }
  .devices-composite .device-ipad::after { width: 53px; bottom: 2px; }
  .devices-composite .device-ipad .device-screen { border-radius: 21px; clip-path: inset(0 round 21px); }
  .devices-composite .device-iphone { width: 135px; height: 275px; border-radius: 24px; padding: 8px; }
  .devices-composite .device-iphone::before { width: 39px; height: 15px; top: 8px; }
  .devices-composite .device-iphone .device-screen { border-radius: 18px; }
}
@media (max-width: 600px) {
  .section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
  .email-row { flex-direction: column; }
  .email-form input[type="email"],
  .btn-primary { width: 100%; text-align: center; }
  .pricing-header, .pricing-row {
    grid-template-columns: 1fr 90px 90px;
  }
  footer { flex-direction: column; align-items: flex-start; }
  /* Composite: compact mobile size */
  .devices-composite { width: 386px; height: 239px; }
  .devices-composite .device-ipad { width: 312px; height: 239px; border-radius: 20px; padding: 0; border: 5px solid #2a2a2a; overflow: hidden; clip-path: inset(0 round 20px); }
  .devices-composite .device-ipad::after { width: 41px; bottom: 2px; }
  .devices-composite .device-ipad .device-screen { border-radius: 15px; clip-path: inset(0 round 15px); }
  .devices-composite .device-iphone { width: 104px; height: 212px; border-radius: 21px; padding: 8px; }
  .devices-composite .device-iphone::before { width: 30px; height: 12px; top: 8px; }
  .devices-composite .device-iphone .device-screen { border-radius: 15px; }
}
