:root {
    --yellow: #fed700;
    --ink: #00403e;
    --green: #006e40;
    --paper: #e8e8cc;
    --ticket: #fff6c8;
    --display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
    --body: "IBM Plex Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body.koshtna-landing {
    font-family: var(--body);
    background: var(--ink);
    color: var(--paper);
}

.stage {
    min-height: 100dvh;
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    isolation: isolate;
}

.stage::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("/images/koshtna-pattern.png");
    background-size: 220px auto;
    opacity: 0.07;
    pointer-events: none;
}

.top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-link {
    display: flex;
    line-height: 0;
}

.seal {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
}

.eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
}

.wordmark {
    margin: 0;
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.legal-name {
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--paper);
}

.legal-entity {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 34rem;
}

h1 {
    margin: 0 0 0.75rem;
    font-family: var(--display);
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--yellow);
}

.lede {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 34rem;
}

.bilingual {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.72;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.chips li {
    border: 1px solid rgba(254, 215, 0, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    color: var(--yellow);
}

.ticket {
    margin-top: 1.5rem;
    background: var(--ticket);
    color: var(--ink);
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem 1.3rem;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.ticket::before,
.ticket::after {
    content: "";
    position: absolute;
    top: 2.55rem;
    width: 1.15rem;
    height: 1.15rem;
    background: var(--ink);
    border-radius: 50%;
}

[dir="rtl"] .ticket::before { left: -0.58rem; }
[dir="rtl"] .ticket::after { right: -0.58rem; }
[dir="ltr"] .ticket::before { left: -0.58rem; }
[dir="ltr"] .ticket::after { right: -0.58rem; }

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
    border-bottom: 2px dashed rgba(0, 64, 62, 0.28);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ticket h2 {
    margin: 0 0 0.9rem;
    font-family: var(--display);
    font-size: 1.45rem;
}

.stores {
    display: grid;
    gap: 0.6rem;
}

.store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    background: var(--green);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
}

.store svg {
    width: 1.15rem;
    height: 1.15rem;
}

.store.is-soon {
    background: transparent;
    color: var(--ink);
    border: 1.5px dashed rgba(0, 64, 62, 0.35);
    font-weight: 500;
}

.soon-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    opacity: 0.75;
}

footer {
    margin-top: auto;
    padding-top: 0.5rem;
}

footer .legal-name {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    font-style: normal;
}

footer .legal-entity,
footer .trade-name,
footer .org-address,
footer .org-phone {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.6;
    font-style: normal;
    opacity: 0.88;
}

footer .org-contact {
    display: block;
    margin: 0 0 0.85rem;
    font-style: normal;
}

footer .org-phone a {
    color: var(--paper);
    font-size: 0.82rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

footer a {
    color: rgba(232, 232, 204, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
}

footer a:hover,
.store:focus-visible,
footer a:focus-visible,
.brand-link:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

.is-legal .stage {
    max-width: 44rem;
}

.legal-back {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
}

.legal-back a {
    color: var(--yellow);
}

.is-legal h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
}

.legal-doc {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(254, 215, 0, 0.22);
}

.legal-doc h2 {
    margin: 1.35rem 0 0.45rem;
    font-family: var(--display);
    font-size: 1.15rem;
    color: var(--yellow);
}

.legal-doc p,
.legal-doc li {
    font-size: 0.98rem;
    line-height: 1.75;
}

.legal-doc ul {
    margin: 0.35rem 0 0.8rem;
    padding-inline-start: 1.2rem;
}

.legal-doc a {
    color: var(--yellow);
}

.legal-doc.is-en {
    margin-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
