/* myFoodie marketing site
   Palette from strawberry mark: tomato red, coral blush, leaf greens */

:root {
  --berry: #e22b2b;
  --berry-deep: #c41f1f;
  --coral: #f3a3a0;
  --blush: #ffe6e4;
  --blush-deep: #ffd0cd;
  --leaf: #4f9a3e;
  --leaf-soft: #9fd18a;
  --ink: #1a1212;
  --ink-soft: #5c4a4a;
  --cream: #fff8f7;
  --white: #ffffff;
  --line: rgba(226, 43, 43, 0.14);
  --shadow: 0 24px 60px rgba(196, 31, 31, 0.14);
  --radius: 28px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", Georgia, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 208, 205, 0.7), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(159, 209, 138, 0.18), transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #fff 40%, var(--blush) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--berry);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-solid {
  background: rgba(255, 248, 247, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(226, 43, 43, 0.25));
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

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

.nav-cta {
  color: var(--white) !important;
  background: var(--berry);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--berry-deep);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(226, 43, 43, 0.08);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: var(--ink-soft);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
}

.lang-switch a:hover {
  color: var(--berry);
}

.lang-switch a[aria-current="page"] {
  background: var(--berry);
  color: white !important;
}

.nav .lang-switch {
  margin-left: 0.25rem;
}

.lang-switch-mobile {
  display: inline-flex;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 7px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 49;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(255, 248, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 0.9rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .lang-switch-mobile { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero — one full-bleed composition */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #2a1010;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: film-drift 28s ease-in-out infinite alternate;
}

@keyframes film-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 10, 10, 0.25) 0%, rgba(26, 10, 10, 0.18) 35%, rgba(26, 10, 10, 0.72) 100%),
    radial-gradient(80% 60% at 70% 30%, transparent 0%, rgba(226, 43, 43, 0.18) 100%);
}

.hero-copy {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 5.5rem;
}

.hero-brand,
.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-brand img,
.download-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  max-width: 14ch;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  max-width: 36ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--berry);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(226, 43, 43, 0.4);
}

.btn-primary:hover { background: var(--berry-deep); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: white;
  animation: scroll-dot 1.6s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Features */
.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }

  .feature-b .feature-visual { order: 0; }
  .feature-b .feature-text { order: 1; }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 0.85rem;
}

.feature-text p:last-child {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 38ch;
  margin: 0;
}

.visual-stage {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.75rem) 1rem;
}

.stage-blush {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75), transparent 45%),
    linear-gradient(145deg, var(--blush) 0%, var(--coral) 55%, #f07a74 100%);
  box-shadow: var(--shadow);
}

.stage-leaf {
  background:
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(160deg, #e8f6e2 0%, var(--leaf-soft) 48%, var(--leaf) 100%);
  box-shadow: var(--shadow);
}

.stage-berry {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.25), transparent 40%),
    linear-gradient(160deg, #ff8f8a 0%, var(--berry) 55%, var(--berry-deep) 100%);
  box-shadow: var(--shadow);
}

/* Phone frames for App Store screenshots */
.phone {
  margin: 0;
  width: min(260px, 68%);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2a1a1a, #120a0a);
  box-shadow:
    0 28px 50px rgba(40, 10, 10, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: float-y 5.5s ease-in-out infinite;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
  background: #1a1212;
}

.phone-sm {
  width: min(200px, 70%);
  animation-duration: 6s;
}

.phone-tilt-right {
  transform: rotate(4deg);
}

.phone-tilt-left {
  transform: rotate(-4deg);
}

.phone-tilt-right,
.phone-tilt-left {
  animation-name: float-y-tilt;
}

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

@keyframes float-y-tilt {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 4deg)); }
  50% { transform: translateY(-12px) rotate(var(--tilt, 4deg)); }
}

.phone-tilt-right { --tilt: 4deg; }
.phone-tilt-left { --tilt: -4deg; }

/* Scan band */
.scan-band {
  margin: 1rem 0 2rem;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(120deg, rgba(226, 43, 43, 0.08), rgba(159, 209, 138, 0.16)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(226, 43, 43, 0.035) 18px,
      rgba(226, 43, 43, 0.035) 19px
    );
}

.scan-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.scan-inner img {
  margin: 0 auto 1.25rem;
  animation: float-y 5s ease-in-out infinite;
}

.scan-inner p {
  color: var(--ink-soft);
  font-size: 1.125rem;
  margin: 0 auto;
  max-width: 42ch;
}

/* How */
.how {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
}

.how-intro {
  max-width: 18ch;
  margin-bottom: 2.5rem;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.how-steps li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--berry);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--coral);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

.how-steps p {
  color: var(--ink-soft);
  margin: 0;
}

/* Download — interactive panel */
.download {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 5rem;
}

.download-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(135deg, #ff6b66 0%, var(--berry) 48%, #9e1515 100%);
  color: white;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .download-panel {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.download-copy h2 {
  max-width: 12ch;
}

.download-copy > p {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.88);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 168px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #000;
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-btn span {
  display: grid;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.store-btn small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  opacity: 0.75;
}

.store-note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0;
}

.download-visual {
  display: grid;
  place-items: center;
}

.download-visual .phone {
  background: linear-gradient(160deg, #1a1010, #0a0505);
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Footer */
.site-footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.25rem;
}

.footer-left p {
  margin: 0.35rem 0 0;
  max-width: 28ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: 1.1rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.footer-links a:hover { color: var(--berry); }

@media (max-width: 640px) {
  .footer-links {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--berry);
  background: rgba(226, 43, 43, 0.08);
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social a:hover {
  background: var(--berry);
  color: white;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.legal {
  font-size: 0.9rem;
  margin: 0;
}

/* Legal / contact pages */
.legal-page {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}

.legal-page h1 {
  margin-bottom: 0.35em;
}

.legal-page h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin-top: 2.25rem;
  margin-bottom: 0.55em;
}

.legal-page h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.4em;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

.legal-page a {
  color: var(--berry);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}

.legal-page li {
  margin-bottom: 0.45rem;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.hero-lead-static {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.contact-block {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-block h2 {
  margin-top: 0;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.contact-note {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.contact-social {
  margin: 0;
}

.contact-social a {
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none !important;
}

.contact-social a:hover {
  color: white;
}

.contact-social span {
  font-size: 0.95rem;
}

/* Scroll reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal-up.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video,
  .phone,
  .scan-inner img {
    animation: none !important;
  }
  .phone-tilt-right { transform: rotate(4deg); }
  .phone-tilt-left { transform: rotate(-4deg); }
  .reveal,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-scroll span { animation: none; }
}
