/* Shabeel static site stylesheet
 * Self-hosted OFL fonts + spec section 3 colour roles, type, and shapes.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sea: #1570BE;
  --sea-deep: #0F5FA6;
  --shell: #FFFAF2;
  --shell-deep: #F6ECDA;
  --coffee: #2A1C14;
  --coffee-soft: #6B5648;
  --saffron: #F2A52E;
  --acacia: #27804F;
  --clay: #B84A30;
  --night: #0B2545;

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius-card: 18px;
  --radius-sheet: 28px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --container-wide: 1040px;
  --container-prose: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--shell);
  color: var(--coffee);
  font-family: var(--font-body);
  font-style: normal;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--shell);
  color: var(--coffee);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  font-style: normal;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--coffee);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.125rem);
}

h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
}

p {
  margin: 0;
}

a {
  color: var(--sea-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coffee);
}

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background-color: var(--night);
  color: var(--shell);
  padding: 12px 18px;
  border-radius: var(--radius-card);
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus-visible {
  left: var(--space-2);
}

.wrap {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.prose-wrap {
  width: 100%;
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--shell-deep);
  background-color: var(--shell);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--coffee);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}

.brand:hover {
  color: var(--sea-deep);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--coffee-soft);
  text-decoration: none;
}

.site-nav a:hover {
  background-color: var(--shell-deep);
  color: var(--coffee);
}

.site-nav a[aria-current="page"] {
  color: var(--sea-deep);
  background-color: var(--shell-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Main */
main {
  flex: 1 0 auto;
  padding: var(--space-4) 0 var(--space-6);
}

.home-main {
  padding: 0;
}

.band {
  padding: var(--space-4) 0;
}

.band-hero {
  background-color: var(--sea);
  color: var(--shell);
  padding: 24px 0 var(--space-4);
}

.band-shell {
  background-color: var(--shell);
}

.band-saffron {
  background-color: var(--saffron);
  color: var(--coffee);
}

.band-saffron h2,
.band-saffron .section-sub {
  color: var(--coffee);
}

.band-night {
  background-color: var(--night);
  color: var(--shell);
}

.band-night h2,
.band-night .roadmap-sub {
  color: var(--shell);
}

/* Repeated geometric woven-band divider (CSS only) */
.woven-band {
  height: 18px;
  width: 100%;
  background-color: var(--night);
  background-image:
    linear-gradient(135deg, var(--saffron) 25%, transparent 25%),
    linear-gradient(225deg, var(--saffron) 25%, transparent 25%),
    linear-gradient(45deg, var(--sea) 25%, transparent 25%),
    linear-gradient(315deg, var(--sea) 25%, var(--shell) 25%);
  background-position: 9px 0, 9px 0, 0 0, 0 0;
  background-size: 18px 18px;
  background-repeat: repeat-x;
  border-top: 2px solid var(--night);
  border-bottom: 2px solid var(--night);
}

/* Buttons (flat with 2px dashed inner stitched line) */
.button-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--radius-card);
  background-color: var(--sea);
  color: var(--shell);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease;
}

.button-link::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  border: 2px dashed rgba(255, 250, 242, 0.42);
  pointer-events: none;
}

.button-link:hover {
  background-color: var(--sea-deep);
  color: var(--shell);
}

.button-link:active {
  transform: scale(0.97);
}

/* Home Hero */
.heading-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.heading-highlight::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -0.08em;
  height: 0.2em;
  border-radius: 6px;
  background-color: var(--saffron);
  z-index: -1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  align-items: center;
  overflow: visible;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--shell);
}

.nowrap {
  white-space: nowrap;
}

.band-hero h1 {
  color: var(--shell);
  font-size: clamp(2.3rem, 8.8vw, 3.85rem);
  line-height: 1.06;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--shell);
  max-width: 46ch;
}

.hero-actions {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* App Store coming-soon slot (non-interactive, not a real badge, not a link) */
.store-slot {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: var(--radius-card);
  background-color: var(--night);
  color: var(--shell);
  cursor: default;
  user-select: none;
}

.store-slot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  border: 2px dashed rgba(255, 250, 242, 0.36);
  pointer-events: none;
}

.store-slot-saffron {
  background-color: var(--saffron);
  color: var(--coffee);
}

.store-slot-saffron::after {
  border-color: rgba(42, 28, 20, 0.36);
}

.store-slot-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.store-slot-note {
  font-size: 0.875rem;
  color: var(--shell-deep);
  line-height: 1.3;
}

.store-slot-saffron .store-slot-note {
  color: var(--coffee);
  font-weight: 600;
}

/* Hero cub stage: night panel behind the cub so ears and tail break out cleanly */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 30% 6% 4% 6%;
  border-radius: var(--radius-sheet);
  background-color: var(--night);
  z-index: 0;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: calc(30% + 10px) calc(6% + 10px) calc(4% + 10px) calc(6% + 10px);
  border-radius: 20px;
  border: 2px dashed rgba(242, 165, 46, 0.55);
  pointer-events: none;
  z-index: 0;
}

@keyframes cub-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes tail-shimmer {
  0%,
  100% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(0.75) rotate(0deg);
  }

  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.3) rotate(45deg);
  }
}

.hero-cub-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: cub-bob 3.6s ease-in-out infinite;
}

.hero-cub-wrap picture {
  display: block;
  width: 100%;
}

.hero-cub {
  width: 100%;
  height: auto;
  display: block;
}

.tail-shimmer {
  position: absolute;
  left: 80.32%;
  top: 27.98%;
  width: 24px;
  height: 24px;
  pointer-events: none;
  background-color: var(--shell);
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
  animation: tail-shimmer 2.8s ease-in-out infinite;
}

/* How a lesson goes */
.lesson-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.step-card {
  position: relative;
  background-color: var(--shell-deep);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 2px dashed rgba(42, 28, 20, 0.14);
  pointer-events: none;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--sea);
  color: var(--shell);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.step-row picture {
  flex-shrink: 0;
  width: 104px;
  display: block;
}

.step-art {
  width: 100%;
  height: auto;
  display: block;
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-card p {
  color: var(--coffee-soft);
}

/* Greetings showcase */
.greetings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.greeting-card {
  position: relative;
  background-color: var(--shell);
  color: var(--coffee);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-1);
  transition: transform 180ms ease;
}

.greeting-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 2px dashed rgba(42, 28, 20, 0.14);
  pointer-events: none;
}

.greeting-somali {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  color: var(--coffee);
}

.greeting-english {
  font-size: 1rem;
  color: var(--coffee-soft);
}

/* How it works / feature cards */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.section-sub {
  color: var(--coffee-soft);
  max-width: 56ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.card {
  background-color: var(--shell-deep);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: transform 180ms ease;
}

.card p {
  color: var(--coffee-soft);
}

.card p + p {
  margin-top: 4px;
}

/* What is coming roadmap section (on band-night) */
.roadmap-intro {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.roadmap-intro picture {
  flex-shrink: 0;
  width: 112px;
  display: block;
}

.roadmap-cub {
  width: 100%;
  height: auto;
  display: block;
}

.roadmap-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.free-callout {
  display: inline-block;
  background-color: var(--saffron);
  color: var(--coffee);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 12px;
}

.roadmap-sub {
  max-width: 56ch;
}

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-item {
  background-color: var(--shell);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 180ms ease;
}

.roadmap-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background-color: var(--sea);
  color: var(--shell);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.roadmap-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.roadmap-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coffee);
}

.roadmap-item-desc {
  color: var(--coffee-soft);
}

/* Prose & Info Pages (Privacy & Support) */
.page-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.page-meta {
  font-size: 0.9375rem;
  color: var(--coffee-soft);
}

.pledge-banner {
  position: relative;
  background-color: var(--acacia);
  color: var(--shell);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.pledge-banner::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 250, 242, 0.4);
  pointer-events: none;
}

.pledge-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.pledge-text {
  color: var(--shell);
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.info-card {
  background-color: var(--shell-deep);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-card p {
  color: var(--coffee-soft);
}

.contact-card {
  margin-bottom: var(--space-4);
}

/* 404 page */
.not-found {
  position: relative;
  background-color: var(--shell-deep);
  border-radius: var(--radius-sheet);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.not-found::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 19px;
  border: 2px dashed rgba(42, 28, 20, 0.14);
  pointer-events: none;
}

.not-found-cub {
  width: 220px;
  height: auto;
  display: block;
}

.not-found-copy {
  color: var(--coffee-soft);
  max-width: 36ch;
  margin-bottom: var(--space-1);
}

/* Footer */
.site-footer {
  border-top: 2px dashed rgba(42, 28, 20, 0.2);
  background-color: var(--shell);
  padding: var(--space-3) 0 var(--space-4);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-signoff {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-cub {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: block;
}

.footer-bye {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--coffee);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-links a {
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--coffee-soft);
}

@media (hover: hover) {
  .step-card:hover,
  .greeting-card:hover,
  .card:hover,
  .roadmap-item:hover {
    transform: translateY(-3px) rotate(-0.8deg);
  }

  .step-card:nth-child(even):hover,
  .greeting-card:nth-child(even):hover,
  .card:nth-child(even):hover,
  .roadmap-item:nth-child(even):hover {
    transform: translateY(-3px) rotate(0.8deg);
  }
}

/* Sticky bottom bar on phones */
.mobile-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background-color: var(--night);
  border-top: 2px solid var(--saffron);
  padding: 10px var(--space-2);
}

.store-slot-bar {
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Desktop breakpoint */
@media (min-width: 820px) {
  .header-inner {
    padding: var(--space-2) 0;
  }

  .brand {
    font-size: 1.25rem;
    gap: 10px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .wrap {
    padding: 0 var(--space-3);
  }

  .prose-wrap {
    padding: 0 var(--space-3);
  }

  main {
    padding: var(--space-5) 0 var(--space-6);
  }

  .home-main {
    padding: 0;
  }

  .band {
    padding: var(--space-5) 0;
  }

  .band-hero {
    padding: var(--space-4) 0 var(--space-5);
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-4);
  }

  .hero-actions {
    display: flex;
  }

  .hero-stage {
    max-width: 400px;
    justify-self: end;
    margin: 0;
  }

  .lesson-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .step-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-row picture {
    width: 150px;
    margin: 4px auto;
  }

  .step-art {
    width: 100%;
    margin: 0;
  }

  .greetings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .roadmap-intro picture {
    width: 180px;
  }

  .mobile-sticky-bar {
    display: none;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-links {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cub-wrap,
  .tail-shimmer {
    animation: none;
  }

  .tail-shimmer {
    opacity: 0;
  }

  .button-link,
  .step-card,
  .greeting-card,
  .card,
  .roadmap-item {
    transition: none;
  }

  .button-link:active,
  .step-card:hover,
  .greeting-card:hover,
  .card:hover,
  .roadmap-item:hover {
    transform: none;
  }
}
