/* The front door (index.html #landing) and the static pages (scripts/build-seo.mjs): the app's look, made for a first
   visit. Tokens, type and shapes are the design guide's (docs/DESIGN.md); the tokens are copied from css/styles.css,
   because the static pages don't load it: change both. Everything is scoped to .site. */
.site {
  --sand: #F8F4E3; --card: #ffffff; --line: #e4dcc3; --cedar: #1B4332; --terracotta: #B8462A; --terracotta-dark: #8c3520;
  --azure: #00669E; --slate: #1E293B; --muted: #5b6a7e; --amber: #e0a526; --ok: #1f8a4c; --ok-tint: #f1faf4;
  --panel: #f7f0df; --panel-line: #ebe0c4; --press: #cbbf9c; --track: #efe8cf; --radius: 14px; --bubble-me: #d9f2c6;
  --gold-text: #f3c98b; /* the يلا of the logo on cedar, as in the app's header */
  background: var(--sand); color: var(--slate); font: 400 17px/1.6 Inter, system-ui, sans-serif;
}
body.site { margin: 0; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site a { color: var(--azure); }
.site a:focus-visible, .site button:focus-visible, .site summary:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 4px; }
.site h1, .site h2, .site h3 { font-family: Cairo, Inter, sans-serif; color: var(--cedar); font-weight: 700; }
.site h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.12; margin: 6px 0 14px; letter-spacing: -.01em; }
.site h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); line-height: 1.25; margin: 0 0 14px; }
.site .ar { font-family: Cairo, 'Noto Sans Arabic', sans-serif; direction: rtl; }
.site svg { flex: none; }
.s-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.s-narrow { max-width: 712px; margin-left: auto; margin-right: auto; }
.s-center { text-align: center; }
.s-sub { color: var(--muted); margin: -6px 0 22px; }
.s-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.s-kicker svg { width: 16px; height: 16px; color: var(--amber); }

/* the header: the app's cedar bar */
.s-top { background: var(--cedar); position: sticky; top: 0; z-index: 20; }
.s-top .s-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.s-logo { color: #fff !important; text-decoration: none; font: 700 20px Cairo, Inter, sans-serif; white-space: nowrap; }
.s-logo span { color: var(--gold-text); margin-left: 8px; }
.s-top nav { display: flex; align-items: center; gap: 18px; }
.s-nav-link { color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .92; }
.s-nav-link:hover { opacity: 1; text-decoration: underline; }
.s-go { display: inline-flex; align-items: center; gap: 6px; background: var(--sand); color: var(--cedar) !important; text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 10px; box-shadow: 0 3px 0 #0f2a1f; white-space: nowrap; min-height: 40px; }
.s-go svg { width: 16px; height: 16px; }
.s-go:hover { background: #fff; }
.s-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0f2a1f; }
@media (max-width: 420px) { .s-logo { font-size: 17px; } .s-logo span { margin-left: 6px; } .s-top nav { gap: 12px; } .s-top .s-wrap { gap: 8px; } .s-go { padding: 8px 12px; } .s-go svg { display: none; } }

/* the opening: words, then the picture or the story card */
.s-hero { padding: 28px 0 36px; }
.s-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .s-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } .s-hero { padding: 48px 0 56px; } }
.s-lede { font-size: 1.12rem; color: var(--slate); margin: 0 0 4px; max-width: 34em; }
.s-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.s-meta svg { width: 18px; height: 18px; color: var(--azure); }
.s-pic { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
.s-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.s-crumbs a { color: var(--azure); text-decoration: none; }
.s-crumbs a:hover { text-decoration: underline; }
.s-signin { margin: 10px 0 0; font-size: 15px; }
.s-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* the main button: the app's terracotta primary, with its pressable drop */
.s-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 24px 0 0; text-align: center; }
.s-cta-wrap.left { align-items: flex-start; text-align: left; }
.s-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--terracotta); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 1.12rem; padding: 15px 28px; border-radius: 10px; box-shadow: 0 5px 0 var(--terracotta-dark); transition: transform .08s, box-shadow .08s; min-height: 52px; }
.s-cta svg { width: 20px; height: 20px; }
.s-cta:hover { filter: brightness(1.05); }
.s-cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--terracotta-dark); }
.s-cta-sub { color: var(--muted); font-size: 14px; }

/* the story card: a scene from the course, then the chat, as in a story stop */
.s-story { position: relative; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(27,67,50,.35); overflow: visible; }
.s-story-pic { width: 100%; height: auto; display: block; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 7; object-fit: cover; }
.s-story .s-kicker { padding: 14px 16px 0; }
.s-guide-cat svg, .s-try-cat svg, .s-band-cat svg { width: 100%; height: 100%; overflow: visible; }
.s-chat { list-style: none; margin: 0; padding: 12px 12px 16px; display: grid; gap: 10px; }
.s-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 94%; }
.s-msg.me { margin-left: auto; flex-direction: row-reverse; }
.s-av { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: block; }
.s-av svg { width: 100%; height: 100%; display: block; }
.s-av.cat { background: #fdf0c8; }
.s-bub { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; }
.s-msg.me .s-bub { background: var(--bubble-me); border-color: #bfe3a6; border-radius: 14px 14px 4px 14px; }
.s-bub .s-who { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--cedar); }
.s-bub .s-lb { font-weight: 600; font-size: 1.02rem; }
.s-bub .ar { font-size: 1.05rem; }
.s-bub .s-gl { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.s-play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--azure); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 #004a73; transition: transform .08s, box-shadow .08s; }
.s-play svg { width: 20px; height: 20px; }
.s-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #004a73; }
.s-play.playing { background: var(--cedar); box-shadow: 0 0 0 5px rgba(27,67,50,.18); }
.s-play-none { flex: none; width: 44px; }
.s-msg:has(.s-play.playing) .s-av { box-shadow: 0 0 0 3px var(--azure); }
.s-msg:has(.s-play.playing) .face .m-open { animation: s-talk .22s ease-in-out infinite alternate; }
.s-msg:has(.s-play.playing) .face .m-closed { opacity: 0; }
.site .face .m-open { opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes s-talk { from { opacity: 1; transform: scaleY(.25); } to { opacity: 1; transform: scaleY(1); } }
.site .cat .tail { transform-origin: 68px 74px; animation: s-tail 2.4s ease-in-out infinite; }
.site .cat .cat-eyes { transform-origin: 50px 40px; animation: s-blink 4.5s infinite; }
.site .cat .cat-x, .site .cat .cup { display: none; }
@keyframes s-tail { 50% { transform: rotate(-12deg); } }
@keyframes s-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .site .cat *, .site .face * { animation: none !important; } .s-cta, .s-play { transition: none; } }

/* sections */
.s-sec { padding: 28px 0; }
@media (min-width: 880px) { .s-sec { padding: 40px 0; } }
.s-more { margin: 16px 0 0; font-weight: 600; }
.s-more a, .s-founder figcaption a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.s-more svg, .s-founder figcaption svg { width: 18px; height: 18px; }

/* picture cards: the feature cards, the guides */
.s-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .s-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .s-cards { grid-template-columns: repeat(3, 1fr); } .s-cards.two { grid-template-columns: repeat(2, 1fr); } }
.s-cards li > a, .s-cards li > div { height: 100%; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 0 var(--line); transition: transform .15s, box-shadow .15s, border-color .15s; }
.s-cards li > a:hover { transform: translateY(-3px); border-color: var(--azure); box-shadow: 0 12px 24px -16px rgba(30,41,59,.4); }
.s-cards img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.s-card-body { display: grid; gap: 4px; padding: 14px 16px 18px; }
.s-card-body b { font: 700 1.15rem/1.3 Cairo, Inter, sans-serif; color: var(--cedar); }
.s-cards a .s-card-body b { color: var(--cedar); }
.s-card-body > span { color: var(--muted); font-size: 15px; }

/* the cast */
.s-cast { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 760px) { .s-cast { grid-template-columns: repeat(6, 1fr); } }
.s-cast li { display: grid; align-content: start; justify-items: center; text-align: center; gap: 2px; padding: 16px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.s-cast .s-av.big { width: 72px; height: 72px; margin-bottom: 6px; }
.s-cast b { font: 700 1rem/1.25 Cairo, Inter, sans-serif; color: var(--cedar); }
.s-cast li > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* who it's for, and the founder */
.s-two { display: grid; gap: 24px; align-items: center; }
@media (min-width: 880px) { .s-two { grid-template-columns: 1fr 1fr; gap: 48px; } }
.s-chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.s-chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 500; }
.s-ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.s-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.s-ticks svg { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.s-founder { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.s-founder img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.s-founder blockquote { margin: 0; padding: 20px 20px 4px; font-size: 1.08rem; line-height: 1.55; position: relative; }
.s-qmark { display: block; width: 34px; height: 34px; color: var(--terracotta); margin: 0 0 6px; }
.s-qmark svg { width: 100%; height: 100%; }
.s-founder blockquote p { margin: 0; }
.s-founder figcaption { padding: 6px 18px 16px; font-weight: 600; }

/* a guide: the phrases, the tip, the try-it card, the questions */
.s-phrases { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .s-phrases { grid-template-columns: repeat(2, 1fr); } }
.s-phrases li { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 0 var(--line); }
.s-phrases li > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.s-phrases .s-lb { font-weight: 700; font-size: 1.15rem; color: var(--slate); }
.s-phrases .ar { font-size: 1.2rem; color: var(--slate); }
.s-phrases .s-gl { flex-basis: 100%; color: var(--muted); font-size: 15px; }
.s-pair { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 880px) { .s-pair { grid-template-columns: 1fr 1fr; } }
.s-tip { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 18px 20px; }
.s-tip p:last-child { margin: 8px 0 0; }
.s-note { color: var(--muted); font-size: 15px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 14px 16px; }
.s-try { display: grid; grid-template-columns: 72px 1fr; gap: 4px 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.s-try-cat { width: 72px; height: 72px; grid-row: span 2; }
.s-try h2 { font-size: 1.25rem; margin: 0 0 4px; }
.s-try p { margin: 0; color: var(--muted); }
.s-try .s-cta-wrap { margin-top: 14px; }
@media (max-width: 480px) { .s-try { grid-template-columns: 56px 1fr; } .s-try-cat { width: 56px; height: 56px; grid-row: auto; } .s-try .s-cta-wrap { grid-column: 1 / -1; } }
.s-faq { display: grid; gap: 10px; }
.s-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.s-faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 600; position: relative; min-height: 44px; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border: solid var(--azure); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.s-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.s-faq details p { margin: 0; padding: 0 18px 16px; color: var(--slate); }

/* the dialect and Levantine pages: reading on one side, the story on the other */
.s-article { display: grid; gap: 28px; }
@media (min-width: 880px) { .s-article { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; } .s-side { position: sticky; top: 84px; } }
.s-prose h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.s-prose h2:first-child { margin-top: 0; }
.s-prose p { margin: 0 0 12px; }
.s-side .s-story { margin-top: 4px; }

/* the closing band: cedar, Za3tar, the button */
.s-band { background: var(--cedar); color: #fff; padding: 48px 0 40px; margin-top: 32px; text-align: center; }
.s-band .s-cta-sub { color: #d7e3dc; }
.s-band-cat { width: 84px; height: 84px; margin: 0 auto 6px; }

/* the footer */
.s-foot { background: var(--cedar); color: #d7e3dc; padding: 36px 0 44px; font-size: 15px; }
.s-foot .s-wrap { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .s-foot .s-wrap { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; } }
.s-foot-brand { grid-column: 1 / -1; }
@media (min-width: 880px) { .s-foot-brand { grid-column: auto; } }
.s-foot-brand p { margin: 8px 0 0; }
.s-foot nav { display: grid; gap: 6px; align-content: start; }
.s-foot nav b { color: var(--gold-text); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.s-foot a:not(.s-logo) { color: #fff; text-decoration: none; }
.s-foot a:not(.s-logo):hover { text-decoration: underline; }

/* phones: the feature cards side by side with their picture, so the page stays short */
@media (max-width: 639px) {
  .s-feats li > div { flex-direction: row; }
  .s-feats img { width: 38%; aspect-ratio: auto; height: auto; min-height: 100%; }
  .s-feats .s-card-body { padding: 12px 14px; }
  .s-feats .s-card-body > span { font-size: 14px; }
}

/* guides: the spellings people search for, the note on the numbers, literal meanings, the date */
.s-also { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.s-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: -4px 0 14px; }
.s-listbar .s-meta { margin: 0; }
.s-note-line { display: inline-flex; align-items: center; gap: 8px; margin: 0; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.s-note-line > svg { width: 16px; height: 16px; color: var(--amber); }
.s-note-line a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.s-note-line a svg { width: 14px; height: 14px; }
.s-stamp { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.s-sec h2 + .s-phrases { margin-top: 0; }
.s-phrases + h2 { margin-top: 32px; }
.s-phrases .s-lit { flex-basis: 100%; font-size: 15px; color: var(--slate); font-style: italic; }
.s-try-title { font: 700 1.25rem/1.3 Cairo, Inter, sans-serif; color: var(--cedar); margin: 0 0 4px; }
.s-band-title { font: 700 clamp(1.4rem, 3.2vw, 1.85rem)/1.25 Cairo, Inter, sans-serif; color: #fff; margin: 0 auto; max-width: 18em; }
@media (max-width: 879px) { .s-wide { display: none; } }
@media (min-width: 880px) { .s-short { display: none; } }
.s-foot-gap { margin-top: 14px; }

/* the Palestinian, Jordanian and Syrian pages: the same words (written once), then the small differences */
.s-same { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.s-same li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; }
.s-same .s-lb { font-weight: 700; font-size: 1.08rem; }
.s-same .s-gl { color: var(--muted); font-size: 14px; }
.s-table-wrap { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.s-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.s-table caption { text-align: left; padding: 14px 16px 6px; font: 700 1.1rem Cairo, Inter, sans-serif; color: var(--cedar); }
.s-table th, .s-table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--track); vertical-align: middle; }
.s-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0; }
.s-table tbody th { font-weight: 500; color: var(--muted); }
.s-cell { display: flex; align-items: center; gap: 10px; }
.s-cell .s-play { width: 36px; height: 36px; box-shadow: 0 3px 0 #004a73; }
.s-cell .s-play svg { width: 16px; height: 16px; }
.s-cell .s-lb { font-weight: 600; }

/* the ways to learn: one card per resource, ours marked */
.s-res { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.s-res li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.s-res li.us { border-color: var(--cedar); background: var(--ok-tint); }
.s-res h3 { font-size: 1.15rem; margin: 0 0 4px; }
.s-res h3 a { text-decoration: none; }
.s-res h3 a:hover { text-decoration: underline; }
.s-res p { margin: 0; }
.s-best { margin-top: 6px !important; color: var(--muted); font-size: 15px; }
.s-best b { color: var(--slate); font-weight: 600; }

/* the opening's buttons: start (terracotta) and, beside it, a plain white one for learners who have an account */
.s-cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; max-width: 540px; }
.s-cta-pair > a { flex: 1 1 auto; justify-content: center; } /* side by side they share the row; wrapped (a long label), each takes the full width */
.s-btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; background: var(--card); color: var(--cedar) !important; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 5px 0 var(--press, #cbbf9c); font-weight: 700; font-size: 1.02rem; text-decoration: none; transition: transform .08s, box-shadow .08s, border-color .15s; }
.s-btn2:hover { border-color: var(--azure); }
.s-btn2:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--press, #cbbf9c); }
.s-pair-sub { margin: 10px 0 0; }
@media (max-width: 480px) { .s-cta-pair { flex-direction: column; align-items: stretch; } .s-cta-pair .s-cta, .s-btn2 { justify-content: center; } }

/* the course in numbers: a quiet strip under the opening */
.s-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.s-stats ul { list-style: none; margin: 0; padding: 16px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.s-stats li { display: grid; gap: 0; }
.s-stats b { font: 700 clamp(1.4rem, 4vw, 2rem)/1.1 Cairo, Inter, sans-serif; color: var(--cedar); }
.s-stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .s-stats ul { grid-template-columns: repeat(3, 1fr); row-gap: 14px; } }

/* Za3tar, the guide: a speech bubble under the three ways you learn */
.s-guide { display: flex; align-items: flex-end; gap: 14px; max-width: 640px; margin: 28px auto 0; }
.s-guide-cat { flex: none; width: 84px; height: 84px; filter: drop-shadow(0 3px 4px rgba(30,41,59,.2)); }
.s-guide-bubble { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 12px 16px; box-shadow: 0 1px 0 var(--line); }
.s-guide-bubble b { color: var(--cedar); }

/* the trip around Lebanon: one stop per unit */
/* the trip as a route: stops 1-6 down the left, across the bottom, 7-12 up the right (phones: one line down) */
.s-trip { --stop: 30px; --route: rgba(27,67,50,.3); position: relative; list-style: none; margin: 0; padding: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); gap: 0 16px; }
.s-trip::before { content: ''; position: absolute; top: 22px; bottom: 6px; left: calc(var(--stop) / 2 - 1.5px); right: calc(50% - 8px - var(--stop) / 2 - 1.5px); border: 3px solid var(--route); border-top: 0; border-radius: 0 0 22px 22px; }
.s-trip li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.s-trip li span { padding-top: 5px; }
.s-trip b { position: relative; z-index: 1; flex: none; width: var(--stop); height: var(--stop); border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--route); color: #4f5d70; font-size: 13px; box-shadow: 0 0 0 4px var(--sand); }
.s-trip li:first-child b { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.s-trip li:last-child b { background: var(--cedar); border-color: var(--cedar); color: #fff; }
.s-trip li:nth-child(1) { grid-column: 1; grid-row: 1; }
.s-trip li:nth-child(2) { grid-column: 1; grid-row: 2; }
.s-trip li:nth-child(3) { grid-column: 1; grid-row: 3; }
.s-trip li:nth-child(4) { grid-column: 1; grid-row: 4; }
.s-trip li:nth-child(5) { grid-column: 1; grid-row: 5; }
.s-trip li:nth-child(6) { grid-column: 1; grid-row: 6; }
.s-trip li:nth-child(7) { grid-column: 2; grid-row: 6; }
.s-trip li:nth-child(8) { grid-column: 2; grid-row: 5; }
.s-trip li:nth-child(9) { grid-column: 2; grid-row: 4; }
.s-trip li:nth-child(10) { grid-column: 2; grid-row: 3; }
.s-trip li:nth-child(11) { grid-column: 2; grid-row: 2; }
.s-trip li:nth-child(12) { grid-column: 2; grid-row: 1; }
@media (max-width: 480px) {
  .s-trip { grid-template-columns: 1fr; grid-template-rows: none; padding-bottom: 0; }
  .s-trip li { grid-column: 1 !important; grid-row: auto !important; }
  .s-trip::before { right: auto; bottom: 22px; border-bottom: 0; border-right: 0; border-radius: 0; width: 0; }
}

/* the founder: where the photo was taken, as a small pill on it */
.s-photo { position: relative; }
.s-photo-cap { position: absolute; left: 12px; bottom: 12px; background: rgba(15,23,42,.55); color: #fff; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; }

/* a compact reference table on a guide (1 to 100): the figure, the Arabizi, the Arabic */
.s-numgrid { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.s-numgrid li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.s-numgrid b { grid-row: span 2; font: 700 1.2rem Cairo, Inter, sans-serif; color: var(--cedar); }
.s-numgrid .s-lb { font-weight: 600; }
.s-numgrid .ar { color: var(--muted); font-size: 15px; }
.s-phrases + h2, .s-numgrid + .s-also { margin-top: 32px; }
.s-numgrid + .s-also { margin-top: 14px; }

/* inside a lesson: real app screens in a phone outline (img/app, scripts/make-screens.mjs); phones swipe sideways */
.s-inside { list-style: none; margin: 0; padding: 4px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.s-inside li { display: grid; gap: 4px; align-content: start; text-align: center; }
.s-inside b { font: 700 1.1rem/1.3 Cairo, Inter, sans-serif; color: var(--cedar); margin-top: 10px; }
.s-inside li > span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.s-phone { margin: 0; border: 7px solid var(--slate); border-radius: 30px; overflow: hidden; background: var(--slate); box-shadow: 0 18px 36px -20px rgba(30,41,59,.55); }
.s-phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
@media (max-width: 899px) {
  .s-inside { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .s-inside::-webkit-scrollbar { display: none; }
  .s-inside li { flex: 0 0 62%; max-width: 260px; scroll-snap-align: center; }
}
