/* Jamkhana landing, taste v5 (2026-12-05; refs.md "v5 pass").
   Near-black page, bento cards one tone step up, lit top-left hairlines, a pill nav, numbers as heroes.
   The only colour is the shops' own work plus ONE lime accent: the action, the active day, the active pill,
   and once as a surface (the recommended plan). Space: 4 8 12 16 24 32 48 64 96 128. Radii: 10 / 16 / 24 / pill. */

/* tokens for the v5 layer */
:root {
  --edge: rgba(238, 236, 231, .07);                 /* card hairline */
  --edge-lit: rgba(238, 236, 231, .16);             /* the top-left catch light */
  --glow: rgba(214, 242, 106, .16);                 /* lime as light, never as paint */
  --r-xl: 28px;
}

/* type */
.h1, .h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
.h1 { font-size: clamp(26px, 4.4vw, 60px); line-height: 1.32; }
.h2 { font-size: clamp(24px, 3.1vw, 44px); line-height: 1.36; }
html[lang="en"] .h1, html[lang="en"] .h2 { letter-spacing: -.02em; line-height: 1.16; }
.h1 b, .h2 b { font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 30em; }
.sub { color: var(--muted); max-width: 31em; }
@media (min-width: 900px) {
  .h1 > *, .h2 > * { display: block; }
  .lead { font-size: 20px; line-height: 1.7; }
}

/* the v5 card: one tone step up, hairline, a catch light on the top-left edge (taste v5 rule 8) */
.panel, .pack, .plan, .steps li {
  position: relative; background: var(--raise); border: 1px solid var(--edge); border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.panel::before, .plan::before, .steps li::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(135deg, var(--edge-lit), transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
html[dir="rtl"] .panel::before, html[dir="rtl"] .plan::before, html[dir="rtl"] .steps li::before { background: linear-gradient(225deg, var(--edge-lit), transparent 38%); }

/* header: glass bar, centred pill rail (taste v5 rule 4) */
.top-bar { position: sticky; top: 0; z-index: 20; background: rgba(14, 14, 13, .72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--edge); }
.top { display: grid; grid-template-columns: 1fr auto; }
.top-end { justify-self: end; }
.pills { display: none; }
@media (min-width: 900px) {
  .top { grid-template-columns: 1fr auto 1fr; }
  .pills { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--raise); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
  .pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s var(--ease), background-color .25s var(--ease); }
  .pills a:hover { color: var(--ink); }
  .pills a[aria-current="true"] { background: var(--ink); color: var(--bg); }
}
.lang { border-radius: 999px; border: 1px solid var(--edge); }
.top-end .btn.small { border-radius: 999px; }
section[id] { scroll-margin-top: 88px; }

/* the demo shops' own palettes (from the demo plan.json files) */
.pack-cafe { --p-bg: #100702; --p-ink: #f3eee4; --p-muted: #afaaa2; --p-accent: #c3936f; --p-on: #100702; --p-line: rgba(243, 238, 228, .14); }
.pack-sweets { --p-bg: #f7f0e6; --p-ink: #2f171d; --p-muted: #6f5258; --p-accent: #c76d86; --p-on: #2f171d; --p-line: rgba(47, 23, 29, .14); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--p-line); }
.sw-a1 { background: #8b5e3c; } .sw-a2 { background: #f2e6d0; } .sw-b1 { background: #c76d86; } .sw-b2 { background: #ebdcc6; }

.ig-av { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--p-accent); color: var(--p-on); font: 700 20px/1 var(--display); padding-bottom: 4px; }
.ig-id { display: grid; gap: 2px; min-width: 0; line-height: 1.3; }
.ig-id b, .ig-id h3 { font: 600 16px/1.4 var(--text); }
.ig-id span { font-size: 13px; color: var(--p-muted); text-align: start; }
html[dir="rtl"] .ig-id span { text-align: right; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* 01 hero: the profile grid on a phone in a beam of light (refs.md v5: 17 beam, 06 lime, 16 one lit object) */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { /* the soft beam falling from the top corner onto the phone */
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: linear-gradient(200deg, rgba(238, 236, 231, .09), rgba(238, 236, 231, .02) 40%, transparent 62%);
  filter: blur(24px); transform: skewX(-12deg); pointer-events: none;
}
html[dir="rtl"] .hero::before { inset: -20% auto auto -10%; background: linear-gradient(160deg, rgba(238, 236, 231, .09), rgba(238, 236, 231, .02) 40%, transparent 62%); transform: skewX(12deg); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; }
.hero-copy .rail { margin-bottom: 24px; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.act-note { font-size: 15px; color: var(--muted); }

/* numbers are the heroes: big light numerals, grey labels above, units dimmed (taste v5 rule 3) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 0 0; }
.stats > div + div { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.stats > div:not(:last-child) { padding-inline-end: 16px; }
.stats dt { font-size: 13px; color: var(--muted); line-height: 1.4; }
.stats dd { margin: 0; font: 400 clamp(32px, 4vw, 44px)/1 var(--display); font-variant-numeric: tabular-nums; }
html[lang="en"] .stats dd { letter-spacing: -.02em; }
.stats small { font: 400 15px/1 var(--text); color: var(--muted); letter-spacing: 0; }

.stage { position: relative; height: 420px; margin-top: 48px; display: flex; justify-content: center; }
.stage::before { /* lime as light under the phone, used once */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -40px; width: 120%; max-width: 560px; aspect-ratio: 2 / 1;
  transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.phone { width: min(312px, 84vw); height: max-content; padding: 9px; border-radius: 46px; background: #080807; border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 40px 100px rgba(0, 0, 0, .6); }
.screen { position: relative; border-radius: 37px; overflow: hidden; background: var(--p-bg); color: var(--p-ink); }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #080807; }
.ig-head { display: flex; align-items: center; gap: 12px; padding: 52px 16px 16px; }
.ig-tag { margin-inline-start: auto; font-size: 12px; line-height: 1; padding: 7px 10px; border: 1px solid var(--p-line); border-radius: 999px; color: var(--p-muted); white-space: nowrap; }
@media (min-width: 900px) {
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 372px; column-gap: 72px; height: clamp(600px, calc(100svh - 72px), 800px); }
  .hero-copy { justify-content: center; padding: 0 0 48px; position: relative; }
  .hero-copy .rail { position: absolute; inset: 24px 0 auto; margin: 0; }
  .stats { max-width: 520px; margin-top: 24px; }
  .stage { height: auto; margin: 0; padding-top: clamp(96px, 16vh, 168px); }
  .stage::before { bottom: auto; top: 58%; }
  .phone { width: 372px; }
}

/* sections */
.sec { padding-block: 64px; }
.sec-head { display: grid; gap: 16px; margin-block: 32px 40px; }
@media (min-width: 900px) {
  .sec { padding-block: 112px; }
  .sec-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; column-gap: 48px; margin-block: 48px 64px; }
}

/* 02 two packs side by side (refs.md 9): each pack is its own shop's card */
.packs { display: grid; gap: 12px; }
.pack { background: var(--p-bg); color: var(--p-ink); border-color: var(--p-line); padding: 16px; overflow: hidden; }
.pack-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px 4px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; font-size: 13px; color: var(--p-muted); }
.chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1px solid var(--p-line); border-radius: 999px; }
.pack .ig-grid { border-radius: 16px; overflow: hidden; }
.pack-label { margin: 20px 4px 8px; font-size: 13px; color: var(--p-muted); }
.st-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-row img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 1px solid var(--p-line); }
@media (min-width: 900px) {
  .packs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pack { padding: 24px; }
}

/* 03 the month as a real calendar (refs.md 11), in one card; the chosen day opens as a lit glass card (v5 17) */
.cal-wrap { display: grid; gap: 24px; padding: 16px; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-week { font-size: 13px; color: var(--muted); padding-bottom: 8px; text-align: center; }
.cal-days { gap: 0; }
.day { position: relative; aspect-ratio: 4 / 5; min-height: 44px; display: block; padding: 0; background: none; border: 0; color: var(--muted); font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.day::before { content: ""; position: absolute; inset: 2px; background: rgba(238, 236, 231, .025); border-radius: 10px; }
.day-n { position: absolute; top: 7px; inset-inline-start: 7px; z-index: 1; padding: 4px 6px; border-radius: 6px; }
.day.is-blank::before { background: none; }
button.day { cursor: pointer; color: var(--ink); }
button.day::before { background: none; }
button.day img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; border-radius: 10px; transition: opacity .15s var(--ease), transform .25s var(--ease); }
button.day .day-n { background: rgba(14, 14, 13, .78); }
button.day:hover img { opacity: .85; }
button.day[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 12px; box-shadow: 0 0 24px var(--glow); }
button.day[aria-pressed="true"] .day-n { background: var(--accent); color: var(--on-accent); font-weight: 600; }
button.day:focus-visible { outline-offset: 1px; z-index: 2; }
@media (max-width: 420px) { .cal-wrap { margin-inline: -20px; padding: 8px 6px 20px; border-radius: 0; border-inline: 0; } .cal-wrap::before { display: none; } .cal-detail { margin-inline: 14px; } }

.cal-detail { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-content: start; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(238, 236, 231, .045), rgba(238, 236, 231, .015)); border: 1px solid var(--edge); box-shadow: inset 2px 0 0 -1px var(--accent), -12px 0 32px -24px var(--accent); }
html[dir="rtl"] .cal-detail { box-shadow: inset -2px 0 0 -1px var(--accent), 12px 0 32px -24px var(--accent); }
.cal-detail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.cd-meta { font: 400 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); letter-spacing: .02em; }
html[dir="rtl"] .cd-meta { font: 400 13px/1.6 var(--text); letter-spacing: 0; }
.cd-date { font: 700 20px/1.4 var(--display); margin-block: 4px 12px; }
.cd-cap { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.cd-cap-l { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cd-cap-t { font-size: 15px; line-height: 1.8; white-space: pre-line; text-align: right; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .cal-wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 24px; align-items: start; }
  .cal-days { gap: 4px; }
  .day { aspect-ratio: 1; }
  .day-n { top: 10px; inset-inline-start: 10px; }
  .cal-detail { grid-template-columns: 1fr; gap: 0; position: sticky; top: 96px; padding: 20px; }
  .cal-detail img { border-radius: 16px; margin-bottom: 20px; }
  .cd-cap { margin-top: 4px; }
}

/* 04 three steps: bento cards, the numeral is the artwork, segmented dashes show where you are (v5 17, 23) */
.steps { display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; padding: 24px; }
.dash { grid-column: 1 / -1; display: flex; gap: 6px; margin-bottom: 8px; }
.dash i { width: 24px; height: 3px; border-radius: 2px; background: var(--line-2); }
.steps li:nth-child(1) .dash i:nth-child(-n+1),
.steps li:nth-child(2) .dash i:nth-child(-n+2),
.steps li:nth-child(3) .dash i { background: var(--ink); }
.steps li:nth-child(3) .dash i:last-child { background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.step-n { grid-row: span 2; font: 400 64px/1 var(--display); color: var(--ink); letter-spacing: -.04em; }
.steps h3 { font: 600 20px/1.5 var(--text); align-self: end; }
.steps p { color: var(--muted); max-width: 28em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { display: flex; flex-direction: column; padding: 32px; min-height: 420px; }
  .step-n { font-size: 128px; margin: 8px 0 auto; padding-bottom: 40px; }
  .steps h3 { font-size: 24px; margin-bottom: 8px; }
}

/* 05 price: the recommended plan carries the accent as a surface, once on the page (v5 rule 2) */
.plans { display: grid; gap: 12px; }
.plan { display: flex; flex-direction: column; padding: 24px; }
.plan.is-rec { background: radial-gradient(120% 70% at 50% 0%, rgba(214, 242, 106, .14), rgba(214, 242, 106, .03) 55%, transparent 80%), var(--raise); border-color: rgba(214, 242, 106, .28); box-shadow: inset 0 1px 0 rgba(214, 242, 106, .22), 0 24px 60px -30px rgba(214, 242, 106, .25); }
.plan-tag { position: absolute; top: 24px; inset-inline-end: 24px; font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.plan h3 { font: 600 20px/1.5 var(--text); }
.plan-price { margin-block: 16px 20px; color: var(--muted); font-size: 15px; }
.plan-price b { font: 400 56px/1.05 var(--display); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-inline-end: 6px; }
.plan-price b small { font-size: .5em; color: var(--muted); letter-spacing: -.01em; }
.plan-list { margin-bottom: 32px; }
.plan-list li { position: relative; padding: 12px 0; padding-inline-start: 20px; border-top: 1px solid var(--line); font-size: 17px; }
.plan-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 25px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.plan.is-rec .plan-list li::before { background: var(--accent); }
.plan .btn { margin-top: auto; border-radius: 999px; }
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; max-width: 928px; }
  .plan { padding: 40px; }
  .plan-tag { top: 40px; inset-inline-end: 40px; }
  .plan-price b { font-size: 60px; }
}

/* 06 questions: one card, answers open on demand (v5 rule 6) */
.faq-grid { display: grid; gap: 24px; margin-top: 32px; align-items: start; }
.faq { padding: 8px 24px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 68px; padding-block: 12px; padding-inline-end: 48px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--edge-lit); }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 9px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 34em; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 48px; margin-top: 48px; }
  .faq { padding: 8px 32px; }
  .faq summary { font-size: 20px; min-height: 80px; }
}

/* 07 last call: a lit end card */
.last { padding: 32px 24px 40px; overflow: hidden; isolation: isolate; }
.last::after { content: ""; position: absolute; z-index: -1; inset: auto 0 -60% 0; height: 100%; background: radial-gradient(50% 60% at 50% 100%, var(--glow), transparent); pointer-events: none; }
.last .h1 { margin-block: 40px 32px; }
@media (min-width: 900px) { .last { padding: 40px 56px 64px; } .last .h1 { margin-block: 72px 40px; } }

.foot { display: grid; gap: 8px; padding-block: 32px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot .brand { margin-bottom: 8px; }
.foot p { max-width: 44em; }

/* phones: the header keeps brand + language; the hero button sits one screen below */
@media (max-width: 419px) { .top-end .btn.small { display: none; } }
