:root {
  --bg: #eef5fc;
  --surface: #ffffff;
  --surface-alt: #f7fafd;
  --text: #1b2a3d;
  --text-muted: #5a6f85;
  --text-dim: #8aa0b5;
  --accent: #3b8ede;
  --accent-dark: #2b74c9;
  --accent-soft: #e3f1fb;
  --accent-glow: rgba(59, 142, 222, 0.14);
  --border: #d4e4f2;
  --faith: #5b7fd4;
  --faith-soft: #edf2fb;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(27, 42, 61, 0.06);
  --shadow-md: 0 12px 40px rgba(27, 42, 61, 0.08);
  --shadow-lg: 0 24px 64px rgba(27, 42, 61, 0.1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(91, 127, 212, 0.08), transparent 60%),
    var(--bg);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(238, 245, 252, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 228, 242, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent-dark);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.nav-cta {
  margin-left: 4px;
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(59, 142, 222, 0.28);
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
}

.menu-bar + .menu-bar {
  margin-top: 5px;
}

/* Hero */

.hero {
  padding: 56px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

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

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(59, 142, 222, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-points svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* iPhone device */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.hero-glow {
  position: absolute;
  inset: 5% 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  z-index: 0;
}

.iphone-device {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 32px 48px rgba(27, 42, 61, 0.18)) drop-shadow(0 8px 16px rgba(27, 42, 61, 0.08));
}

.iphone-frame {
  position: relative;
  width: 300px;
  padding: 11px;
  background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 35%, #2c2c2e 65%, #1c1c1e 100%);
  border-radius: 52px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.iphone-btn {
  position: absolute;
  background: linear-gradient(90deg, #2a2a2c, #444446, #2a2a2c);
  border-radius: 2px;
  z-index: 2;
}

.iphone-btn--silent {
  left: -2px;
  top: 108px;
  width: 3px;
  height: 28px;
}

.iphone-btn--vol-up {
  left: -2px;
  top: 152px;
  width: 3px;
  height: 44px;
}

.iphone-btn--vol-down {
  left: -2px;
  top: 206px;
  width: 3px;
  height: 44px;
}

.iphone-btn--power {
  right: -2px;
  top: 168px;
  width: 3px;
  height: 72px;
}

.iphone-screen {
  position: relative;
  height: 620px;
  background: var(--bg);
  border-radius: 42px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.iphone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.island-cam {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2a4a, #0a0a12 70%);
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.15);
}

.ios-status {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ios-status-icons svg {
  height: 11px;
  width: auto;
  color: var(--text);
}

.ios-battery {
  width: 24px !important;
  height: 11px !important;
}

.ios-home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  background: var(--text);
  border-radius: 99px;
  opacity: 0.18;
  z-index: 10;
}

/* In-app UI replica */

.app-ui {
  position: absolute;
  inset: 38px 0 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-ui-scroll {
  flex: 1;
  overflow: hidden;
  padding: 4px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-brand img {
  border-radius: 6px;
  flex-shrink: 0;
}

.app-brand-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
}

.app-brand-sub {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.app-settings {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}

.app-intro {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.ui-section-label {
  margin: 2px 0 0;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ui-card {
  position: relative;
  padding: 9px 9px 9px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.ui-card-bar {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
}

.ui-card--fitness {
  border-color: rgba(59, 142, 222, 0.33);
}

.ui-card--fitness .ui-card-bar {
  background: var(--accent);
}

.ui-card--faith {
  border-color: rgba(91, 127, 212, 0.33);
}

.ui-card--faith .ui-card-bar {
  background: var(--faith);
}

.ui-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.ui-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.ui-card-body {
  margin: 0;
  font-size: 0.58rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.ui-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent);
}

.ui-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.5rem;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}

.ui-badge--fitness {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #9ec8ea;
}

.ui-badge--faith {
  color: var(--faith);
  background: var(--faith-soft);
  border-color: #c8d6f2;
}

.ui-badge--default {
  color: var(--text-muted);
  background: var(--surface-alt);
  border-color: var(--border);
}

.ui-card--alarm {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ui-alarm-badges {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}

.ui-alarm-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
}

.ui-alarm-time {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
  line-height: 1.1;
}

.ui-alarm-meta,
.ui-alarm-ringtone {
  font-size: 0.55rem;
  color: var(--text-dim);
}

.ui-alarm-task {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 1px;
}

.ui-alarm-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.ui-btn {
  display: block;
  text-align: center;
  padding: 6px 0;
  font-size: 0.58rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid;
}

.ui-btn--test {
  flex: 1;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: #9ec8ea;
}

.ui-btn--delete {
  flex: 1;
  color: #b83838;
  background: #fcecec;
  border-color: #f0c4c4;
}

.app-ui-footer {
  padding: 6px 14px 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.ui-btn--primary {
  width: 100%;
  padding: 9px 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(59, 142, 222, 0.28);
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(212, 228, 242, 0.6);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mode cards */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mode-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

.mode-icon svg {
  width: 22px;
  height: 22px;
}

.mode-card--fitness .mode-icon {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.mode-card--faith .mode-icon {
  color: var(--faith);
  background: var(--faith-soft);
}

.mode-card--private .mode-icon {
  color: var(--text-muted);
  background: var(--surface-alt);
}

.mode-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mode-card--fitness .mode-tag { color: var(--accent-dark); }
.mode-card--faith .mode-tag { color: var(--faith); }
.mode-card--private .mode-tag { color: var(--text-muted); }

.mode-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.mode-card > p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.mode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mode-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}

.mode-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.mode-card--faith .mode-list li::before { background: var(--faith); }
.mode-card--private .mode-list li::before { background: var(--text-dim); }

/* CTA */

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(43, 116, 201, 0.35);
  color: #fff;
}

.cta-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-copy p {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.cta-copy a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.cta-panel .btn-primary {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cta-panel .btn-primary:hover {
  background: var(--surface-alt);
  color: var(--accent-dark);
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: right;
}

/* Legal pages */

.legal-page {
  padding: 48px 0 96px;
  max-width: 680px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-page ul {
  margin: 0;
  padding-left: 20px;
}

.legal-page > p:first-of-type {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .steps,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-visual {
    order: -1;
    padding: 8px 0 0;
  }

  .iphone-frame {
    width: min(280px, 88vw);
  }

  .iphone-screen {
    height: 580px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 20px;
    background: rgba(238, 245, 252, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding-top: 32px;
  }

  .section {
    padding: 64px 0;
  }
}
