/* Bustan Manga website. Layout: one long page of full-width colour bands, each with a centred content column. */
:root {
  --terracotta: #D9622B;
  --terracotta-deep: #B94E1E;
  --mango: #FF9F1C;
  --cream: #FFF1D6;
  --cream-deep: #F7E2BC;
  --paper: #FFF8EC;
  --leaf: #2E9E5B;
  --cocoa: #3B1F0E;
  --cocoa-soft: #6B4A35;
  --teal: #0F4C4C;
  --teal-soft: #175858;

  --f-callig: 'Aref Ruqaa', 'Amiri', serif;
  --f-head: 'Baloo Bhaijaan 2', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;

  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--cocoa);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
}
html[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow { font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--terracotta); margin-bottom: 10px; display: block; }
html[lang="en"] .eyebrow { letter-spacing: .04em; }
.section-title { font-size: clamp(30px, 4.4vw, 44px); max-width: 22ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--cocoa-soft); max-width: 60ch; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 248, 236, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--cream-deep);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--terracotta); }
.lang {
  font-family: var(--f-head); font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1.5px solid var(--cocoa); border-radius: 999px; padding: 4px 14px;
}
.lang:hover { background: var(--cocoa); color: var(--cream); }
@media (max-width: 860px) { .nav .nav-link { display: none; } .brand img { height: 44px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; font-size: 17px;
  padding: 12px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cream); color: var(--cocoa); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: rgba(255, 241, 214, .14); }
.btn-dark { background: var(--cocoa); color: var(--cream); }
.btn-dark:hover { background: #2a1509; }

/* Quiet star-and-fruit pattern, tone on tone */
.pattern-terracotta {
  background-color: var(--terracotta);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 80 80'%3E%3Cg fill='%23DC6A35'%3E%3Cg transform='translate(20 20)'%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3'/%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3' transform='rotate(45)'/%3E%3C/g%3E%3Cg transform='translate(60 60)'%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3'/%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3' transform='rotate(45)'/%3E%3C/g%3E%3Cg transform='translate(60 20) scale(.42)'%3E%3Cpath d='M6-24C19-23 28-11 27 4 26 17 15 28 0 30-11 31-24 28-26 18-27 11-21 7-17 0-13-8-12-15-7-20-4-23 1-24 6-24Z'/%3E%3Cpath d='M7-22C12-30 21-32 30-28 26-20 17-17 7-22Z'/%3E%3C/g%3E%3Cg transform='translate(20 60) scale(.42)'%3E%3Cpath d='M6-24C19-23 28-11 27 4 26 17 15 28 0 30-11 31-24 28-26 18-27 11-21 7-17 0-13-8-12-15-7-20-4-23 1-24 6-24Z'/%3E%3Cpath d='M7-22C12-30 21-32 30-28 26-20 17-17 7-22Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pattern-teal {
  background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 80 80'%3E%3Cg fill='%23135353'%3E%3Cg transform='translate(20 20)'%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3'/%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3' transform='rotate(45)'/%3E%3C/g%3E%3Cg transform='translate(60 60)'%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3'/%3E%3Crect x='-6' y='-6' width='12' height='12' rx='3' transform='rotate(45)'/%3E%3C/g%3E%3Cg transform='translate(60 20) scale(.42)'%3E%3Cpath d='M6-24C19-23 28-11 27 4 26 17 15 28 0 30-11 31-24 28-26 18-27 11-21 7-17 0-13-8-12-15-7-20-4-23 1-24 6-24Z'/%3E%3Cpath d='M7-22C12-30 21-32 30-28 26-20 17-17 7-22Z'/%3E%3C/g%3E%3Cg transform='translate(20 60) scale(.42)'%3E%3Cpath d='M6-24C19-23 28-11 27 4 26 17 15 28 0 30-11 31-24 28-26 18-27 11-21 7-17 0-13-8-12-15-7-20-4-23 1-24 6-24Z'/%3E%3Cpath d='M7-22C12-30 21-32 30-28 26-20 17-17 7-22Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero */
.hero { color: var(--cream); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px; padding-block: clamp(64px, 10vw, 128px); }
.hero h1 { font-size: clamp(44px, 7.5vw, 84px); line-height: 1.1; }
.hero .intro { font-size: clamp(18px, 2.2vw, 22px); margin-top: 18px; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-mark { justify-self: center; width: min(340px, 80%); }
.hero-mark img { width: 100%; filter: drop-shadow(0 18px 30px rgba(59, 31, 14, .22)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: bob 6s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .intro { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero-mark { order: -1; width: 180px; }
}

/* Idea */
.story {
  font-family: var(--f-head); font-weight: 500;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.55; max-width: 34ch; margin-top: 18px;
}
.story .hl { color: var(--terracotta); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 48px; }
.card {
  background: #fff; border: 1px solid var(--cream-deep); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.card .word { font-family: var(--f-callig); font-weight: 700; font-size: 38px; line-height: 1.1; color: var(--terracotta); }
.card .latin { font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--cocoa-soft); }
.card p { color: var(--cocoa-soft); }

/* Principles */
.principles-band { background: var(--cream); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 36px; margin-top: 44px; }
.principle { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.principle svg { width: 44px; height: 44px; }
.principle h3 { font-size: 21px; }
.principle p { color: var(--cocoa-soft); margin-top: 4px; }

/* Hirfa */
.growing { color: var(--cream); }
.growing .eyebrow { color: var(--mango); }
.growing .lede { color: #CFE3DE; }
.app-card {
  margin-top: 40px; background: var(--paper); color: var(--cocoa); border-radius: 26px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: clamp(24px, 4vw, 40px);
}
.app-icon { width: 104px; height: 104px; border-radius: 26px; background: var(--teal); display: grid; place-items: center; }
.app-icon svg { width: 66px; height: 66px; }
.app-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.app-name { font-family: var(--f-callig); font-weight: 700; font-size: 46px; line-height: 1; color: var(--teal); }
.app-latin { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--teal); }
.badge { font-family: var(--f-head); font-weight: 700; font-size: 13px; background: var(--mango); color: var(--cocoa); border-radius: 999px; padding: 2px 12px; }
.app-desc { margin-top: 12px; font-size: 18px; max-width: 56ch; }
.highlights { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.highlights li { background: var(--cream); border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.highlights li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.more { margin-top: 22px; font-family: var(--f-head); font-weight: 500; color: #CFE3DE; }
@media (max-width: 620px) { .app-card { grid-template-columns: 1fr; } .app-icon { width: 84px; height: 84px; border-radius: 22px; } }

/* Founder */
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 36px; }
.avatar {
  width: clamp(140px, 18vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cream); border: 6px solid #fff; box-shadow: 0 0 0 2px var(--cream-deep);
  display: grid; place-items: center; font-family: var(--f-callig); font-weight: 700; font-size: clamp(48px, 6vw, 68px); color: var(--terracotta);
}
.founder h3 { font-size: 28px; }
.founder .role { color: var(--terracotta); font-family: var(--f-head); font-weight: 700; margin-top: 2px; }
.founder .bio { margin-top: 14px; max-width: 62ch; color: var(--cocoa-soft); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--f-head); font-weight: 700; color: var(--terracotta); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* Join */
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.join h2 { color: var(--cream); }
.join .lede { color: var(--cream); }
.signup { background: var(--paper); border-radius: 22px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; }
.signup label { font-family: var(--f-head); font-weight: 700; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 17px; padding: 12px 16px;
  border-radius: 999px; border: 2px solid var(--cream-deep); background: #fff; color: var(--cocoa);
}
.field input:focus { border-color: var(--terracotta); outline: none; }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.msg { min-height: 1.6em; font-size: 15px; }
.msg.error { color: #B3261E; }
.msg.ok { color: var(--leaf); font-weight: 600; }
.consent { font-size: 13px; color: var(--cocoa-soft); }
.partners { margin-top: 18px; color: var(--cream); }
.partners a { font-weight: 600; }
@media (max-width: 760px) { .join .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--cocoa); color: var(--cream); padding-block: 48px 36px; }
.site-footer .wrap { display: grid; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand .tag { font-family: var(--f-head); font-weight: 700; font-size: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--mango); }
.foot-bottom { border-top: 1px solid #5a3a26; padding-top: 18px; font-size: 13px; color: #D9C3A5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Legal pages */
.legal { padding-block: 56px 88px; }
.legal article { max-width: 72ch; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); }
.legal .updated { color: var(--cocoa-soft); margin-top: 8px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { padding-inline-start: 22px; }
.notice { background: var(--cream); border-radius: 14px; padding: 14px 18px; margin-top: 24px; font-size: 15px; }
img.avatar { object-fit: cover; object-position: center 20%; background: var(--mango); height: auto; }
