/* Recess marketing site — mirrors the iOS app's Brand palette. */

:root {
  --paper: #f7f3e8;
  --wash: #ece5d5;
  --ink: #111010;
  --signal: #f04424;
  --surface: #ffffff;
  --muted: rgba(17, 16, 16, 0.62);
  --hairline: rgba(17, 16, 16, 0.1);
  --blush: #f6d5ca;
  --sage: #c7d1b8;

  --radius-control: 16px;
  --radius-card: 24px;
  --radius-feature: 30px;

  --shell: 1120px;
  --gutter: 24px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 5.6vw, 72px);
}

h2 {
  font-size: clamp(32px, 5vw, 54px);
}

h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 46ch;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 232, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.btn-primary {
  color: var(--paper);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn:active {
  transform: scale(0.975);
  opacity: 0.9;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-signal {
  background: var(--signal);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

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

.hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
}

.hero .shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 .rule {
  color: var(--signal);
}

.hero-copy > * + * {
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(17, 16, 16, 0.06);
}

.tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

/* Polaroid stack */

.polaroids {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  padding: 24px 0 48px;
}

.polaroid {
  background: var(--surface);
  border-radius: 18px;
  padding: 10px 10px 40px;
  box-shadow: 0 22px 50px rgba(17, 16, 16, 0.16);
  position: relative;
  width: 40%;
  flex: 0 0 auto;
}

.polaroid + .polaroid {
  margin-left: -8%;
}

.polaroid img {
  border-radius: 11px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.polaroid span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.polaroid:nth-child(1) {
  transform: rotate(-8deg) translateY(-4%);
  z-index: 1;
}

.polaroid:nth-child(2) {
  transform: rotate(2deg) translateY(4%);
  z-index: 3;
}

.polaroid:nth-child(3) {
  transform: rotate(9deg) translateY(10%);
  z-index: 2;
}

.polaroid:nth-child(3) span {
  text-align: right;
}

/* ---------- Marquee strip ---------- */

.strip {
  margin-top: clamp(32px, 6vw, 64px);
  background: var(--ink);
  color: var(--paper);
  padding: 18px 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  justify-content: center;
  flex-wrap: wrap;
}

.strip-inner span {
  opacity: 0.75;
}

.strip-inner .dot {
  color: var(--signal);
  opacity: 1;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  margin-top: 16px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius-feature);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(17, 16, 16, 0.05);
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.step img {
  margin: 24px auto 0;
  width: min(100%, 190px);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 34px rgba(17, 16, 16, 0.12);
}

/* Features */

.features {
  background: var(--wash);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--paper);
  border-radius: var(--radius-feature);
  padding: 28px;
}

.feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 20px;
}

.feature p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* Identity split */

.split .shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compare figure {
  margin: 0;
}

.compare img {
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.compare figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
}

/* Privacy band */

.band {
  background: var(--ink);
  color: var(--paper);
}

.band .eyebrow,
.band .lede,
.band .note {
  color: rgba(247, 243, 232, 0.66);
}

.band .checklist li {
  color: rgba(247, 243, 232, 0.86);
}

.band .btn-ghost {
  border-color: rgba(247, 243, 232, 0.24);
  color: var(--paper);
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

details {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}

details + details {
  margin: 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--signal);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

/* Final CTA */

.cta {
  text-align: center;
}

.cta .shell > * + * {
  margin-top: 22px;
}

.cta .btn-row {
  justify-content: center;
}

.cta .lede {
  margin-left: auto;
  margin-right: auto;
}

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

.site-footer {
  background: var(--wash);
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

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

.legal {
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
}

.legal .shell {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.legal .updated {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.legal .summary {
  margin-top: 32px;
  background: var(--surface);
  border-radius: var(--radius-feature);
  padding: 28px;
}

.legal .summary h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.legal .summary ul {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
}

.legal h2 {
  font-size: 26px;
  margin-top: 56px;
}

.legal h3 {
  font-size: 18px;
  margin-top: 32px;
}

.legal p,
.legal li {
  color: rgba(17, 16, 16, 0.78);
  font-size: 16.5px;
}

.legal p {
  margin-top: 14px;
}

.legal ul,
.legal ol {
  margin-top: 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal .placeholder {
  background: var(--blush);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 700;
  color: var(--ink);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 15.5px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.legal th {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .shell,
  .split .shell {
    grid-template-columns: 1fr;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .polaroids {
    min-height: 340px;
  }

  .site-nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .polaroid {
    width: 31%;
  }

  .polaroid + .polaroid {
    margin-left: -3%;
  }

  .polaroid:nth-child(1) {
    transform: rotate(-5deg) translateY(-3%);
  }

  .polaroid:nth-child(2) {
    transform: rotate(1deg) translateY(3%);
  }

  .polaroid:nth-child(3) {
    transform: rotate(5deg) translateY(7%);
  }

  .polaroid span {
    font-size: 12px;
  }

  .polaroids {
    min-height: 260px;
  }

  .strip-inner {
    gap: 8px 18px;
    font-size: 11px;
  }

  .strip-inner .dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
