/* Pinch website. Brand tokens match the app (src/constants/theme.ts). */
:root {
  --coral: #ff5b4a;
  --coral-deep: #e9483a;
  --coral-soft: #ffe3dd;
  --sand: #fff7ee;
  --sand-deep: #f7ebdd;
  --ink: #2b1e2f;
  --ink-soft: #6f6273;
  --line: #f0e4d6;
  --seafoam: #2fc4a2;
  --seafoam-soft: #ddf6ef;
  --butter: #ffc94a;
  --butter-light: #ffe6a1;
  --butter-soft: #fff2cc;
  --sky: #5b9cf5;
  --sky-soft: #e3eefe;
  --white: #ffffff;

  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 28px;
  --shadow: 0 30px 60px rgba(43, 30, 47, 0.16), 0 0 0 1px rgba(43, 30, 47, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--coral-deep);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.container--narrow {
  max-width: 820px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 28px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button--coral {
  background: var(--coral-deep);
  color: var(--white);
  box-shadow: 0 5px 0 #c73a2e;
}

.button--butter {
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 5px 0 #d9a52a;
}

.button--outline {
  min-height: 42px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--coral-deep);
  color: var(--white);
  padding-bottom: 250px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
}

.nav a:not(.button) {
  display: none;
  text-decoration: none;
}

.nav a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 720px) {
  .nav a:not(.button) {
    display: inline;
  }
}

.hero-copy {
  max-width: 980px;
  padding-top: 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 1;
}

.hero h1 em {
  display: inline-block;
  color: var(--butter-light);
}

.hero-lead {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.92;
}

/* The pile of dishes with Pinch in the middle, cut off by the bottom of the hero. */
.pile {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1240px, 160%);
  height: 260px;
  transform: translateX(-50%);
}

.tile {
  position: absolute;
  width: 34%;
  max-width: 230px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(43, 30, 47, 0.25);
}

.tile--1 { left: 4%; bottom: -60px; transform: rotate(-12deg); }
.tile--2 { left: 18%; bottom: 20px; transform: rotate(8deg); }
.tile--3 { left: 30%; bottom: -90px; transform: rotate(-5deg); }
.tile--4 { right: 30%; bottom: -80px; transform: rotate(6deg); }
.tile--5 { right: 18%; bottom: 24px; transform: rotate(-9deg); }
.tile--6 { right: 4%; bottom: -55px; transform: rotate(12deg); }

.pile-mascot {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 230px;
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 30px rgba(43, 30, 47, 0.3));
  animation: float 4s ease-in-out infinite;
}

@media (min-width: 720px) {
  .hero {
    padding-bottom: 330px;
  }

  .pile {
    width: min(1240px, 120%);
    height: 330px;
  }

  .tile {
    width: 19%;
  }

  .pile-mascot {
    width: 300px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -12px);
  }
}

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

  .pile-mascot,
  .closing-mascot {
    animation: none;
  }

  .button {
    transition: none;
  }
}

/* Sources ----------------------------------------------------------------------------------------- */

.sources {
  padding: 56px 0 8px;
  text-align: center;
}

.sources-title {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(84, 52, 30, 0.08);
  font-weight: 600;
}

.source-list i {
  font-size: 18px;
}

.brand-instagram { color: #d62976; }
.brand-youtube { color: #ff0033; }
.brand-pinterest { color: #e60023; }
.brand-facebook { color: #1877f2; }
.brand-web { color: var(--sky); }
.brand-photo { color: var(--seafoam); }
.brand-book { color: var(--coral-deep); }

/* Features ---------------------------------------------------------------------------------------- */

.feature {
  padding: 64px 0;
}

.feature-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature-copy {
  max-width: 520px;
}

.feature h2 {
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  line-height: 1.04;
}

.feature-copy p {
  margin: 18px 0 26px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.doodle {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

.doodle--coral { fill: var(--coral); }
.doodle--sky { fill: var(--sky); }
.doodle--seafoam { fill: var(--seafoam); }

.checks {
  margin: -8px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 36px;
  font-weight: 600;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--seafoam)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.blob {
  position: absolute;
  width: min(560px, 112%);
}

.blob--coral { fill: #ffcdc4; }
.blob--sky { fill: #cfe0fb; }
.blob--butter { fill: #ffe39a; }
.blob--seafoam { fill: #c3eee2; }

.squiggle {
  position: absolute;
  width: min(460px, 96%);
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
}

.squiggle--seafoam { stroke: var(--seafoam); }
.squiggle--butter { stroke: var(--butter); }
.squiggle--coral { stroke: var(--coral); }
.squiggle--sky { stroke: var(--sky); }

.phone {
  position: relative;
  width: min(270px, 70vw);
  margin: 0;
  padding: 8px;
  border-radius: 46px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 38px;
}

.sticker {
  position: absolute;
  bottom: 70px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(43, 30, 47, 0.16);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.sticker i {
  color: var(--coral-deep);
}

.sticker--left {
  left: 0;
  transform: rotate(-4deg);
}

.sticker--right {
  right: 0;
  transform: rotate(4deg);
}

@media (min-width: 900px) {
  .feature {
    padding: 88px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .feature--flip .feature-art {
    order: -1;
  }

  .feature--flip .feature-copy {
    justify-self: end;
  }

  .feature-art {
    min-height: 620px;
  }

  .phone {
    width: 300px;
  }

  .sticker--left {
    left: 4%;
  }

  .sticker--right {
    right: 4%;
  }
}

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

.faq {
  padding: 72px 0 96px;
}

.faq h2 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 36px;
}

.faq details {
  border-top: 1.5px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1.5px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 500;
  color: var(--coral-deep);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: -6px 0 24px;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Closing banner ---------------------------------------------------------------------------------- */

.closing {
  background: var(--butter);
  padding: 72px 0 80px;
  text-align: center;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-mascot {
  width: 170px;
  animation: bob 4s ease-in-out infinite;
}

.closing h2 {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.04;
}

.closing h2 em {
  color: #b83a2c;
}

.closing p {
  margin: 16px 0 26px;
  font-size: 1.1rem;
  font-weight: 600;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.store-badge img {
  width: 180px;
  height: auto;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.closing .coming-soon {
  margin: 0;
}

.closing .iap-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.75;
}

.coming-soon i {
  font-size: 22px;
}

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

.footer {
  overflow: hidden;
  background: var(--ink);
  color: var(--sand);
  padding-top: 48px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo--light img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 247, 238, 0.15);
  font-size: 14px;
  color: rgba(255, 247, 238, 0.75);
}

.footer-bottom p {
  margin: 0;
}

/* The whole word shows, with room for the tail of the "p" (a negative margin used to cut off the bottoms of "inch"). */
.wordmark {
  margin: 12px 0 0;
  padding-bottom: 0.14em;
  font-family: var(--display);
  font-size: clamp(7rem, 31vw, 24rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--coral);
  user-select: none;
}

/* Legal pages (privacy) -------------------------------------------------------------------------- */

.page-header {
  background: var(--coral-deep);
  color: var(--white);
}

.legal {
  padding-top: 48px;
  padding-bottom: 80px;
}

.legal h1 {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  line-height: 1.05;
}

.legal .updated {
  margin: 10px 0 28px;
  font-size: 15px;
  color: var(--ink-soft);
}

.legal h2 {
  margin: 48px 0 12px;
  font-size: clamp(1.55rem, 4.5vw, 2rem);
  line-height: 1.15;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 8px;
}

.legal li ul {
  margin: 8px 0 0;
}

/* Darker than --coral-deep so link text keeps 4.5:1 contrast on sand. */
.legal a {
  color: #b83a2c;
  font-weight: 600;
  text-underline-offset: 3px;
}

.legal .summary {
  margin: 8px 0;
  padding: 24px 24px 12px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.legal .summary h2 {
  margin-top: 0;
  font-size: 1.5rem;
}
