/* daftar.digital — the marketing site. Arabic only, right to left. */

@font-face { font-family: "Thmanyah Display"; src: url(fonts/thmanyahserifdisplay-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url(fonts/thmanyahsans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url(fonts/thmanyahsans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url(fonts/thmanyahsans-Bold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
    --ink: #0c3a38;        /* deep teal: the dark sections */
    --ink-deep: #072523;   /* the footer */
    --cream: #fff8ea;
    --paper: #fffdf7;
    --sand: #ffcfa8;       /* headlines on dark */
    --text: #1d1707;
    --muted: #6f6a5c;
    --teal: #00847c;
    --gold: #f6be00;
    --sun: #ffe94d;
    --orange: #ff8a3d;
    --coral: #ff7a5c;
    --peach: #ffb995;
    --pink: #ffb3cf;
    --lilac: #c7a6f5;
    --plum: #4b1b8f;
    --lime: #d4f25a;
    --mint: #a8ecd9;
    --display: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
    --body: "Thmanyah Sans", system-ui, Tahoma, sans-serif;
    --gutter: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.75; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The headline opens with an indented first line. */
.indent { text-indent: clamp(40px, 12vw, 150px); }

/* ---- top bar: a small cream card, centred, always there ---- */
.bar { position: fixed; top: 0; inset-inline: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.bar-card { pointer-events: auto; width: min(400px, calc(100% - 2 * var(--gutter))); background: #fbf1dc; display: flex; align-items: center; justify-content: space-between; padding: 6px 18px; border-radius: 0 0 14px 14px; box-shadow: 0 6px 24px rgba(12, 58, 56, .08); }
.bar-card a.name { font-family: var(--display); font-weight: 700; font-size: 26px; text-decoration: none; color: var(--ink); }
.menu-btn { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); border-radius: 10px; }
.menu-btn:hover { background: rgba(12, 58, 56, .06); }
.menu { position: fixed; top: 58px; inset-inline: 0; margin: 0 auto; width: min(400px, calc(100% - 2 * var(--gutter))); background: #fbf1dc; border-radius: 16px; padding: 8px; z-index: 39; box-shadow: 0 16px 40px rgba(12, 58, 56, .18); display: none; }
.menu.open { display: block; animation: drop .25s ease-out; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); }
.menu a:hover { background: rgba(12, 58, 56, .06); }
.menu a span { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---- the floating "try it" pill ---- */
.float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 30; display: flex; align-items: center; gap: 10px; background: var(--sun); color: var(--text); text-decoration: none; padding: 7px 7px 7px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.3; font-weight: 500; transition: transform .2s; }
.float:hover { transform: translateY(-2px); }
.float b { display: block; font-weight: 700; }
.float i { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-style: normal; }

/* ---- sections ---- */
.dark { background: var(--ink); color: #fff; }
.dark h1, .dark h2 { color: var(--sand); }
.paper { background: var(--paper); border-radius: 48px 48px 0 0; }
section { position: relative; }
.pad { padding: clamp(80px, 11vw, 140px) 0; }

/* the speech-bubble label above each section */
.tag { display: inline-block; position: relative; font-family: var(--body); font-weight: 700; font-size: 17px; padding: 8px 16px; border-radius: 6px; background: var(--orange); color: var(--text); margin-bottom: 28px; }
.tag::after { content: ""; position: absolute; bottom: -9px; inset-inline-start: 0; border-inline-start: 14px solid var(--orange); border-bottom: 10px solid transparent; }
.tag.pink { background: var(--pink); } .tag.pink::after { border-inline-start-color: var(--pink); }
.tag.lilac { background: var(--lilac); } .tag.lilac::after { border-inline-start-color: var(--lilac); }
.tag.lime { background: var(--lime); } .tag.lime::after { border-inline-start-color: var(--lime); }

.head { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 56px; }
.head .tag { justify-self: start; }
@media (min-width: 900px) { .head { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.head h2 { font-size: clamp(32px, 4.6vw, 56px); }
.head p { color: var(--muted); max-width: 30em; margin-top: 16px; }
.dark .head p { color: rgba(255, 255, 255, .78); }

/* ---- hero ---- */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding-top: 92px; padding-bottom: 48px; overflow: hidden; }
.hero .logo { width: 72px; height: 72px; }
.hero-grid { flex: 1; display: grid; gap: 40px; align-items: center; margin-top: 28px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.5fr 1fr; } }
.hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1.2; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: 28px; max-width: 32em; font-size: 19px; color: rgba(255, 255, 255, .82); }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.arch { position: relative; justify-self: center; width: min(360px, 82vw); aspect-ratio: 4 / 5; }
.arch .back { position: absolute; inset: 0; background: var(--pink); border-radius: 999px 999px 0 0; }
.arch .back::after { content: ""; position: absolute; inset-inline: 0; bottom: 22%; height: 16px; background: var(--ink); }
.arch > img:not(.snip) { position: absolute; inset: 9% 9% 0; width: 82%; height: 91%; object-fit: cover; border-radius: 999px 999px 0 0; }
.doodle { position: absolute; width: 70px; color: var(--sun); }
.doodle.hero-arrow { bottom: -8%; inset-inline-start: 4%; transform: rotate(18deg); }

.btn { display: inline-flex; align-items: stretch; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); }
.btn span { background: var(--sun); padding: 14px 26px; display: flex; align-items: center; }
.btn i { width: 58px; background: var(--lilac); display: grid; place-items: center; font-style: normal; transition: transform .3s; }
.btn:hover i { transform: rotate(-90deg); }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px dotted currentColor; padding-bottom: 2px; }

/* ---- the moving band of pills ---- */
.band { background: var(--ink); padding: 14px 0; overflow: hidden; }
.band.light { background: var(--cream); }
.track { display: flex; gap: 10px; width: max-content; animation: slide 46s linear infinite; }
.band.reverse .track { animation-direction: reverse; }
.band:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(50%); } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; font-family: var(--display); font-weight: 700; font-size: 21px; white-space: nowrap; border-radius: 999px; }
.pill:nth-child(even) { border-radius: 4px; }
.pill svg { width: 22px; height: 22px; flex: none; }
.p1 { background: var(--pink); color: var(--ink); } .p2 { background: var(--plum); color: var(--lilac); } .p3 { background: #164f4b; color: var(--sand); }
.p4 { background: var(--peach); color: var(--ink); } .p5 { background: var(--lime); color: var(--ink); } .p6 { background: var(--orange); color: var(--text); }

/* ---- numbers ---- */
.stats { display: grid; gap: 0; margin-top: 24px; }
.stat { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); padding: clamp(18px, 3vw, 28px) clamp(26px, 5vw, 60px); border-radius: 0 999px 999px 0; color: var(--ink); margin-inline-end: calc(-1 * var(--gutter)); transform: translateX(-60%); opacity: 0; transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
.stat.in { transform: none; opacity: 1; }
.stat b { font-family: var(--display); font-size: clamp(54px, 8vw, 104px); line-height: 1; min-width: 2.2em; }
.stat span { font-weight: 700; font-size: clamp(15px, 1.6vw, 19px); max-width: 22em; line-height: 1.5; }
.stat:nth-child(1) { background: var(--peach); margin-inline-start: 48%; }
.stat:nth-child(2) { background: var(--coral); margin-inline-start: 34%; transition-delay: .12s; }
.stat:nth-child(3) { background: var(--ink); color: var(--sand); margin-inline-start: 20%; transition-delay: .24s; }
@media (max-width: 700px) { .stat:nth-child(n) { margin-inline-start: 0; } }

/* ---- the big statement with a photo ---- */
.say { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .say { grid-template-columns: 300px 1fr; } }
.say h2 { font-size: clamp(30px, 4.2vw, 52px); color: var(--ink); }
.say small { display: block; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; }
.blob { width: 100%; height: auto; max-width: 300px; aspect-ratio: 1 / 1.2; object-fit: cover; border-radius: 160px 160px 140px 140px / 170px 170px 110px 110px; background: var(--pink); }

/* ---- the three offers ---- */
.cards { display: grid; gap: 18px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: transform .35s; }
.card:hover { transform: translateY(-8px) rotate(-.6deg); }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 34px; }
.card p { flex: 1; }
.card .link { align-self: flex-start; font-size: 14px; }
.c1 .body { background: var(--pink); } .c2 .body { background: var(--sun); } .c3 .body { background: var(--orange); }

/* ---- a day at school ---- */
.story { display: grid; gap: 32px; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 360px 1fr; align-items: end; } }
.story h2 { font-size: clamp(28px, 3.6vw, 46px); color: var(--ink); grid-column: 1 / -1; max-width: 22em; }
.story .wave { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 86% 30%; clip-path: path("M0 0H360V180C360 260 270 300 250 360C230 420 360 420 360 480V480H0Z"); }
.story .caps { color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; line-height: 1.7; }
.story .after { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); line-height: 1.4; }

/* ---- why Daftar: rows with dotted lines ---- */
.why { display: grid; gap: 40px; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1.3fr; } }
.why img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; position: sticky; top: 90px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; gap: 8px 32px; padding: 26px 0; border-bottom: 2px dotted #c9bfa6; }
@media (min-width: 700px) { .rows li { grid-template-columns: 1fr 1.1fr; } }
.rows h3 { display: flex; gap: 12px; align-items: center; font-size: 28px; color: var(--ink); }
.rows h3 svg { width: 26px; height: 26px; flex: none; }
.rows p { color: var(--muted); }

/* ---- one account for every role: a stack of cards ---- */
.stack { position: relative; min-height: 460px; }
.role { position: absolute; inset: 0; display: grid; gap: 24px; padding: clamp(22px, 4vw, 44px); color: var(--text); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
@media (min-width: 800px) { .role { grid-template-columns: 1.2fr 1fr; } }
.role small { font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.role h3 { font-size: clamp(26px, 3vw, 38px); margin-top: auto; line-height: 1.45; }
.role .text { display: flex; flex-direction: column; gap: 18px; min-height: 260px; }
.role[data-pos="0"] { z-index: 3; }
.role[data-pos="1"] { z-index: 2; transform: translate(-14px, -14px); }
.role[data-pos="2"] { z-index: 1; transform: translate(-28px, -28px); }
.role[data-pos="hidden"] { z-index: 0; opacity: 0; transform: translate(-28px, -28px); }
.role.out { transform: translateX(110%) rotate(6deg) !important; opacity: 0; }
.r1 { background: var(--sun); } .r2 { background: var(--pink); } .r3 { background: var(--lilac); } .r4 { background: var(--lime); } .r5 { background: var(--peach); }
.ok { background: #d8f5e9; color: #0b6b4f; } .no { background: #ffe0da; color: #a8321b; } .wait { background: #fff1c2; color: #7a5a00; }
/* Real screens of the app, in a phone or a browser frame */
.phone { margin: 0; background: #111; padding: 6px; border-radius: 30px; box-shadow: 0 22px 50px rgba(0, 0, 0, .28); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.browser { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 22px 50px rgba(0, 0, 0, .22); }
.browser > i { display: block; height: 22px; background: radial-gradient(circle, #ff8a3d 3.5px, transparent 4px) 12px 50% / 8px 8px no-repeat, radial-gradient(circle, #f6be00 3.5px, transparent 4px) 26px 50% / 8px 8px no-repeat, radial-gradient(circle, #c7a6f5 3.5px, transparent 4px) 40px 50% / 8px 8px no-repeat, #eeeae2; }
.browser img { display: block; width: 100%; height: auto; }
.arch .hero-phone { position: absolute; width: 42%; bottom: -6%; inset-inline-end: -12%; transform: rotate(4deg); }
.arch .snip { position: absolute; width: 74%; height: auto; inset: auto; top: 6%; inset-inline-start: -18%; border-radius: 18px; object-fit: contain; box-shadow: 0 18px 40px rgba(0, 0, 0, .26); transform: rotate(-3deg); }
.card .shot-area { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; overflow: hidden; background: rgba(255, 255, 255, .35); }
.card .shot-area .phone { width: 40%; transform: translateY(18%); }
.card .shot-area .browser { width: 100%; }
.role .role-shot { align-self: center; justify-self: center; }
.role .phone.role-shot { width: min(190px, 46vw); }
.role .browser.role-shot { width: 100%; }
.stack-nav { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.stack-nav button { width: 58px; height: 46px; border: 0; background: var(--peach); color: var(--ink); cursor: pointer; display: grid; place-items: center; border-radius: 4px; }
.stack-nav button:hover { background: var(--sand); }

/* ---- prices: two tickets ---- */
.prices { display: grid; gap: 20px; }
@media (min-width: 900px) { .prices { grid-template-columns: 1fr 1fr; } }
.ticket { background: #fff; display: flex; flex-direction: column; }
.ticket header { padding: 26px 28px; }
.ticket header h3 { font-size: 30px; }
.ticket .t1 { background: var(--lilac); } .ticket .t2 { background: var(--lime); }
.ticket .price { padding: 26px 28px 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ticket .price b { font-family: var(--display); font-size: clamp(52px, 6vw, 72px); line-height: 1; color: var(--ink); }
.ticket .price span { color: var(--muted); font-weight: 600; }
.ticket p { padding: 8px 28px 22px; color: var(--muted); flex: 1; }
.ticket ul { list-style: none; margin: 0 28px; padding: 18px 0 24px; border-top: 2px dotted #cfc8b6; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.ticket ul li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.ticket a.go { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; }
.ticket a.go svg { width: 34px; transition: transform .3s; }
.ticket a.go:hover svg { transform: translateX(-8px); }
.pay-note { text-align: center; margin-top: 26px; color: var(--muted); }

/* ---- call to action ---- */
.cta { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.2fr 1fr; } }
.cta h2 { font-size: clamp(38px, 5.6vw, 72px); }
.cta p { margin: 22px 0 34px; max-width: 28em; color: rgba(255, 255, 255, .8); font-size: 19px; }
.arches { display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
.arches img { width: 31%; aspect-ratio: 1 / 1.8; object-fit: cover; border-radius: 999px 999px 0 0; }
.arches img:nth-child(2) { aspect-ratio: 1 / 2.2; }

/* ---- footer ---- */
footer { background: var(--ink-deep); color: #fff; padding-top: 80px; overflow: hidden; }
.foot { display: grid; gap: 40px; }
@media (min-width: 800px) { .foot { grid-template-columns: 1fr auto; } }
.foot .word { font-family: var(--display); font-weight: 700; font-size: clamp(72px, 12vw, 150px); line-height: 1; color: var(--sand); }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 18px 48px; align-content: start; }
.foot nav a { font-family: var(--display); font-size: 19px; text-decoration: none; border-bottom: 2px dotted rgba(255, 255, 255, .6); justify-self: start; }
.small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .6); font-size: 14px; padding: 40px 0 28px; }
.small a { color: rgba(255, 255, 255, .8); }

/* ---- motion ---- */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .track { animation: none; }
    .rise, .stat { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 600px) {
    .arch .hero-phone { inset-inline-end: -4%; }
    .arch .snip { inset-inline-start: 2%; width: 66%; }
    .role .phone.role-shot { width: 150px; }
    .stack { min-height: 640px; }
    .role .text { min-height: 0; }
    .float { padding-inline-start: 16px; font-size: 13px; }
}
