/* ==========================================================================
   Dual Creator Cam — landing site
   Styling pulled from the Figma design (node 535:2054):
   red hero, cream features, black close + footer.
   ========================================================================== */

:root {
  --red: #ff0000;
  --cream: #fffbe2;
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;
  --ink-soft: rgba(0, 0, 0, 0.7);
  --ink-faint: rgba(0, 0, 0, 0.5);
  --line-on-cream: rgba(0, 0, 0, 0.1);
  --line-on-black: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  background: var(--red);   /* covers iOS rubber-band overscroll above the hero */
}
body {
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }   /* zero default heading/paragraph margins; per-element margins set explicitly */
body, html { font-variation-settings: 'wdth' 100; }
a { color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Buttons — Figma: 1px border, 4px radius, 12px y / 24px x, 16px SF Pro Bold
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.12s ease;
  line-height: 36px;
}
.btn:hover { opacity: 0.7; }
.btn:active { transform: translateY(1px); }
.btn--dark { color: var(--black); }
.btn--light { color: var(--white); }

/* ==========================================================================
   Hero — red canvas
   Figma layout (1280×~1076):
     logo at y=53 (56×60), wordmark at y=152, CTA at y=450, phone at y=551 (336×528)
   ========================================================================== */
.hero {
  background: var(--red);
  color: var(--black);
  text-align: center;
  position: relative;
}
.hero .logo {
  display: block;
  margin: 53px auto 0;
  width: 56px;
  height: auto;
}
.hero .wordmark {
  margin: 27px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.hero nav.page-nav {
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.hero nav.page-nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
}
.hero nav.page-nav a.active { color: var(--black); border-bottom: 2px solid var(--black); padding-bottom: 4px; }
.hero nav.page-nav a:hover { color: var(--black); }

/* Home variant — full hero: logo, wordmark, headline, sub, CTA, meta, phone */
.hero--home { padding-bottom: 96px; }
.hero--home .hero-headline {
  margin: 80px auto 0;
  max-width: 18ch;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--black);
}
.hero--home .hero-sub {
  margin: 20px auto 0;
  max-width: 38ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero--home .hero-cta {
  margin: 36px auto 0;
}
.hero--home .hero-meta {
  margin: 20px auto 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
}
.hero--home .phone {
  display: block;
  margin: 56px auto 0;
  width: 280px;
  max-width: calc(100% - 48px);
  height: auto;
}

/* Page variant — short hero with title (privacy, support) */
.hero--page { padding: 0 24px 56px; }
.hero--page .page-title {
  margin: 56px auto 0;
  max-width: 24ch;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
}
.hero--page .page-deck {
  margin: 12px auto 0;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ==========================================================================
   Features section (cream + 2x2 white cards) — home only
   Figma: 604×312 grid (302×156 cards), centered in 1280×656 cream band
   ========================================================================== */
.features-section {
  background: var(--cream);
  padding: 112px 24px 112px;
  text-align: center;
}
.features-headline {
  margin: 0 auto 56px;
  max-width: 22ch;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--black);
}
.features-grid {
  width: 604px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 302px);
  grid-auto-rows: 156px;
  justify-content: center;
}
.feature {
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

/* ==========================================================================
   Doc section (privacy / support)
   ========================================================================== */
.doc-section {
  background: var(--cream);
  padding: 80px 24px;
}
.panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 56px;
}
.panel .updated {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 20px;
}
.panel h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin: 32px 0 8px;
}
.panel h2:first-child { margin-top: 0; }
.panel p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.panel a { text-decoration: underline; text-underline-offset: 3px; }
.panel ul { padding-left: 20px; margin: 8px 0 12px; }
.panel li { margin: 6px 0; font-size: 15px; line-height: 1.55; }
.panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
}
.panel th, .panel td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-on-cream);
  font-size: 14px;
  vertical-align: top;
}
.panel th {
  background: var(--cream);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.panel td:first-child { font-weight: 700; width: 40%; }

.contact-card {
  border: 1px solid var(--line-on-cream);
  padding: 20px 24px;
  margin: 16px 0 24px;
  background: var(--cream);
}
.contact-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-on-cream);
}
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .key {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.contact-card .val { font-size: 14px; font-weight: 600; }

.faq-q {
  margin-top: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* ==========================================================================
   Closer (black canvas) — Figma: 1280×446 with headline + bordered CTA
   ========================================================================== */
.closer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 140px 24px 0;
}
.closer h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.005em;
}
.closer .btn {
  margin-top: 28px;
}

/* ==========================================================================
   Footer (continues black canvas)
   ========================================================================== */
footer.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 24px 64px;
}
footer.site-footer .footer-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer .copy {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer.site-footer nav {
  display: flex;
  gap: 39px;
  flex-wrap: wrap;
}
footer.site-footer nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
}
footer.site-footer nav a:hover { opacity: 0.7; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  .hero .logo { margin-top: 40px; width: 48px; height: auto; }
  .hero .wordmark { font-size: 14px; margin-top: 20px; }
  .hero nav.page-nav { gap: 20px; margin-top: 24px; }

  .hero--home .hero-headline { margin-top: 48px; }
  .hero--home .hero-sub { margin-top: 14px; }
  .hero--home .hero-cta { margin-top: 28px; }
  .hero--home .hero-meta { margin-top: 16px; font-size: 10px; }
  .hero--home { padding-bottom: 64px; }
  .hero--home .phone { margin-top: 32px; width: clamp(240px, 70vw, 336px); }

  .hero--page { padding-bottom: 40px; }
  .hero--page .page-title { margin-top: 40px; }

  .features-section { padding: 64px 24px 80px; }
  .features-headline { margin-bottom: 36px; }
  .features-grid { grid-template-columns: 1fr; grid-auto-rows: auto; max-width: 320px; gap: 12px; }
  .feature { min-height: 156px; }

  .doc-section { padding: 56px 16px; }
  .panel { padding: 32px 24px; }
  .panel th, .panel td { padding: 10px 12px; font-size: 13px; }
  .panel td:first-child { width: 38%; }

  .contact-card .row { flex-direction: column; gap: 4px; align-items: flex-start; }

  .closer { padding: 96px 24px 0; }

  footer.site-footer { padding: 56px 24px 48px; }
  footer.site-footer .footer-row { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  footer.site-footer nav { gap: 20px; }
}
@media (max-width: 380px) {
  .btn { padding: 10px 18px; font-size: 14px; line-height: 30px; }
}
