/* Cattongue website — the app's cartoon style: cream paper, ink outlines, candy buttons, Fredoka */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("fonts/Fredoka_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/Fredoka_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 500 700; font-display: swap; src: url("fonts/NotoSansArabic-CondensedMedium.ttf") format("truetype"); }

:root {
  --ink: #343330;
  --ink-soft: #6b6157;
  --cream: #fff8ec;
  --paper: #ffffff;
  --mint: #dff5e3;
  --mint-strong: #c8f2d0;
  --sky: #d9eefb;
  --sky-strong: #bfe2fa;
  --lilac: #ecdff8;
  --lilac-strong: #c9b8ff;
  --peach: #ffe7cf;
  --orange: #ffb37a;
  --coral: #ff6b4a;
  --yellow: #ffc94d;
  --teal: #00e5d4;
  --radius: 28px;
  --line: 3px;
  --shadow: 6px 6px 0 var(--ink);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Fredoka", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("paws.svg");
  background-size: 420px;
}
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Fredoka", system-ui, sans-serif; font-size: 19px; line-height: 1.8; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.eyebrow { display: inline-block; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border: var(--line) solid var(--ink); border-radius: 12px; z-index: 100; }
.skip:focus { inset-inline-start: 12px; }

/* candy button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 13px 26px; border-radius: 999px;
  color: var(--ink); background: var(--mint-strong);
  border: var(--line) solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.coral { background: var(--coral); color: #fff; }
.btn.white { background: var(--paper); }
.btn.small { padding: 8px 18px; font-size: 0.95rem; box-shadow: 0 4px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.store { text-align: start; line-height: 1.15; padding: 10px 22px; }
.store small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.85; }
.store span { font-size: 1.15rem; }

/* sticker (like the app's "New!" badge) */
.sticker {
  display: inline-block; font-weight: 600; font-size: 0.95rem;
  padding: 4px 16px; border-radius: 999px;
  background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-5deg);
}
.sticker.lilac { background: var(--lilac-strong); }
.sticker.mint { background: var(--mint-strong); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 236, 0.92); backdrop-filter: blur(10px); border-bottom: 2px solid rgba(52, 51, 48, 0.08); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.45rem; text-decoration: none; }
.logo img { width: 42px; height: 42px; border-radius: 12px; border: 2.5px solid var(--ink); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 1rem; }
.nav a:hover { background: var(--peach); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--paper); font-weight: 600; font-size: 0.95rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 150px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.lang li a { display: block; padding: 7px 12px; border-radius: 10px; text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--peach); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-inline-start: auto; } .top .btn { display: none; } }

/* hero */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(48px, 8vw, 96px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); padding-inline: 4px; }
.hero .lead { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { padding: 5px 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); font-size: 0.95rem; }
.stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.stage .blob { position: absolute; inset: 6% 4% 4% 10%; background: var(--mint-strong); border: var(--line) solid var(--ink); border-radius: 44% 56% 52% 48% / 46% 44% 56% 54%; box-shadow: var(--shadow); transform: rotate(-4deg); }
.phone { position: relative; width: min(250px, 58vw); aspect-ratio: 600 / 1300; border: 4px solid var(--ink); border-radius: 38px; overflow: hidden; background: var(--cream); box-shadow: 8px 8px 0 var(--ink); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage .phone { transform: rotate(5deg); margin-inline-start: 22%; }
.stage .cat { position: absolute; inset-inline-start: -2%; bottom: 0; width: min(300px, 52%); filter: drop-shadow(6px 6px 0 rgba(52, 51, 48, 0.18)); animation: bob 4s ease-in-out infinite; }
.stage .sticker { position: absolute; top: 7%; inset-inline-end: 2%; font-size: 1.05rem; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .stage .cat, .float { animation: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .stage { min-height: 440px; order: 2; } }

/* sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.head { max-width: 760px; margin-bottom: 44px; }
.head .lead { margin-top: 16px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.band { border-block: var(--line) solid var(--ink); }
.band.mint { background: var(--mint); }
.band.sky { background: var(--sky); }
.band.lilac { background: var(--lilac); }
.band.peach { background: var(--peach); }

.card { background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.world { text-decoration: none; display: block; transition: transform 0.15s ease; }
.world:nth-child(1) { background: var(--mint); transform: rotate(-1.5deg); }
.world:nth-child(2) { background: var(--sky); transform: rotate(1deg) translateY(14px); }
.world:nth-child(3) { background: var(--lilac); transform: rotate(-0.8deg); }
.world:hover { transform: rotate(0) translateY(-6px); }
.world img { width: 96px; height: 96px; object-fit: contain; display: block; margin-bottom: 14px; }
.world p { color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 860px) { .worlds { grid-template-columns: 1fr; } .world { transform: none !important; } }

/* the lesson road */
.road { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.road::before { content: ""; position: absolute; inset-inline: 6%; top: 54px; border-top: 6px dashed rgba(52, 51, 48, 0.28); }
.road li { position: relative; text-align: center; }
.road .node { width: 108px; height: 108px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: 0 6px 0 var(--ink); }
.road li:nth-child(odd) .node { background: var(--peach); }
.road li:nth-child(3n) .node { background: var(--sky-strong); }
.road .node img { width: 70px; height: 70px; object-fit: contain; }
.road strong { display: block; font-weight: 600; }
.road span { display: block; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 860px) { .road { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } .road::before { display: none; } }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 40px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-strong) url("check.svg") center / 15px no-repeat; border: 2.5px solid var(--ink); }
.ticks b { font-weight: 600; }
.phones { position: relative; display: flex; justify-content: center; gap: 22px; }
.phones .phone:nth-child(1) { transform: rotate(-5deg) translateY(18px); }
.phones .phone:nth-child(2) { transform: rotate(4deg); }
.phones .phone { width: min(215px, 42vw); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* quran covers */
.covers { display: grid; gap: 14px; }
.covers img { display: block; width: 100%; border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.covers img:nth-child(odd) { transform: rotate(-1.2deg); }
.covers img:nth-child(even) { transform: rotate(1deg) translateX(3%); }
.note { margin-top: 22px; font-size: 0.92rem; color: var(--ink-soft); }

/* parents grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid3 .card { padding: 24px; box-shadow: 5px 5px 0 var(--ink); }
.grid3 .card p { color: var(--ink-soft); margin-top: 8px; font-size: 1rem; }
.dot { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--ink); margin-bottom: 14px; display: grid; place-items: center; font-size: 1.3rem; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* final call */
.final .card { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--yellow); padding: clamp(28px, 5vw, 54px); }
.final img { width: min(260px, 60vw); }
.float { animation: bob 5s ease-in-out infinite; }
@media (max-width: 860px) { .final .card { grid-template-columns: 1fr; text-align: center; } .final .cta-row { justify-content: center; } .final img { margin-inline: auto; } }

/* footer */
footer { padding: 44px 0 56px; border-top: var(--line) solid var(--ink); background: var(--paper); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer small { display: block; color: var(--ink-soft); margin-top: 10px; max-width: 34em; }

/* text pages (privacy, terms, support) */
.doc { padding: clamp(36px, 6vw, 72px) 0; }
.doc .card { max-width: 860px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.doc p, .doc li { color: #4a443d; }
.doc p { margin: 12px 0; }
.doc ul { padding-inline-start: 22px; display: grid; gap: 8px; }
.doc .updated { color: var(--ink-soft); font-size: 0.95rem; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.contact { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.contact img { width: 170px; }
@media (max-width: 640px) { .contact { grid-template-columns: 1fr; text-align: center; } .contact img { margin-inline: auto; } }
