/* Bulky AI — landing page. Only index.html uses this; legal docs keep styles.css.
   Palette is the app design system (design/ui-design-system.png). */

:root {
  --bg: #ffffff;
  --surface: #f5f5f6;
  --primary: #111111;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --accent: #f6e7db;
  --accent-2: #f0dcc5;
  --accent-3: #e9cba8;
  --success: #16c784;
  --maxw: 1140px;
  --r: 22px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 30px 60px -24px rgba(17, 17, 17, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

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

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

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

@media (max-width: 720px) {
  .nav nav a:not(.btn):not(.badge) {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(17, 17, 17, 0.7);
}

.btn-primary:hover {
  background: #2b2b2b;
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #c9c9c9;
  background: var(--surface);
}

.btn-invert {
  background: #fff;
  color: var(--primary);
}

.btn-invert:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14.5px;
}

/* official App Store badge (apple marketing tools artwork — keep the aspect ratio) */
.badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.badge img {
  height: 50px;
  width: auto;
}

.badge:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.badge-sm img {
  height: 38px;
}

.badge-lg img {
  height: 56px;
}

/* ---------- section furniture ---------- */

section {
  position: relative;
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.eyebrow b {
  background: var(--accent-3);
  color: #4a3521;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--primary);
}

h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--primary);
}

h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  font-weight: 650;
}

.lede {
  font-size: 18.5px;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .lede {
  margin: 0 auto;
}

.hl {
  background: linear-gradient(180deg, transparent 62%, var(--accent-2) 62%);
  padding: 0 2px;
}

/* ---------- hero ---------- */

.hero {
  padding: 80px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -240px 0 auto;
  height: 780px;
  background: radial-gradient(
      46% 44% at 74% 34%,
      rgba(233, 203, 168, 0.5),
      transparent 70%
    ),
    radial-gradient(40% 38% at 8% 4%, rgba(246, 231, 219, 0.85), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 6;
}

.hero-copy h1 {
  max-width: 11ch;
}

.hero-copy .lede {
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 18px;
}

.hero-note {
  font-size: 14.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 199, 132, 0.16);
}

/* ---------- iphone mockup ---------- */

/* .phone = titanium rail · .bezel = black frame · .screen = the screenshot */
.phone {
  position: relative;
  border-radius: 54px;
  padding: 4px;
  background: linear-gradient(
    142deg,
    #f2f2f5 0%,
    #9a9aa4 12%,
    #5c5c66 30%,
    #d8d8de 47%,
    #6e6e78 63%,
    #3f3f47 78%,
    #cfcfd6 94%,
    #7a7a84 100%
  );
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.phone .bezel {
  border-radius: 50px;
  padding: 9px;
  background: #0a0a0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone .screen {
  position: relative;
  border-radius: 41px;
  overflow: hidden;
  background: #fff;
}

/* screen glare */
.phone .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0) 34%
  );
  pointer-events: none;
}

/* right side: power button */
.phone::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 27%;
  width: 3px;
  height: 11%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(#d7d7dd, #5e5e68);
}

/* left side: action button + volume pair */
.phone::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 17%;
  width: 3px;
  height: 27%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(#d7d7dd, #5e5e68) left 0 top 0 / 100% 18% no-repeat,
    linear-gradient(#d7d7dd, #5e5e68) left 0 top 42% / 100% 24% no-repeat,
    linear-gradient(#d7d7dd, #5e5e68) left 0 bottom 0 / 100% 24% no-repeat;
}

.stage {
  position: relative;
  perspective: 1800px;
  min-height: 640px;
}

.stage .tilt {
  position: absolute;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.tilt-main {
  width: 62%;
  left: 16%;
  top: 0;
  z-index: 3;
  transform: rotateY(-17deg) rotateX(6deg) rotate(-2deg) translateZ(60px);
}

.tilt-back {
  width: 50%;
  right: -2%;
  top: 92px;
  z-index: 2;
  transform: rotateY(-17deg) rotateX(6deg) rotate(2deg) translateZ(-40px);
}

.tilt-front {
  width: 40%;
  left: 4%;
  top: 270px;
  z-index: 4;
  transform: rotateY(-14deg) rotateX(8deg) rotate(-5deg) translateZ(90px);
}

.stage:hover .tilt {
  transform: rotateY(-6deg) rotateX(2deg) rotate(0deg);
}

.glow-blob {
  position: absolute;
  z-index: 1;
  inset: 10% 4% 20% 8%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(233, 203, 168, 0.75),
    transparent 70%
  );
  filter: blur(50px);
}

/* floating chips over the mockups */
.chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(17, 17, 17, 0.4);
  font-size: 14px;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.chip b {
  font-size: 15px;
}

.chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.chip-1 {
  top: 58px;
  left: 4%;
  animation-delay: -1s;
}

.chip-2 {
  top: 340px;
  right: 0;
}

.chip-3 {
  bottom: 34px;
  left: 26%;
  animation-delay: -3.2s;
}

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

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
}

.step:hover {
  border-color: #d5d5d5;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(17, 17, 17, 0.35);
}

.step-media {
  height: 250px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.step-media.shot img {
  object-position: center 6%;
  transform: scale(1.03);
}

/* meal detail: frame the photo/macros boundary, not the top of the screen */
.step-media.shot-mid img {
  object-position: center 23%;
}

.step-media.shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(transparent, #fff);
}

.step-body {
  padding: 20px 22px 26px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #4a3521;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 15.5px;
}

/* ---------- photo band (the one dark moment) ---------- */

.band {
  padding: 0;
}

.band .inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  background: var(--primary);
}

.band img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band .inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    92deg,
    rgba(10, 10, 10, 0.94) 22%,
    rgba(10, 10, 10, 0.55) 55%,
    rgba(10, 10, 10, 0.12)
  );
}

.band .text {
  position: relative;
  z-index: 2;
  padding: 56px 44px;
  max-width: 560px;
}

.band h2 {
  color: #fff;
}

.band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17.5px;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.f {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.f:hover {
  border-color: #d5d5d5;
  box-shadow: var(--shadow);
}

.f .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  font-size: 21px;
  line-height: 1;
  margin-bottom: 16px;
}

.f p {
  color: var(--muted);
  margin: 0;
  font-size: 15.5px;
}

/* ---------- showcase ---------- */

.showcase {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.duo {
  position: relative;
  perspective: 1600px;
  height: 720px;
}

.duo .phone {
  position: absolute;
  width: 50%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.duo .dA {
  left: 0;
  top: 0;
  z-index: 3;
  transform: rotateY(14deg) rotateX(5deg) rotate(-3deg);
}

.duo .dB {
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: rotateY(14deg) rotateX(5deg) rotate(3deg);
}

.duo:hover .phone {
  transform: rotateY(5deg) rotateX(2deg);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.ticks li {
  position: relative;
  padding: 0 0 16px 30px;
  color: var(--muted);
  font-size: 16px;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

.ticks b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 22px;
  justify-content: center;
  align-items: start;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.plan.best {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.plan.best h3,
.plan.best .price b {
  color: #fff;
}

.plan.best .price span,
.plan.best .plan-note {
  color: rgba(255, 255, 255, 0.62);
}

.plan.best li {
  color: rgba(255, 255, 255, 0.9);
}

.plan .tag {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--accent-3);
  color: #3d2a17;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 10px 0 4px;
}

.price b {
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}

.price span {
  color: var(--muted);
  font-size: 15px;
}

.plan-note {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 15.5px;
  color: var(--text);
}

.plan li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.plan .btn {
  width: 100%;
}

.fine {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 26px auto 0;
  max-width: 620px;
}

.fine a {
  color: var(--text);
}

/* ---------- faq ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 4px 20px;
  margin-bottom: 12px;
}

.faq details[open] {
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15.5px;
}

/* ---------- final cta ---------- */

.cta .inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  padding: 76px 24px;
  background: var(--primary);
}

.cta img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.cta .inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    72% 90% at 50% 42%,
    rgba(10, 10, 10, 0.62),
    rgba(10, 10, 10, 0.9)
  );
}

.cta .text {
  position: relative;
  z-index: 2;
}

.cta h2 {
  color: #fff;
}

.cta .lede {
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.76);
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  color: var(--muted);
  font-size: 14.5px;
}

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

footer.site nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

footer.site a {
  text-decoration: none;
  transition: color 0.15s ease;
}

footer.site a:hover {
  color: var(--text);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  section {
    padding: 72px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-copy h1 {
    max-width: none;
  }
  .stage {
    min-height: 560px;
    width: 100%; /* auto margins on a grid item collapse it to fit-content (all kids are absolute) */
    max-width: 560px;
    margin: 0 auto;
  }
  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .sc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .duo {
    height: 660px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .band .text {
    padding: 44px 28px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .steps,
  .features,
  .plans {
    grid-template-columns: 1fr;
  }
  .phone {
    padding: 3px;
    border-radius: 34px;
  }
  .phone .bezel {
    padding: 6px;
    border-radius: 31px;
  }
  .phone .screen {
    border-radius: 26px;
  }
  .duo {
    height: 470px;
  }
  .duo .phone {
    width: 48%;
  }
  .stage {
    min-height: 540px;
  }
  .tilt-main {
    width: 52%;
    left: 20%;
  }
  .tilt-back {
    width: 40%;
    right: 0;
    top: 60px;
  }
  .tilt-front {
    width: 34%;
    top: 190px;
    left: 0;
  }
  .chip-1 {
    top: 30px;
    left: 2%;
  }
  .chip-2 {
    top: 280px;
    right: 0;
  }
  .chip-3 {
    bottom: 40px;
    left: 12%;
  }
  .chip small {
    display: none;
  }
  .band .inner {
    min-height: 380px;
  }
  .band .inner::after {
    /* the horizontal fade leaves text over the photo at narrow widths */
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.93) 55%,
      rgba(10, 10, 10, 0.72)
    );
  }
  .cta .inner {
    padding: 56px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
