/* Panacea — the public site.
 *
 * The app's own fonts and colours (app/lib/src/app/theme/tokens.dart): Lato
 * for Latin, Cairo for Arabic behind it, JetBrains Mono for every number, as
 * the till sets prices. Light only: the screenshots are the light app.
 */

@font-face { font-family: Lato; font-weight: 400; font-display: swap;
  src: url(fonts/Lato-Latin-400.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap;
  src: url(fonts/Lato-Latin-700.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 900; font-display: swap;
  src: url(fonts/Lato-Latin-900.woff2) format("woff2"); }
@font-face { font-family: Cairo; font-weight: 400; font-display: swap;
  src: url(fonts/Cairo-Arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Cairo; font-weight: 600; font-display: swap;
  src: url(fonts/Cairo-Arabic-600.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Cairo; font-weight: 800; font-display: swap;
  src: url(fonts/Cairo-Arabic-800.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-Latin-500.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700;
  font-display: swap;
  src: url(fonts/JetBrainsMono-Latin-700.woff2) format("woff2"); }

:root {
  color-scheme: light;

  --teal: #0087b7;
  --teal-deep: #006b91;
  --teal-logo: #4db8de;
  --teal-soft: #e6f4f8;
  --green: #0dbd2b;
  --green-deep: #0aa122;
  --orange: #f98330;
  --orange-soft: #fff0e2;

  --ink: #1a2733;
  --ink-2: #3d4d5c;
  --ink-3: #6b7b8a;
  --line: #e5ecf1;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --night: #0e1c25;
  --night-2: #16293a;

  --sans: Lato, Cairo, "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", Cairo, ui-monospace, Consolas, monospace;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 18px/1.85 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; }
p { margin: 0; }
.num { font-family: var(--mono); font-weight: 700; direction: ltr;
  unicode-bidi: isolate; font-feature-settings: "tnum"; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal-logo); outline-offset: 3px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  font: 600 17px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--green-deep); color: #fff; }
.btn-wa:hover { background: #088c1d; }
.btn-dl { background: var(--surface); color: var(--ink); border-color: #cfd9e0; }
.btn-dl:hover { border-color: var(--ink-3); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ── Header ───────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap {
  display: flex; align-items: center; gap: 28px; height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font: 900 23px/1 Lato, sans-serif; letter-spacing: -.01em;
}
.brand svg { width: 22px; height: 32px; }
.top nav { display: flex; gap: 24px; margin-inline-start: 12px; }
.top nav a {
  color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 600;
}
.top nav a:hover { color: var(--teal-deep); }
.top .btn { margin-inline-start: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 64px 0 0; overflow-x: clip; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--teal-deep); font-size: 15px; font-weight: 700;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor;
}
.hero h1 {
  margin-top: 18px; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.18;
  letter-spacing: -.01em; max-width: 13ch;
}
.hero h1 span { color: var(--teal); }
.hero .lead {
  margin-top: 22px; max-width: 34em; font-size: 20px; color: var(--ink-2);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dl-meta {
  margin-top: 14px; font-size: 14px; color: var(--ink-3);
}
.dl-meta .num { font-weight: 500; }

.receipt {
  background: #fff; padding: 14px 12px 22px;
  box-shadow: 0 2px 4px rgba(16, 32, 44, .08), 0 24px 48px -12px rgba(16, 32, 44, .32);
  /* The torn bottom edge of a slip off the roll. */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat;
}
.receipt img { width: 100%; image-rendering: auto; }

/* The hero picture: a pharmacist at the counter, with the owner's
   day-close push over the empty ceiling. No screenshots of the app
   anywhere on the site (owner's call, 2026-11-05). */
.scene {
  position: relative; margin: 56px 0 0; aspect-ratio: 2000 / 1116;
  border-radius: 24px; overflow: hidden; background: #e9edf0;
  box-shadow: 0 1px 2px rgba(16, 32, 44, .06), 0 30px 60px -24px rgba(16, 32, 44, .3);
}
.scene-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.scene > .notif { position: absolute; }
.scene-notif { inset-inline-end: 4%; top: 6%; width: 340px; }

/* An Android notification, drawn: the owner's day-close push. */
.notif {
  background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(16, 32, 44, .08), 0 16px 36px -12px rgba(16, 32, 44, .28);
  font-size: 14.5px; line-height: 1.7; color: var(--ink-2);
}
.notif-app {
  display: flex; align-items: center; gap: 6px;
  font: 700 12.5px/1 Lato, sans-serif; color: var(--teal-deep);
}
.notif-app svg { width: 9px; height: 13px; }
.notif-app span { color: var(--ink-3); font-weight: 400; }
.notif b { display: block; margin-top: 8px; color: var(--ink); font-size: 15.5px; }
.notif p { margin-top: 2px; }
.notif .num { font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: #fff;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 32, 44, .08), 0 10px 24px -10px rgba(16, 32, 44, .25);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.chip-sync { color: var(--teal-deep); }
.chip-sync i { background: var(--teal); }
.chip-on { color: var(--green-deep); }
.chip svg { width: 15px; height: 15px; }

/* ── Drawn pictures beside the copy ────────────────────────────────────── */

.art { position: relative; display: grid; justify-items: center; padding: 24px 0; }

.ask, .panel {
  width: 100%; max-width: 440px; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(16, 32, 44, .05), 0 24px 48px -20px rgba(16, 32, 44, .22);
}
.ask { position: relative; z-index: 1; }
.ask-back {
  position: absolute; z-index: 0; top: 0; max-width: 400px;
  transform: translateX(-26px) rotate(-3deg); opacity: .75;
}
.ask-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #b4561a;
}
.ask-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.ask-item {
  margin-top: 10px; font: 700 19px/1.4 var(--sans); color: var(--ink);
  direction: ltr; text-align: right;
}
.ask-why { color: var(--ink-2); font-size: 16px; }
.ask-meta { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.ask-meta div { display: flex; justify-content: space-between; font-size: 14.5px; }
.ask-meta dt { color: var(--ink-3); }
.ask-meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.ask-actions { display: flex; gap: 10px; margin-top: 18px; }
.ask-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

.pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border-radius: 10px; font-size: 14.5px; font-weight: 700; white-space: nowrap;
}
.pill.solid { background: var(--teal-deep); color: #fff; }
.pill.solid.orange { background: var(--orange); }
.pill.ghost { border: 1.5px solid #d3dce3; color: var(--ink-2); }

.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.panel-head small, .kpis small { display: block; font-size: 13.5px; color: var(--ink-3); }
.panel-head strong { font-size: 26px; margin-inline-end: 6px; }
.warn { color: #c2410c; }
.ok { color: var(--green-deep); }

.batches { list-style: none; margin: 0; padding: 0; }
.batches li {
  display: grid; grid-template-columns: 1fr auto 34px; align-items: center;
  gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.batches li:last-child { border-bottom: 0; padding-bottom: 4px; }
.batches b {
  display: block; font: 700 15px/1.4 var(--sans); color: var(--ink);
  direction: ltr; text-align: right;
}
.batches div .num { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.batches .qty { text-align: left; color: var(--ink-2); }
.tag {
  font-style: normal; font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.tag.red { background: #fdecea; color: #b02e1e; }
.tag.orange { background: var(--orange-soft); color: #c2410c; }
.tag.amber { background: #fdf6e3; color: #a16207; }
.batches li.cols {
  padding: 12px 0 6px; font-size: 12.5px; color: var(--ink-3); border-bottom: 0;
}
.batches li.cols span:last-child { text-align: left; }

.kpis { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr; gap: 12px; }
.kpis strong { display: block; margin-top: 2px; font-size: 21px; }
.chart { display: block; width: 100%; height: auto; margin-top: 18px; }
.chart .axis { stroke: var(--line); stroke-width: 1.5; }
.chart .bar { fill: var(--teal); }
.chart .bar.dim { fill: #b9dceb; }
.chart text { fill: var(--ink-3); font: 500 11.5px var(--mono); }
.panel-foot { margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* ── Facts strip ──────────────────────────────────────────────────────── */

.facts { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.facts li { padding: 4px 28px; border-inline-start: 1px solid var(--line); }
.facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b {
  display: block; font-size: 30px; line-height: 1.2; font-weight: 800;
  color: var(--ink);
}
.facts b .num { font-size: 32px; }
.facts b.tight { font-size: 26px; white-space: nowrap; }
.facts li > span { display: block; margin-top: 8px; font-size: 16px; color: var(--ink-3); line-height: 1.7; }

/* ── Sections ─────────────────────────────────────────────────────────── */

section.block { padding: 112px 0; }
section.block.tint { background: var(--bg); }
.kicker {
  font-size: 15px; font-weight: 700; color: var(--teal-deep);
}
.block h2 {
  margin-top: 10px; font-size: clamp(30px, 3.6vw, 42px); max-width: 18ch;
}
.block .intro {
  margin-top: 18px; max-width: 36em; color: var(--ink-2);
}

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px; align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .copy { order: 2; }

.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li {
  position: relative; padding: 14px 0; padding-inline-start: 26px;
  border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.75;
}
.points li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 25px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--teal);
}
.points b { color: var(--ink); font-weight: 700; }

/* ── Offline, the dark band ───────────────────────────────────────────── */

.night { background: var(--night); color: #dbe6ee; }
.night .kicker { color: var(--teal-logo); }
.night h2 { color: #fff; }
.night .intro { color: #a8bccb; }

.timeline-card {
  margin-top: 56px; padding: 32px 32px 20px;
  background: var(--night-2); border: 1px solid #22394c; border-radius: var(--radius);
}
.timeline-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.timeline { display: block; width: 100%; height: auto; overflow: visible; }
.timeline .tl-axis { stroke: #3a5568; stroke-width: 1.5; }
.timeline .tl-tick { stroke: var(--teal-logo); stroke-width: 2.5; stroke-linecap: round; }
.timeline .tl-local { stroke: var(--orange); }
.timeline .tl-sync { stroke: var(--green); stroke-width: 2; stroke-dasharray: 4 4; }
.timeline .tl-sync-dot { fill: var(--green); }
.timeline text { font-family: var(--sans); }
.timeline .tl-hour { fill: #7f97a8; font-size: 13px; font-family: var(--mono); }
.timeline .tl-cap { font-size: 14.5px; font-weight: 600; }
.timeline .tl-off { fill: #f7a76d; }
.timeline .tl-synced { fill: #4fdc68; }
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px;
  font-size: 15px; color: #a8bccb;
}
.legend i {
  display: inline-block; width: 3px; height: 14px; border-radius: 2px;
  margin-inline-end: 8px; vertical-align: -2px;
}

.three {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 56px;
}
.three h3 { font-size: 19px; color: #fff; }
.three p { margin-top: 8px; font-size: 16.5px; color: #a8bccb; line-height: 1.85; }

/* ── Receipt section ─────────────────────────────────────────────────── */

.paper-stage {
  display: grid; place-items: center; padding: 48px 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #fff 0%, rgba(255,255,255,0) 70%),
    #eef2f5;
  border-radius: 18px;
}
.paper-stage .receipt {
  width: min(330px, 86%);
  transform: rotate(-1.2deg);
}

/* ── Phone ───────────────────────────────────────────────────────────── */

.phone {
  width: min(320px, 80%); margin: 0 auto;
  padding: 10px; border-radius: 44px; background: #10181f;
  box-shadow: 0 30px 60px -20px rgba(16, 32, 44, .45), inset 0 0 0 1.5px #34424d;
}
.lock {
  aspect-ratio: 9 / 19; border-radius: 34px; padding: 56px 14px 0;
  background:
    radial-gradient(120% 70% at 80% 10%, #1d6f8f 0%, transparent 60%),
    radial-gradient(90% 60% at 10% 90%, #0f3d52 0%, transparent 70%),
    #0b1e29;
  text-align: center; color: #fff;
}
.lock-time { font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.lock-date { margin-top: 8px; font-size: 15px; color: #cfe3ec; }
.lock .notif { margin-top: 40px; text-align: right; font-size: 13.5px; }
/* Several on one lock screen: tighter, the first one still clear of the
   clock. */
.lock { padding-top: 40px; padding-bottom: 16px; }
.lock .lock-time { font-size: 54px; }
.lock .notif.mini {
  margin-top: 8px; padding: 10px 12px; border-radius: 14px; font-size: 12px;
  line-height: 1.6;
}
.lock .notif.mini:first-of-type { margin-top: 24px; }
.notif.mini b { margin-top: 5px; font-size: 13px; }
.notif .short { font-style: normal; color: #c2410c; font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 10px 16px; border-radius: 10px; border: 1px dashed #b9c7d1;
  font-size: 15.5px; color: var(--ink-2);
}
.soon svg { width: 18px; height: 18px; }

/* ── Everything list ─────────────────────────────────────────────────── */

.all {
  columns: 3 260px; column-gap: 48px; margin: 48px 0 0; padding: 0;
  list-style: none;
}
.all li {
  break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 17px; color: var(--ink-2); line-height: 1.7;
}
.all b { display: block; color: var(--ink); font-weight: 700; font-size: 17.5px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { margin-top: 40px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  /* Physical sides on purpose: a chevron points down in either direction. */
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* ── Contact band + footer ───────────────────────────────────────────── */

.contact { padding: 104px 0; background: var(--teal-deep); color: #e3f2f8; }
.contact h2 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); max-width: 20ch; }
.contact p { margin-top: 14px; max-width: 34em; color: #bfe0ee; }
.contact .cta { margin-top: 32px; }
.contact .btn-dl { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.contact .btn-dl:hover { border-color: #fff; }
.contact .mail { margin-top: 22px; font-size: 16px; }
.contact .mail a { color: #fff; }

footer { padding: 36px 0 44px; background: var(--night); color: #8ea4b4; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
footer .brand { color: #fff; font-size: 19px; }
footer .brand svg { width: 16px; height: 24px; }
footer a { color: #c4d4df; text-decoration: none; }
footer a:hover { color: #fff; }
footer .links { display: flex; gap: 24px; margin-inline-start: auto; }

/* ── Narrow screens ──────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .top nav { display: none; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > .copy { order: 0; }
  .facts ul { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .facts li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .three { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .top .wrap { height: 60px; }
  .top .btn span { display: none; }
  .top .btn { padding: 0 12px; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 18px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  /* Too small to carry a card on top: the photo, then the push tucked
     under its bottom edge. */
  .scene {
    aspect-ratio: auto; overflow: visible; border-radius: 0; box-shadow: none;
    background: none; margin-top: 40px;
  }
  .scene-photo {
    position: static; aspect-ratio: 2000 / 1116; border-radius: 16px;
  }
  .scene > .notif {
    position: relative; width: auto; margin: -36px 12px 0; inset: auto;
  }
  .ask-back { display: none; }
  .ask, .panel { padding: 18px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis div:last-child { display: none; }
  .facts { padding: 64px 0 48px; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li { border-inline-start: 0; padding-inline-start: 0; padding-top: 18px;
    border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; padding-top: 0; }
  section.block { padding: 72px 0; }
  .timeline-card { padding: 20px 14px 14px; margin-inline: -4px; }
  /* Too small to read squeezed to the phone: keep its size and let it
     scroll sideways inside the card, never the page. */
  .timeline { width: 720px; max-width: none; }
  .contact { padding: 72px 0; }
  footer .links { margin-inline-start: 0; }
}
