/* Qitavo coming-soon page: a parts label stuck on a kraft carton. */
:root {
  --kraft: #C4A27A;
  --kraft-grain: rgba(60, 38, 12, 0.07);
  --kraft-shadow: rgba(60, 38, 12, 0.65);
  --stock: #FBFCFB;
  --ink: #172B35;
  --ink-soft: #33505D;
  --teal: #087F78;
  --teal-dark: #065F5A;
  --tape-text: #F7F9F8;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-arabic: 'Noto Kufi Arabic', 'Geeza Pro', Tahoma, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: max(16px, min(4vw, 40px));
  --rule: 3px;

  color-scheme: light;
}

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

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--kraft);
  background-image: repeating-linear-gradient(90deg, var(--kraft-grain) 0 2px, transparent 2px 10px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:lang(ar) {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  text-transform: none;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-dark);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

abbr[title] {
  text-decoration: none;
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
}

.brand-icon {
  width: 40px;
  height: 38px;
}

.brand-wordmark {
  width: 103px;
  height: 27px;
}

.launch {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0;
  font-weight: 700;
  font-stretch: 80%;
  font-size: 18px;
}

.launch :lang(ar) {
  font-weight: 600;
  font-size: 16px;
}

/* Packing tape */

.tape {
  overflow: hidden;
  padding-block: 10px;
}

.tape-band {
  margin-inline: -40px;
  transform: rotate(-1.4deg);
  background: var(--teal);
  color: var(--tape-text);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.tape-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding-block: 11px;
  font-weight: 800;
  font-stretch: 70%;
  font-size: 17px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  animation: tape-scroll 40s linear infinite;
}

@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Paper sheets: the label and the stub */

main {
  padding-top: 36px;
}

.sheet {
  background: var(--stock);
  padding: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 30px 40px -24px var(--kraft-shadow);
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.field-label :lang(ar) {
  font-weight: 600;
}

/* The label */

.label-grid {
  display: flex;
  flex-direction: column;
  gap: var(--rule);
  background: var(--ink);
  border: var(--rule) solid var(--ink);
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rule);
}

.cell {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 22px 18px;
  background: var(--stock);
}

.cell-wide {
  flex: 2 1 540px;
  gap: 14px;
  padding: 18px 22px 26px;
}

.hero-title {
  margin: 0;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: 0.92;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.cell-supplier {
  flex: 1 1 260px;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 22px;
}

.supplier-mark {
  width: 132px;
  height: 127px;
}

.supplier-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 22px;
}

.supplier-name :lang(ar) {
  font-weight: 400;
  font-size: 15px;
  text-align: right;
}

.spec-value {
  font-weight: 700;
  font-stretch: 85%;
  font-size: 24px;
}

.spec-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-stretch: normal;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.spec-small {
  font-size: 20px;
}

.cell-teal {
  background: var(--teal);
  color: var(--stock);
}

.spec-year {
  font-weight: 900;
  font-stretch: 70%;
  font-size: 40px;
  line-height: 1;
}

.cell-arabic {
  padding: 22px;
}

.cell-arabic .field-label {
  font-size: 12px;
  font-weight: 600;
}

.hero-arabic {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.5;
  text-wrap: balance;
}

.hero-body {
  margin: 0;
  max-width: 60ch;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-soft);
  text-align: left;
}

.cell-barcode {
  flex: 1 1 260px;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
}

.barcode {
  display: block;
  width: 100%;
  max-width: 270px;
  height: 112px;
}

.barcode-digits {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.32em;
}

/* Perforation */

.perforation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 18px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.perforation-line {
  flex: 1;
  border-top: 2px dashed var(--ink);
}

/* Registration stub */

.stub {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 24px 30px -22px var(--kraft-shadow);
}

.stub-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px 24px;
  border: var(--rule) solid var(--ink);
}

.stub-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.section-title {
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
}

.stub-head-ar {
  font-weight: 600;
  font-size: 18px;
}

.stub-form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: flex-end;
}

.botcheck {
  display: none;
}

.role {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.role legend {
  float: left;
  margin-inline-end: 12px;
  padding: 0;
}

.role-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}

.role-option :lang(ar) {
  font-weight: 400;
  font-size: 15px;
}

.role-option input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-grow {
  flex: 1 1 240px;
}

.field-country {
  flex: 0 1 180px;
}

.field input,
.field select {
  min-height: 44px;
  width: 100%;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
}

.field input::placeholder {
  color: #6B7F88;
}

.captcha {
  flex: 1 1 100%;
  min-height: 78px;
}

.submit {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  background: var(--ink);
  color: var(--stock);
  font: inherit;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit:hover {
  background: var(--teal-dark);
}

.submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-note.is-error {
  color: #A3261B;
  font-weight: 600;
}

.registered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-block: 8px;
}

.registered p {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
}

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 22px;
  border: 4px solid var(--teal);
  color: var(--teal);
  transform: rotate(-4deg);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
}

.stamp :lang(ar) {
  font-size: 16px;
  font-weight: 800;
}

/* Category bins */

.bins {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 64px 40px;
}

.bins-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
}

.bins-title :lang(ar) {
  font-weight: 600;
  font-size: 18px;
}

.bin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bin {
  flex: 1 1 190px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  background: var(--stock);
  border-top: 8px solid var(--teal);
  box-shadow: 0 10px 18px -14px rgba(60, 38, 12, 0.7);
}

.bin-name {
  font-weight: 800;
  font-stretch: 80%;
  font-size: 20px;
}

.bin-ar {
  font-size: 14px;
  text-align: right;
}

.bin-examples {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-block: 24px 36px;
  border-top: 2px solid rgba(23, 43, 53, 0.35);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 560px) {
  .sheet {
    padding: 8px;
  }

  .cell,
  .cell-wide,
  .cell-arabic,
  .cell-barcode,
  .stub-inner {
    padding-inline: 16px;
  }

  .submit {
    flex: 1 1 100%;
  }
}

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