/* MyCookbook landing — "the heirloom kitchen"
   Fraunces (display) + Outfit (body) + Caveat (handwriting)
   Palette: app tokens — cream #F8F4EF / deep #221c15 / copper #B87333 */

:root {
  --cream: #F8F4EF;
  --cream-2: #F0E8DA;
  --paper: #FDF9F0;
  --ink: #2e2820;
  --ink-soft: #5C4F40;
  --ink-ter: #7A6A58;
  --copper: #B87333;
  --copper-deep: #96591F;
  --night: #1B1610;
  --night-2: #241D14;
  --lamp: 255, 196, 120;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", -apple-system, sans-serif;
  --hand: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: rgba(184, 115, 51, .28); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(120% 90% at 78% 10%, #2a2117 0%, var(--night) 55%),
    var(--night);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--cream));
}

.nav {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(22px, 5vw, 64px);
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 500; letter-spacing: .01em; font-size: 17px; }
.nav-brand img { border-radius: 8px; }
.nav-cta {
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(248, 244, 239, .3);
  padding: 9px 20px; border-radius: 100px;
  transition: border-color .25s, background .25s;
}
.nav-cta:hover { border-color: var(--copper); background: rgba(184, 115, 51, .16); }

.hero-inner {
  position: relative; z-index: 4;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(12px, 3vh, 40px) clamp(22px, 5vw, 64px) 110px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper); font-weight: 500; margin-bottom: 22px;
  animation: rise .8s .1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero h1 {
  text-wrap: balance;
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 100;
  animation: rise .8s .22s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-sub {
  margin-top: 24px; max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: rgba(248, 244, 239, .78);
  animation: rise .8s .34s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-sub em { font-style: normal; color: var(--cream); border-bottom: 1px solid rgba(184, 115, 51, .55); }
.hero-actions {
  margin-top: 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  animation: rise .8s .46s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-price-note { font-size: 13.5px; color: rgba(248, 244, 239, .55); letter-spacing: .02em; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cream); color: var(--night);
  text-decoration: none;
  padding: 12px 24px 12px 20px;
  border-radius: 14px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(0, 0, 0, .45); }
.store-badge small { display: block; font-size: 11px; letter-spacing: .04em; opacity: .65; line-height: 1.1; }
.store-badge strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.store-badge.dark { background: var(--night); color: var(--cream); box-shadow: 0 12px 36px rgba(34, 28, 21, .35); }

/* — the lamp stage — */
.lamp-stage {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 5 / 6;
  display: grid; place-items: center;
  cursor: none;
}
.lamp-hint {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--hand); font-size: 20px; color: rgba(255, 196, 120, .65);
  z-index: 6; pointer-events: none; transition: opacity .6s;
}
.card-heirloom {
  position: relative;
  width: 92%;
  background: linear-gradient(174deg, #f3ead6 0%, #e9dcc0 100%);
  color: #4a3a26;
  border-radius: 6px;
  padding: 40px 34px 34px;
  transform: rotate(-2.4deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  font-family: var(--hand);
}
.card-pin {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8a05c, var(--copper-deep) 70%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .45);
}
.card-title { font-size: clamp(24px, 2.6vw, 31px); font-weight: 600; line-height: 1.15; margin-bottom: 18px; }
.card-line { font-size: clamp(17px, 1.8vw, 20.5px); line-height: 1.55; }
.card-note { margin-top: 16px; font-size: clamp(17px, 1.8vw, 20px); opacity: .75; }
.u { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.card-stain {
  position: absolute; width: 88px; height: 78px; border-radius: 46% 54% 58% 42%;
  background: radial-gradient(circle, rgba(150, 100, 40, .22), rgba(150, 100, 40, .05) 65%, transparent 75%);
  right: 8%; bottom: 10%; pointer-events: none;
}
.card-stain.two { width: 46px; height: 44px; left: 6%; top: 14%; transform: rotate(24deg); }

/* the darkness above the card, pierced by the lamp */
.lamp-veil {
  position: absolute; inset: -14%;
  z-index: 5; pointer-events: none;
  --mx: 50%; --my: 42%;
  background: radial-gradient(circle 170px at var(--mx) var(--my),
      rgba(27, 22, 16, 0) 0%,
      rgba(27, 22, 16, .18) 42%,
      rgba(27, 22, 16, .84) 78%,
      rgba(27, 22, 16, .96) 100%);
  transition: opacity .5s;
}
/* warm cast where the light lands */
.lamp-stage::after {
  content: ""; position: absolute; inset: -14%; z-index: 6; pointer-events: none;
  --mx: 50%; --my: 42%;
  background: radial-gradient(circle 150px at var(--mx) var(--my),
      rgba(var(--lamp), .17), transparent 70%);
  mix-blend-mode: soft-light;
}

/* ═══════════════ SECTIONS ═══════════════ */
main section { padding: clamp(72px, 10vw, 128px) clamp(22px, 5vw, 64px); }
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.eyebrow {
  font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--copper-deep); font-weight: 500; margin-bottom: 16px;
}
main h2 {
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500; line-height: 1.12; letter-spacing: -.01em;
}
.lede { margin-top: 20px; font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* — promise / morph — */
.promise { background: var(--cream); }
.morph {
  margin: 64px auto 0; max-width: 940px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(18px, 3vw, 40px); align-items: center;
}
.morph figure { text-align: center; }
.morph figcaption {
  font-family: var(--hand); font-size: 21px; color: var(--ink-ter); margin-bottom: 18px;
}
.morph-arrow { color: var(--copper); opacity: .85; }

.mini-heirloom {
  background: linear-gradient(172deg, #f3ead6, #e7d9bc);
  color: #4a3a26;
  border-radius: 6px; padding: 30px 26px;
  transform: rotate(-1.8deg);
  box-shadow: 0 18px 44px rgba(74, 58, 38, .22);
  font-family: var(--hand);
  font-size: 19px; line-height: 1.65;
  position: relative;
  text-align: left;
}
.mini-title { font-size: 25px; font-weight: 600; margin-bottom: 10px; }
.scratch { text-decoration: line-through; opacity: .55; }

.app-card {
  background: #fff;
  border: 1px solid rgba(46, 40, 32, .08);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 24px 54px rgba(46, 40, 32, .13);
  text-align: left;
  transform: rotate(1.2deg);
}
.app-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.app-chip {
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--copper-deep); background: rgba(184, 115, 51, .12);
  padding: 4px 12px; border-radius: 100px;
}
.app-serves { font-size: 13.5px; color: var(--ink-ter); }
.app-title { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.app-ings { list-style: none; }
.app-ings li {
  font-size: 15.5px; padding: 8px 2px; color: var(--ink-soft);
  border-bottom: 1px dashed rgba(46, 40, 32, .1);
}
.app-ings b { color: var(--ink); font-weight: 500; }
.app-scale { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.scale-btn {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(46, 40, 32, .14);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.scale-btn:hover { transform: translateY(-1px); border-color: var(--copper); }
.scale-btn[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; }
.scale-label { font-family: var(--hand); font-size: 18px; color: var(--ink-ter); margin-left: 6px; }

/* — features — */
.features { background: linear-gradient(var(--cream), var(--cream-2) 130%); }
.feature-grid {
  margin: 60px auto 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: var(--paper);
  border: 1px solid rgba(46, 40, 32, .07);
  border-radius: 22px;
  padding: 32px 30px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(46, 40, 32, .12); }
.f-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(184, 115, 51, .12); color: var(--copper-deep);
  margin-bottom: 20px;
}
.f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--serif); font-size: 20.5px; font-weight: 500; margin-bottom: 9px; letter-spacing: -.01em; }
.feature p { font-size: 15px; color: var(--ink-soft); line-height: 1.62; }


/* — real app screenshots — */
.shots { background: var(--cream); }
.phone-row {
  margin: 64px auto 0; max-width: 1150px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 30px); align-items: start;
}
.phone {
  margin: 0; text-align: center;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.phone img {
  width: 100%; height: auto; border-radius: 30px;
  border: 6px solid var(--night);
  box-shadow: 0 26px 56px rgba(46, 40, 32, .28);
  background: var(--night);
}
.phone figcaption {
  margin-top: 16px; font-family: var(--hand);
  font-size: 20px; color: var(--ink-ter);
}
.tilt-l { transform: rotate(-2deg) translateY(18px); }
.lift { transform: translateY(-8px); }
.tilt-r { transform: rotate(1.6deg) translateY(10px); }
.tilt-r2 { transform: rotate(2.6deg) translateY(26px); }
.phone:hover { transform: translateY(-6px); }

@media (max-width: 900px) {
  .phone-row { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .tilt-l, .lift, .tilt-r, .tilt-r2 { transform: none; }
}

/* — pricing — */
.pricing { background: var(--cream-2); }
.price-cards {
  margin: 56px auto 0; max-width: 780px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: stretch;
}
.price-card {
  background: var(--paper); border-radius: 24px; padding: 36px 34px;
  border: 1px solid rgba(46, 40, 32, .08);
}
.price-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.price { margin: 14px 0 20px; font-size: 15px; color: var(--ink-ter); }
.price b { font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--ink); margin-right: 6px; }
.price .or { display: block; margin-top: 2px; }
.price-card ul { list-style: none; }
.price-card li {
  font-size: 15px; color: var(--ink-soft); padding: 8px 0 8px 28px; position: relative;
}
.price-card li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(-48deg);
}
.price-card.pro {
  position: relative;
  background: var(--night);
  color: var(--cream);
  border-color: transparent;
  box-shadow: 0 30px 64px rgba(27, 22, 16, .35);
}
.price-card.pro .price, .price-card.pro li { color: rgba(248, 244, 239, .75); }
.price-card.pro .price b { color: var(--cream); }
.pro-flag {
  position: absolute; top: 26px; right: 26px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--night); background: var(--copper);
  padding: 5px 13px; border-radius: 100px;
}
.price-cta {
  display: block; margin-top: 26px; text-align: center;
  background: var(--copper); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 15.5px;
  padding: 14px; border-radius: 14px;
  transition: background .25s, transform .2s;
}
.price-cta:hover { background: var(--copper-deep); transform: translateY(-1px); }

/* — closer — */
.closer { background: var(--cream-2); text-align: center; padding-top: 20px !important; }
.closer h2 { margin-bottom: 34px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--night); color: rgba(248, 244, 239, .6);
  padding: 44px clamp(22px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 500; }
.foot-brand img { border-radius: 6px; }
.foot-links { display: flex; gap: 26px; font-size: 14px; }
.foot-links a { text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--copper); }
.foot-note { font-size: 13px; width: 100%; opacity: .5; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 80px; gap: 48px; }
  .lamp-stage { width: min(360px, 88vw); cursor: default; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .morph { grid-template-columns: 1fr; max-width: 460px; }
  .morph-arrow { transform: rotate(90deg); justify-self: center; }
  .price-cards { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
