/* MobPOS site: the app's purple and gold (from its icon) and the app's own fonts. */
:root {
  --ink: #23113a;
  --brand: #391d5b;
  --brand-2: #5a3487;
  --lavender: #efe9f7;
  --paper: #fcfbfe;
  --gold: #d9b45b;
  --gold-ink: #7a5a14;
  --line: #ddd3eb;
  --text: #2b2238;
  --muted: #655c74;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-2);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
}

/* ---- Header ------------------------------------------------------------------------------------------------- */

.site-header {
  background: var(--ink);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font: 700 24px/1 var(--display);
  letter-spacing: 0.5px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.site-nav a {
  color: #e6dcf3;
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav .nav-link {
  display: none;
}

/* ---- Buttons ------------------------------------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font: 700 16px/1.2 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: #e6c46f;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.button-ghost:hover {
  border-color: #fff;
}

.button-small {
  padding: 8px 14px;
  font-size: 14px;
}

/* ---- Hero: the bill slip ------------------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(60% 70% at 75% 30%, rgba(146, 104, 201, 0.35), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--brand));
  color: #fff;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-urdu {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: clamp(16px, 4.3vw, 20px);
  text-wrap: balance;
  line-height: 2.2;
  color: #e6dcf3;
  margin: 18px 0 0;
}

.hero-lead {
  font-size: 19px;
  color: #efe8f8;
  max-width: 34em;
  margin: 12px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #cbbde0;
}

/* The slip, printing out of the counter printer. */
.printer {
  justify-self: center;
  width: min(100%, 380px);
}

.printer-slot {
  height: 18px;
  border-radius: 9px;
  background: #160a26;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.slip-clip {
  margin: -9px 14px 0;
  overflow: hidden;
  padding-bottom: 18px;
}

.slip {
  background: #fff;
  color: #1d1a22;
  font: 12.5px/1.55 var(--mono);
  padding: 22px 16px 26px;
  box-shadow: 0 18px 30px rgba(10, 4, 20, 0.45);
  transform-origin: top center;
  animation: print 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  /* the torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}

@keyframes print {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.slip-head {
  text-align: center;
  margin-bottom: 10px;
}

.slip-shop {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
}

.slip-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.slip-rule {
  border-top: 1px dashed #8b8395;
  margin: 8px 0;
}

.slip-rule-double {
  border-top: 3px double #3b3542;
  margin: 8px 0;
}

.slip table {
  width: 100%;
  border-collapse: collapse;
  font: inherit;
}

.slip th {
  font-weight: 500;
  text-align: right;
  border-bottom: 1px solid #3b3542;
  padding-bottom: 2px;
}

.slip td {
  text-align: right;
  padding-top: 3px;
}

.slip th:first-child,
.slip td:first-child {
  text-align: left;
}

.slip-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}

.slip-strong {
  font-weight: 500;
}

.slip-words {
  text-align: center;
  font-size: 11.5px;
  margin-top: 8px;
}

.slip-status {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #8b8395;
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  color: #3f3a47;
}

.slip-status span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f8a4c;
  margin-right: 8px;
  vertical-align: 1px;
}

/* ---- Sections ------------------------------------------------------------------------------------------------ */

.band {
  padding: 64px 0;
}

.band-tint {
  background: var(--lavender);
}

.eyebrow {
  font: 600 14px/1 var(--display);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 10px;
}

.band h2 {
  font-size: clamp(30px, 5vw, 42px);
  color: var(--ink);
  max-width: 20em;
}

.band-intro {
  color: var(--muted);
  max-width: 40em;
  margin: 12px 0 0;
}

/* PC → cloud → phone: the order the data travels. */
.flow {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.flow li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 22px 72px;
  position: relative;
}

.flow li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--gold);
  font: 700 20px/36px var(--display);
  text-align: center;
}

.flow h3 {
  font-size: 23px;
  color: var(--ink);
}

.flow p {
  margin: 6px 0 0;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.feature {
  background: #fff;
  padding: 24px 22px;
}

.feature h3 {
  font-size: 22px;
  color: var(--ink);
}

.feature p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.plans {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.plan-name {
  font: 700 24px/1 var(--display);
  color: var(--ink);
}

.plan-what {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brand-2);
}

.plan p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.plan-trial {
  background: var(--brand);
  border-color: var(--brand);
}

.plan-trial .plan-name {
  color: var(--gold);
}

.plan-trial .plan-what,
.plan-trial p {
  color: #e6dcf3;
}

.plans-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.data-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 46em;
}

.data-points li {
  padding-left: 30px;
  position: relative;
}

.data-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--brand-2);
  border-bottom: 3px solid var(--brand-2);
  transform: rotate(-45deg);
}

.contact {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.contact h2 {
  color: #fff;
  margin: 0 auto;
}

.contact p {
  color: #d7cbe8;
  margin: 12px auto 24px;
  max-width: 34em;
}

.contact-lines {
  margin-top: 18px;
  font-size: 15px;
  color: #cbbde0;
}

.contact-lines a {
  color: #fff;
}

/* ---- Documents (privacy, terms) ------------------------------------------------------------------------------ */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px 72px;
}

.doc h1 {
  font-size: clamp(34px, 6vw, 46px);
  color: var(--ink);
}

.doc-date {
  color: var(--muted);
  margin: 8px 0 32px;
  font-size: 15px;
}

.doc h2 {
  font-size: 25px;
  color: var(--ink);
  margin: 36px 0 8px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc-box {
  background: var(--lavender);
  border-left: 4px solid var(--brand-2);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
}

/* ---- Footer -------------------------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

/* ---- Wider screens ------------------------------------------------------------------------------------------- */

@media (min-width: 720px) {
  .site-nav .nav-link {
    display: inline;
  }

  .flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slip {
    animation: none;
  }
}
