/* Kayan App website: brand colors match the app (emerald, gold, cream). */
:root {
  --emerald: #043c37;
  --emerald-light: #0e4e47;
  --gold: #eac365;
  --cream: #fbf7ee;
  --sand: #f5f0e6;
  --sand-dark: #e8e0cf;
  --ink: #142421;
  --muted: #5b6b67;
  --surface: #ffffff;
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #0b1715;
    --sand-dark: #1d2e2b;
    --ink: #eef3f1;
    --muted: #a7b6b2;
    --surface: #132320;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.7 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
h1, h2, h3 { font-family: Alexandria, 'IBM Plex Sans Arabic', sans-serif; line-height: 1.3; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-head { background: var(--emerald); color: var(--cream); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px Alexandria, sans-serif; color: var(--gold); }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-head nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; text-decoration: none; color: var(--cream); }
.site-head nav a[aria-current='page'] { background: var(--emerald-light); color: var(--gold); }

/* Hero */
.hero { background: var(--emerald); color: var(--cream); padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; gap: 32px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); color: var(--cream); }
.hero h1 span { color: var(--gold); }
.hero p { margin-top: 14px; font-size: 19px; color: #d7e4e0; max-width: 34ch; }
.hero-mark { justify-self: center; width: min(320px, 70vw); filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.3)); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Buttons */
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 0; border-radius: 16px; font: 600 16px 'IBM Plex Sans Arabic', sans-serif; text-decoration: none; cursor: pointer; }
.button.gold { background: var(--gold); color: var(--emerald); }
.button.dark { background: var(--emerald); color: var(--cream); }
.button.outline { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.button svg { width: 22px; height: 22px; flex: none; }
.button[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { margin-top: 10px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; margin-top: 14px; }
.card p { margin-top: 6px; color: var(--muted); }
.icon-tile { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--emerald); color: var(--gold); }
.icon-tile svg { width: 26px; height: 26px; }
.band { background: var(--emerald); color: var(--cream); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { color: var(--gold); font-size: 26px; }
.band p { margin-top: 6px; color: #d7e4e0; }

/* Bundles */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; }
.plan.featured { border-color: var(--gold); position: relative; }
.plan.featured::before { content: attr(data-badge); position: absolute; top: -14px; inset-inline-start: 22px; background: var(--gold); color: var(--emerald); font-weight: 700; font-size: 14px; padding: 2px 12px; border-radius: 99px; }
.plan h3 { font-size: 22px; }
.price { font: 700 30px Alexandria, sans-serif; color: var(--emerald); }
@media (prefers-color-scheme: dark) { .price { color: var(--gold); } }
.price small { font: 400 15px 'IBM Plex Sans Arabic', sans-serif; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EAC365' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan li.off { color: var(--muted); text-decoration: line-through; }
.plan li.off::before { background: var(--sand-dark); }
.skeleton { min-height: 360px; background: linear-gradient(90deg, var(--surface) 25%, var(--sand-dark) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

/* Steps (invite page) */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: 18px; padding: 16px; }
.steps li::before { content: counter(step); flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--emerald); color: var(--gold); font-weight: 700; }
.code-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.code-box input { flex: 1 1 260px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--sand-dark); border-radius: 14px; background: var(--surface); color: var(--ink); font: 15px ui-monospace, monospace; }
.notice { padding: 14px 16px; border-radius: 14px; background: #fbeccd; color: #6b4a00; }

/* Long text pages */
.doc { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.doc h1 { font-size: clamp(28px, 5vw, 38px); }
.doc h2 { font-size: 21px; margin-top: 30px; }
.doc p, .doc ul { margin-top: 10px; }
.doc ul { padding-inline-start: 22px; }
.doc .updated { color: var(--muted); margin-top: 6px; }
.doc [lang='en'] { direction: ltr; text-align: left; }
.lang-switch { display: flex; gap: 8px; margin-top: 18px; }

/* Footer */
.site-foot { background: var(--emerald); color: #c9d8d4; padding: 32px 0; margin-top: 32px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--cream); }
