/* Cupidon Cam · cupidon.cam
   One stylesheet, no dependencies, no external requests.
   Palette and motion mirror the app: near-black, light gold, drifting aurora. */

:root {
  --bg: #0a0a0b;
  --bg-raised: #101012;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.12);

  --gold: #ffd68c;
  --gold-soft: #ffe6b8;
  --gold-deep: #c79a4f;
  --cream: #f4f1ea;

  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.58);
  --text-faint: rgba(255, 255, 255, 0.4);

  --serif: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --maxw: 1100px;
  --radius: 18px;
  --radius-lg: 26px;
}

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover { color: var(--gold-soft); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  color: var(--cream);
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

section { position: relative; }

.section-pad { padding: 88px 0; }
.section-flush { padding-top: 0; }

/* Section headings. Kept as classes rather than inline styles: the CSP
   (style-src 'self') refuses style attributes. */
.h-section { font-size: clamp(30px, 4.4vw, 42px); }
.h-section-sm { font-size: clamp(28px, 4vw, 38px); }

.stack-sm { margin-top: 16px; }
.stack-md { margin-top: 26px; }

.lede {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 56ch;
}

/* ---------- Aurora ---------- */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora .a1 {
  width: 78vw; height: 46vh;
  left: -8vw; top: -16vh;
  background: rgba(255, 214, 140, 0.3);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 62vw; height: 38vh;
  right: -10vw; top: -10vh;
  background: rgba(255, 184, 110, 0.22);
  animation: drift-b 20s ease-in-out infinite alternate;
}
.aurora .a3 {
  width: 46vw; height: 30vh;
  left: 28vw; top: -20vh;
  background: rgba(255, 240, 210, 0.18);
  animation: drift-c 24s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 5vh, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 2vh, 0) scale(1.05); }
  to   { transform: translate3d(-11vw, -3vh, 0) scale(1); }
}
@keyframes drift-c {
  from { transform: translate3d(-4vw, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 6vh, 0) scale(1.18); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
.brand img {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 10px rgba(255, 214, 140, 0.35));
}
.brand:hover { color: var(--cream); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}
.nav a { color: var(--text-dim); }
.nav a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav .nav-link { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: #17130c;
  box-shadow: 0 0 0 rgba(255, 214, 140, 0);
}
.btn-primary:hover {
  color: #17130c;
  transform: translateY(-1px);
  box-shadow: 0 8px 34px rgba(255, 214, 140, 0.28);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-strong); }

.btn-sm { padding: 9px 18px; font-size: 15px; }

/* App Store badge: drawn, not fetched. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 18px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  line-height: 1.15;
}
.appstore[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.appstore:hover { color: var(--text); }
.appstore:not([aria-disabled="true"]):hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}
.appstore svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.appstore .as-small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.appstore .as-big {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 64px;
  isolation: isolate;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 64px; }
}

.hero-medallion {
  width: 76px; height: 76px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 26px rgba(255, 214, 140, 0.42));
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 68px);
}
.hero h1 .accent {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(255, 214, 140, 0.35);
}

.hero p.lede {
  margin-top: 20px;
  font-size: 19px;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}


.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
}

/* 404 */
.hero-center {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero-center .hero-medallion { margin-left: auto; margin-right: auto; }
.hero-center h1 { font-size: clamp(34px, 5vw, 52px); }
.hero-center .lede { margin: 18px auto 30px; }

/* ---------- Device mockup ---------- */

.device {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #34322e, #131315 42%, #2b2926);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 214, 140, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #000;
}
/* The screenshot is a real capture and already contains the Dynamic Island,
   so no fake notch overlay is drawn on top of it. */
.device-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Feature split ---------- */

/* Video-mode device beside the feature cards. The phone sits left on desktop,
   mirroring the hero (device right), and drops below the cards on small screens. */
.feature-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-top: 42px;
}
.feature-split .grid { margin-top: 0; }
.feature-split .card { padding: 24px; }
@media (max-width: 900px) {
  .feature-split { grid-template-columns: 1fr; gap: 44px; }
  .feature-split .device { order: 2; max-width: 280px; }
}

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.card p { color: var(--text-dim); font-size: 16px; }

/* ---------- Before / after slider ---------- */

.compare {
  position: relative;
  margin-top: 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  --pos: 45%;
}

.compare-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}
.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The graded frame sits on top and occupies everything right of the seam, so
   dragging right uncovers more of the flat Apple Log original underneath. */
.compare-after { clip-path: inset(0 0 0 var(--pos)); }

.compare-label {
  position: absolute;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
}
.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; color: var(--gold); }

.compare-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--gold);
  pointer-events: none;
}
/* The visible grab handle, riding on the seam. Its chevrons are drawn with
   rotated borders, the same technique as the FAQ arrow further down. */
.compare-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(255, 214, 140, 0.4);
}
.compare-handle::before,
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.compare-handle::before { left: 9px; transform: translateY(-50%) rotate(-45deg); }
.compare-handle::after { right: 9px; transform: translateY(-50%) rotate(135deg); }

/* A real <input type="range"> rather than a custom handle: keyboard, focus and
   screen-reader semantics come for free. It is transparent and covers the frame;
   the visible handle is .compare-seam::after above. */
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px; height: 44px;
}
.compare-range::-moz-range-thumb {
  width: 44px; height: 44px;
  border: 0;
  opacity: 0;
}
.compare-range:focus-visible { outline: none; }
.compare-range:focus-visible ~ .compare-seam .compare-handle {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.compare-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Triptych ---------- */

/* Three vertical panels served as separate files but rendered seamless, so the
   strip reads as one image on desktop and stacks readably on small screens. */
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.tri img { width: 100%; height: auto; }
@media (max-width: 640px) { .tri { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
}
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }

.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 34px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  opacity: 0.6;
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
  align-items: stretch;
}
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.plan.featured {
  border-color: rgba(255, 214, 140, 0.75);
  box-shadow: 0 0 40px rgba(255, 214, 140, 0.13);
}
.plan-badge {
  position: absolute;
  top: -11px; right: 18px;
  background: var(--gold);
  color: #17130c;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--text); }
.plan .price {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 600;
  font-family: var(--serif);
  color: var(--cream);
}
.plan .price small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
}
.plan .trial {
  margin-top: 6px;
  font-size: 14px;
  color: var(--gold);
  min-height: 21px;
}
.plan ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 15px;
  color: var(--text-dim);
}
.plan li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 214, 140, 0.5);
}
.plan.featured li::before { background: var(--gold); }

.pricing-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */

.faq { margin-top: 36px; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer {
  padding: 0 8px 20px 0;
  color: var(--text-dim);
  font-size: 16px;
  max-width: 74ch;
}

/* ---------- Waitlist ---------- */

.waitlist {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% -30%, rgba(255, 214, 140, 0.14), transparent 62%),
    var(--bg-raised);
  padding: 48px 32px;
  text-align: center;
}
.waitlist h2 { font-size: clamp(28px, 4vw, 38px); }
.waitlist p.lede { margin: 14px auto 0; }

.wl-form {
  margin: 28px auto 0;
  display: flex;
  gap: 10px;
  max-width: 460px;
}
@media (max-width: 520px) { .wl-form { flex-direction: column; } }

.wl-form input[type="email"] {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 16px;
  font-family: var(--sans);
}
.wl-form input::placeholder { color: var(--text-faint); }
.wl-form input:focus {
  outline: none;
  border-color: rgba(255, 214, 140, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 214, 140, 0.14);
}

/* Hero copy of the form. Declared after .wl-form so the same-specificity
   margin/width overrides win the cascade: left-aligned, tighter status. */
.wl-form-hero { margin: 26px 0 0; max-width: 430px; }
.wl-form-hero ~ .wl-status { margin-top: 10px; text-align: left; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.wl-status {
  margin-top: 16px;
  min-height: 22px;
  font-size: 15px;
  color: var(--text-dim);
}
.wl-status.ok { color: var(--gold); }
.wl-status.err { color: #ff9c8a; }

.wl-privacy { margin-top: 8px; font-size: 13px; color: var(--text-faint); }

/* ---------- Legal / support pages ---------- */

.page-head {
  padding: 72px 0 32px;
  position: relative;
  isolation: isolate;
}
/* Without this the aurora (position:absolute, z-index:0, mix-blend-mode:screen)
   paints over the heading, which is unpositioned in-flow content. */
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); }
.page-head .updated {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 14px;
}

.prose {
  padding-bottom: 90px;
  max-width: 76ch;
}
.prose h2 {
  font-size: 24px;
  margin: 46px 0 14px;
}
.prose h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 8px;
}
.prose p, .prose li { color: var(--text-dim); font-size: 16.5px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }

.callout {
  border: 1px solid rgba(255, 214, 140, 0.28);
  background: rgba(255, 214, 140, 0.06);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}
.callout p { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 42px 0 56px;
  color: var(--text-faint);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .appstore { transition: none; }
}
