/* TwoFace — The Red Collar Company */
:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #a0a0aa;
  --muted-2: #6e6e78;
  --red: #ff3b30;
  --red-soft: #ff5a51;
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-soft);
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--text); }
.brand .two { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 70px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(255,59,48,0.22), rgba(255,59,48,0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: clamp(40px, 6vw, 62px); margin: 18px 0 20px; }
.hero h1 .accent { color: var(--red); }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; }

.badges { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.badge-pill {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-stage { order: -1; }
  .hero p.lede { max-width: none; }
}

/* ---------- Phone mockup ---------- */
.hero-stage { display: flex; justify-content: center; align-items: center; min-height: 560px; position: relative; }

.phone {
  position: relative;
  width: 288px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 46px;
  padding: 9px;
  box-shadow:
    0 0 0 2px #2a2a2e,
    0 0 0 11px #0d0d0f,
    0 40px 80px -20px rgba(0,0,0,0.75),
    0 0 60px -10px rgba(255,59,48,0.25);
}
.phone::after { /* notch / dynamic island */
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #050506;
  display: flex;
  flex-direction: column;
}

/* App chrome rebuilt to match the real UI */
.app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 12px 14px;
  gap: 7px;
}
.app-top, .app-bottom { width: 100%; }
.app-top { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.app-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff;
}
.app-icon.lit { color: var(--red); }
.rec-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.rec-pill .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Camera feeds — portrait (9:16) stacked over landscape (16:9) */
.feed { position: relative; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 6px 16px -8px rgba(0,0,0,0.6); }
.feed .tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  color: #fff; background: rgba(0,0,0,0.45);
  padding: 3px 7px; border-radius: 6px;
  z-index: 3;
}
.feed.portrait { aspect-ratio: 9 / 16; width: 62%; align-self: center; }
.feed.landscape { aspect-ratio: 16 / 9; width: 62%; align-self: center; }

/* scene: a warm dusk skyline shared across both feeds */
.scene {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 70% 18%, rgba(255,196,140,0.95), rgba(255,138,92,0.0) 46%),
    linear-gradient(180deg, #ffb56b 0%, #ff7e5f 30%, #b14b6e 58%, #3a2b54 84%, #221a38 100%);
}
.scene .sun {
  position: absolute; top: 16%; right: 22%;
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle, #fff6e0, #ffd089);
  box-shadow: 0 0 36px 10px rgba(255,214,140,0.6);
}
.scene .sky-strip { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.18); }
.scene .skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background:
    linear-gradient(180deg, rgba(20,12,32,0) 0%, #140c20 70%),
    repeating-linear-gradient(90deg, #241634 0 7px, #2d1c40 7px 9px);
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 28%);
          mask: linear-gradient(180deg, transparent 0, #000 28%);
}
.scene .building {
  position: absolute; bottom: 0; background: #1a1029;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.feed.landscape .scene { background:
    radial-gradient(90% 140% at 82% 24%, rgba(255,210,150,0.95), rgba(255,138,92,0) 52%),
    linear-gradient(180deg, #ff9e6b 0%, #c5607a 48%, #4a2f63 100%); }
.feed.landscape .scene::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
    background: repeating-linear-gradient(90deg, #2a1b3d 0 9px, #34234a 9px 12px);
    -webkit-mask: linear-gradient(180deg, transparent 0, #000 60%);
            mask: linear-gradient(180deg, transparent 0, #000 60%);
}

/* grid overlay (rule of thirds) on one feed */
.grid-overlay { position: absolute; inset: 0; z-index: 2; opacity: 0.5; }
.grid-overlay::before, .grid-overlay::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
  mix-blend-mode: overlay;
}

.zoom-chip {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.zoom-chip span {
  font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4); border-radius: 999px;
  width: 22px; height: 22px; display: grid; place-items: center;
}
.zoom-chip span.on { color: #ffd089; background: rgba(0,0,0,0.6); }

/* bottom controls */
.app-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; padding-bottom: 4px; }
.mode-switch {
  display: flex; background: rgba(0,0,0,0.5); border-radius: 999px; padding: 3px;
}
.mode-switch span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 16px; border-radius: 999px; color: #fff; }
.mode-switch span.active { background: #fff; color: #000; }
.app-actions { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mini-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.45); display: grid; place-items: center; color: #fff; }
.shutter {
  width: 58px; height: 58px; border-radius: 50%;
  border: 4px solid #fff; display: grid; place-items: center;
}
.shutter .core { width: 44px; height: 44px; border-radius: 50%; background: var(--red); }
.thumb { position: relative; width: 38px; height: 38px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,0.6); overflow: hidden; }
.thumb .scene { border-radius: 0; }

/* floating capture cards behind/around the phone */
.float-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.7);
  border: 3px solid #0d0d0f;
}
.float-card .scene { border-radius: 0; }
.float-card .cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 14px 8px 5px;
}
.fc-portrait { width: 86px; aspect-ratio: 9/16; left: -42px; top: 90px; transform: rotate(-9deg); }
.fc-landscape { width: 150px; aspect-ratio: 16/9; right: -54px; bottom: 120px; transform: rotate(8deg); }
@media (max-width: 520px) {
  .fc-portrait { left: -10px; }
  .fc-landscape { right: -10px; }
}

/* ---------- Logos / trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; padding: 26px 0; }
.strip-item { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 14.5px; }
.strip-item svg { color: var(--red-soft); flex: none; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* The big "how it works" duality block */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.duo-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.duo-card .frame {
  border-radius: 12px; overflow: hidden; position: relative;
  margin-bottom: 22px; border: 1px solid var(--line-2);
}
.duo-card.p .frame { aspect-ratio: 9/16; max-width: 190px; }
.duo-card.l .frame { aspect-ratio: 16/9; }
.duo-card h3 { font-size: 21px; margin-bottom: 8px; }
.duo-card p { color: var(--muted); font-size: 15.5px; }
.ratio-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--red-soft); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,59,48,0.12); color: var(--red-soft);
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 7px; }
.feature p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* spec band */
.specs { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec { text-align: center; }
.spec .num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.spec .num span { color: var(--red); }
.spec .lbl { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 680px) { .spec-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; } }

/* pricing / no subscription */
.pricing { text-align: center; }
.price-card {
  max-width: 460px; margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 26px;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,59,48,0.18), transparent 60%);
  pointer-events: none;
}
.price-tag-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.price-amount { font-size: 60px; font-weight: 800; letter-spacing: -0.04em; }
.price-strike { color: var(--muted-2); text-decoration: line-through; font-size: 20px; }
.price-once { font-size: 15px; color: var(--red-soft); font-weight: 600; letter-spacing: 0.04em; }
.price-list { list-style: none; text-align: left; margin: 26px 0 30px; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: 15px; }
.price-list li svg { color: var(--red); flex: none; margin-top: 3px; }
.price-sub { font-size: 13px; color: var(--muted-2); margin-top: 16px; }

.no-sub-banner {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--red-soft);
  background: rgba(255,59,48,0.1);
  border: 1px solid rgba(255,59,48,0.25);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 18px;
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 16px; }
.cta-band p { color: var(--muted); font-size: 18px; max-width: 40ch; margin: 0 auto 30px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; color: var(--muted); flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); color: var(--red-soft); }
.faq p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted-2);
}

/* ---------- Legal pages ---------- */
.legal { padding: 70px 0 90px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--red-soft); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }
.legal .lead { font-size: 18px; color: var(--text); margin-bottom: 28px; }
.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px;
}
.toc h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--red-soft); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec-pill .blink { animation: none; }
}
