:root {
  --bg: #f7f1e5;
  --paper: #fffaf0;
  --ink: #18130d;
  --muted: #716857;
  --green: #0b6b43;
  --green-2: #0f8a55;
  --gold: #c18a2d;
  --line: rgba(24, 19, 13, 0.16);
  --dark: #122018;
  --white: #fff;
  --shadow: 0 22px 58px rgba(24, 19, 13, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(11,107,67,0.12), transparent 30%),
    linear-gradient(180deg, var(--bg), #efe3ce);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }

.top-dock {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,250,240,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(24,19,13,0.08);
}

.brand,
.top-dock nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  color: var(--white);
  background: var(--green);
  font-family: "Reem Kufi", sans-serif;
}

.top-dock nav {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.dock-cta,
.main-cta,
.mini-cta,
.wide-cta,
.final-cta,
.soft-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 7px;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease;
}

.dock-cta,
.main-cta,
.wide-cta,
.final-cta {
  color: var(--white);
  background: var(--green);
}

.soft-cta {
  color: var(--green);
  background: rgba(11,107,67,0.08);
  border: 1px solid rgba(11,107,67,0.2);
}

.mini-cta {
  min-height: 40px;
  padding: 8px 16px;
  color: var(--ink);
  background: #ffd98a;
}

.dock-cta:hover,
.main-cta:hover,
.mini-cta:hover,
.wide-cta:hover,
.final-cta:hover,
.soft-cta:hover {
  transform: translateY(-2px);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px) 48px;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px,5vw,70px);
  align-items: end;
  min-height: 680px;
  padding: 84px 0 54px;
}

.tag,
.final-band span {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: "Reem Kufi", sans-serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.08;
}

.lead {
  max-width: 710px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px,2.1vw,23px);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.today-slip {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.slip-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.slip-head span { color: var(--muted); }

.slip-line {
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 7px;
  background: #f1e3c9;
  font-weight: 700;
}

.slip-line.strong {
  color: var(--white);
  background: var(--green);
}

.slip-line.muted {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.sticky-whatsapp {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -6px 42px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--dark);
  box-shadow: 0 12px 32px rgba(18,32,24,0.22);
}

.sticky-whatsapp p { margin: 0; }

.brief-board,
.how-section,
.safety,
.final-band {
  padding: 72px 0;
}

.board-title {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.board-title span {
  color: var(--gold);
  font-weight: 800;
}

h2 {
  margin-bottom: 14px;
  font-family: "Reem Kufi", sans-serif;
  font-size: clamp(33px,5vw,62px);
  line-height: 1.1;
}

.board {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.tile {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(24,19,13,0.08);
}

.tile.big { grid-row: span 2; }

.tile.dark {
  color: var(--white);
  background: var(--dark);
}

.tile small {
  color: var(--gold);
  font-weight: 800;
}

.tile h3 {
  margin: 14px 0 10px;
  font-size: 28px;
}

.tile p,
.how-copy p,
.safety p,
.final-band p,
footer p {
  color: var(--muted);
}

.tile.dark p { color: rgba(255,255,255,.72); }

.wide-cta {
  width: 100%;
  margin-top: 16px;
  min-height: 58px;
}

.how-section {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 38px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.message-stack {
  display: grid;
  gap: 12px;
}

.message-stack div {
  padding: 18px 20px;
  border-radius: 8px;
  background: #dff3e5;
  border: 1px solid rgba(11,107,67,.16);
  font-weight: 700;
}

.message-stack div:nth-child(2) {
  margin-right: 34px;
  background: var(--paper);
}

.message-stack div:nth-child(3) {
  margin-right: 68px;
  color: var(--white);
  background: var(--green);
}

.safety {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.safety ul {
  margin: 0;
  padding: 22px 42px 22px 22px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.safety li { margin-bottom: 10px; }

.final-band {
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-band h2 {
  margin-inline: auto;
  max-width: 720px;
}

.final-band p {
  max-width: 560px;
  margin-inline: auto;
}

.final-cta {
  min-height: 64px;
  margin-top: 16px;
  padding-inline: 34px;
  font-size: 20px;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px clamp(16px,4vw,40px) 44px;
  border-top: 1px solid var(--line);
}

footer p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 13px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(11,107,67,0.18);
  border-radius: 7px;
  background: rgba(11,107,67,0.06);
  color: var(--green);
}

.legal-link:hover {
  background: var(--green);
  color: var(--white);
}

.legal-page {
  background: var(--bg);
}

.legal-wrap {
  width: min(860px, calc(100% - 36px));
  margin: 42px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-wrap .brand {
  display: inline-flex;
  margin-bottom: 18px;
}

.legal-wrap h1 {
  font-family: "Reem Kufi", sans-serif;
  font-size: clamp(38px, 6vw, 64px);
}

.legal-wrap h2 {
  margin-top: 26px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 7px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 920px) {
  .top-dock,
  .opening,
  .how-section,
  .safety,
  footer {
    grid-template-columns: 1fr;
  }
  .top-dock nav {
    justify-content: start;
  }
  .opening {
    min-height: auto;
  }
  .today-slip {
    transform: none;
  }
}

@media (max-width: 640px) {
  .top-dock {
    position: static;
  }
  .top-dock nav {
    display: none;
  }
  .opening {
    padding-top: 52px;
  }
  h1 {
    font-size: 39px;
  }
  .action-row,
  .main-cta,
  .soft-cta,
  .mini-cta,
  .wide-cta,
  .final-cta,
  .dock-cta {
    width: 100%;
  }
  .sticky-whatsapp {
    top: 0;
    flex-direction: column;
    text-align: center;
  }
  .board-title {
    display: block;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .tile.big {
    grid-row: auto;
  }
  .message-stack div,
  .message-stack div:nth-child(2),
  .message-stack div:nth-child(3) {
    margin-right: 0;
  }
}

@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(218, 166, 58, 0), 0 10px 24px rgba(5, 79, 53, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(218, 166, 58, 0.16), 0 18px 38px rgba(5, 79, 53, 0.22); }
}

.dock-cta,
.main-cta,
.mini-cta,
.wide-cta,
.final-cta,
.soft-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  animation: ctaBreath 3.6s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.dock-cta::before,
.main-cta::before,
.mini-cta::before,
.wide-cta::before,
.final-cta::before,
.soft-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.14) 34%, rgba(255,255,255,0.72) 50%, rgba(255,255,255,0.14) 66%, transparent 100%);
  transform: translateX(125%);
  transition: transform 0.7s ease;
  z-index: 0;
}

.dock-cta:hover,
.main-cta:hover,
.mini-cta:hover,
.wide-cta:hover,
.final-cta:hover,
.soft-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 38px rgba(5, 79, 53, 0.22), 0 0 0 6px rgba(218, 166, 58, 0.14);
  filter: saturate(1.08);
}

.dock-cta:hover::before,
.main-cta:hover::before,
.mini-cta:hover::before,
.wide-cta:hover::before,
.final-cta:hover::before,
.soft-cta:hover::before {
  transform: translateX(-125%);
}

.dock-cta:active,
.main-cta:active,
.mini-cta:active,
.wide-cta:active,
.final-cta:active,
.soft-cta:active {
  transform: translateY(-1px) scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .dock-cta,
  .main-cta,
  .mini-cta,
  .wide-cta,
  .final-cta,
  .soft-cta {
    animation: none;
  }
  .dock-cta,
  .dock-cta::before,
  .main-cta,
  .main-cta::before,
  .mini-cta,
  .mini-cta::before,
  .wide-cta,
  .wide-cta::before,
  .final-cta,
  .final-cta::before,
  .soft-cta,
  .soft-cta::before {
    transition: none;
  }
}
