:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --accent: #f59e0b;
  --ink: #0f172a;
  --muted: #475569;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --tear: polygon(0 0, 100% 0, 100% 100%, 97.917% calc(100% - 7px), 95.833% 100%, 93.75% calc(100% - 7px), 91.667% 100%, 89.583% calc(100% - 7px), 87.5% 100%, 85.417% calc(100% - 7px), 83.333% 100%, 81.25% calc(100% - 7px), 79.167% 100%, 77.083% calc(100% - 7px), 75% 100%, 72.917% calc(100% - 7px), 70.833% 100%, 68.75% calc(100% - 7px), 66.667% 100%, 64.583% calc(100% - 7px), 62.5% 100%, 60.417% calc(100% - 7px), 58.333% 100%, 56.25% calc(100% - 7px), 54.167% 100%, 52.083% calc(100% - 7px), 50% 100%, 47.917% calc(100% - 7px), 45.833% 100%, 43.75% calc(100% - 7px), 41.667% 100%, 39.583% calc(100% - 7px), 37.5% 100%, 35.417% calc(100% - 7px), 33.333% 100%, 31.25% calc(100% - 7px), 29.167% 100%, 27.083% calc(100% - 7px), 25% 100%, 22.917% calc(100% - 7px), 20.833% 100%, 18.75% calc(100% - 7px), 16.667% 100%, 14.583% calc(100% - 7px), 12.5% 100%, 10.417% calc(100% - 7px), 8.333% 100%, 6.25% calc(100% - 7px), 4.167% 100%, 2.083% calc(100% - 7px), 0% 100%);
}
/*
 * The marketing site (CR #69). One stylesheet for the three languages: logical properties only, so
 * Arabic and Kurdish (rtl) and English (ltr) share every rule. Brand colours are not written here —
 * site/build.mjs puts brand/brand.json's colours in the :root block it prepends (spec §4.8).
 * Fonts are WOFF2 subsets of brand/fonts (site/tools/fonts.sh): IBM Plex Sans Arabic for the page,
 * Noto for the sample receipt because that is what the receipts print in (§6.17.4).
 */

@font-face { font-family: 'Plex Arabic'; src: url('/static/fonts/IBMPlexSansArabic-Regular.69292be343.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/static/fonts/IBMPlexSansArabic-SemiBold.e3e879370d.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/static/fonts/IBMPlexSansArabic-Bold.606b64a81e.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Receipt'; src: url('/static/fonts/NotoSansArabic-Regular.773c8684e9.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+0020-0040, U+00A0, U+00D7, U+2000-206F; }
@font-face { font-family: 'Noto Receipt'; src: url('/static/fonts/NotoSansArabic-Bold.1b98fc2d1d.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+0020-0040, U+00A0, U+00D7, U+2000-206F; }
@font-face { font-family: 'Noto Receipt Latin'; src: url('/static/fonts/NotoSans-Regular.a98c7dab90.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Noto Receipt Latin'; src: url('/static/fonts/NotoSans-Bold.611e18b312.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  color-scheme: light;
  --paper: #fffefa;
  --line: #d4dce5;
  --wa-bubble: #dcf8c6;
  --font: 'Plex Arabic', system-ui, sans-serif;
  --font-print: 'Noto Receipt', 'Noto Receipt Latin', sans-serif;
  --gutter: 16px;
  --wide: 1120px;
  --side: 340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  overflow-x: clip;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.skip {
  position: absolute; inset-inline-start: var(--gutter); top: -100px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 1.02rem; line-height: 1.3; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--accent); color: var(--ink); }
.btn-wa:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.55); }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }
.btn-line { color: var(--primary-dark); border-color: var(--primary); background: var(--surface); }
.btn-line:hover { background: var(--primary-soft); }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header { background: var(--primary-dark); color: #fff; position: relative; z-index: 5; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; text-decoration: none; }
.brand span { white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.sections { display: flex; gap: 22px; margin-inline-start: auto; font-size: 0.97rem; }
.sections a { text-decoration: none; opacity: 0.9; }
.sections a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 4px 10px; border-radius: 8px; font-size: 0.95rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: rgb(255 255 255 / 0.1); }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 150px; padding: 6px;
  background: var(--surface); color: var(--ink); border-radius: 10px; box-shadow: 0 12px 32px rgb(15 23 42 / 0.22);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.lang li a:hover { background: var(--bg); }
.lang li a[aria-current] { font-weight: 700; color: var(--primary-dark); }
.sign-in {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: 8px;
  border: 1.5px solid rgb(255 255 255 / 0.6); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.sign-in:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }
@media (max-width: 899px) {
  .sections { display: none; }
  .lang { margin-inline-start: auto; }
  .bar { gap: 8px; }
}
@media (max-width: 439px) {
  /* the globe alone names the language menu (its label says which language is on) */
  .lang summary > span { display: none; }
  .bar .brand { min-width: 0; font-size: 1rem; }
  /* a long name (Kurdish) takes two short lines rather than pushing the sign-in off the screen */
  .bar .brand span { white-space: normal; line-height: 1.25; }
  .sign-in { padding-inline: 10px; }
}

/* ── the top: hero + features share one grid so the receipt can hang from the hero into the
      features (desktop); on a phone it simply follows the hero text ───────────────────────── */
.top { display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
/* full-bleed bands drawn with a spread shadow clipped to the element's own height: a shadow is
   never scrollable overflow, so no page ever scrolls sideways */
.hero-text {
  position: relative; color: #fff; padding-block: 40px 44px;
  background: var(--primary-dark); box-shadow: 0 0 0 100vmax var(--primary-dark); clip-path: inset(0 -100vmax);
}
.hero-text h1 { font-size: clamp(2.05rem, 1.35rem + 3.2vw, 3.45rem); letter-spacing: -0.01em; max-width: 18ch; }
.hero-text h1 span { display: block; }
.hero-text .lead { margin-top: 20px; font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); max-width: 34em; color: rgb(255 255 255 / 0.9); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-text .note { margin-top: 16px; font-size: 0.95rem; color: rgb(255 255 255 / 0.78); }

.printer { margin: 0; position: relative; isolation: isolate; width: min(100%, var(--side)); justify-self: center; }
.printer::before {
  /* on a phone the band of the hero continues behind the printer's head */
  content: ''; position: absolute; z-index: -1; inset-inline: 0; top: 0; height: 64px;
  background: var(--primary-dark); box-shadow: 0 0 0 100vmax var(--primary-dark); clip-path: inset(0 -100vmax);
}
.printer-head {
  position: relative; height: 46px; border-radius: 14px 14px 10px 10px;
  background: linear-gradient(to bottom, #334155, var(--ink) 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 10px 24px rgb(0 0 0 / 0.28);
}
.printer-head::after {
  content: ''; position: absolute; inset-inline: 16px; bottom: 9px; height: 4px; border-radius: 2px; background: #020617;
}
.printer-head .led { position: absolute; inset-inline-start: 16px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.feed { overflow: hidden; margin-inline: 14px; margin-top: -11px; padding: 0 8px 28px; }
.paper { filter: drop-shadow(0 12px 16px rgb(15 23 42 / 0.22)); }
@media (prefers-reduced-motion: no-preference) {
  .paper { animation: feed 2.4s steps(36, end) 0.4s both; }
  @keyframes feed { from { transform: translateY(-100%); } to { transform: none; } }
}

.receipt {
  background: var(--paper); color: var(--ink); clip-path: var(--tear);
  font-family: var(--font-print); font-size: 13.5px; line-height: 1.55; padding: 22px 18px 34px;
}
.receipt:lang(en) { font-family: 'Noto Receipt Latin', 'Noto Receipt', sans-serif; }
.receipt .c { text-align: center; }
.receipt .logo { width: 38px; height: 38px; margin: 0 auto 6px; }
.receipt .shop { font-weight: 700; font-size: 16px; }
.receipt .muted { color: #334155; }
.receipt hr { border: 0; border-top: 1.5px dashed #475569; margin: 9px 0; }
.receipt .no { font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: 0.02em; }
.receipt .row { display: flex; justify-content: space-between; gap: 10px; }
.receipt .row > :last-child { white-space: nowrap; }
.receipt .sub { padding-inline-start: 24px; font-size: 12.5px; color: #334155; }
.receipt .total { font-weight: 700; font-size: 16px; }
.receipt .b { font-weight: 700; }
.receipt .qr { width: 104px; height: 104px; margin: 8px auto 2px; }
.receipt .terms { font-size: 11.5px; color: #334155; }
.cut { display: flex; align-items: center; gap: 6px; margin: 16px -18px; color: #475569; font-size: 13px; }
.cut::after { content: ''; flex: 1; border-top: 1.5px dashed #64748b; }
.tag .no { font-size: 28px; }
.tag .row { align-items: flex-start; }
.tag .qr { width: 64px; height: 64px; margin: 0; }
@media (max-width: 559px) {
  /* a phone shows the receipt without its terms and tag: the paper stays shorter than a screen */
  .receipt .terms, .receipt .cut, .receipt .tag { display: none; }
}

.features { padding-block: 56px 64px; }
.features h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); max-width: 22ch; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 34px 40px; margin-top: 34px; }
.feature-list li { border-top: 2px solid var(--ink); padding-top: 18px; }
.feature-list svg { width: 30px; height: 30px; color: var(--primary); margin-bottom: 12px; }
.feature-list h3 { font-size: 1.2rem; }
.feature-list p { margin-top: 8px; color: var(--muted); }

@media (min-width: 900px) {
  .top {
    width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; overflow-x: visible;
    grid-template-columns: minmax(0, 1fr) var(--side); column-gap: 64px;
  }
  .hero-text { grid-column: 1; grid-row: 1; padding-block: 64px 72px; }
  .features { grid-column: 1; grid-row: 2; padding-block: 64px 88px; }
  .printer { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 48px; width: 100%; }
  .printer::before { display: none; }
  .features .wrap, .hero-text .wrap { width: auto; }
}
@media (max-width: 899px) {
  .top > .hero-text, .top > .features { padding-inline: var(--gutter); }
  .top > .hero-text > *, .top > .features > * { max-width: var(--wide); margin-inline: auto; }
  .hero-text h1 { margin-inline: 0; }
  .printer { margin-top: 0; }
}

/* ── sections below ──────────────────────────────────────────────────────── */
.section { padding-block: 72px; }
.section.tint { background: var(--bg); }
.section h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); max-width: 26ch; }
.section .lead { margin-top: 12px; color: var(--muted); max-width: 44em; }

/* the order's path — a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; margin-top: 40px; counter-reset: step; }
.steps > li { position: relative; padding-top: 58px; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--primary); color: #fff;
}
.steps > li::after {
  content: ''; position: absolute; top: 19px; inset-inline-start: 48px; inset-inline-end: -20px; height: 2px; background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips li { font-size: 0.86rem; font-weight: 600; padding: 2px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); }
.steps p { margin-top: 10px; color: var(--muted); }
.bubble {
  position: relative; margin-top: 16px; padding: 10px 12px 22px; border-radius: 12px; border-start-start-radius: 0;
  background: var(--wa-bubble); color: #111b21; font-size: 0.9rem; line-height: 1.55; max-width: 330px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.12);
}
.bubble::before {
  content: ''; position: absolute; top: 0; inset-inline-start: -8px; border-top: 10px solid var(--wa-bubble); border-inline-start: 8px solid transparent;
}
.bubble .link { display: block; color: #015a80; text-decoration: underline; overflow-wrap: anywhere; text-align: start; }
.bubble .time { position: absolute; inset-inline-end: 10px; bottom: 4px; font-size: 0.72rem; color: #667781; }
@media (max-width: 767px) {
  .steps { gap: 0; }
  .steps > li { padding-top: 0; padding-inline-start: 58px; padding-bottom: 30px; }
  .steps > li::after { top: 48px; bottom: 4px; inset-inline-start: 19px; inset-inline-end: auto; width: 2px; height: auto; }
  .steps > li:last-child { padding-bottom: 0; }
}

.included { columns: 2 300px; column-gap: 48px; margin-top: 32px; }
.included li { break-inside: avoid; display: flex; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.included svg { width: 20px; height: 20px; flex: none; margin-top: 5px; color: var(--primary); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; margin-top: 36px; max-width: 1120px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan h3 { font-size: 1.3rem; }
.plan .for { margin-top: 4px; color: var(--muted); }
.price { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price .amount { font-size: 2.35rem; font-weight: 700; line-height: 1.2; }
.price .period { color: var(--muted); }
.price.ask .amount { font-size: 1.35rem; }
.trial { margin-top: 6px; font-weight: 600; color: var(--primary-dark); }
.plan ul { margin-block: 20px 26px; }
.plan li { display: flex; gap: 10px; padding-block: 5px; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 5px; color: var(--primary); }
.plan .btn { margin-top: auto; width: 100%; padding-inline: 14px; }
@media (max-width: 439px) { .plan { padding: 22px 18px; } }
.plans-note { margin-top: 24px; max-width: 60em; color: var(--muted); font-size: 0.97rem; }

.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 16px; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--primary); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }

.closing { background: var(--primary-dark); color: #fff; padding-block: 64px; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.closing h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }
.closing p { margin-top: 8px; color: rgb(255 255 255 / 0.88); max-width: 36em; }
.closing .phone { display: block; margin-top: 10px; font-size: 0.95rem; color: rgb(255 255 255 / 0.8); text-align: center; }

.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.78); padding-block: 28px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-footer .brand { color: #fff; font-size: 1rem; }
.site-footer .brand svg { width: 26px; height: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-inline-start: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
/* the help and policy pages: a row of their own under the rest */
.site-footer .pages { flex-basis: 100%; margin-inline-start: 0; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 0.92rem; }
.site-footer .pages a[aria-current] { color: #fff; font-weight: 600; }

/* ── the help and policy pages (privacy, delete account, support, terms) ─────
      one readable column; real headings; lists keep their bullets and numbers */
.doc-band { background: var(--primary-dark); color: #fff; padding-block: 40px 44px; }
.doc-band .wrap, .doc-body { max-width: 760px; }
.doc-band h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); }
.doc-band .lead { margin-top: 12px; font-size: 1.08rem; color: rgb(255 255 255 / 0.9); }
.doc-band .updated { margin-top: 14px; font-size: 0.95rem; color: rgb(255 255 255 / 0.78); }
.doc-body { padding-block: 36px 72px; }
.doc-body a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-body a:hover { text-decoration-thickness: 2px; }
.doc-body section { margin-top: 40px; }
.doc-body h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.doc-body h3 { font-size: 1.12rem; margin-top: 28px; }
.doc-body p, .doc-body ul, .doc-body ol { margin-top: 12px; }
.doc-body section ul { list-style: disc; padding-inline-start: 24px; }
.doc-body section ol { list-style: decimal; padding-inline-start: 24px; }
.doc-body li + li { margin-top: 6px; }
.doc-body li::marker { color: var(--primary); font-weight: 600; }
.doc-body b { font-weight: 600; }
.toc { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.toc h2 { font-size: 1rem; }
.toc ol { list-style: decimal; padding-inline-start: 24px; margin-top: 6px; columns: 2 220px; column-gap: 32px; }
.toc li { break-inside: avoid; }
.toc li + li { margin-top: 2px; }
.contact { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.contact > div { display: grid; grid-template-columns: minmax(7.5em, max-content) minmax(0, 1fr); gap: 4px 20px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; }
@media (max-width: 439px) {
  .contact > div { grid-template-columns: minmax(0, 1fr); }
}
