/* ABOUTME: Shared styles for the recipessocial.com static pages: landing, FAQ,
   ABOUTME: privacy policy, terms, and support. Light and dark aware. */
@font-face {
  font-family: "Caveat";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/caveat-500-latin.woff2") format("woff2");
}

:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --fg: #2b2522;
  --muted: #6f655f;
  --accent: #1916f5;
  --rule: #e6ded6;
  --tint: #fff6d6;
  --highlight: var(--lemon);
  /* Brand colors from the hero film; they stay the same in dark mode. */
  --blue: #1916f5;
  --blue-deep: #0d0bb0;
  --ink: #0f0e1c;
  --paper: #fbf8f2;
  --lemon: #ffd83d;
  --tomato: #ff5a36;
  --basil: #2fa35b;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1816;
    --surface: #262220;
    --fg: #efe8e2;
    --muted: #a99e96;
    --accent: #9b99ff;
    --rule: #3a332f;
    --tint: #2a2519;
    --highlight: rgba(255, 216, 61, 0.4);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main,
.site-header,
footer .wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 1rem 0 0.25rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.meta,
.muted {
  color: var(--muted);
}

/* ---------- Header and footer, shared by every page ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}

.site-header nav a {
  color: var(--fg);
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 4rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

footer .brand {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer nav a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

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

/* ---------- Homepage ---------- */

.home main {
  max-width: none;
  padding: 0;
}

.home footer {
  margin-top: 0;
}

.home footer .wrap {
  max-width: 68rem;
}

/* A full-width color band holding one centered column. */
.band {
  position: relative;
  padding-block: 5rem;
  overflow: hidden;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.band h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 1.25rem;
}

.band p {
  font-size: 1.1rem;
}

.band .lead {
  font-size: 1.25rem;
  font-weight: 700;
}

/* A lemon highlighter stroke under the words that carry the headline. */
mark {
  color: inherit;
  background: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%);
  padding: 0 0.1em;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
}

.eyebrow-tomato { background: var(--tomato); }
.eyebrow-basil { background: var(--basil); }
.eyebrow-lemon { background: var(--lemon); color: var(--ink); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .split.flip > .art {
    order: -1;
  }
}

/* Hero: the film on the film's own blue, the headline beneath it. */
.band-hero {
  padding-block: 0 5.5rem;
  color: #fff;
  background: radial-gradient(120% 90% at 50% 30%, #2d2aff 0%, var(--blue) 45%, var(--blue-deep) 100%);
}

.band-hero .site-header {
  max-width: 72rem;
}

.band-hero .brand,
.band-hero .site-header nav a {
  color: #fff;
}

.band-hero .brand img,
.page-hero .brand img {
  box-shadow: 0 0 0 2px #fff;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.blob-1 {
  width: 32rem;
  height: 32rem;
  top: -10rem;
  left: -8rem;
  background: rgba(120, 118, 255, 0.55);
}

.blob-2 {
  width: 28rem;
  height: 28rem;
  bottom: -12rem;
  right: -6rem;
  background: rgba(255, 216, 61, 0.28);
}

.hero-film {
  position: relative;
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0.5rem auto 0;
}

.hero-film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  background: var(--blue);
  box-shadow: 0 2rem 5rem rgba(6, 5, 80, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.film-sound {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.film-sound:hover,
.film-sound:focus-visible {
  background: rgba(0, 0, 0, 0.55);
}

.film-sound svg {
  display: block;
  width: 100%;
  height: 100%;
}

.film-sound[aria-pressed="false"] .waves,
.film-sound[aria-pressed="true"] .mute {
  display: none;
}

.hero-copy {
  position: relative;
  max-width: 46rem;
  margin: 3.5rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
}

.hero-copy p {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.86);
  margin: 0 auto 2rem;
}

.accent {
  color: var(--lemon);
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(6, 5, 80, 0.35);
}

/* Beats `.band p` and `.hero-copy p`, which would otherwise restyle the pill. */
.band .soon-pill {
  color: var(--ink);
  font-size: 1rem;
  margin: 0;
}

.soon-pill .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--basil);
  box-shadow: 0 0 0 0 rgba(47, 163, 91, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.6rem rgba(47, 163, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 163, 91, 0); }
}

/* Save: numbered steps and a before/after pair of phones. */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--rule), 0 0.5rem 1.5rem rgba(43, 37, 34, 0.06);
  font-weight: 600;
}

.steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-family: var(--display);
  font-weight: 800;
}

.band .tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--tint);
  font-size: 1rem;
}

.tip svg,
.feature svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.art img {
  display: block;
  min-width: 0;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(25, 22, 245, 0.25);
}

.art-pair img {
  flex: 1 1 0;
  max-width: 15rem;
}

.art-pair img:first-child {
  transform: rotate(-4deg);
}

.art-pair img:last-of-type {
  transform: rotate(4deg) translateY(1.5rem);
}

.art-arrow {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lemon);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.art-single img {
  width: 100%;
  max-width: 30rem;
  transform: rotate(-2deg);
}

/* Together: a tinted band. */
.band-tint {
  background: var(--tint);
}

.band .callout {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

.callout svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--lemon);
}

/* Heirloom: a handwritten index card becoming an app recipe card. */
.index-card {
  flex: 1 1 0;
  max-width: 18rem;
  min-width: 0;
  padding: 1.1rem 1.25rem 1.4rem;
  border-radius: 0.4rem;
  color: #2c3a8c;
  background:
    linear-gradient(#f06a6a, #f06a6a) 0 2.9rem / 100% 2px no-repeat,
    repeating-linear-gradient(transparent 0 1.85rem, #bcd3ee 1.85rem calc(1.85rem + 1px)) 0 3.1rem / 100% calc(100% - 3.1rem) no-repeat,
    #fffdf5;
  box-shadow: 0 1.25rem 2.5rem rgba(43, 37, 34, 0.18);
  font-family: "Caveat", "Bradley Hand", cursive;
  transform: rotate(-5deg);
}

.band .index-card .hand-title {
  margin: 0 0 0.9rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.index-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1.85rem;
}

.app-card {
  flex: 1 1 0;
  max-width: 18rem;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1.5rem 3rem rgba(25, 22, 245, 0.22);
  transform: rotate(3deg) translateY(1rem);
}

.app-card .photo {
  height: 6.5rem;
  background:
    radial-gradient(circle at 50% 60%, #f3c97a 0 2.1rem, #d9954a 2.1rem 2.5rem, transparent 2.55rem),
    repeating-linear-gradient(135deg, #f1e7d6 0 0.6rem, #ece0cc 0.6rem 1.2rem);
}

.app-card .body {
  padding: 0.9rem 1rem 1.1rem;
}

.app-card b {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.app-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.6rem 0 0.7rem;
}

.app-card .chips span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--blue);
  background: #e9e7ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.app-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.app-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.app-card li::before {
  content: "";
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: inset 0 0 0 0.18rem #fff4b8;
}

/* Privacy: a deep-blue band of feature tiles. */
.band-deep {
  color: #fff;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 70%);
}

.band-deep .intro {
  max-width: 40rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  line-height: 1.45;
}

.feature svg {
  color: var(--lemon);
  margin-top: 0.1rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--lemon);
}

.button:hover {
  filter: brightness(1.05);
}

/* Questions: a grid of cards linking into the FAQ. */
.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.questions a {
  display: flex;
  align-items: flex-end;
  min-height: 7.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  color: var(--fg);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--rule), 0 0.5rem 1.5rem rgba(43, 37, 34, 0.06);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.questions a:hover {
  transform: translateY(-3px);
}

.questions a.all {
  color: #fff;
  background: var(--blue);
}

/* Closing: a lemon band with the lockup. */
.band-lemon {
  color: var(--ink);
  background: var(--lemon);
  text-align: center;
}

.band-lemon img {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2rem rgba(15, 14, 28, 0.2);
}

.band-lemon h2 {
  margin: 1.5rem 0 2rem;
}

.band-lemon .soon-pill {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

/* Sections rise into place as they scroll in; only when scripts run and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- FAQ ---------- */

.page-hero {
  padding-block: 0 3.5rem;
  color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #2d2aff 0%, var(--blue) 50%, var(--blue-deep) 100%);
}

.page-hero .brand,
.page-hero .site-header nav a {
  color: #fff;
}

.page-hero h1 {
  max-width: 44rem;
  margin: 1.5rem auto 0.75rem;
  padding: 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero a {
  color: var(--lemon);
}

.faq {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.faq section {
  scroll-margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--rule), 0 0.5rem 1.5rem rgba(43, 37, 34, 0.06);
}

.faq section:target {
  box-shadow: 0 0 0 3px var(--lemon);
}

.faq h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.faq p {
  margin: 0;
}

/* Phones: tighter art and a smaller pill so nothing crowds. */
@media (max-width: 34rem) {
  .band {
    padding-block: 3.5rem;
  }

  .band .soon-pill {
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    text-align: left;
  }

  .art {
    gap: 0.25rem;
  }

  .art-arrow {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.45rem;
  }

  .index-card {
    padding: 0.8rem 0.9rem 1rem;
  }

  .band .index-card .hand-title {
    font-size: 1.3rem;
  }

  .index-card ul {
    font-size: 1.1rem;
  }

  .app-card .photo {
    height: 4.5rem;
    background-size: auto;
  }

  .app-card .body {
    padding: 0.7rem 0.75rem 0.9rem;
  }

  .app-card b {
    font-size: 0.95rem;
  }

  .app-card ul {
    font-size: 0.72rem;
  }
}
