/* Insyab landing page. The page is the object: a seat ticket, then more pieces of the same stationery.
   Brand kept: amber field, Cairo, near-black ink on paper. Two-colour print: amber + ink, on paper. */
:root {
  --field: #e39a17;
  --field-deep: #b8770a;
  --paper: #ffffff;
  --paper-2: #ebe8e2;
  --paper-3: #f9d58a;
  --ink: #1d1b16;
  --ink-2: #2b2820;
  --muted: #5a5244;
  --on-ink: #ffffff;
  --on-ink-muted: #d9d1c2;

  --display: clamp(40px, 5.4vw, 80px);
  --h2: clamp(34px, 4.4vw, 64px);
  --h3: 20px;
  --body: 17px;
  --small: 14px;

  --margin: clamp(16px, 3vw, 40px);
  --maxw: 1280px;
  --gap: clamp(112px, 14vw, 200px);
  --radius: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--body);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paper-3); }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.02em; line-height: 1.05; font-weight: 800; }
[lang="ar"] h1, [lang="ar"] h2 { letter-spacing: 0; line-height: 1.2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--margin); }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: var(--margin); top: 8px; background: var(--paper); padding: 8px 14px; z-index: 10; }

/* Curtain footer: the page is a sheet that slides up off the footer waiting beneath it. */
main { position: relative; z-index: 1; background: var(--field); overflow-x: clip; }

/* ── buttons: one shape on the whole page — square corners, flat fill ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--on-ink);
  font: 700 var(--body)/1 "Cairo", sans-serif; text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.alt { background: var(--paper-2); color: var(--ink); }
.btn.alt:hover { background: var(--paper-3); }

/* ── top bar, on the field ── */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; padding-bottom: 24px;
}
.mark { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: var(--h3); text-decoration: none; }
.mark img { width: 44px; height: 44px; }
.bar nav { display: flex; gap: 28px; font-weight: 600; }
.bar nav a { text-decoration: none; padding: 6px 0; transition: opacity .18s; }
.bar nav a:hover { opacity: .7; }
.bar .btn { min-height: 44px; padding: 0 18px; }

/* ── hero: the ticket ── */
.hero { padding-bottom: var(--gap); }
.ticket {
  position: relative;
  width: min(760px, 100%);
  margin: clamp(56px, 9vh, 120px) auto 0;
  background: var(--paper);
  text-align: center;
}
.ticket-head { padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 56px) 40px; }
.ticket h1 { font-size: var(--display); }
.ticket h1 span { display: block; white-space: nowrap; }
.lede { max-width: 34ch; margin: 28px auto 0; font-size: var(--h3); }
.get { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.get-note { margin-top: 14px; color: var(--muted); font-size: var(--small); }

/* Device-aware download: without script, every store button shows. With it, the visitor's own store leads. */
html[data-device="ios"] .only-android,
html[data-device="android"] .only-ios { display: none; }
html[data-device="ios"] .qr, html[data-device="android"] .qr { display: none; }
.qr { display: none; }
html[data-device="desktop"] .qr { display: flex; }

/* the perforation: a row of round dots between two notches cut in the field colour */
.perf { position: relative; height: 0; border-top: 6px dotted var(--field); margin: 0 28px; }
.perf::before, .perf::after {
  content: ""; position: absolute; top: -21px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--field);
}
.perf::before { inset-inline-start: -46px; }
.perf::after { inset-inline-end: -46px; }

.ride {
  display: grid; grid-template-columns: 1fr 1.7fr 1.2fr 1fr; gap: 24px 16px;
  padding: 36px clamp(20px, 5vw, 56px) 44px; text-align: start;
}
.ride dt { font-size: var(--small); color: var(--muted); }
.ride dd { margin: 2px 0 0; font-size: var(--h3); font-weight: 800; line-height: 1.25; }

.qr {
  align-items: center; gap: 20px; justify-content: center;
  padding: 0 clamp(20px, 5vw, 56px) 44px; text-align: start;
}
.qr img { width: 112px; height: 112px; }
.qr p { max-width: 26ch; font-weight: 600; }

/* ── features: the capabilities as a printed price list ── */
.on-ink { background: var(--ink); color: var(--on-ink); }
.menu-sec { padding: var(--gap) 0; }
.menu-sec .wrap { display: grid; grid-template-columns: 1fr minmax(0, 600px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.menu-intro h2 { font-size: var(--h2); }
.menu-intro p { margin-top: 24px; max-width: 34ch; color: var(--on-ink-muted); font-size: var(--h3); }
.menu-intro img, .how-intro img { margin-top: 48px; width: min(320px, 70%); height: auto; aspect-ratio: 687 / 940; object-fit: cover; object-position: top; background: var(--paper); }
.sheet {
  background: var(--paper); color: var(--ink);
  padding: 64px clamp(20px, 4vw, 48px);
  clip-path: polygon(0 12px, 4% 0, 8% 12px, 12% 0, 16% 12px, 20% 0, 24% 12px, 28% 0, 32% 12px, 36% 0, 40% 12px, 44% 0, 48% 12px, 52% 0, 56% 12px, 60% 0, 64% 12px, 68% 0, 72% 12px, 76% 0, 80% 12px, 84% 0, 88% 12px, 92% 0, 96% 12px, 100% 0, 100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%);
}
.sheet h3 { font-size: var(--h3); font-weight: 800; margin-top: 44px; }
.sheet h3:first-child { margin-top: 0; }
.sheet ul { list-style: none; margin: 8px 0 0; padding: 0; }
.sheet li { margin-top: 18px; }
.row { display: flex; align-items: baseline; gap: 10px; }
.row b { font-size: var(--body); font-weight: 800; }
.row i { flex: 1; border-bottom: 4px dotted var(--muted); transform: translateY(-5px); min-width: 24px; }
.row span { font-weight: 700; white-space: nowrap; }
.sheet li small { display: block; max-width: 40ch; color: var(--muted); font-size: var(--small); }

/* ── showcase: the app's own screens, one plate, switched by tabs ── */
.show { background: var(--paper-2); padding: var(--gap) 0; }
.show .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; min-height: 88svh; }
.plate { background: var(--field); aspect-ratio: 1; overflow: hidden; display: flex; justify-content: center; align-self: center; }
.plate img {
  width: 58%; height: auto; margin-top: 9%; background: var(--paper);
  transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.plate img.swap { opacity: 0; transform: translateY(24px); }
.show-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.tabs button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 600 var(--body)/1.4 "Cairo", sans-serif; color: var(--muted);
  border-bottom: 4px solid transparent; transition: color .18s, border-color .18s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.show h2 { font-size: var(--h2); }
.show-text p { margin-top: 32px; max-width: 34ch; font-size: var(--h3); }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cells .btn { min-height: 72px; }

/* ── how it works: a morning, printed as an itinerary slip ── */
.how { padding: var(--gap) 0; }
.how .wrap { display: grid; grid-template-columns: 5fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how h2 { font-size: var(--h2); }
.how-intro p { margin-top: 24px; max-width: 30ch; font-size: var(--h3); color: var(--on-ink-muted); }

.slip {
  background: var(--paper); color: var(--ink); max-width: 480px; width: 100%; justify-self: end;
  padding: 44px clamp(20px, 4vw, 40px) 64px; font-size: var(--body);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px));
}
.slip h3 { font-size: var(--body); font-weight: 800; margin-top: 28px; }
.slip h3:first-child { margin-top: 0; }
.slip ol { list-style: none; padding: 0; margin: 6px 0 0; }
.slip li { margin-top: 12px; }
.slip .done {
  margin: 32px calc(-1 * clamp(20px, 4vw, 40px)) 0; min-height: 44px; padding: 10px clamp(20px, 4vw, 40px);
  background: var(--ink); color: var(--on-ink); display: flex; justify-content: space-between; gap: 12px; font-weight: 700;
}

/* ── faq: index cards filed in a drawer ── */
.faq { background: var(--paper); padding: var(--gap) 0; }
.faq h2 { font-size: var(--h2); max-width: 14ch; }
.drawer { margin-top: 56px; max-width: 920px; }
.card { position: relative; margin-top: -8px; }
.card:first-child { margin-top: 0; }
.card .tab {
  display: inline-block; min-width: 180px; padding: 8px 20px 4px;
  font-weight: 700; font-size: var(--small);
  margin-inline-start: calc(var(--i) * clamp(32px, 9vw, 130px));
}
.card .face { padding: 18px clamp(18px, 3vw, 32px) 24px; }
.card button {
  all: unset; display: block; width: 100%; cursor: pointer; box-sizing: border-box;
  font-size: var(--h3); font-weight: 600; line-height: 1.4;
}
.card button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.card .answer { max-width: 54ch; font-size: var(--body); margin-top: 12px; }
.card[data-open="false"] .answer { display: none; }
.card .tab, .card .face { background: var(--c); }
.card:nth-child(3n+1) { --c: var(--paper-3); }
.card:nth-child(3n+2) { --c: var(--paper-2); }
.card:nth-child(3n) { --c: var(--field); }
.card button::after { content: " +"; font-weight: 800; }
.card[data-open="true"] button::after { content: " −"; }

/* ── cta: the first step, already open ── */
.cta { min-height: 90svh; padding: var(--gap) 0; }
.cta .wrap { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: end; min-height: calc(90svh - 2 * var(--gap)); }
.cta h2 { font-size: clamp(52px, 7vw, 108px); line-height: .98; }
[lang="ar"] .cta h2 { line-height: 1.15; }
.cta-text p { margin-top: 24px; max-width: 34ch; font-size: var(--h3); }
.dialog {
  background: var(--paper); padding: 28px; align-self: center;
  box-shadow: 0 24px 60px rgba(29, 27, 22, .28); /* taste-skill-ignore: the app's own dialog, raised as in the app (data-ui) */
  font-size: var(--body);
}
.dialog h3 { font-size: var(--h3); font-weight: 800; }
.dialog label { display: block; margin-top: 18px; font-weight: 600; font-size: var(--small); }
.dialog input[type="text"] {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 0 14px;
  font: 600 var(--body) "Cairo", sans-serif; color: var(--ink);
  background: var(--paper); border: 2px solid #d8cfbd; border-radius: 10px;
}
.dialog input[type="text"]:focus { border-color: var(--ink); outline: none; }
.seg { display: inline-flex; margin-top: 6px; border: 2px solid #d8cfbd; border-radius: 10px; overflow: hidden; }
.seg button { all: unset; cursor: pointer; padding: 8px 20px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--field); }
.seg button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 8px; border: 2px solid var(--field); border-radius: 10px; }
.price output { font-size: var(--h3); font-weight: 800; }
.price button {
  all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  background: var(--field); text-align: center; font-size: var(--h3); font-weight: 800; line-height: 44px;
  transition: transform .15s var(--ease);
}
.price button:active { transform: scale(.92); }
.price button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dialog .hint { margin-top: 10px; color: var(--muted); font-size: var(--small); }
.dialog .btn { width: 100%; margin-top: 22px; border-radius: 26px; background: var(--field-deep); }
.dialog .btn:hover { background: #9d6508; }

/* ── footer: the back of the ticket, waiting under the page ── */
.foot { position: sticky; bottom: 0; z-index: 0; padding: 72px 0 32px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 180px; direction: ltr; }
.blocks span {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  background: var(--field); color: var(--ink); font-weight: 900; line-height: .8;
  font-size: clamp(64px, 13vw, 200px); padding-bottom: 2%;
}
.blocks span:nth-child(2n) { background: var(--paper-3); }
.blocks span:nth-child(3n) { background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin-top: 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: var(--body); }
.foot-links a { text-decoration: none; color: var(--on-ink); }
.foot-links a:hover { color: var(--paper-3); }
.foot-contact { font-size: var(--body); color: var(--on-ink-muted); }
.foot-contact a { color: var(--on-ink); }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; font-size: var(--small); color: var(--on-ink-muted); }
.foot-last .btn { min-height: 40px; padding: 0 16px; font-size: var(--small); background: var(--field); color: var(--ink); }

/* ── motion: entrances only when script runs; content never depends on it ── */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .btn, .plate img, .price button { transition: none; }
  .plate img { transform: none !important; }
}

/* ── tablet ── */
@media (max-width: 960px) {
  .bar nav { display: none; }
  .menu-sec .wrap, .how .wrap, .show .wrap, .cta .wrap { grid-template-columns: 1fr; }
  .slip { justify-self: stretch; max-width: none; }
  .sheet { max-width: 640px; }
  .show .wrap { min-height: 0; }
  .plate { max-width: 560px; width: 100%; }
  .cta .wrap { min-height: 0; }
  .dialog { align-self: stretch; }
}

/* ── phone ── */
@media (max-width: 560px) {
  .bar { padding-top: 16px; padding-bottom: 16px; }
  .mark img { width: 36px; height: 36px; }
  .ticket { margin-top: 32px; }
  .ticket h1 { font-size: 10vw; }
  .lede { font-size: var(--body); }
  .get .btn { width: 100%; }
  .ride { grid-template-columns: 1fr 1fr; }
  .ride .wide { grid-column: span 2; }
  .menu-intro img, .how-intro img { width: 72%; aspect-ratio: 687 / 760; }
  .menu-intro p, .how-intro p, .show-text p, .cta-text p { font-size: var(--body); }
  .sheet { padding: 44px 20px; }
  .sheet h3 { font-size: var(--body); }
  .cells { grid-template-columns: 1fr; }
  .cells .btn { min-height: 60px; }
  .card .tab { min-width: 120px; margin-inline-start: calc(var(--i) * 20px); }
  .card button { font-size: var(--body); }
  .cta h2 { font-size: 13vw; }
  /* On a phone the paper runs to both edges, and its text sits on the page margin. */
  .ticket, .sheet, .slip, .dialog, .drawer { margin-inline: calc(-1 * var(--margin)); width: auto; max-width: none; }
  .ticket { width: calc(100% + 2 * var(--margin)); }
  .ticket-head, .ride, .qr, .sheet, .slip, .dialog, .card .face { padding-inline: var(--margin); }
  .slip .done { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .perf { margin: 0 var(--margin); }
  .perf::before { inset-inline-start: calc(-1 * var(--margin) - 18px); }
  .perf::after { inset-inline-end: calc(-1 * var(--margin) - 18px); }
  .dialog { padding-block: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .blocks { height: 22svh; min-height: 120px; }
}
