/* ═══════════════════════════════════════════════════════════════════
   Shije — shije.app

   Colour tokens are the app's tokens (lib/theme/app_theme.dart). Do not
   introduce a colour that is not in the first block.

   Motion rule, from the spec: nothing discrete runs longer than 400ms.
   Anything that feels longer is scroll-linked, which means the reader
   is driving it, not waiting on it.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ─ surfaces ─ */
  --bg:          #FAF6F0;
  --surface:     #FFFDF9;
  --surface-alt: #F1EAE0;
  --border:      #ECE4D6;
  --border-warm: #E3D9C7;
  --dashed:      #C9BFAC;

  /* ─ ink ─ */
  --ink:         #1E1B16;
  --ink-muted:   #6E6254;
  --ink-faint:   #9A8F80;   /* decorative only — 2.9:1 on --bg */

  /* ─ accent ─ */
  --accent:      #DD4B21;
  --accent-dark: #BC3F1C;   /* text and fills that must clear 4.5:1 */
  --accent-deep: #A83717;

  /* ─ olive ─ */
  --olive:       #7C8635;
  --olive-bg:    #F0F2DF;
  --olive-text:  #545C20;

  --amber:       #E8B44C;
  --cook-bg:     #14110C;
  --cook-well:   #26221A;

  /* ─ metrics ─ */
  --pad: 20px;
  --r-card: 22px;
  --r-pill: 999px;
  --hdr-h: 66px;

  /* ─ depth: warm, layered, never black ─ */
  --sh-1: 0 1px 2px rgba(30, 27, 22, .04), 0 4px 10px rgba(30, 27, 22, .05);
  --sh-2: 0 12px 32px rgba(30, 27, 22, .10);
  --sh-3: 0 2px 4px rgba(30, 27, 22, .04),
          0 10px 24px rgba(30, 27, 22, .08),
          0 28px 60px rgba(30, 27, 22, .10);
  --sh-phone: 0 2px 6px rgba(30, 27, 22, .10),
              0 18px 44px rgba(30, 27, 22, .16),
              0 52px 110px rgba(30, 27, 22, .14);

  /* ─ motion ─ */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);      /* the spec's curve */
  --ease-soft:   cubic-bezier(.32, .72, 0, 1);     /* long travel, calm landing */
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);   /* a little overshoot */
  --t-fast: 180ms;
  --t:      280ms;
  --t-slow: 400ms;                                  /* the ceiling */

  /* ─ type ─ */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Film grain, as a data URI so it costs no request. It is a surface
     finish, not an illustration. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 760px) { :root { --pad: 32px; } }

/* ─── base ──────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* clip, not hidden, and on html rather than body: `overflow-x: hidden`
     on body forces its overflow-y to `auto`, which makes body a scroll
     container and breaks the sticky header on iOS Safari. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

/* Must outrank the display values set on .btn and friends. */
[hidden] { display: none !important; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(221, 75, 33, .16); }

/* Restrained scrollbar, so the chrome does not shout over the page. */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    background: #DFD5C4; border-radius: 99px;
    border: 3px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--dashed); }
}

/* ─── the two languages ─────────────────────────────────────────── */

html[lang="sq"] [data-l="en"],
html[lang="en"] [data-l="sq"] { display: none; }

/* ─── atmosphere ────────────────────────────────────────────────── */

.atmos {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
  /* --sy is the page scroll, written once per frame by main.js */
  transform: translate3d(0, calc(var(--sy, 0) * -60px), 0);
}
.atmos span { position: absolute; display: block; border-radius: 50%; }
.atmos-a {
  width: 68vw; height: 68vw; min-width: 420px; min-height: 420px;
  top: -26vw; right: -16vw;
  background: radial-gradient(circle closest-side, rgba(221, 75, 33, .14), rgba(221, 75, 33, 0) 72%);
}
.atmos-b {
  width: 54vw; height: 54vw; min-width: 340px; min-height: 340px;
  top: 52vh; left: -18vw;
  background: radial-gradient(circle closest-side, rgba(124, 134, 53, .12), rgba(124, 134, 53, 0) 72%);
}

.hdr, main, .ftr { position: relative; z-index: 1; }

/* ─── helpers ───────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 100; background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 0 0 14px 14px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.skip:focus { transform: translate(-50%, 0); color: var(--bg); }

.anchor { scroll-margin-top: 84px; }

/* ─── type ──────────────────────────────────────────────────────── */

.h1, .h2, .h3, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.028em;
}

.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
}

.kicker {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 68ch;
  margin: 0;
  text-wrap: pretty;
}

p { max-width: 68ch; text-wrap: pretty; }

.band-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* ─── header ────────────────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.hdr.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(250, 246, 240, .86);
  box-shadow: 0 1px 20px rgba(30, 27, 22, .05);
}

.hdr-in {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--hdr-h);
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 0 var(--pad);
  transition: min-height var(--t) var(--ease-out);
}
.hdr.is-stuck .hdr-in { min-height: 56px; }

.brand { display: flex; align-items: center; margin-right: auto; }
.brand-mark {
  width: 88px; height: auto;
  transform-origin: left center;
  transition: transform var(--t) var(--ease-out);
}
.hdr.is-stuck .brand-mark { transform: scale(.93); }

.hdr-nav { display: flex; gap: 14px; }
.hdr-nav a {
  position: relative;
  display: flex; align-items: center;
  min-height: 44px; padding: 0 6px;
  color: var(--ink-muted); text-decoration: none;
  font-size: 16px; font-weight: 500;
  transition: color var(--t-fast);
}
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a::after {
  content: ""; position: absolute;
  left: 6px; right: 6px; bottom: 11px; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t) var(--ease-out);
}
.hdr-nav a:hover::after { transform: scaleX(1); }

.lang { display: flex; align-items: center; gap: 2px; }
/* Small label, but a thumb-sized target: the switch is the only way to
   reach English on a phone, where the nav links are hidden. */
.lang-btn {
  appearance: none; background: none; border: 0;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0;
  font: 600 14px/1 var(--sans); letter-spacing: .06em;
  /* Not --ink-faint: this is a control, and --ink-faint is 2.9:1 on the
     cream background. --ink-muted is 5.6:1. */
  color: var(--ink-muted); cursor: pointer;
  transition: color var(--t-fast);
}
.lang-btn:hover { color: var(--ink); }
/* Colour alone is a thin signal at 14px, so the active language also
   carries a mark, sitting under the text rather than at the bottom of
   the 44px tap target. */
.lang-btn[aria-pressed="true"] { color: var(--ink); }
.lang-btn::after {
  content: ""; position: absolute;
  left: 50%; bottom: calc(50% - 12px);
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  transition: transform var(--t) var(--ease-spring);
}
.lang-btn[aria-pressed="true"]::after { transform: translateX(-50%) scaleX(1); }
.lang-sep { width: 1px; height: 13px; background: var(--border); }

/* ─── buttons ───────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent-dark); color: #fff;
  border: 0; border-radius: var(--r-pill);
  font: 600 17px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  padding: 16px 26px;
  box-shadow: 0 1px 2px rgba(168, 55, 23, .2), 0 8px 22px rgba(188, 63, 28, .26);
  transition: transform var(--t) var(--ease-out),
              box-shadow var(--t) var(--ease-out),
              background var(--t-fast);
}
/* The spec is explicit here: translateY(-1px) and a deeper shadow. That
   is all. */
.btn:hover {
  color: #fff; background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(168, 55, 23, .22), 0 14px 30px rgba(188, 63, 28, .32);
}
.btn:active { transform: translateY(0); transition-duration: 90ms; }

.btn-sm { padding: 11px 20px; font-size: 15.5px; min-height: 44px; }
.btn-lg { padding: 19px 32px; font-size: 18px; min-height: 56px; }

.btn.is-off {
  background: var(--surface-alt);
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: default;
}
.btn.is-off:hover {
  transform: none; background: var(--surface-alt);
  color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--border);
}

.apple { width: 19px; height: 19px; flex: none; }

.fineprint { margin: 14px 0 0; font-size: 15px; color: var(--ink-muted); }

/* ─── hero ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(44px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
}

.hero-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
}

.hero-kicker { display: flex; align-items: baseline; flex-wrap: wrap; }

.h1 + .lede { margin-top: 22px; }
.hero-cta { margin-top: 34px; }

/* rotating word — a vertical mask.
   An inline-block with overflow:hidden takes its baseline from its
   bottom edge, so vertical-align has to put the word back on the line.
   height / line-height / vertical-align are one set: change one and you
   change all three. */
.rot {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.3em;
  width: 4.4em;
  vertical-align: -.34em;
  transition: width var(--t-slow) var(--ease-out);
}
.rot-word {
  position: absolute; left: 0; top: 0;
  line-height: 1.3em;
  white-space: nowrap;
  transform: translateY(-105%);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease-out),
              opacity var(--t) linear;
}
.rot-word.is-below { transform: translateY(105%); }
.rot-word.is-on { transform: none; opacity: 1; }

/* ─── the phone, as an object ───────────────────────────────────── */

.hero-art { position: relative; display: flex; justify-content: center; }
/* Contact shadow: the phone sits on something. */
.hero-art::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: -3%;
  width: 74%; height: 12%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(30, 27, 22, .22), rgba(30, 27, 22, 0) 70%);
  pointer-events: none;
}

.phone {
  --pw: clamp(232px, 30vw, 320px);
  width: var(--pw);
  padding: calc(var(--pw) * .026);
  /* A bezel with a light on it, rather than a flat black rectangle. */
  background: linear-gradient(158deg, #3A352E 0%, #1B1813 34%, #14110C 62%, #302B24 100%);
  border-radius: calc(var(--pw) * .155);
  box-shadow: var(--sh-phone), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--pw) * .13);
  background: var(--bg);
  aspect-ratio: 760 / 1651;
}
.phone-screen > picture img,
.phone-screen > .scr img { width: 100%; }

.phone-hero {
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) translateZ(0);
  transform-origin: 62% 50%;
  will-change: transform;
}

/* Specular sweep. Its position is tied to scroll, so it reads as light
   moving across glass rather than as an animation playing at you. */
.glare {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, .26) 47%,
    rgba(255, 255, 255, .07) 56%,
    rgba(255, 255, 255, 0) 68%);
  transform: translate3d(calc(-130% + var(--glare, 0) * 260%), 0, 0);
  opacity: 0;
}
.anim .glare { opacity: 1; transition: opacity var(--t-slow) linear 400ms; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  width: 1px; height: 42px;
  background: linear-gradient(var(--border), transparent);
  opacity: calc(1 - var(--sy-raw, 0) * 14);
  pointer-events: none;
}
.scroll-hint span {
  display: block; width: 1px; height: 14px;
  background: var(--accent);
}
.anim .scroll-hint span { animation: hint 2200ms var(--ease-soft) infinite; }
@keyframes hint {
  0%   { transform: translateY(0);    opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(28px); opacity: 0; }
}

/* ─── bands ─────────────────────────────────────────────────────── */

.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-tint { background: var(--surface-alt); }

/* ═══════════════ SI PUNON — the pinned sequence ═══════════════════ */

.flow { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.flow-head { margin-bottom: clamp(28px, 4vw, 56px); }

.flow-in { position: relative; }

.flow-stage {
  position: sticky; top: calc(var(--hdr-h) + 10px);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 22px;
  /* Fades the pinned phone into the page instead of cutting it off. */
  background: linear-gradient(var(--bg) 76%, rgba(250, 246, 240, 0));
}
.phone-stage { --pw: clamp(186px, 46vw, 230px); }

/* A sticky element can only stay pinned for (container − its own
   height), so without trailing room the phone unpins while the last
   step is still being read. This padding buys back exactly that. */
.flow-steps { list-style: none; margin: 0; padding: 0 0 14vh; }
.fstep {
  min-height: 58vh;
  display: flex; flex-direction: column; justify-content: center;
  transition: opacity var(--t-slow) var(--ease-out);
}
.anim .fstep { opacity: .34; }
.anim .fstep.is-live { opacity: 1; }

.fstep-n {
  display: block;
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1; letter-spacing: -.03em;
  color: var(--accent);
  margin-bottom: 10px;
  transition: transform var(--t-slow) var(--ease-spring);
}
.anim .fstep.is-live .fstep-n { transform: translateX(2px) scale(1.04); transform-origin: left bottom; }
.fstep-t { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.15; margin-bottom: 10px; }
.fstep p { color: var(--ink-muted); margin: 0; }

/* the rail that fills as the sequence advances */
.flow-rail { display: none; }

@media (min-width: 900px) {
  .flow-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 96px);
  }
  .flow-stage {
    grid-column: 1; grid-row: 1;
    top: 0; height: 100vh;
    padding: 0; background: none;
  }
  .phone-stage { --pw: clamp(250px, 24vw, 310px); }
  .flow-steps { grid-column: 2; grid-row: 1; padding-bottom: 54vh; }
  .fstep { min-height: 88vh; }

  .flow-rail {
    display: block;
    position: absolute; top: 0; bottom: 0;
    left: 50%; width: 2px;
    margin-left: calc(clamp(48px, 7vw, 96px) / -2);
    background: var(--border);
    border-radius: 2px;
  }
  .flow-rail span {
    display: block; width: 100%;
    height: calc(var(--flow, 0) * 100%);
    background: linear-gradient(var(--accent), var(--accent-dark));
    border-radius: 2px;
  }
}

/* the three screens inside the pinned phone */
.scr {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity var(--t-slow) var(--ease-soft),
              transform var(--t-slow) var(--ease-soft);
}
.scr.is-on { opacity: 1; transform: none; }

/* Screen 2 is drawn in CSS from the app's own processing copy, because
   there is no screenshot of a screen that only lives for ninety
   seconds. */
.scr-proc {
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 12% 8% 16%;
  container-type: inline-size;
}

/* the source card — dark, empty, with a play mark. No frame of the
   video appears here, because none is ever shown in the app either. */
.proc-vid {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4.5cqw;
  margin-bottom: 6.5cqw;
  /* solid first, so the label's contrast never depends on a gradient
     painting */
  background-color: #1B1813;
  background-image: linear-gradient(148deg, #2E2921 0%, #14110C 58%, #221E17 100%);
  box-shadow: inset 0 0 0 1px rgba(250, 246, 240, .08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.proc-play {
  width: 14cqw; height: 14cqw; border-radius: 50%;
  background: rgba(250, 246, 240, .13);
  box-shadow: inset 0 0 0 .55cqw rgba(250, 246, 240, .34);
  display: grid; place-items: center;
}
.proc-play::after {
  content: "";
  width: 0; height: 0;
  margin-left: .9cqw;
  border-left: 3.6cqw solid rgba(250, 246, 240, .92);
  border-top: 2.3cqw solid transparent;
  border-bottom: 2.3cqw solid transparent;
}
/* the app pulses this while it works; so does this */
.anim .proc-play { animation: pulse 1600ms var(--ease-soft) infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1);    box-shadow: inset 0 0 0 .55cqw rgba(250, 246, 240, .34); }
  50%      { transform: scale(1.06); box-shadow: inset 0 0 0 .55cqw rgba(250, 246, 240, .58); }
}
.proc-src {
  position: absolute; left: 4.5cqw; bottom: 3.6cqw;
  font-size: 3.2cqw; letter-spacing: .02em;
  color: rgba(250, 246, 240, .6);
}

.proc-t {
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: 8cqw; line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 7cqw; max-width: none;
}
.proc-list { list-style: none; margin: 0; padding: 0; }
.proc-list li {
  display: flex; align-items: center; gap: 3.4cqw;
  font-size: 4.4cqw; line-height: 1.35;
  color: var(--ink-muted);
  padding: 2.1cqw 0;
  opacity: .32;
  transition: opacity var(--t) var(--ease-out), color var(--t);
}
.proc-list li.is-done { opacity: 1; color: var(--ink); }
.dot {
  position: relative; flex: none;
  width: 4.6cqw; height: 4.6cqw; border-radius: 50%;
  border: .7cqw solid var(--dashed);
  transition: background var(--t) var(--ease-out), border-color var(--t);
}
.proc-list li.is-done .dot { background: var(--olive); border-color: var(--olive); }
.dot::after {
  content: ""; position: absolute;
  left: 27%; top: 44%;
  width: 46%; height: 24%;
  border-left: .6cqw solid var(--bg);
  border-bottom: .6cqw solid var(--bg);
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform var(--t) var(--ease-spring) 60ms;
}
.proc-list li.is-done .dot::after { transform: rotate(-45deg) scale(1); }

.proc-bar {
  height: 1.5cqw; border-radius: 99px;
  background: var(--surface-alt);
  overflow: hidden;
  margin: 5cqw 0 3.4cqw;
}
.proc-bar span {
  display: block; height: 100%;
  width: calc(var(--proc, 0) * 100%);
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 99px;
}
.proc-f {
  position: absolute; left: 8%; right: 8%; bottom: 7%;
  margin: 0; font-size: 3.7cqw;
  /* --ink-faint is 2.9:1 on cream. Even inside a drawn phone screen,
     there is no reason to fail. */
  color: var(--ink-muted);
  letter-spacing: .02em; max-width: none;
}

/* ─── veçoritë ──────────────────────────────────────────────────── */

.grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease-out),
              box-shadow var(--t) var(--ease-out),
              border-color var(--t);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-3);
    border-color: var(--border-warm);
  }
}

.shot {
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.shot-dark { background: var(--cook-bg); }
.shot img {
  width: 100%; aspect-ratio: 5 / 4;
  object-fit: cover; object-position: center top;
  transition: transform var(--t-slow) var(--ease-out);
}
@media (hover: hover) { .card:hover .shot img { transform: scale(1.04); } }

.card-body { padding: 22px; }
.card-t { font-size: 1.3125rem; line-height: 1.2; margin-bottom: 8px; }
.card p { color: var(--ink-muted); margin: 0; }

.card-plain { justify-content: center; }
.card-plain .card-body { padding: clamp(28px, 4vw, 40px) 24px; }
.card-plain .card-t { font-size: 1.5rem; }

/* Light passing over the card, once, on hover. */
.sheen {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(104deg,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, .55) 50%,
    rgba(255, 255, 255, 0) 64%);
  transform: translateX(-115%);
  transition: transform var(--t-slow) var(--ease-out);
}
@media (hover: hover) { .card:hover .sheen { transform: translateX(115%); } }

/* The grid opens wide and closes wide: 2 + 1 / 1 + 1 + 1 / 3. Six
   cards, nine columns, no holes. */
@media (min-width: 620px) {
  .card-wide, .card-full { grid-column: span 2; }
}
@media (min-width: 980px) {
  .card-full { grid-column: span 3; text-align: center; }
  .card-full .card-body { padding: clamp(32px, 4vw, 52px) 24px; }
  .card-full .card-t { font-size: 1.75rem; }
  .card-full p { margin-inline: auto; max-width: 52ch; }
}

/* Pantry-first ranking is the reason the app exists, so it takes two
   columns and lays out sideways. */
@media (min-width: 980px) {
  .card-wide { flex-direction: row; }
  .card-wide .shot {
    width: 46%; flex: none;
    border-bottom: 0; border-right: 1px solid var(--border);
  }
  /* left-aligned, so the app's own left margin lands on the card edge
     and no label gets sliced */
  .card-wide .shot img {
    height: 100%; aspect-ratio: auto;
    object-position: left center;
  }
  .card-wide .card-body {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(28px, 3vw, 44px);
  }
  .card-wide .card-t { font-size: 1.75rem; margin-bottom: 12px; }
}

/* ─── pazar → kam ───────────────────────────────────────────────── */

.pantry-in {
  display: grid; gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 880px) { .pantry-in { grid-template-columns: 1fr 1fr; } }

.pantry-copy .lede { margin-top: 18px; }

.ing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-2);
  padding: 20px 4px 8px;
}
.ing-head {
  margin: 0 18px 6px;
  font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.ing-list { list-style: none; margin: 0; padding: 0; }

.ing-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.ing-list .ing-row:first-child { border-top: 0; }
/* A brief olive wash as the row flips, the way the app confirms a tap. */
.ing-row::before {
  content: ""; position: absolute; inset: 1px 6px;
  border-radius: 12px;
  background: var(--olive-bg);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}
.ing-row.is-have::before { animation: wash 700ms var(--ease-out) both; }
@keyframes wash { 0% { opacity: 0; } 34% { opacity: 1; } 100% { opacity: 0; } }

.ing-name { font-weight: 600; min-width: 0; position: relative; }
.ing-name i {
  display: block;
  font: 400 14px/1.4 var(--sans);
  font-style: normal;
  color: var(--ink-muted);
  margin-top: 1px;
}

.ing-state { position: relative; flex: none; display: grid; }
.ing-state > * { grid-area: 1 / 1; }

.pill-add, .pill-have {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-pill);
  font: 600 14.5px/1 var(--sans);
  white-space: nowrap;
  transition: opacity var(--t) linear, transform var(--t-slow) var(--ease-out);
}
.pill-add {
  padding: 9px 15px;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
}
.pill-have {
  padding: 9px 14px 9px 11px;
  background: var(--olive-bg);
  color: var(--olive-text);
  opacity: 0; transform: translateY(6px) scale(.96);
  justify-self: end;
}

.tick { width: 17px; height: 17px; flex: none; overflow: visible; }
.tick path {
  fill: none; stroke: var(--olive); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16; stroke-dashoffset: 16;
  transition: stroke-dashoffset var(--t-slow) var(--ease-out) 120ms;
}

.ing-row.is-have .pill-add { opacity: 0; transform: translateY(-6px) scale(.96); }
.ing-row.is-have .pill-have { opacity: 1; transform: none; }
.ing-row.is-have .tick path { stroke-dashoffset: 0; }

/* ─── pa reklama ────────────────────────────────────────────────── */

.dark {
  position: relative;
  overflow: hidden;
  background: var(--cook-bg);
  color: var(--bg);
  padding: clamp(72px, 11vw, 148px) 0;
}
/* grain, then a warm ember that drifts with the scroll */
.dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .05;
  pointer-events: none;
}
.dark::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  width: 120%; height: 260%;
  transform: translate3d(-50%, calc(-50% + (var(--ember, .5) - .5) * 90px), 0);
  background: radial-gradient(ellipse 44% 30% at 22% 50%, rgba(221, 75, 33, .17), rgba(221, 75, 33, 0) 70%);
  pointer-events: none;
}
.dark-in { max-width: 860px; position: relative; z-index: 1; }

.dark-big {
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(2.5rem, 7.4vw, 4.75rem);
  line-height: 1.03; letter-spacing: -.028em;
  margin: 0 0 30px;
  max-width: none;
}
.dark-sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: rgba(250, 246, 240, .76);
  margin: 0 0 14px;
  max-width: 62ch;
}
.dark-sub:last-child { margin-bottom: 0; }

/* ─── ndihmë ────────────────────────────────────────────────────── */

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.qa { border-top: 1px solid var(--border); }
.qa:first-child { border-top: 0; }

.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-size: 17.5px; font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background var(--t-fast);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::marker { content: ""; }
.qa summary:hover { background: var(--surface-alt); }

/* a plus that becomes a minus */
.qa-mark {
  position: relative; flex: none;
  width: 15px; height: 15px;
}
.qa-mark::before, .qa-mark::after {
  content: ""; position: absolute;
  left: 0; top: 50%;
  width: 15px; height: 2px; border-radius: 2px;
  background: var(--ink-muted);
  transition: transform var(--t-slow) var(--ease-spring), background var(--t-fast);
}
.qa-mark::after { transform: rotate(90deg); }
.qa[open] .qa-mark::before { background: var(--accent); }
.qa[open] .qa-mark::after { transform: rotate(0deg); background: var(--accent); }

/* Opening is pure CSS, so it still animates if main.js never arrives.
   main.js only adds the closing half. */
.qa-clip {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease-soft);
}
.qa[open] .qa-clip { grid-template-rows: 1fr; }
/* main.js holds [open] on for one transition so the close animates too.
   Must come after the [open] rule — same specificity, order decides. */
.qa.is-closing .qa-clip { grid-template-rows: 0fr; }
.qa-body { overflow: hidden; }
.qa-body p {
  margin: 0; padding: 0 22px 22px;
  color: var(--ink-muted);
  max-width: 62ch;
}

.contact { margin: 26px 0 0; color: var(--ink-muted); }

/* ─── privatësia ────────────────────────────────────────────────── */

.policy .h2 { margin-bottom: 10px; }
.policy .updated {
  font-size: 15.5px; font-weight: 600;
  color: var(--olive-text);
  background: var(--olive-bg);
  display: inline-block;
  padding: 7px 15px; border-radius: var(--r-pill);
  margin: 0 0 34px;
}
.policy h3 {
  position: relative;
  font-size: 1.375rem;
  margin: 44px 0 14px;
  padding-left: 18px;
}
/* a quiet terracotta rule, so the eye can find the sections */
.policy h3::before {
  content: ""; position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 3px; border-radius: 3px;
  background: var(--accent);
  opacity: .85;
}
.policy p { margin: 0 0 16px; color: var(--ink-muted); }
.policy p strong { color: var(--ink); font-weight: 600; }

/* ─── footer ────────────────────────────────────────────────────── */

.ftr {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: clamp(44px, 6vw, 72px) 0 40px;
}

.ftr-h {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.trader-dl {
  margin: 0;
  display: grid; gap: 14px 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .trader-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.trader-dl dt { font-size: 14.5px; color: var(--ink-muted); margin-bottom: 2px; }
.trader-dl dd { margin: 0; }
.trader-dl dd a { color: inherit; text-decoration: none; }
.trader-dl dd a:hover { color: var(--accent-dark); text-decoration: underline; }
/* a posted address reads as a block, not a paragraph */
.addr { line-height: 1.45; }

/* Unfilled legal field — deliberately loud, so it cannot ship
   unnoticed. */
.todo {
  display: inline-block;
  font: 600 14px/1 var(--sans); letter-spacing: .04em;
  color: var(--accent-dark);
  border: 1.5px dashed var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
}

.ftr-end {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.ftr-c { margin: 0; font-size: 15.5px; color: var(--ink-muted); }
.ftr-nav { display: flex; gap: 12px; }
.ftr-nav a {
  display: flex; align-items: center;
  min-height: 44px; padding: 0 6px;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
}
.ftr-nav a:hover { text-decoration: underline; }

/* ═══════════════════ motion primitives ════════════════════════════
   Every one of these is gated on .anim, which the head script only
   adds when the reader has not asked for less motion — and which is
   absent entirely when JavaScript is off. The page is whole either
   way; these only take things away and give them back.
   ═════════════════════════════════════════════════════════════════ */

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}
.anim .rise { animation: rise var(--t-slow) var(--ease-out) var(--d, 0ms) both; }

/* word-by-word arrival for the two display lines */
.w { display: inline-block; }
@keyframes wordIn {
  from { opacity: 0; transform: translate3d(0, .34em, 0); }
  to   { opacity: 1; transform: none; }
}
.anim [data-split].is-split .w { opacity: 0; }
.anim [data-split].is-split.is-in .w {
  animation: wordIn var(--t-slow) var(--ease-out) both;
  animation-delay: calc(var(--d, 0ms) + var(--i, 0) * 44ms);
}

/* Scroll reveal. Once only, per the spec — coming back up must not
   replay it. */
.anim .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--t-slow) linear var(--d, 0ms),
              transform var(--t-slow) var(--ease-out) var(--d, 0ms);
}
.anim .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .atmos { transform: none; }
  .phone-hero { transform: none; }
  .glare, .scroll-hint { display: none; }
  .rot { width: auto !important; }
  .rot-word { position: static; transform: none; opacity: 1; }
  .rot-word:not(.is-on) { display: none; }
  .dark::after { transform: translate(-50%, -50%); }
  /* The sequence keeps its pinning and its three screens. Sticky is
     layout, not motion, and the screens are the product — taking them
     away would trade a movement complaint for an information loss.
     Only the dimming of the inactive steps goes, since without a
     transition it would flicker. */
  .fstep { opacity: 1 !important; }
}

/* ─── small screens ─────────────────────────────────────────────── */

@media (max-width: 719px) {
  .hdr-nav { display: none; }
  .hdr-in { gap: 4px; min-height: 60px; }
  .hdr.is-stuck .hdr-in { min-height: 54px; }
  .brand-mark { width: 76px; }
  .btn-sm { padding: 10px 18px; font-size: 15px; }
  .ing-row { flex-wrap: wrap; }
  .ftr-end { margin-top: 34px; }
  .scroll-hint { display: none; }
}
