/* The public pages of the activity's site. Colours come from the identity tokens (config/identity.php),
   with Daqiq's general colours as fallbacks; the layout is the same for every activity.
   A dark band for the opening, white and pale sections after it, hairline rules, one bright call. */
:root {
  --night: var(--id-night, #0B3B3C);
  --night-2: var(--id-night-2, #0D4746);
  --on-night: var(--id-on-night, #CFE3E1);
  --on-night-dim: var(--id-on-night-dim, #9CC0BE);
  --primary: var(--id-primary, #0B7F7A);
  --primary-dk: var(--id-primary-dk, #075955);
  --tint: var(--id-tint, #E3F2F1);
  --accent: var(--id-accent, #C9F15A);
  --accent-dk: var(--id-accent-dk, #B9E445);
  --accent-ink: var(--id-accent-ink, #075955);
  --text: var(--id-ink, #13292A);
  --sub: var(--id-sub, #3E5556);
  --muted: var(--id-muted, #5E7373);
  --line: var(--id-line, #DDE7E5);
  --line-soft: var(--id-line2, #EAF1EF);
  --pale: var(--id-bg, #F2F8F6);
  --paper: #FFFFFF;
  --warn: #8A4B00;
  --warn-tint: #FFF3DD;
  --bad: #A3261B;
  --bad-tint: #FDECEA;
  --wrap: 1160px;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.75; color: var(--text); background: var(--paper); }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-main { background: var(--accent); color: var(--night); }
.btn-main:hover { background: var(--accent-dk); color: var(--night); }
.btn-line { border-color: var(--line); color: var(--night); background: var(--paper); }
.btn-line:hover { border-color: var(--night); color: var(--night); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-ink { background: var(--night); color: #fff; }
.btn-ink:hover { background: var(--night-2); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* header */
.top { position: relative; z-index: 2; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--night); }
.brand:hover { text-decoration: none; color: var(--night); }
.brand img { height: 38px; width: auto; display: block; }
.brand-word { display: inline-flex; align-items: center; gap: 7px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--night); }
.cross { width: 12px; height: 12px; fill: var(--id-accent-dk, var(--primary)); flex: none; }
.top nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.top nav a { font-size: 15px; font-weight: 500; color: var(--sub); }
.top nav a:hover { color: var(--night); text-decoration: none; }
.top .actions { display: flex; align-items: center; gap: 10px; }

/* opening band */
.hero { background: var(--night); color: var(--on-night); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 80px 88px; }
.kicker, .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.kicker { color: var(--accent); }
.hero h1 { margin-top: 14px; font-size: 46px; line-height: 1.28; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.hero .lead { margin-top: 20px; font-size: 19px; line-height: 1.85; color: var(--on-night); max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--on-night-dim); }
.hero figcaption { color: var(--on-night-dim); }

/* the cashier, drawn */
.screen { background: var(--paper); border-radius: 16px; overflow: hidden; color: var(--text); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.screen-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--night-2); color: #fff; font-size: 14px; }
.screen-bar b { font-weight: 600; }
.screen-bar span { color: var(--on-night-dim); }
.scan { margin: 16px 18px 0; padding: 12px 14px; border: 1px solid var(--primary); border-radius: 10px; background: var(--tint); }
.scan small { display: block; font-size: 12px; color: var(--muted); }
.scan code { display: block; margin-top: 2px; font-family: var(--mono); font-size: 13px; color: var(--night); direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)); margin: 12px 18px 0; border: 1px solid var(--line-soft); border-radius: 10px; }
.pack div { padding: 10px 12px; border-inline-start: 1px solid var(--line-soft); min-width: 0; }
.pack div:first-child { border-inline-start: 0; }
.pack dt { font-size: 12px; color: var(--muted); }
.pack dd { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--night); direction: ltr; text-align: start; unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lines { width: calc(100% - 36px); margin: 14px 18px 0; border-collapse: collapse; font-size: 14px; }
.lines th { padding: 8px 0; font-size: 12px; font-weight: 500; color: var(--muted); text-align: start; border-bottom: 1px solid var(--line-soft); }
.lines td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.lines td small { display: block; font-size: 12px; color: var(--accent-ink); font-weight: 500; }
.lines .n { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px 18px; }
.total span { font-size: 14px; color: var(--muted); }
.total b { font-size: 24px; font-weight: 700; color: var(--night); font-variant-numeric: tabular-nums; }
.total b small { font-size: 14px; font-weight: 500; color: var(--muted); }
figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* a line of facts under the opening band */
.facts { border-bottom: 1px solid var(--line-soft); }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 24px 24px 24px 0; padding-inline: 24px; border-inline-start: 1px solid var(--line-soft); }
.facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b { font-size: 15px; font-weight: 700; color: var(--night); }
.facts span { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* sections */
.section { padding-block: 88px; border-bottom: 1px solid var(--line-soft); }
.section.tint { background: var(--pale); }
.section-head { max-width: 42em; margin-bottom: 44px; }
.eyebrow { color: var(--primary); }
.section-head h2 { margin-top: 6px; font-size: 34px; line-height: 1.35; font-weight: 700; color: var(--night); }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--sub); }
.more-link { margin-top: 22px; }

/* the journey of a pack: four numbered stops on one rule */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.journey li { position: relative; padding-top: 22px; border-top: 2px solid var(--night); }
.journey .step { display: block; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: .04em; }
.journey h3 { margin-top: 8px; font-size: 20px; font-weight: 700; color: var(--night); }
.journey p { margin-top: 8px; font-size: 16px; color: var(--sub); }

/* the code of a pack, taken apart */
.anatomy { display: grid; grid-template-columns: 1.6fr 1.15fr .85fr .95fr; direction: ltr; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.seg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 18px 20px; text-align: center; border-inline-start: 1px solid var(--line-soft); min-width: 0; }
.seg:first-child { border-inline-start: 0; }
.seg i { font-style: normal; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--primary); }
.seg code { align-self: stretch; font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--night); padding-bottom: 12px; border-bottom: 2px solid var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg b { margin-top: 8px; direction: rtl; font-size: 15px; font-weight: 700; color: var(--night); }
.seg span { direction: rtl; font-size: 13px; line-height: 1.6; color: var(--muted); }
.read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 44px; align-items: start; }
.read h3 { font-size: 20px; font-weight: 700; color: var(--night); }
.read p { margin-top: 10px; color: var(--sub); font-size: 16px; }
.trace { margin-top: 0 !important; padding: 20px 22px; border: 1px solid var(--line); border-inline-start: 3px solid var(--primary); border-radius: 12px; background: var(--paper); font-size: 15px; }
.trace b { color: var(--night); }

/* the first page of the program, drawn */
.morning { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.morning .section-head { margin-bottom: 0; }
.board { padding: 18px; background: var(--pale); border: 1px solid var(--line); border-radius: 18px; }
.board-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.board .k { display: flex; flex-direction: column; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.board .k span, .board .k small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .k b { font-size: 21px; font-weight: 700; color: var(--night); line-height: 1.4; }
.board .k.main { background: var(--night); border-color: var(--night); box-shadow: inset 0 3px 0 var(--accent); }
.board .k.main span, .board .k.main small { color: var(--on-night-dim); }
.board .k.main b { color: #fff; }
.board-card { margin-top: 10px; padding: 14px 16px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.board-hd { display: flex; justify-content: space-between; align-items: baseline; }
.board-hd b { font-size: 15px; color: var(--night); }
.board-hd span { font-size: 12px; font-weight: 600; color: var(--primary); }
.board-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.board-stats div { display: flex; flex-direction: column; padding: 8px 10px; border-inline-start: 1px solid var(--line-soft); }
.board-stats div:first-child { border-inline-start: 0; }
.board-stats b { font-size: 18px; line-height: 1.3; color: var(--night); }
.board-stats span { font-size: 11.5px; color: var(--muted); }
.board-stats .bad { background: var(--bad-tint); }
.board-stats .bad b { color: var(--bad); }
.board-stats .warn b { color: var(--warn); }
.board-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; font-weight: 600; color: var(--text); }
.board-list li:first-child { border-top: 0; margin-top: 6px; }
.board-list small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.board-list em { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-style: normal; }
.board-list em.bad { background: var(--bad-tint); color: var(--bad); }
.board-list em.warn { background: var(--warn-tint); color: var(--warn); }

/* everything else in the program */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.features li { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.features h3 { font-size: 17px; font-weight: 700; color: var(--night); }
.features p { margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--sub); }

/* plans */
.period { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 28px; }
.period label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--sub); cursor: pointer; }
.plans-box input[name="period"] { position: absolute; opacity: 0; pointer-events: none; }
#p-yearly:checked ~ .period label[for="p-yearly"], #p-monthly:checked ~ .period label[for="p-monthly"] { background: var(--night); color: #fff; }
#p-yearly:focus-visible ~ .period label[for="p-yearly"], #p-monthly:focus-visible ~ .period label[for="p-monthly"] { outline: 2px solid var(--primary); outline-offset: 2px; }
#p-yearly:checked ~ .plans .monthly, #p-monthly:checked ~ .plans .yearly { display: none; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.plan.pick { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night), inset 0 4px 0 var(--accent); }
.plan .tag { align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--night); color: var(--accent); font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 22px; font-weight: 700; color: var(--night); }
.plan .for { margin-top: 4px; min-height: 3.2em; font-size: 15px; color: var(--muted); }
.price { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.price b { font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--night); font-variant-numeric: tabular-nums; }
.price span { font-size: 15px; color: var(--muted); }
.price small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan ul { margin: 18px 0 22px; }
.plan li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--sub); }
.plan li svg, .cmp svg { flex: none; width: 16px; height: 16px; margin-top: 6px; color: var(--primary); }
.plan .btn { margin-top: auto; }
.vat { margin-top: 18px; font-size: 14px; color: var(--muted); }

.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 13px 12px; border-top: 1px solid var(--line); text-align: center; }
.cmp thead th { border-top: 0; font-size: 16px; font-weight: 700; color: var(--night); }
.cmp tbody th { text-align: start; font-weight: 500; color: var(--sub); padding-inline-start: 0; }
.cmp tr.group th { padding-top: 28px; border-top: 0; font-size: 14px; font-weight: 600; color: var(--primary); text-align: start; }
.cmp svg { margin-top: 0; vertical-align: middle; }
.cmp .dash { color: var(--muted); }
.cmp-scroll { overflow-x: auto; }

/* questions */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { max-width: 46em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; color: var(--night); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { padding: 0 0 20px; color: var(--sub); font-size: 16px; }

/* closing band and footer */
.close { background: var(--night); color: #fff; }
.close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 60px; }
.close h2 { font-size: 30px; font-weight: 700; line-height: 1.4; }
.close p { margin-top: 6px; color: var(--on-night); font-size: 16px; }
.foot { padding-block: 40px 28px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; }
.foot-brand img { height: 32px; width: auto; display: block; }
.foot-brand p { margin-top: 10px; max-width: 30em; font-size: 14px; line-height: 1.7; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
.foot a { color: var(--sub); }
.foot-copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; }

/* page head of the pricing page */
.page-head { background: var(--night); color: var(--on-night); padding-block: 64px 56px; }
.page-head .eyebrow { color: var(--accent); }
.page-head h1 { margin-top: 6px; font-size: 40px; line-height: 1.3; font-weight: 700; color: #fff; }
.page-head p:not(.eyebrow) { margin-top: 12px; max-width: 38em; color: var(--on-night); font-size: 18px; }

@media (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg:nth-child(3) { border-inline-start: 0; }
  .seg:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 960px) {
  .hero .wrap, .read, .morning, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .wrap { padding-block: 52px 60px; }
  .hero h1 { font-size: 36px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .plan .for { min-height: 0; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .top nav .hide-sm { display: none; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 60px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .close h2 { font-size: 26px; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 17px; }
  .page-head { padding-block: 44px 40px; }
  .page-head h1 { font-size: 30px; }
  .top .wrap { gap: 12px; min-height: 64px; }
  .top nav { gap: 14px; }
  .top .actions .btn-line { display: none; }
  .brand img { height: 32px; }
  .brand-word { font-size: 14px; padding-inline-start: 10px; }
  .pack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan code { font-size: 11px; }
  .pack div:nth-child(3) { border-inline-start: 0; }
  .pack div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .hero .cta .btn { flex: 1 1 100%; }
  .facts li { padding: 18px 14px; }
  .facts li:nth-child(odd) { padding-inline-start: 0; }
  .journey, .features { grid-template-columns: minmax(0, 1fr); }
  .anatomy { grid-template-columns: minmax(0, 1fr); }
  .seg { border-inline-start: 0; }
  .seg + .seg { border-top: 1px solid var(--line-soft); }
  .seg code { font-size: 17px; }
  .board { padding: 12px; }
  .board-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board .k:last-child { display: none; }
  .cmp { font-size: 13px; table-layout: fixed; }
  .cmp th, .cmp td { padding: 11px 4px; }
  .cmp thead th { font-size: 13px; }
  .cmp thead th:first-child, .cmp tbody th { width: 46%; }
}
@media (max-width: 380px) {
  .top nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
