:root {
  --coral: #EB7B5F;
  --coral-deep: #D96A4D;
  --peach: #FCE5D8;
  --peach-mid: #F5C9B3;
  --lavender: #E7E0F2;
  --mint: #D9F0E0;
  --sky: #D9EBFF;
  --canvas: #FAF9F7;
  --text: #1C1C1E;
  --muted: #8E8E94;
  --shell-gradient: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 50%, var(--sky) 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(28, 28, 30, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(28, 28, 30, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--text); }

/* Hero */
.hero {
  background: var(--shell-gradient);
  padding: 88px 0 96px;
  text-align: center;
}
.hero .icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0 auto 28px;
  display: block;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.hero p.subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text);
  opacity: 0.78;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* App Store badge (Apple official asset) */
.app-store-badge {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.app-store-badge img {
  height: 56px;
  width: auto;
  display: block;
}
.app-store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Sections */
section { padding: 80px 0; }
section h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-align: center;
}
section .lede {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 17px;
}

/* Showcase / before-after reveal */
.showcase { background: var(--canvas); }
.reveal {
  --pos: 50%;
  position: relative;
  margin: 0 auto;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: none;
  background: var(--peach);
  cursor: ew-resize;
}
.reveal:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
body.reveal-dragging,
body.reveal-dragging * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: ew-resize !important;
}
.reveal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.reveal-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.reveal-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.reveal-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28, 28, 30, 0.1), 0 4px 12px rgba(28, 28, 30, 0.15);
}
.reveal-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--coral-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(28, 28, 30, 0.08), 0 8px 22px rgba(28, 28, 30, 0.18);
}
.reveal-handle-knob svg { width: 26px; height: 26px; }
.reveal-label {
  position: absolute;
  top: 16px;
  background: rgba(28, 28, 30, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.reveal-label-before { left: 16px; }
.reveal-label-after  { right: 16px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  border-radius: var(--radius);
  padding: 28px;
  min-height: 180px;
}
.feature.coral    { background: var(--peach); }
.feature.peach    { background: var(--peach-mid); }
.feature.mint     { background: var(--mint); }
.feature.lavender { background: var(--lavender); }
.feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--text);
  opacity: 0.78;
  font-size: 15px;
}
.feature .emoji {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  padding: 24px;
}
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid rgba(28, 28, 30, 0.06);
  padding: 36px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); }

/* Article (privacy / support) */
.article {
  background: var(--canvas);
  padding: 56px 0 96px;
}
.article .container { max-width: 760px; }
.article h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.article .meta { color: var(--muted); margin: 0 0 32px; font-size: 14px; }
.article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 10px;
  text-align: left;
}
.article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 6px;
}
.article p, .article li { font-size: 16px; color: var(--text); }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .callout {
  background: var(--peach);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--shell-gradient);
  padding: 80px 24px;
}
.not-found .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.not-found h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.not-found p { color: var(--text); opacity: 0.78; font-size: 18px; margin: 0 0 28px; }
.not-found .home-btn {
  display: inline-flex;
  align-items: center;
  background: var(--coral);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.not-found .home-btn:hover { text-decoration: none; background: var(--coral-deep); }

/* Responsive */
@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 72px; }
  .nav { gap: 16px; font-size: 14px; }
  .site-footer .container { justify-content: flex-start; }
}
