/* ===== Cafe Date landing ===== */

@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakh-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakh-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakh-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakh-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakh-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  /* Warm café palette (matches the existing Cafe Date page) */
  --espresso: #1A1714;
  --espresso-2: #231E1A;
  --espresso-3: #332B25;
  --roast: #2B2320;
  --coffee: #8B5A2B;
  --coffee-2: #A67B5B;
  --caramel: #C8925A;
  --amber: #E9B872;
  --blush: #F3C9B4;
  --cream: #EFE1CE;
  --foam: #F7EEE2;
  --paper: #FBF7F1;
  --olive: #3F6B3F;
  --white: #FFFFFF;
  --muted: #6E5F55;
  --on-dark: #F5EFE4;
  --on-dark-2: rgba(245, 239, 228, .72);

  --shadow: 0 10px 30px rgba(43, 35, 32, .08);
  --shadow-lg: 0 24px 60px rgba(26, 23, 20, .22);
  --radius: 24px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "YekanBakh", Tahoma, sans-serif;
  font-size: 17px; line-height: 2;
  color: var(--roast); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }
em { font-style: normal; color: var(--coffee); }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Header and hero use a wider column so wide screens don't leave an empty band on the right */
.wrap--wide { max-width: 1600px; padding-inline: max(var(--gutter), 4vw); }
.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; top: -60px; right: 16px; z-index: 100; background: var(--coffee); color: var(--white); padding: 8px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* ===== Small pieces ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--coffee); letter-spacing: 0;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--amber); }
.eyebrow .dot { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; padding: 10px 22px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--sm { font-size: 15px; padding: 8px 20px; }
.btn--coffee { background: var(--coffee); color: var(--white); }
.btn--coffee:hover { background: var(--coffee-2); transform: translateY(-1px); }

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 196px; padding: 10px 18px 10px 26px; border-radius: 18px;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.store__logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.35; }
.store small { font-size: 12.5px; font-weight: 600; opacity: .8; }
.store b { font-size: 19px; font-weight: 800; }
.store--primary { background: var(--coffee); color: var(--white); box-shadow: 0 10px 26px rgba(139, 90, 43, .35); }
.store--primary .store__logo { background: var(--white); border-radius: 12px; padding: 3px; }
.store--primary:hover { background: var(--coffee-2); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(139, 90, 43, .42); }
.store--ghost { background: rgba(255, 255, 255, .08); color: var(--on-dark); border: 1.5px solid rgba(245, 239, 228, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.store--ghost .store__logo { background: var(--white); border-radius: 12px; padding: 4px; }
.store--ghost:hover { background: rgba(255, 255, 255, .16); border-color: var(--on-dark); transform: translateY(-3px); }

.round {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(245, 239, 228, .12); color: var(--on-dark); border: 1px solid rgba(245, 239, 228, .3);
  transition: background .2s ease;
}
.round:hover { background: rgba(245, 239, 228, .24); }
.round .ic { width: 22px; height: 22px; stroke-width: 2.2; }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; color: var(--on-dark);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.nav.is-stuck { background: rgba(26, 23, 20, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(245, 239, 228, .08); --nav-h: 66px; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--on-dark); }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { font-weight: 600; font-size: 15.5px; padding: 6px 14px; border-radius: 999px; color: var(--on-dark-2); transition: color .2s ease, background .2s ease; }
.nav__links a:hover { color: var(--on-dark); background: rgba(245, 239, 228, .08); }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 72px; color: var(--on-dark); background: var(--espresso);
}
/* Photo fills the left side; the text sits on a warm espresso panel on the right */
.hero__bg { position: absolute; inset: 0 auto 0 0; width: 72%; height: 100%; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; animation: slowzoom 24s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 30% 45% at 85% 40%, rgba(233, 184, 114, .10), transparent 70%),
    linear-gradient(to left, var(--espresso) 0%, var(--espresso) 30%, rgba(26, 23, 20, .82) 37%, rgba(26, 23, 20, .25) 50%, rgba(26, 23, 20, 0) 60%),
    linear-gradient(to top, rgba(20, 16, 13, .6), transparent 30%);
}
.hero__in { display: flex; }
.hero__copy { max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__title { font-size: clamp(36px, 4.6vw, 60px); font-weight: 900; line-height: 1.3; color: var(--on-dark); text-wrap: balance; }
.hero__title span { display: block; color: var(--amber); }
.hero__sub { font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: var(--blush); margin-top: -6px; }
.hero__lead { font-size: 17.5px; color: var(--on-dark-2); max-width: 500px; }
.hero .stores { margin-top: 8px; }
.hero__meta { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; font-weight: 600; color: var(--on-dark-2); }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .ic { width: 18px; height: 18px; color: var(--amber); }

/* ===== Sections ===== */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--espresso { background: var(--espresso); color: var(--on-dark); overflow: hidden; isolation: isolate; }

.head { text-align: center; max-width: 680px; margin: 0 auto clamp(44px, 6vw, 68px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 900; }
.head p { font-size: 18px; color: var(--muted); }
.head--light h2 { color: var(--on-dark); }
.head--light p { color: var(--on-dark-2); }

/* ===== Intro & steps ===== */
.intro { max-width: 820px; margin: 0 auto clamp(56px, 7vw, 80px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; text-wrap: balance; }
.intro p { font-size: 19px; color: var(--muted); max-width: 680px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; background: var(--foam); border-radius: var(--radius);
  padding: 30px 28px 32px; box-shadow: var(--shadow); border: 1px solid rgba(139, 90, 43, .1);
}
.step__num {
  position: absolute; top: 22px; left: 24px; font-size: 44px; font-weight: 900; line-height: 1;
  color: rgba(139, 90, 43, .14);
}
.step__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--coffee); color: var(--white); }
.step__ic .ic { width: 26px; height: 26px; }
.step h3 { font-size: 20px; font-weight: 800; margin: 18px 0 6px; }
.step p { color: var(--muted); font-size: 16px; line-height: 1.9; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.feat {
  grid-column: span 2; background: var(--white); border-radius: var(--radius);
  padding: 30px 28px 32px; box-shadow: var(--shadow); border: 1px solid rgba(139, 90, 43, .08);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43, 35, 32, .12); }
.feat--wide { grid-column: span 3; display: flex; gap: 22px; align-items: flex-start; background: linear-gradient(160deg, var(--foam), var(--white)); }
.feat__ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--cream); color: var(--coffee); flex: none; }
.feat__ic .ic { width: 27px; height: 27px; }
.feat h3 { font-size: 20px; font-weight: 800; margin: 18px 0 6px; }
.feat--wide h3 { margin-top: 2px; font-size: 22px; }
.feat p { color: var(--muted); font-size: 16px; line-height: 1.9; }

/* ===== Gallery (fanned phones) ===== */
.glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 50% 70%, rgba(233, 184, 114, .22), transparent 70%),
    radial-gradient(ellipse 35% 30% at 85% 15%, rgba(200, 146, 90, .12), transparent 70%);
}
.fan { display: flex; justify-content: center; align-items: center; padding: 10px var(--gutter) 30px; }
.phone {
  --w: clamp(150px, 17vw, 228px);
  position: relative; flex: none; width: var(--w); padding: 0; border: 0; background: var(--espresso-3);
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px var(--espresso-2), 0 0 0 7px rgba(245, 239, 228, .12);
  margin-inline: calc(var(--w) * -.12);
  transition: transform .5s var(--ease), filter .4s ease, box-shadow .4s ease;
}
.phone img { width: 100%; aspect-ratio: 420 / 747; object-fit: cover; }
.phone:nth-child(1) { transform: rotate(9deg) translateY(46px) scale(.84); z-index: 1; filter: brightness(.72); }
.phone:nth-child(2) { transform: rotate(4.5deg) translateY(16px) scale(.92); z-index: 2; filter: brightness(.86); }
.phone--front { --w: clamp(170px, 20vw, 264px); z-index: 3; }
.phone:nth-child(4) { transform: rotate(-4.5deg) translateY(16px) scale(.92); z-index: 2; filter: brightness(.86); }
.phone:nth-child(5) { transform: rotate(-9deg) translateY(46px) scale(.84); z-index: 1; filter: brightness(.72); }
.phone:hover { filter: brightness(1); z-index: 5; transform: translateY(-12px) scale(1.02); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 6px var(--espresso-2), 0 0 0 7px rgba(233, 184, 114, .5); }
.fan__hint { text-align: center; font-size: 14px; color: var(--on-dark-2); margin-top: 18px; }

/* ===== Who ===== */
.who { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.who__art { margin: 0; justify-self: center; position: relative; width: min(100%, 360px); }
.who__art::before {
  content: ""; position: absolute; inset: 8% -10% -6% 12%; border-radius: 40px; z-index: 0;
  background: linear-gradient(160deg, var(--caramel), var(--coffee)); opacity: .25; transform: rotate(-5deg);
}
.who__art img { position: relative; border-radius: 32px; box-shadow: var(--shadow-lg); }
.who__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.who__copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; text-wrap: balance; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17.5px; line-height: 1.85; }
.checks .ic { width: 26px; height: 26px; padding: 5px; margin-top: 3px; border-radius: 50%; background: var(--coffee); color: var(--white); stroke-width: 2.6; }
.quote { margin: 12px 0 0; padding: 4px 18px 4px 0; border-right: 3px solid var(--caramel); }
.quote p { font-size: 19px; font-weight: 700; color: var(--coffee); }

/* ===== CTA ===== */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 150px) 0; background: var(--espresso); color: var(--on-dark); }
.cta__bg {
  position: absolute; inset: -20px; z-index: -1;
  background: linear-gradient(rgba(20, 16, 13, .78), rgba(20, 16, 13, .9)), url("../img/hero-sm.webp") center / cover no-repeat;
  filter: blur(6px);
}
.cta__card { max-width: 720px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__icon { width: 112px; height: 112px; border-radius: 30px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(245, 239, 228, .15); }
.cta__card h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; color: var(--on-dark); }
.cta__card > p { font-size: 18px; color: var(--on-dark-2); max-width: 520px; margin-bottom: 8px; }
.tg {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 20px 10px 14px;
  border-radius: 18px; background: rgba(245, 239, 228, .07); border: 1px solid rgba(245, 239, 228, .16);
  transition: background .2s ease, border-color .2s ease;
}
.tg:hover { background: rgba(245, 239, 228, .13); border-color: rgba(245, 239, 228, .3); }
.tg__ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #2AABEE; color: var(--white); }
.tg__ic .ic { width: 22px; height: 22px; fill: var(--white); stroke: #2AABEE; stroke-width: 1.2; }
.tg span:last-child { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.5; }
.tg b { font-weight: 700; }
.tg small { font-size: 13px; color: var(--on-dark-2); direction: ltr; }

/* ===== Footer ===== */
.foot { background: #14110F; color: var(--on-dark); border-top: 1px solid rgba(245, 239, 228, .08); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 34px 26px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; font-size: 15.5px; }
.foot__links a { color: var(--on-dark-2); transition: color .2s ease; }
.foot__links a:hover { color: var(--amber); }
.foot__tg { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 239, 228, .07); border: 1px solid rgba(245, 239, 228, .14); transition: background .2s ease; }
.foot__tg:hover { background: #2AABEE; }
.foot__tg .ic { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.foot__end { display: flex; align-items: center; gap: 16px; }
.foot__trust {
  display: grid; place-items: center; min-width: 92px; min-height: 92px; padding: 6px;
  background: var(--white); border-radius: 16px; box-shadow: 0 0 0 1px rgba(233, 184, 114, .35);
}
.foot__trust img { width: 100px; height: 110px; object-fit: contain; }
/* The local fallback badge (main.js) is its own espresso card, so drop the white box around it */
.foot__trust:has(img[data-fallback]) { background: none; padding: 0; box-shadow: none; }
.foot__bottom { border-top: 1px solid rgba(245, 239, 228, .08); padding-block: 18px 24px; }
.copy { font-size: 14px; color: rgba(245, 239, 228, .6); text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.copy__brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #9BEA6E; }
.copy__brand img { width: 26px; height: auto; }

/* ===== Lightbox ===== */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16, 13, 11, .94); display: none; align-items: center; justify-content: center;
}
.lb[open] { display: flex; }
.lb::backdrop { background: transparent; }
.lb img { max-height: 88dvh; max-width: 92vw; width: auto; border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb .round { position: absolute; }
.lb__close { top: 20px; left: 20px; }
.lb__prev { right: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { left: 20px; top: 50%; transform: translateY(-50%); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.steps .step:nth-child(2), .features .feat:nth-child(2), .features .feat:nth-child(4) { transition-delay: .1s; }
.steps .step:nth-child(3), .features .feat:nth-child(5) { transition-delay: .2s; }

/* ===== Responsive ===== */
@media (min-width: 1500px) {
  .hero__copy { max-width: 700px; gap: 22px; }
  .hero__title { font-size: 74px; }
  .hero__sub { font-size: 27px; }
  .hero__lead { font-size: 19.5px; max-width: 600px; }
  .store { min-width: 220px; padding-block: 12px; }
  .store b { font-size: 21px; }
  .hero__meta { font-size: 16px; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .feat, .feat--wide { grid-column: span 1; }
  .feat--wide { flex-direction: column; gap: 0; }
  .feat--wide h3 { margin-top: 18px; font-size: 20px; }
  .who { grid-template-columns: 1fr; }
  .who__art { width: min(70%, 300px); }
}
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-end; padding-top: calc(var(--nav-h) + 52vw); padding-bottom: 56px; }
  .hero__bg { width: 100%; height: 70%; }
  .hero__bg img { object-position: 48% top; }
  .hero__shade { background: linear-gradient(to bottom, rgba(20, 16, 13, .35) 0%, rgba(20, 16, 13, .1) 18%, rgba(20, 16, 13, .75) 46%, var(--espresso) 68%); }
  .features { grid-template-columns: 1fr; }
  /* Fan becomes a swipeable row */
  .fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 10px var(--gutter) 34px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .phone, .phone--front { --w: 64vw; margin: 0; transform: none !important; filter: none !important; scroll-snap-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 0 5px var(--espresso-2); }
  .fan__hint { margin-top: 4px; }
  .foot__top { flex-direction: column; text-align: center; }
  .foot__links { justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand { font-size: 19px; }
  .brand img { width: 38px; height: 38px; }
  .stores { flex-direction: column; width: 100%; }
  .store { width: 100%; justify-content: center; }
  .hero__lead { font-size: 16.5px; }
  .tg { width: 100%; justify-content: center; }
}

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