/* recstrip marketing site — matches the app's Perplexity design language:
   near-white canvas, teal accent, system font stack, "research not chat". */

:root {
  --canvas: #ffffff;
  --surface-1: #f9fafb;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --primary: #20b2aa;
  --primary-hover: #1a9b93;
  --on-primary: #ffffff;
  --source: #f0fdfc;
  --source-line: #b2ebe7;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.12);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Light only — recstrip's marketing site does not use a dark theme. */
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-1);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  border-radius: 7px;
}
.brand-name {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:not(.btn):hover {
  color: var(--ink);
}

/* ---- Layout ---- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0.8rem auto 0;
}

/* ---- Hero ---- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--source);
  border: 1px solid var(--source-line);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}
.lede {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 34ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.9rem;
}
.cta-meta,
.req,
.req-sub {
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-shot .window {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
  background: var(--surface-1);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--border);
}
.window-title {
  margin-left: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.window img {
  width: 100%;
  height: auto;
}

/* ---- Trust strip ---- */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
}
.strip-item strong {
  color: var(--ink);
}
.strip-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Cards / features ---- */
.grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.feature h3 {
  font-size: 1.15rem;
  margin: 0.9rem 0 0.4rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--source);
  border: 1px solid var(--source-line);
  color: var(--primary);
  font-size: 1.3rem;
}

/* ---- How it works ---- */
.section-alt {
  background: var(--surface-1);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > .section-title {
  max-width: var(--maxw);
  margin-inline: auto;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.step h3 {
  font-size: 1.1rem;
  margin: 0.9rem 0 0.4rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---- Privacy ---- */
.privacy-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.privacy p {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---- Download ---- */
.download {
  text-align: center;
}
.download .btn {
  margin-top: 1.75rem;
}
.download .req {
  margin: 1rem 0 0;
}
.download .req-sub {
  margin: 0.4rem 0 0;
}
.download a {
  color: var(--primary);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  gap: 1.4rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer a:hover {
  color: var(--ink);
}
.colophon {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
}

/* ---- Cookie consent ---- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}
/* Let the `hidden` attribute win over the flex display above, so
   Accept/Decline actually dismisses the bar. */
.cookie-bar[hidden] {
  display: none;
}
.cookie-card {
  pointer-events: auto;
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--source-line);
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--source) 100%);
  box-shadow: var(--shadow-elevated);
  animation: cookie-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-title {
  margin: 0;
  font-weight: 700;
}
.cookie-desc {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
@keyframes cookie-in {
  from {
    transform: translateY(130%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 620px) {
  .cookie-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}

/* ---- Focus (accessible teal ring, like the app) ---- */
:where(a, button):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .lede {
    max-width: none;
  }
  .grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .strip {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 560px) {
  .site-nav a:not(.btn) {
    display: none;
  }
  .grid,
  .steps,
  .strip {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
