:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.4);
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --blue: rgb(74, 143, 255);
  --max: 980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

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

.hero {
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr 340px;
    align-items: center;
    padding-top: 72px;
  }
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  /* Apple: min 40px height, clear space ≥ 1/4 badge height */
  padding: 12px;
}

.store-badge img {
  height: 54px;
  width: auto;
  display: block;
}

.coming-soon {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.fine {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.phone-ui {
  background: #0a0a0a;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 16px;
}

.ui-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.ui-header svg {
  flex-shrink: 0;
}

.pill {
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
}

.slot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111;
}

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

.curtain-original {
  position: absolute;
  inset: 0;
}

.curtain-result {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--reveal, 46%));
}

.curtain-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal, 46%);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

.curtain-knob {
  position: absolute;
  top: 50%;
  left: var(--reveal, 46%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.curtain-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.replace {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.style-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strength {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
}

.strength header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.strength input[type="range"] {
  width: 100%;
  accent-color: #fff;
}

.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-body {
  padding: 28px 0 80px;
  max-width: 40rem;
}

.legal-body h1 { font-size: 34px; margin-bottom: 8px; }

.legal-body h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.legal-body p, .legal-body li {
  color: rgba(255, 255, 255, 0.78);
}

.legal-body .updated {
  color: var(--faint);
  font-size: 13px;
  margin: 0 0 28px;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 28px 0 48px;
  color: var(--faint);
  font-size: 12px;
}

.site-footer nav {
  margin-bottom: 16px;
}

.hidden { display: none !important; }
