@layer tokens, base, sections;

@layer tokens {
  @font-face {
    font-family: "Almarai";
    src: url("assets/fonts/almarai-arabic-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
  }

  @font-face {
    font-family: "Almarai";
    src: url("assets/fonts/almarai-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @font-face {
    font-family: "Almarai";
    src: url("assets/fonts/almarai-arabic-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
  }

  @font-face {
    font-family: "Almarai";
    src: url("assets/fonts/almarai-latin-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("assets/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("assets/fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("assets/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "IBM Plex Sans";
    src: url("assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "IBM Plex Sans";
    src: url("assets/fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "IBM Plex Sans";
    src: url("assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --sunken: #f1f4f6;
    --fill: #000000;
    --ink: #344054;
    --support: #4b5563;
    --border: #d7d7d7;
    --border-soft: rgb(215 215 215 / 0.5);
    --tile: #f5f5f5;
    --placeholder: #bebebe;
    --success: #05c4af;
    --bezel: #1c1c1c;
    --titanium: #4b5563;
    --shadow: rgb(0 0 0 / 0.1);
    --scrim: rgb(0 0 0 / 0.65);
    --primary-08: rgb(0 0 0 / 0.08);

    --s-4: 4px;
    --s-8: 8px;
    --s-16: 16px;
    --s-24: 24px;
    --s-32: 32px;
    --s-48: 48px;
    --s-64: 64px;
    --s-96: 96px;

    --r-4: 4px;
    --r-8: 8px;
    --r-12: 12px;
    --r-16: 16px;
    --r-20: 20px;
    --r-24: 24px;
    --r-32: 32px;
    --r-full: 1000px;

    --display: "Almarai", "IBM Plex Sans Arabic", sans-serif;
    --text: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;

    --fs-ui: 0.9375rem;
    --fs-body: 1.0625rem;
    --fs-step: 1.25rem;
    --fs-title: clamp(1.75rem, 4vw, 2.25rem);
    --fs-display: clamp(2.6rem, 8vw, 4rem);

    --page-gutter: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --content: min(1120px, calc(100% - 2 * var(--page-gutter)));
    --nav-h: 72px;
    --dur: 260ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    --screen-w: 402px;
    --screen-h: 874px;
    --bezel-w: 11px;
    --frame-w: 424px;
    --frame-h: 896px;
    --screen-r: 55px;
  }

  html[lang="en"] {
    --display: "Almarai", "IBM Plex Sans", sans-serif;
    --text: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif;
    --fs-display: clamp(2.4rem, 7vw, 3.75rem);
    --fs-title: clamp(1.6rem, 3.5vw, 2.1rem);
  }
}

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

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

  html,
  body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--text);
    font-size: var(--fs-body);
    font-weight: 400;
    max-width: 100%;
  }

  :lang(ar) body {
    line-height: 1.75;
  }

  :lang(en) body {
    line-height: 1.5;
  }

  body.nav-open {
    overflow: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  a:hover {
    opacity: 0.72;
  }

  button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
  }

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

  h1,
  h2,
  h3 {
    font-family: var(--display);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0;
  }

  :lang(en) h1 {
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  :lang(ar) h1 {
    line-height: 1.2;
  }

  :lang(ar) h2 {
    line-height: 1.3;
  }

  :lang(en) h2 {
    line-height: 1.15;
  }

  .skip {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    padding: 8px 16px;
    background: var(--fill);
    color: var(--surface);
    border-radius: var(--r-8);
    z-index: 80;
    translate: 0 -120%;
  }

  .skip:focus {
    translate: 0 0;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wrap {
    width: var(--content);
    margin-inline: auto;
  }

  #top,
  #governorates,
  #how,
  #workers,
  #faq,
  #contact,
  #download,
  #main {
    scroll-margin-block-start: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 24px;
    border-radius: var(--r-full);
    font-size: 1rem;
    font-weight: 600;
    background: var(--fill);
    color: var(--surface);
    border: 1px solid var(--fill);
  }

  .btn:hover {
    opacity: 0.88;
  }

  .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .lede {
    margin: 0;
    color: var(--support);
    max-width: 38em;
  }

  :lang(en) .lede {
    max-width: 40em;
  }
}

@layer sections {
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    padding-block-start: env(safe-area-inset-top, 0px);
    background: transparent;
  }

  .site-header.is-scrolled {
    background: var(--surface);
    box-shadow: 0 8px 24px var(--shadow);
  }

  .nav {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    min-height: var(--nav-h);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    margin-inline-end: auto;
  }

  .brand:hover,
  .brand:hover .brand-mark {
    opacity: 0.72;
  }

  .brand-mark {
    display: block;
    height: 32px;
    width: auto;
    max-width: 118px;
  }

  .lang-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: var(--fs-ui);
    font-weight: 600;
    flex: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--r-8);
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--fill);
    margin-inline: auto;
    position: relative;
  }

  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
  }

  .nav-toggle span::before {
    inset-block-start: -5px;
  }

  .nav-toggle span::after {
    inset-block-start: 5px;
  }

  .nav.is-open .nav-toggle span {
    background: transparent;
  }

  .nav.is-open .nav-toggle span::before {
    inset-block-start: 0;
    rotate: 45deg;
  }

  .nav.is-open .nav-toggle span::after {
    inset-block-start: 0;
    rotate: -45deg;
  }

  .nav-drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(20rem, 88vw);
    background: var(--surface);
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + var(--s-16)) var(--page-gutter)
      calc(var(--s-32) + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: var(--s-24);
    translate: -110% 0;
    transition: translate var(--dur) var(--ease);
    z-index: 45;
  }

  html[dir="rtl"] .nav-drawer {
    translate: 110% 0;
  }

  .nav.is-open .nav-drawer {
    translate: 0 0;
    transition: translate var(--dur) var(--ease);
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: var(--scrim);
    z-index: 35;
  }

  .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 1.125rem;
    font-weight: 600;
    border-block-end: 1px solid var(--border-soft);
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    padding-block: var(--s-32) var(--s-64);
  }

  .hero-grid {
    display: grid;
    gap: var(--s-32);
  }

  .hero-copy h1 {
    margin: 0 0 var(--s-16);
    font-size: var(--fs-display);
    max-width: 12ch;
  }

  .hero-copy p {
    margin: 0 0 var(--s-32);
    color: var(--support);
    max-width: 38em;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: var(--s-8);
  }

  .hero-under {
    font-size: var(--fs-ui);
    color: var(--support);
  }

  .store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .store-row-center {
    justify-content: center;
  }

  .store-badge {
    display: inline-flex;
    min-height: 44px;
    height: 46px;
    width: 155px;
    overflow: hidden;
    border-radius: 8px;
  }

  .store-badge img {
    display: block;
    width: 155px;
    height: 46px;
    max-width: none;
  }

  .hero-stage {
    display: flex;
    gap: var(--s-16);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block-end: var(--s-8);
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
  }

  .hero-stage .device {
    flex: none;
    scroll-snap-align: start;
  }

  .gov,
  .how,
  .faq,
  .contact {
    padding-block: var(--s-64);
  }

  .gov h2,
  .how h2,
  .workers h2,
  .faq h2,
  .contact h2 {
    margin: 0 0 var(--s-16);
    font-size: var(--fs-title);
    max-width: 16ch;
  }

  .gov .lede {
    margin-block-end: var(--s-32);
  }

  .gov-bound {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: var(--s-24);
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .gov-name {
    font-family: var(--display);
    font-size: clamp(1rem, 3.6vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
  }

  .gov-name.is-you {
    background: var(--fill);
    color: var(--surface);
    padding: 4px 14px;
    border-radius: var(--r-full);
    font-size: 1rem;
  }

  .steps {
    display: grid;
    gap: var(--s-48);
    margin-block-start: var(--s-48);
  }

  .step {
    display: grid;
    gap: var(--s-24);
  }

  .step-stage {
    display: flex;
    gap: var(--s-16);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .step-stage .device {
    flex: none;
    scroll-snap-align: start;
    justify-self: start;
  }

  .step-stage:not(:has(.device + .device)) {
    overflow: visible;
    scroll-snap-type: none;
  }

  .step-n {
    font-size: var(--fs-ui);
    font-weight: 600;
    color: var(--support);
    font-variant-numeric: tabular-nums;
    margin-block-end: var(--s-8);
  }

  .step h3,
  .worker-steps h3 {
    margin: 0 0 var(--s-8);
    font-size: var(--fs-step);
    font-weight: 700;
  }

  .step p,
  .worker-steps p {
    margin: 0;
    color: var(--support);
    max-width: 32em;
  }

  .step-rule {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin-inline-start: 8px;
  }

  .workers {
    background: var(--sunken);
    padding-block: var(--s-64);
  }

  .worker-layout {
    display: grid;
    gap: var(--s-48);
  }

  .worker-steps {
    display: grid;
    gap: var(--s-32);
    margin-block-start: var(--s-48);
  }

  .worker-support {
    margin-block-start: var(--s-32);
    color: var(--support);
    max-width: 32em;
  }

  .worker-support strong {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: var(--fs-step);
    font-weight: 700;
    margin-block-end: var(--s-8);
  }

  .worker-cta-wrap {
    margin-block-start: var(--s-32);
  }

  .worker-stage {
    display: flex;
    justify-content: center;
  }

  .faq-list {
    margin-block-start: var(--s-32);
    max-width: 720px;
    border-block-start: 1px solid var(--border);
  }

  .faq-list details {
    border-block-end: 1px solid var(--border);
  }

  .faq-list summary {
    list-style: none;
    cursor: pointer;
    min-height: 52px;
    padding-block: 20px;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .faq-list summary::-webkit-details-marker {
    display: none;
  }

  .faq-list summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-inline-end: 1.5px solid var(--fill);
    border-block-end: 1.5px solid var(--fill);
    rotate: 45deg;
    flex: none;
  }

  .faq-list details[open] summary::after {
    rotate: 225deg;
  }

  .faq-list .a {
    padding-block-end: 20px;
    color: var(--support);
  }

  .contact {
    background: var(--sunken);
  }

  .contact .lede {
    margin-block-end: var(--s-32);
  }

  .contact-form {
    display: grid;
    gap: var(--s-16);
    max-width: 640px;
  }

  .contact-row {
    display: grid;
    gap: var(--s-16);
  }

  .contact-field {
    display: grid;
    gap: 6px;
  }

  .contact-field label {
    font-size: var(--fs-ui);
    font-weight: 600;
  }

  .field-optional {
    color: var(--support);
    font-weight: 400;
    margin-inline-start: 6px;
  }

  .contact-field input,
  .contact-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-12);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-body);
  }

  .contact-field textarea {
    min-height: 148px;
    resize: vertical;
  }

  .contact-field input:focus,
  .contact-field textarea:focus {
    outline: 2px solid var(--fill);
    outline-offset: 1px;
  }

  .contact-form .btn {
    justify-self: start;
    min-width: 8.5rem;
  }

  .contact-status {
    margin: 0;
    font-size: var(--fs-ui);
  }

  .contact-status.is-ok {
    color: #067a6e;
  }

  .contact-status.is-err {
    color: #b42318;
  }

  .hp {
    position: absolute;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .download {
    background: var(--fill);
    color: var(--surface);
    padding-block: var(--s-64);
    text-align: start;
  }

  .download-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: start;
    gap: var(--s-24);
  }

  .download h2 {
    margin: 0;
    color: var(--surface);
    font-size: var(--fs-title);
    text-align: center;
  }

  .site-footer {
    padding-block: var(--s-48);
    padding-block-end: max(var(--s-48), calc(var(--s-24) + env(safe-area-inset-bottom, 0px)));
    border-block-start: 1px solid var(--border-soft);
  }

  .foot-grid {
    display: grid;
    gap: var(--s-24);
  }

  .foot-grid h3 {
    margin: 0 0 12px;
    font-size: var(--fs-ui);
    font-weight: 600;
    color: var(--support);
    font-family: var(--text);
  }

  .foot-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: var(--fs-ui);
  }

  .site-footer .lang-toggle {
    margin-block-start: var(--s-32);
  }

  .note {
    margin: 0;
    color: var(--support);
    font-size: var(--fs-ui);
  }

  .sticky-bar {
    position: fixed;
    inset-inline: var(--page-gutter);
    inset-block-end: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    box-shadow: 0 8px 24px var(--shadow);
  }

  .sticky-bar[hidden] {
    display: none;
  }

  .sticky-bar .btn {
    flex: 1;
  }

  .sticky-dismiss {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--r-full);
    color: var(--ink);
  }

  .legal {
    padding-block: var(--s-32) var(--s-64);
    max-width: 42em;
  }

  .legal h1 {
    margin: 0 0 var(--s-32);
    font-size: var(--fs-title);
  }

  .legal-body {
    direction: rtl;
  }

  .legal-body h2 {
    margin: var(--s-32) 0 var(--s-12);
    font-size: var(--fs-step);
  }

  .legal-body p,
  .legal-body li {
    color: var(--ink);
  }

  .legal-body ol {
    margin: 0 0 var(--s-16);
    padding-inline-start: 1.4em;
    display: grid;
    gap: 8px;
  }

  .legal-updated {
    margin-block-start: var(--s-32);
    color: var(--support);
    font-size: var(--fs-ui);
  }

  .not-found {
    min-height: calc(100svh - var(--nav-h) - 180px);
    display: grid;
    align-content: center;
    justify-items: start;
    gap: var(--s-16);
    padding-block: var(--s-64);
  }

  .not-found-code {
    margin: 0;
    font-family: var(--display);
    font-size: var(--fs-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--placeholder);
    line-height: 1;
  }

  .not-found h1 {
    margin: 0;
    font-size: var(--fs-title);
  }

  .not-found .lede {
    margin-block-end: var(--s-8);
  }

  /* Device — iPhone 16 Pro. Frame is LTR; screen is RTL. */
  .device {
    container-type: inline-size;
    width: min(340px, 88vw);
    aspect-ratio: 424 / 896;
    position: relative;
    overflow: hidden;
    border-radius: calc(66px * var(--frame-scale, 0.5));
    box-shadow: 0 18px 28px var(--shadow);
  }

  .device-upright {
    width: min(356px, 92vw);
  }

  .device-slot {
    position: absolute;
    inset: 0;
  }

  .device-frame {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: var(--frame-w);
    height: var(--frame-h);
    padding: var(--bezel-w);
    border-radius: 66px;
    background: var(--bezel);
    outline: 2px solid var(--titanium);
    outline-offset: -2px;
    transform: scale(var(--frame-scale, 0.5));
    transform-origin: 0 0;
    backface-visibility: hidden;
    pointer-events: none;
    user-select: none;
  }

  .phone-side {
    position: absolute;
    width: 3px;
    background: var(--titanium);
    border-radius: 2px;
  }

  .phone-side.vol {
    inset-inline-start: -2px;
    inset-block-start: 140px;
    height: 86px;
  }

  .phone-side.action {
    inset-inline-start: -2px;
    inset-block-start: 238px;
    height: 28px;
  }

  .phone-side.power {
    inset-inline-end: -2px;
    inset-block-start: 180px;
    height: 72px;
  }

  .phone-screen {
    position: relative;
    width: var(--screen-w);
    height: var(--screen-h);
    border-radius: var(--screen-r);
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
  }

  .screen-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateZ(0);
  }

  .device-frame.is-shot .status,
  .device-frame.is-shot .home-bar {
    display: none;
  }

  .device-frame.is-shot .phone-screen {
    background: var(--fill);
  }

  .island {
    position: absolute;
    inset-block-start: 11px;
    inset-inline: 0;
    margin-inline: auto;
    width: 125px;
    height: 37px;
    border-radius: 18.5px;
    background: var(--bezel);
    z-index: 5;
  }

  .home-bar {
    position: absolute;
    inset-block-end: 8px;
    inset-inline: 0;
    margin-inline: auto;
    width: 140px;
    height: 5px;
    border-radius: 2.5px;
    background: rgb(52 64 84 / 0.3);
    z-index: 5;
  }

  .status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px 0;
    height: 54px;
    font-size: 15px;
    font-weight: 600;
  }

  .status-glyphs {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .app-body {
    height: calc(var(--screen-h) - 54px);
    padding: 8px 16px 28px;
    overflow: hidden;
  }

  .app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-end: 16px;
  }

  .app-logo {
    font-weight: 700;
    font-size: 18px;
  }

  .app-logo-img {
    display: block;
    height: 22px;
    width: auto;
    max-width: 92px;
  }

  .loc-pill {
    padding: 6px 10px;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
  }

  .search {
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-24);
    color: var(--placeholder);
    margin-block-end: 16px;
  }

  .row-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
  }

  .svc-row {
    display: flex;
    gap: 8px;
    margin-block-end: 16px;
  }

  .svc-chip {
    flex: 1;
    background: var(--surface);
    border-radius: var(--r-16);
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-soft);
  }

  .svc-chip .dot,
  .svc-tile .dot {
    width: 28px;
    height: 28px;
    border-radius: var(--r-8);
    background: var(--sunken);
    margin-block-end: 6px;
  }

  .svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .svc-tile {
    background: var(--surface);
    border-radius: var(--r-20);
    padding: 14px 10px;
    min-height: 88px;
    border: 1px solid var(--border-soft);
    font-weight: 600;
    font-size: 13px;
  }

  .svc-tile .dot {
    width: 32px;
    height: 32px;
    border-radius: var(--r-12);
  }

  .field {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-16);
    padding: 12px 14px;
    margin-block-end: 12px;
  }

  .field label {
    display: block;
    font-size: 12px;
    color: var(--support);
    margin-block-end: 4px;
  }

  .field .val {
    font-size: 14px;
    font-weight: 500;
  }

  .textarea {
    min-height: 92px;
    color: var(--placeholder);
    font-size: 14px;
  }

  .thumbs {
    display: flex;
    gap: 8px;
    margin-block-end: 12px;
  }

  .thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--r-12);
    background: var(--sunken);
    border: 1px solid var(--border);
  }

  .mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-radius: var(--r-24);
    padding: 16px;
    margin-block-end: 16px;
    border: 1px solid var(--border-soft);
  }

  .switch {
    width: 48px;
    height: 28px;
    border-radius: var(--r-full);
    background: var(--success);
    position: relative;
  }

  .switch i {
    position: absolute;
    inset-block-start: 3px;
    inset-inline-end: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface);
  }

  .job {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-24);
    padding: 14px;
    margin-block-end: 10px;
  }

  .job strong {
    display: block;
    font-size: 15px;
    margin-block-end: 4px;
  }

  .job p {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--support);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .job .meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--support);
  }

  .chat-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-block-end: 12px;
    border-block-end: 1px solid var(--border-soft);
    margin-block-end: 12px;
  }

  .bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .bubble {
    max-width: 78%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .bubble.in {
    align-self: flex-start;
    background: var(--sunken);
    border-start-start-radius: 4px;
    border-start-end-radius: 16px;
    border-end-start-radius: 16px;
    border-end-end-radius: 16px;
  }

  .bubble.out {
    align-self: flex-end;
    background: var(--fill);
    color: var(--surface);
    border-start-start-radius: 16px;
    border-start-end-radius: 4px;
    border-end-start-radius: 16px;
    border-end-end-radius: 16px;
  }

  .bubble .time {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-block-start: 4px;
  }

  @media (min-width: 390px) {
    .store-row:not(.store-row-center) {
      flex-wrap: nowrap;
    }
  }

  @media (min-width: 521px) {
    :root {
      --page-gutter: max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    }

    .brand-mark {
      height: 36px;
    }
  }

  @media (min-width: 768px) {
    .sticky-bar {
      display: none;
    }

    .gov,
    .how,
    .workers,
    .faq,
    .contact,
    .download {
      padding-block: var(--s-96);
    }

    .hero {
      padding-block: var(--s-48) var(--s-96);
    }

    .foot-grid {
      grid-template-columns: 1fr 1fr 1fr;
      gap: var(--s-32);
    }

    .contact-row {
      grid-template-columns: 1fr 1fr;
    }

    .device {
      width: min(360px, 52vw);
    }

    .device-upright {
      width: min(380px, 54vw);
    }
  }

  @media (min-width: 1024px) {
    .nav-toggle,
    .nav-scrim {
      display: none;
    }

    .nav-drawer {
      position: static;
      inset: auto;
      width: auto;
      padding: 0;
      background: transparent;
      flex-direction: row;
      align-items: center;
      gap: var(--s-16);
      translate: none;
    }

    html[dir="rtl"] .nav-drawer {
      translate: none;
    }

    .nav-links {
      flex-direction: row;
      align-items: center;
      gap: var(--s-24);
    }

    .nav-links a {
      min-height: 44px;
      font-size: var(--fs-ui);
      font-weight: 500;
      border: 0;
    }

    .nav-cta {
      width: auto;
    }

    .hero-grid {
      grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.25fr);
      align-items: center;
      gap: var(--s-32);
    }

    .hero-stage {
      display: grid;
      overflow: visible;
      margin-inline: 0;
      padding-inline: 0;
      min-height: 800px;
      align-items: center;
    }

    .hero-stage .device {
      grid-area: 1 / 1;
      width: min(380px, 36vw);
    }

    .device-a {
      z-index: 2;
      justify-self: start;
      rotate: -3deg;
    }

    .device-b {
      z-index: 1;
      justify-self: end;
      margin-block-start: 56px;
      rotate: 3deg;
    }

    .steps {
      gap: 0;
    }

    .step {
      grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.25fr);
      align-items: center;
      gap: var(--s-24);
    }

    .step:nth-child(even) .step-copy {
      order: 3;
    }

    .step:nth-child(even) .step-rule {
      order: 2;
    }

    .step:nth-child(even) .step-stage {
      order: 1;
    }

    .step-stage:has(.device + .device) {
      display: grid;
      overflow: visible;
      scroll-snap-type: none;
      min-height: 780px;
      align-items: center;
    }

    .step-stage:has(.device + .device) .device {
      grid-area: 1 / 1;
      width: min(360px, 34vw);
    }

    .step-stage:has(.device + .device) .device:first-child {
      z-index: 2;
      justify-self: start;
      rotate: -3deg;
    }

    .step-stage:has(.device + .device) .device:last-child {
      z-index: 1;
      justify-self: end;
      margin-block-start: 48px;
      rotate: 3deg;
    }

    .step-rule {
      width: 32px;
      height: 1px;
      margin: 0;
    }

    .worker-layout {
      grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
      align-items: center;
      gap: var(--s-64);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation: none !important;
      transition-duration: 0s !important;
    }
  }
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    animation: hero-in var(--dur) var(--ease) both;
  }

  .hero-stage .device-a {
    animation: hero-in var(--dur) 80ms var(--ease) both;
  }

  .hero-stage .device-b {
    animation: hero-in var(--dur) 140ms var(--ease) both;
  }

  @keyframes hero-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
