/* couchfall.com — the landing page. Same type and colours as the app. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("/fonts/quicksand-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #050506;
  --surface: #0d0d10;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --dim: #a1a1aa;
  --faint: #71717a;
  --accent: #2dd4bf;
  --gutter: 24px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 760px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: #fff;
  border-color: #fff;
  color: #09090b;
}
.btn-primary:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
}
.btn-small {
  height: 38px;
  padding: 0 16px;
  font-size: 15px;
}
.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.actions.center {
  justify-content: center;
}

/* ---- header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 6, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lockup .icon {
  width: 34px;
  height: 29px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font: 500 25px/1 "Quicksand", "Inter", sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
}
.wm-couch {
  height: 0.6em;
  width: 0.99em;
  margin: 0 0.03em 0 0.02em;
  overflow: visible;
}
.wm-moon {
  height: 0.6em;
  width: 0.6em;
  margin: 0 0.03em;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.top-links a:not(.btn) {
  color: var(--dim);
  text-decoration: none;
}
.top-links a:not(.btn):hover {
  color: var(--text);
}

/* ---- hero ---- */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero-copy {
  max-width: 900px;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
}
.lede {
  margin-top: 24px;
  font-size: 19px;
  color: var(--dim);
  max-width: 600px;
}
.hero .actions {
  margin-top: 32px;
}
.fineprint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--faint);
}

.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}
.shot-hero {
  position: relative;
  margin-top: 64px;
}
/* Light from the screenshot itself spills onto the page around it. */
.shot-hero::before {
  content: "";
  position: absolute;
  inset: 10% 6% -8%;
  z-index: -1;
  background: url("/img/app-home.webp") center / cover;
  filter: blur(70px) saturate(1.3);
  opacity: 0.35;
}
.hero .wrap {
  position: relative;
  isolation: isolate;
}

.works-with {
  margin-top: 36px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.works-with span {
  color: var(--dim);
  font-weight: 600;
  margin-left: 18px;
}

/* ---- features ---- */
.feature {
  padding: 120px 0 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.feature-flip .feature-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature-flip .feature-copy {
  order: 2;
}
.feature h2,
.private h2,
.faq h2,
.closer h2 {
  font-size: clamp(34px, 4.4vw, 52px);
}
.feature-copy p {
  margin-top: 20px;
  color: var(--dim);
}
.ticks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  color: #d4d4d8;
  font-size: 16px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.promise {
  margin-top: 24px !important;
  color: var(--text) !important;
  font-weight: 600;
}

.phone {
  justify-self: center;
  width: min(320px, 100%);
  padding: 10px;
  border-radius: 46px;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, 0.9);
}
.phone img {
  border-radius: 36px;
}

/* ---- private, faq, closer ---- */
.private {
  padding: 140px 0 0;
  text-align: center;
}
.private p {
  margin-top: 20px;
  font-size: 19px;
  color: var(--dim);
}

.faq {
  padding: 140px 0 0;
}
.faq h2 {
  margin-bottom: 28px;
}
details {
  border-top: 1px solid var(--line);
}
details:last-of-type {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 18px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 27px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--dim);
  border-bottom: 2px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(-135deg);
  top: 31px;
}
details p {
  padding: 0 0 22px;
  color: var(--dim);
}
details a {
  color: var(--accent);
}

.closer {
  padding: 140px 0 120px;
  text-align: center;
}
.closer .actions {
  margin-top: 32px;
}

/* ---- footer ---- */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--faint);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.foot nav {
  display: flex;
  gap: 20px;
}
.foot a {
  color: var(--dim);
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
}
.credits {
  flex-basis: 100%;
  font-size: 13px;
}
.credits a {
  text-decoration: underline;
}

/* ---- prose pages (privacy) ---- */
.prose {
  padding: 72px 0 120px;
}
.prose h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 12px;
}
.prose h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
.prose p,
.prose li {
  color: #d4d4d8;
}
.prose p + p {
  margin-top: 14px;
}
.prose .updated {
  color: var(--faint);
  font-size: 15px;
}
.prose a {
  color: var(--accent);
}

/* ---- small screens ---- */
@media (max-width: 860px) {
  .feature-grid,
  .feature-flip .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .feature-flip .feature-copy {
    order: 0;
  }
  .feature,
  .private,
  .faq {
    padding-top: 96px;
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .top-links a:not(.btn) {
    display: none;
  }
  .hero {
    padding-top: 40px;
  }
  .lede {
    font-size: 17px;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
  .shot-hero {
    margin-top: 44px;
  }
  .shot {
    border-radius: 10px;
  }
  .works-with span {
    margin-left: 12px;
  }
  .closer {
    padding-bottom: 88px;
  }
}

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