/* plugnap.com product page. Colors match the app icon. */
:root {
  --night: #0b1d3a;
  --night-blue: #12395a;
  --dawn: #1f7a5c;
  --mint: #5fd3a5;
  --moon: #f6e7a8;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #13202e;
  --muted: #5a6878;
  --line: #e2e6ea;
  --accent: #1f7a5c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070f1f;
    --surface: #0f2340;
    --text: #e8eef5;
    --muted: #a7b6c6;
    --line: #1f3a60;
    --accent: #5fd3a5;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-blue) 55%, var(--dawn) 100%);
  padding: 120px 0 0;
}
.hero::before {
  /* stars */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 28% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 46% 22%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 64% 12%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 82% 26%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 92% 9%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 6% 42%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 56% 40%, rgba(255,255,255,.4), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--moon); font-weight: 600; font-size: 15px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--moon); }
.hero .lede { font-size: 20px; color: rgba(255,255,255,.85); max-width: 520px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.35); border-radius: 12px;
  padding: 10px 18px; font-weight: 600; font-size: 15px; line-height: 1.2;
}
.badge small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.badge svg { width: 22px; height: 22px; fill: currentColor; }
.ghost { color: #fff; font-weight: 600; text-decoration: none; padding: 10px 4px; }
.ghost:hover { text-decoration: underline; }
.note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); }

.hero-phones { position: relative; height: 560px; }
.phone {
  position: absolute; bottom: -40px;
  width: 260px; border-radius: 40px; overflow: hidden;
  border: 8px solid #0a0f18; background: #0a0f18;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
/* height: auto keeps the screenshot's shape when the phone is narrower than the image's own size. */
.phone img { border-radius: 32px; width: 100%; height: auto; }
.hero-phones .back { right: 150px; bottom: -10px; transform: rotate(-6deg); opacity: .96; }
.hero-phones .front { right: 0; transform: rotate(4deg); }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--night), var(--dawn)); color: var(--moon);
  font-weight: 700; margin-bottom: 16px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { position: static; width: 280px; }
.feature-copy h3 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.feature-copy p { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.feature-copy ul { margin: 0; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding-left: 28px; margin: 8px 0; }
.feature-copy li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' stroke='white' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Apple Watch */
.watch {
  width: 208px; padding: 10px; border-radius: 52px; background: #0a0f18;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.watch img { width: 100%; height: auto; }

/* Light/dark pair */
.pair { display: flex; gap: 18px; }
.pair .phone { width: 230px; }

/* Savings strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-radius: 20px; padding: 28px; color: #fff; background: linear-gradient(135deg, var(--night), var(--night-blue) 60%, var(--dawn)); }
.stat b { display: block; font-size: 40px; line-height: 1.1; color: var(--moon); letter-spacing: -0.02em; }
.stat span { color: rgba(255,255,255,.82); }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Privacy */
.privacy { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; background: var(--bg); }

/* Final CTA */
.final { text-align: center; color: #fff; background: linear-gradient(180deg, var(--night-blue), var(--dawn)); }
.final h2 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 12px; }
.final p { color: rgba(255,255,255,.85); font-size: 19px; margin: 0 0 26px; }
.final .cta { justify-content: center; }
.final img.icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 16px 36px rgba(0,0,0,.35); }

footer.site { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* Phones and small tablets */
@media (max-width: 860px) {
  .top nav { display: none; }
  .hero { padding-top: 100px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 32px; }
  /* One phone, in normal flow, cropped by the bottom of the hero. */
  .hero-phones { height: 380px; overflow: hidden; padding-top: 12px; }
  .hero-phones .back { display: none; }
  .hero-phones .front { position: relative; inset: auto; width: 230px; margin: 0 auto; transform: rotate(3deg); }
  section { padding: 64px 0; }
  .steps, .stats { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .feature-media .phone { width: 240px; }
  .pair .phone { width: 46%; max-width: 200px; }
}
