/* ==========================================================
   BlueClip — marketing site
   Plain CSS. No build step. Custom properties for theming.
   ========================================================== */

:root {
  --light: #FBFBFD;
  --grey: #F5F5F7;
  --dark: #000000;
  --text-light: #1D1D1F;
  --text-dark: #F5F5F7;
  --muted: #86868B;
  --brand: #4F7FCC;
  --cta: #0071E3;
  --max-w: 1200px;
  --pad-x: clamp(24px, 4vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro",
          "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-light);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { text-wrap: balance; }

/* ---------- Surfaces ---------- */
.bg-white { background: var(--light); color: var(--text-light); }
.bg-grey  { background: var(--grey);  color: var(--text-light); }
.bg-dark  { background: var(--dark);  color: var(--text-dark); }
.bg-dark .eyebrow + h2 { color: #fff; }
.bg-dark p { color: rgba(245,245,247,.82); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
}
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 400;
  opacity: .85;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--cta);
  color: #fff !important;
  opacity: 1 !important;
  padding: 6px 16px;
  border-radius: 980px;
  font-weight: 500;
  transition: transform .2s ease, filter .2s ease;
}
.nav-cta:hover { transform: scale(1.02); filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(to bottom, var(--light) 78%, var(--grey));
}
.hero-inner {
  min-height: 100vh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px var(--pad-x) 64px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hero h1 {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.02;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -.01em;
}
.hero-copy .store-badge { margin-top: 40px; display: inline-block; }
.hero-phone { display: flex; justify-content: center; }

.store-badge { transition: transform .2s ease, filter .2s ease; }
.store-badge:hover { transform: scale(1.02); filter: brightness(1.15); }
.store-badge img { height: 54px; width: auto; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--grey);
  padding: 8px var(--pad-x) 56px;
}
.disclaimer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.disclaimer p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.disclaimer em { font-style: italic; }

/* ---------- iPhone mockup (CSS-drawn) ---------- */
.iphone {
  position: relative;
  width: min(330px, 76vw);
  border-radius: 12.5% / 5.75%;
  background: #1a1a1c;
  padding: 1.9%;
  border: 3px solid #4a4a4e;          /* titanium edge */
  box-shadow:
    inset 0 0 0 2px #2b2b2e,
    0 30px 60px rgba(0, 0, 0, .15);
}
.iphone-screen {
  position: relative;
  width: 100%;
  border-radius: 10.8% / 5%;
  overflow: hidden;
  background: #000;
}
/* Screen height derives from the screenshot's own aspect ratio —
   no object-fit cropping, edges never get cut */
.iphone-screen img { width: 100%; height: auto; }
/* Dynamic Island */
.iphone::after {
  content: "";
  position: absolute;
  top: 4.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 2.6%;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.feature.tilt .iphone { transform: rotate(6deg); }

/* ---------- Identity statement ---------- */
.statement {
  background: var(--dark);
  color: #fff;
  padding: clamp(120px, 16vw, 220px) var(--pad-x);
  text-align: center;
}
.statement p {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto;
}

/* ---------- Feature sections ---------- */
.feature { padding: clamp(80px, 12vw, 200px) var(--pad-x); }
.feature-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.feature.alt .feature-copy  { order: 2; }
.feature.alt .feature-phone { order: 1; }

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent, var(--brand));
  margin-bottom: 16px;
}
.feature h2, .more h2, .privacy h2, .pricing h2, .faq h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.feature-copy p:not(.eyebrow) {
  margin-top: 28px;
  font-size: clamp(19px, 1.6vw, 21px);
  max-width: 44ch;
  color: var(--muted);
}
.bg-dark .feature-copy p:not(.eyebrow) { color: rgba(245,245,247,.72); }
.feature-copy p + p:not(.eyebrow) { margin-top: 16px; }
/* fine print under feature copy */
.fineprint {
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: .01em;
}
.feature-phone { display: flex; justify-content: center; }
.feature-phone .iphone { width: min(310px, 72vw); }

/* ---------- Bonus grid ---------- */
.more { padding: clamp(80px, 10vw, 160px) var(--pad-x); }
.more-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.more-grid {
  list-style: none;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.more-grid li {
  background: #fff;
  border-radius: 16px;
  padding: 22px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
}
.more-sub {
  margin-top: 16px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}
.more-grid .more-tile {
  grid-column: 1 / -1;
  background: transparent;
  border: 1.5px dashed rgba(0,0,0,.18);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Privacy ---------- */
.privacy { padding: clamp(100px, 14vw, 200px) var(--pad-x); }
.privacy-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.privacy-list {
  list-style: none;
  margin-top: 64px;
  display: grid;
  gap: 20px;
  text-align: left;
}
.privacy-list li {
  background: #161617;
  border-radius: 18px;
  padding: 26px 30px;
  font-size: 18px;
  color: rgba(245,245,247,.72);
}
.privacy-list strong { color: #fff; font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(100px, 14vw, 200px) var(--pad-x); }
.pricing-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.tiers {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.tier {
  background: var(--grey);
  border-radius: 24px;
  padding: 40px 36px;
}
.tier-full {
  background: #fff;
  border: 1.5px solid var(--brand);
  box-shadow: 0 16px 48px rgba(79,127,204,.12);
}
.tier h3 { font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.tier { display: flex; flex-direction: column; }
.tier-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.tier-tag { margin-top: 6px; font-size: 15px; color: var(--muted); font-weight: 500; }
.tier-price {
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--brand);
  white-space: nowrap;
}
.tier-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.tier-annual {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 15px;
  color: var(--muted);
}
.tier-annual strong { color: var(--brand); font-weight: 600; }
.tier-pitch {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
.tier-group + ul + .tier-pitch { margin-top: 24px; }
.tier ul { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.tier-group {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier-group + ul { margin-top: 14px; }
.tier li {
  font-size: 17px;
  padding-left: 26px;
  position: relative;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.trial {
  margin-top: 48px;
  display: grid;
  gap: 10px;
  font-size: 18px;
  color: var(--muted);
}
.trial-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.trial-badge { margin-top: 10px; }
.trial-badge span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(79,127,204,.1);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 980px;
}
.trial-badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.trial strong { color: var(--text-light); }
.pricing .store-badge { margin-top: 48px; display: inline-block; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(100px, 12vw, 180px) var(--pad-x); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq h2 { text-align: center; }
.accordion { margin-top: 56px; display: grid; gap: 12px; }
.accordion details {
  background: #fff;
  border-radius: 16px;
  padding: 0 26px;
  overflow: hidden;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 22px 32px 22px 0;
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .25s ease;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p {
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
}
.accordion summary:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--grey);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 56px var(--pad-x) 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 8px; }
.footer-name { font-weight: 600; font-size: 16px; }
.footer-tag { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  opacity: .8;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-legal { font-size: 13px; color: var(--muted); max-width: 64ch; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.delay-1 { transition-delay: .12s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .store-badge, .nav-cta { transition: none; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .feature { padding-top: 120px; padding-bottom: 120px; }
  .feature-phone .iphone { width: min(280px, 70vw); }
}

@media (max-width: 768px) {
  body { font-size: 17px; }

  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 110px;
    padding-bottom: 64px;
    min-height: auto;
    gap: 56px;
  }
  .hero-phone .iphone { width: min(280px, 78vw); }

  .feature { padding-top: 80px; padding-bottom: 80px; }
  .feature-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .feature.alt .feature-copy  { order: 1; }
  .feature.alt .feature-phone { order: 2; }
  .feature-copy p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .feature-phone { order: 2; }

  .tiers { grid-template-columns: 1fr; }
  .privacy-list li { padding: 22px; }
  .footer-inner { text-align: left; }
}
