/* VaadakaMate marketing site. Same palette and type as the app (app/lib/core/theme.dart): Direction B "Editorial". */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Malayalam";
  src: url("assets/fonts/NotoSansMalayalam.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f4efe6;
  --paper: #fffdf8;
  --ink: #1f1b16;
  --dim: #5b5348;
  --line: #d9d0c1;
  --well: #eae3d6;
  --rose: #a6344f;
  --rose-dark: #771732;
  --rose-soft: #f3e1e2;
  --ok: #2f6b3a;
  --serif: "Fraunces", "Noto Sans Malayalam", Georgia, serif;
  --sans: "Source Sans 3", "Noto Sans Malayalam", system-ui, sans-serif;
  --wrap: min(1240px, calc(100vw - 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ml"] body { line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
html[lang="ml"] h1, html[lang="ml"] h2, html[lang="ml"] h3 { font-family: "Noto Sans Malayalam", var(--serif); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
em { font-style: italic; color: var(--rose); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
html[lang="ml"] .kicker { letter-spacing: 0; font-size: 15px; text-transform: none; }

/* Buttons: one Rose action, ghosts for the rest. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--rose-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px max(24px, calc((100vw - 1240px) / 2));
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.top.is-scrolled { background: rgb(244 239 230 / 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #3a1f1a; }
.brand-name span { color: var(--rose); }
.logo { height: 38px; width: auto; }
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-family: "Noto Sans Malayalam", sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  padding-bottom: 2px;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--dim); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 14px var(--sans);
  color: var(--dim);
  cursor: pointer;
}
.lang-sep { margin: 0 4px; opacity: 0.5; }
html[lang="en"] .lang-en, html[lang="ml"] .lang-ml { color: var(--rose); }

/* 1. Hero */
.hero {
  min-height: 100dvh;
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 120px 0 64px;
}
.hero-title { font-size: clamp(52px, 8.4vw, 124px); line-height: 0.95; margin: 18px 0 28px; font-weight: 400; }
html[lang="ml"] .hero-title { font-size: clamp(40px, 6vw, 84px); line-height: 1.15; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { font-weight: 400; }
.hero-sub { font-size: 21px; max-width: 30em; color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.hero-note { font-size: 15px; color: var(--dim); }

.hero-stage { position: relative; height: min(76vh, 720px); }
.phone {
  position: relative;
  border-radius: 38px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 40px 80px -30px rgb(31 27 22 / 0.45), 0 0 0 1px rgb(31 27 22 / 0.2);
}
.phone img { border-radius: 29px; width: 100%; }
.hero-phone { position: absolute; inset: 0; margin: auto; width: min(300px, 62%); height: fit-content; z-index: 3; }
.float { position: absolute; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 48px -24px rgb(31 27 22 / 0.4); }
.float img { width: 100%; height: 100%; object-fit: cover; }
.f1 { width: 42%; aspect-ratio: 4 / 3; left: 0; top: 6%; z-index: 2; rotate: -4deg; }
.f2 { width: 40%; aspect-ratio: 4 / 3; right: 0; top: 0; z-index: 1; rotate: 3deg; }
.f3 { width: 38%; aspect-ratio: 4 / 3; left: 4%; bottom: 4%; z-index: 4; rotate: 3deg; }
.f4 { width: 36%; aspect-ratio: 3 / 4; right: 2%; bottom: 0; z-index: 2; rotate: -3deg; }
.ticket {
  position: absolute;
  z-index: 5;
  right: 6%;
  top: 46%;
  background: var(--rose);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px 10px;
  box-shadow: 0 20px 40px -18px rgb(119 23 50 / 0.7);
  text-align: center;
}
.ticket-label { display: block; font-size: 12px; font-weight: 700; opacity: 0.9; }
.ticket-code { display: block; font: 700 38px/1 var(--sans); letter-spacing: 0.1em; }

/* 2. Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--paper); }
.ticker-track { display: flex; gap: 28px; white-space: nowrap; width: max-content; font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); font-style: italic; }
.ticker-track i { color: var(--rose); font-style: normal; }

/* Section heads */
.section-head { width: var(--wrap); margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1.05; max-width: 15em; margin-top: 12px; }
html[lang="ml"] .section-head h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.3; }

/* 3. Two ways */
.ways { padding: 140px 0 100px; }
.ways-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.way { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.way:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgb(31 27 22 / 0.4); }
.way:nth-child(2) { margin-top: 80px; }
.way-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.way-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.way-body { padding: 28px 30px 32px; }
.way-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--rose); background: var(--rose-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.way h3 { font-size: 34px; line-height: 1.1; margin-bottom: 12px; }
.way p { color: var(--dim); }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 28px; font-weight: 600; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 14px; height: 2px; background: var(--rose); }

/* 3b. Right next door: a rail of everyday things that slides sideways as you scroll (desktop), swipes on phones. */
.near { border-top: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.near-pin { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 56px; }
.near-head { width: var(--wrap); margin: 0 auto 36px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px 56px; align-items: end; }
.near-head .kicker { grid-column: 1 / -1; }
.near-head h2 { font-size: clamp(28px, 3.1vw, 46px); line-height: 1.12; }
.near-head h2 > * { display: block; }
html[lang="ml"] .near-head h2 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3; }
.near-head > p { font-size: 19px; color: var(--dim); }
.near-rail { overflow: hidden; }
.near-track { display: flex; gap: 22px; width: max-content; padding: 0 max(24px, calc((100vw - 1240px) / 2)); }
.near-card { width: 280px; flex: none; }
@media (max-height: 820px) and (min-width: 961px) { .near-card { width: 230px; } .near-pin { padding-top: 92px; } }
.near-photo { aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--well); }
.near-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.near-card:hover .near-photo img { transform: scale(1.05); }
.near-who { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--rose); letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="ml"] .near-who { letter-spacing: 0; text-transform: none; font-size: 14px; }
.near-card.is-shop .near-who { color: var(--ink); }
.near-card h3 { font-size: 24px; line-height: 1.15; margin: 4px 0 2px; }
.near-price { color: var(--dim); font-weight: 600; }
.near-note { width: var(--wrap); margin: 28px auto 0; font-size: 14px; color: var(--dim); }

/* 4 + 6. Stories with a sticky phone */
.story { padding: 120px 0; border-top: 1px solid var(--line); }
.story-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 80px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; border-left: 2px solid var(--line); padding: 0 0 0 36px; position: relative; transition: border-color 0.4s var(--ease); }
.step::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--rose); transition: height 0.6s var(--ease); }
.step.is-active::before { height: 100%; }
.step-no { font: 600 15px var(--sans); color: var(--rose); letter-spacing: 0.1em; }
.step h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 10px 0 14px; transition: color 0.4s var(--ease); }
.step p { font-size: 20px; color: var(--dim); max-width: 26em; }
.step:not(.is-active) h3, .step:not(.is-active) p { color: #a79c8b; }
.sticky { position: sticky; top: 14vh; height: 72vh; display: flex; align-items: center; }
.story-phone { width: 100%; max-width: 340px; aspect-ratio: 720 / 1600; margin: 0 auto; }
.story-phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: top; opacity: 0; transform: scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.story-phone img.is-on { opacity: 1; transform: none; }
.shops { background: var(--paper); }

/* Pinned stepper (desktop, with motion): the section holds still, all four titles show, the active one opens. */
.steps-meter { display: none; }
.pinned-steps .story { padding: 0; }
.pinned-steps .story .section-head { padding-top: 110px; margin-bottom: 28px; }
.pinned-steps .story-pin { min-height: 100dvh; display: flex; flex-direction: column; }
.pinned-steps .story-grid { flex: 1; align-items: center; padding-bottom: 48px; }
.pinned-steps .steps-meter { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pinned-steps .steps-count { font: 700 15px var(--sans); color: var(--rose); min-width: 3.2em; font-variant-numeric: tabular-nums; }
.pinned-steps .steps-bar { flex: 1; max-width: 260px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pinned-steps .steps-bar i { display: block; height: 100%; width: 100%; background: var(--rose); transform: scaleX(0); transform-origin: left; }
.pinned-steps .steps { display: grid; gap: 4px; }
.pinned-steps .step { min-height: 0; border-left: 0; padding: 14px 18px; border-radius: 8px; cursor: pointer; transition: background 0.4s var(--ease);
  display: grid; grid-template-columns: 2.6em 1fr; column-gap: 8px; align-items: baseline; }
.pinned-steps .step > * { grid-column: 2; }
.pinned-steps .step > .step-no { grid-column: 1; grid-row: 1; }
.pinned-steps .step::before { display: none; }
.pinned-steps .step.is-active { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgb(31 27 22 / 0.35); }
.pinned-steps .shops .step.is-active { background: var(--bg); }
.pinned-steps .step h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 0; }
.pinned-steps .step p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease); font-size: 18px; }
.pinned-steps .step.is-active p { max-height: 160px; opacity: 1; margin-top: 8px; }
.pinned-steps .step:not(.is-active) h3 { color: #8a7f6f; }
.pinned-steps .step:not(.is-active):hover h3 { color: var(--ink); }
.pinned-steps .sticky { position: static; height: auto; }
.pinned-steps .story-phone { width: auto; max-width: none; height: min(620px, calc(100dvh - 250px)); }
.pinned-steps .story-phone img { transform: translateY(14px) scale(0.98); }
.pinned-steps .story-phone img.is-on { transform: none; }
.step-shot { display: none; }

/* 5. For people */
.people { width: var(--wrap); margin: 0 auto; padding: 140px 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; border-top: 1px solid var(--line); }
.people-copy h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; margin: 12px 0 22px; }
html[lang="ml"] .people-copy h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.3; }
.people-copy > p { font-size: 20px; color: var(--dim); }
.people-copy .btn { margin-top: 32px; }
.big-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 8px; border-block: 1px solid var(--line); padding: 22px 0; }
.big-facts dt { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--rose); }
.big-facts dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--dim); }
.people-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.people-mosaic figure { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; }
.people-mosaic figure:nth-child(2n) { transform: translateY(48px); }
.people-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-phone { position: absolute; width: 46%; left: 27%; top: 14%; z-index: 2; }

/* 7. Safe */
.safe { background: var(--ink); color: var(--paper); padding: 140px 0; }
.safe .kicker { color: #c9bfae; }
.safe-grid { list-style: none; padding: 0; width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgb(255 253 248 / 0.12); border: 1px solid rgb(255 253 248 / 0.12); }
.safe-grid li { background: var(--ink); padding: 36px 32px 40px; }
.safe-grid span { font: 600 14px var(--sans); color: #e8a5b5; letter-spacing: 0.1em; }
.safe-grid h3 { font-size: 28px; line-height: 1.15; margin: 14px 0 12px; }
.safe-grid p { color: #c9bfae; font-size: 17px; }

/* 8. Get */
.get { padding: 160px 0; text-align: center; background: radial-gradient(120% 80% at 50% 100%, var(--rose-soft), transparent 70%); }
.get-inner { width: var(--wrap); margin: 0 auto; }
.get h2 { font-size: clamp(56px, 10vw, 150px); line-height: 0.95; font-weight: 400; margin: 18px 0 26px; }
html[lang="ml"] .get h2 { font-size: clamp(40px, 7vw, 96px); line-height: 1.2; }
.get p { font-size: 20px; color: var(--dim); max-width: 34em; margin: 0 auto; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 220px; padding: 12px 22px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 700 22px var(--sans); text-align: left; opacity: 0.92; }
.store small { font-size: 12px; font-weight: 600; opacity: 0.75; }

/* Footer */
.foot { width: var(--wrap); margin: 0 auto; padding: 48px 0 64px; border-top: 1px solid var(--line); display: grid; gap: 14px; color: var(--dim); font-size: 16px; }
.foot-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.foot-brand .logo { height: 44px; }
.tagline { font: 600 13px var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-left: 8px; }
html[lang="ml"] .tagline { letter-spacing: 0; text-transform: none; font-size: 14px; }
.foot-small { font-size: 14px; }

/* Before the script runs, reveal targets are visible: no flash of hidden content without JS. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

/* Small screens */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-stage { height: 560px; }
  .ways-grid, .people { grid-template-columns: 1fr; }
  .near-pin { min-height: 0; padding: 96px 0 48px; }
  .near-head { grid-template-columns: 1fr; }
  .near-rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .near-rail::-webkit-scrollbar { display: none; }
  .near-track { padding: 0 24px; }
  .near-card { width: 240px; scroll-snap-align: start; }
  .way:nth-child(2) { margin-top: 0; }
  /* Small screens: no pinned phone; each step shows its own screen under its text. */
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .sticky { display: none; }
  .step { min-height: 0; padding: 8px 0 48px 24px; }
  .step:not(.is-active) h3, .step:not(.is-active) p { color: inherit; }
  .step p { color: var(--dim); }
  .step-shot { display: block; width: min(240px, 70%); margin: 24px 0 0; border-radius: 30px; padding: 8px; }
  .step-shot img { border-radius: 23px; }
  .safe-grid { grid-template-columns: 1fr; }
  .big-facts dt { font-size: 48px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top { gap: 12px; }
  .top .btn-small { display: none; }
  .hero-stage { height: 470px; }
  .hero-phone { width: 210px; }
  .ticket-code { font-size: 28px; }
  .way-body { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .way-photo img { transform: none; }
}
