/* Sanadak landing page. Brand field is cyan with the chevron pattern from the store art; ink is the logo black. */
:root {
    --cyan: #26c0d4;
    --cyan-deep: #0b7a88;
    --ink: #0a0f10;
    --ink-soft: #1c2b2e;
    --mist: #eef9fa;
    --paper: #ffffff;
    --line: #d3e7ea;
    --muted: #4b6064;
    --saffron: #f2b33d;
    --display: "Kufam", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --wrap: 1180px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 17 L18 4 L36 17' fill='none' stroke='%23ffffff' stroke-opacity='.2' stroke-width='2.2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--cyan-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }

.title { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.3; text-wrap: balance; }
.lead { max-width: 34em; color: var(--muted); font-size: 1.125rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-soft); }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 84px; transition: min-height .3s var(--ease); }
.brand img { width: auto; height: 60px; transition: height .3s var(--ease); }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 600; }
.nav a { position: relative; padding-block: 6px; text-decoration: none; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { min-height: 46px; padding-block: 8px; }
.menu-btn { display: none; width: 46px; height: 46px; margin-inline-start: auto; place-items: center; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 30px rgba(10, 15, 16, .08); backdrop-filter: blur(14px); }
.header.is-scrolled .header-row { min-height: 68px; }
.header.is-scrolled .brand img { height: 48px; }

/* Hero */
.hero { position: relative; padding-block: 128px 120px; background: var(--cyan) var(--chevron); background-size: 36px 18px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; }
.city-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 16px 7px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .95rem; }
.city-pill .icon { color: var(--cyan); }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 4.1vw, 3.9rem); line-height: 1.3; }
.hero-title .line { display: block; overflow: hidden; padding-block: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { max-width: 30em; margin-block: 22px 32px; font-size: 1.2rem; color: var(--ink-soft); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 20px 9px 22px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; transition: transform .2s var(--ease); }
a.badge:hover { transform: translateY(-2px); }
.badge-logo { width: 26px; height: 26px; }
.badge small { display: block; font-size: .78rem; line-height: 1.2; opacity: .8; }
.badge strong { display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.12rem; line-height: 1.2; }
.badge.is-soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.fan { position: relative; height: 580px; --px: 0; --py: 0; }
.fan-card { position: absolute; top: 50%; left: 50%; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(10, 15, 16, .28); transition: transform 1.1s var(--ease), opacity .8s; }
.fan-card img { width: 100%; }
.fan-main { width: 290px; z-index: 3; transform: translate(calc(-50% + var(--px) * 14px), calc(-50% + var(--py) * 10px)) rotate(-2deg); }
.fan-side { width: 240px; z-index: 1; }
.fan-a { transform: translate(calc(-50% - 175px + var(--px) * 6px), calc(-50% + 28px + var(--py) * 5px)) rotate(-10deg); }
.fan-b { transform: translate(calc(-50% + 175px + var(--px) * 6px), calc(-50% + 28px + var(--py) * 5px)) rotate(9deg); }

/* Ticker: the shopping list runs along the black band */
.ticker { position: relative; z-index: 2; width: 110%; margin-top: -58px; margin-inline-start: -5%; padding-block: 18px; background: var(--ink); color: var(--paper); transform: rotate(-2.4deg); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-list { display: flex; flex: none; }
.ticker-list li { display: flex; align-items: center; gap: 22px; padding-inline-end: 22px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; white-space: nowrap; }
.ticker-list .icon { color: var(--cyan); width: 1em; height: 1em; }
@keyframes ticker { to { transform: translateX(50%); } }

/* Promises */
.promises { padding-block: 88px 40px; }
.promise-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promise { display: grid; gap: 8px; align-content: start; padding-inline: 28px; border-inline-start: 1px solid var(--line); }
.promise:first-child { padding-inline-start: 0; border-inline-start: 0; }
.promise .icon { width: 30px; height: 30px; margin-bottom: 6px; color: var(--cyan-deep); }
.promise h2 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.45; }
.promise p { color: var(--muted); font-size: .98rem; }

/* Shared split layout */
.section { padding-block: 110px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.split-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.split-flip .split-copy { order: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .95rem; font-weight: 500; }
.single-shot { display: grid; place-items: center; }
.single-shot .shot { width: min(320px, 72%); border-radius: 26px; box-shadow: 0 30px 70px rgba(11, 122, 136, .22); transform: rotate(2.5deg); }

/* Groceries */
.free-note { color: var(--muted); }
.free-tag { display: inline-block; margin-inline-end: 6px; padding: 2px 10px; border-radius: 8px; background: var(--saffron); color: var(--ink); font-weight: 700; font-size: .9rem; }
.list-stage { position: relative; display: grid; justify-items: end; min-height: 560px; }
.list-shot { width: min(300px, 64%); border-radius: 26px; box-shadow: 0 30px 70px rgba(11, 122, 136, .22); transform: rotate(4deg); }
.list-card { position: absolute; inset-inline-start: 0; bottom: 18px; width: min(290px, 70%); padding: 22px 22px 18px; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 60px rgba(10, 15, 16, .16); transform: rotate(-3deg); }
.list-title { margin-bottom: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.list-items { display: grid; gap: 6px; }
.list-items li { display: flex; align-items: center; gap: 10px; }
.tick { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 7px; color: transparent; transition: background-color .3s, border-color .3s, color .3s; }
.tick .icon { width: 14px; height: 14px; }
.item { position: relative; }
.item::after { content: ""; position: absolute; inset-inline: -2px; top: 55%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.list-items li.done .tick, .list-stage:not(.is-pending) .tick { border-color: var(--cyan-deep); background: var(--cyan-deep); color: var(--paper); }
.list-stage:not(.is-pending) .item::after { transform: scaleX(1); }
.list-stamp { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px; border: 2px solid var(--cyan-deep); border-radius: 10px; color: var(--cyan-deep); font-weight: 700; transform: rotate(-4deg); }

/* Restaurants */
.restaurants { background: var(--mist); }

/* Prices */
.prices { background: var(--ink); color: var(--paper); }
.prices .lead { color: #b9cbce; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks .icon { color: var(--cyan); }
.receipt-stage { position: relative; display: grid; justify-items: center; }
.receipt { position: relative; width: min(360px, 100%); padding: 26px 26px 30px; background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; transform: rotate(-1.5deg); }
.receipt::after { content: ""; position: absolute; inset-inline: 0; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x; }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px dashed var(--line); font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.receipt-note { font-family: var(--body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 5px; }
.receipt-row small { color: var(--muted); }
.receipt-row.is-sub { color: var(--muted); }
.amount { white-space: nowrap; }
.receipt-sep { margin-block: 8px; border-top: 2px dashed var(--line); }
.receipt-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.shelf-tag { position: absolute; inset-inline-end: 0; top: -14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 10px; background: var(--cyan); color: var(--ink); font-weight: 700; font-size: .92rem; transform: rotate(4deg); }

/* How it works: the screenshot follows the step in view */
.how-title { margin-bottom: 56px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.steps { position: relative; display: grid; }
.steps::before { content: ""; position: absolute; inset-inline-start: 25px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; min-height: 62vh; align-content: center; opacity: .4; transition: opacity .4s; }
.step.is-active { opacity: 1; }
.step-num { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-family: var(--display); font-weight: 800; font-size: 1.3rem; transition: background-color .35s, box-shadow .35s; }
.step.is-active .step-num { background: var(--cyan); box-shadow: none; }
.step-body { display: grid; gap: 8px; align-content: start; }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.4; }
.step p { max-width: 28em; color: var(--muted); }
.step-shot { display: none; }
.how-media { position: relative; }
.how-frame { position: sticky; top: calc(50vh - 290px); height: 580px; display: grid; place-items: center; }
.how-shot { position: absolute; width: 320px; border-radius: 26px; box-shadow: 0 30px 70px rgba(11, 122, 136, .22); opacity: 0; transform: translateY(24px) scale(.96) rotate(2deg); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.how-shot.is-active { opacity: 1; transform: none; }

/* Assistant and extras */
.more { background: var(--mist); }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 8px; }
.extras li { display: flex; gap: 14px; align-items: flex-start; }
.extras .icon { width: 26px; height: 26px; margin-top: 4px; color: var(--cyan-deep); }
.extras h3 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.5; }
.extras p { color: var(--muted); font-size: .96rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid > div:first-child { display: grid; gap: 16px; position: sticky; top: 110px; }
.faq-list { border-top: 1.5px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 20px; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { color: var(--cyan-deep); transition: transform .3s var(--ease); }
.qa[open] summary .icon { transform: rotate(45deg); }
.qa p { max-width: 38em; padding-bottom: 22px; color: var(--muted); }
.qa a { color: var(--cyan-deep); font-weight: 600; }

/* Download band */
.download { position: relative; padding-block: 96px; background: var(--cyan) var(--chevron); background-size: 36px 18px; overflow: hidden; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.download-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.25; }
.download-lead { margin-block: 14px 28px; font-size: 1.15rem; color: var(--ink-soft); }
.download-icon { width: 220px; border-radius: 48px; box-shadow: 0 30px 60px rgba(10, 15, 16, .25); transform: rotate(-8deg); }

/* Footer */
.footer { padding-block: 64px 28px; background: var(--ink); color: #a9bcbf; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid nav, .footer-grid > div:not(.footer-about) { display: grid; gap: 10px; align-content: start; }
.footer-about { display: grid; gap: 16px; align-content: start; }
.footer-about img { height: 84px; width: auto; }
.footer-about p { max-width: 26em; }
.footer-title { margin-bottom: 4px; color: var(--paper); font-weight: 700; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--paper); }
.contact { display: inline-flex; align-items: center; gap: 10px; }
.contact .icon { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: #7f9497; }

/* Motion, only when scripts run and the visitor has not asked for less of it */
@media (prefers-reduced-motion: no-preference) {
    .js .load-in { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 120ms); }
    .js .hero-title .load-in { transform: translateY(105%); opacity: 1; }
    .js.is-loaded .load-in { opacity: 1; transform: none; }
    .js .fan-card { opacity: 0; }
    .js .fan-main { transform: translate(-50%, calc(-50% + 80px)) rotate(0); }
    .js .fan-side { transform: translate(-50%, calc(-50% + 60px)) rotate(0); }
    .js.is-loaded .fan-card { opacity: 1; }
    .js.is-loaded .fan-main { transform: translate(calc(-50% + var(--px) * 14px), calc(-50% + var(--py) * 10px)) rotate(-2deg); transition-delay: .25s; }
    .js.is-loaded .fan-a { transform: translate(calc(-50% - 175px + var(--px) * 6px), calc(-50% + 28px + var(--py) * 5px)) rotate(-10deg); transition-delay: .5s; }
    .js.is-loaded .fan-b { transform: translate(calc(-50% + 175px + var(--px) * 6px), calc(-50% + 28px + var(--py) * 5px)) rotate(9deg); transition-delay: .6s; }
    .fan.is-tracking .fan-card { transition: transform .5s var(--ease), opacity .8s; transition-delay: 0s !important; }

    .js .list-stage.is-pending .list-card { opacity: 0; transform: translateY(30px) rotate(-3deg); }
    .js .list-stage .list-card { transition: opacity .6s var(--ease), transform .7s var(--ease); }
    .js .list-stage.is-pending .list-stamp, .js .list-stage.is-checking .list-stamp { opacity: 0; transform: scale(1.4) rotate(-4deg); }
    .js .list-stamp { transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
    .js .list-stage.is-checking .tick { border-color: var(--line); background: transparent; color: transparent; }
    .js .list-stage.is-checking .item::after { transform: scaleX(0); }
    .js .list-stage.is-checking li.done .tick { border-color: var(--cyan-deep); background: var(--cyan-deep); color: var(--paper); }
    .js .list-stage.is-checking li.done .item::after { transform: scaleX(1); }

    .js .receipt-stage.is-pending .receipt-row, .js .receipt-stage.is-pending .receipt-total { opacity: 0; transform: translateY(-8px); }
    .js .receipt-stage .receipt-row { transition: opacity .4s, transform .4s var(--ease); transition-delay: calc(var(--i) * 140ms + 200ms); }
    .js .receipt-stage .receipt-total { transition: opacity .4s 1.1s, transform .4s 1.1s var(--ease); }
    .js .receipt-stage.is-pending .shelf-tag { opacity: 0; transform: scale(.6) rotate(12deg); }
    .js .shelf-tag { transition: opacity .3s .5s, transform .5s .5s cubic-bezier(.3, 1.6, .5, 1); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ticker-track { animation: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Tablet */
@media (max-width: 1020px) {
    .nav { gap: 18px; }
    .fan { height: 500px; }
    .fan-main { width: 250px; }
    .fan-side { width: 200px; }
    .promise-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .promise:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 860px) {
    .nav, .header-cta { display: none; }
    .menu-btn { display: grid; }
    .nav.is-open { position: absolute; inset: 100% 16px auto; display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--paper); box-shadow: 0 20px 50px rgba(10, 15, 16, .18); }
    .nav.is-open a { padding: 10px 12px; border-radius: 10px; }
    .nav.is-open a:hover { background: var(--mist); }
    .nav.is-open a::after { display: none; }
    .brand img { height: 50px; }
    .header-row { min-height: 70px; }

    .hero { padding-block: 104px 110px; }
    .hero-title { font-size: clamp(1.9rem, 8.6vw, 3.4rem); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .fan { height: 420px; }
    .fan-main { width: 200px; }
    .fan-side { width: 160px; }
    .fan-a, .js.is-loaded .fan-a { transform: translate(calc(-50% - 105px), calc(-50% + 22px)) rotate(-10deg); }
    .fan-b, .js.is-loaded .fan-b { transform: translate(calc(-50% + 105px), calc(-50% + 22px)) rotate(9deg); }
    .ticker-list li { font-size: 1.1rem; gap: 16px; padding-inline-end: 16px; }

    .section { padding-block: 80px; }
    .split, .how-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .split-flip .split-copy { order: 0; }
    .list-stage { min-height: 500px; }
    .faq-grid > div:first-child { position: static; }

    .how-media { display: none; }
    .step { min-height: 0; padding-block: 18px; opacity: 1; }
    .step-num { background: var(--cyan); box-shadow: none; }
    .steps::before { top: 40px; }
    .step-shot { display: block; width: min(260px, 80%); margin-top: 14px; border-radius: 22px; box-shadow: 0 20px 50px rgba(11, 122, 136, .2); }

    .download-row { flex-direction: column; align-items: flex-start; }
    .download-icon { width: 140px; border-radius: 32px; align-self: flex-end; }
}

@media (max-width: 560px) {
    body { font-size: 1rem; }
    .promise-row { grid-template-columns: minmax(0, 1fr); }
    .promise { padding-inline: 0; border-inline-start: 0; padding-top: 22px; border-top: 1px solid var(--line); }
    .promise:first-child { padding-top: 0; border-top: 0; }
    .extras { grid-template-columns: minmax(0, 1fr); }
    .fan { height: 360px; }
    .fan-main { width: 172px; }
    .fan-side { width: 138px; }
    .fan-a, .js.is-loaded .fan-a { transform: translate(calc(-50% - 88px), calc(-50% + 20px)) rotate(-10deg); }
    .fan-b, .js.is-loaded .fan-b { transform: translate(calc(-50% + 88px), calc(-50% + 20px)) rotate(9deg); }
    .list-card { width: 78%; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .badge { flex: 1 1 200px; }
    .download-icon { display: none; }
}
