/* Abdelhay Albahjy — personal brand site
   Shared by Arabic (RTL) and English (LTR) pages: layout uses logical
   properties (inline-start/end) so it flips with dir="rtl" automatically. */

:root {
  --navy-900: #071245;
  --navy-800: #0b1a5c;
  --navy-700: #12287a;
  --blue-600: #1e4bb8;
  --blue-500: #2a5fd6;
  --blue-100: #e6edff;
  --blue-50: #f3f6ff;
  --amber: #ffb547;
  --amber-600: #f59e0b;
  --ink: #0d1433;
  --muted: #5a6385;
  --line: #dfe5f5;
  --white: #fff;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 50px -20px rgba(11, 26, 92, .35);
  --wrap: 1200px;
  --font: "Cairo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 900; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 26px;
  padding-inline: 26px 10px;
  border-radius: 999px; font-weight: 800; font-size: 17px;
  border: 2px solid transparent; transition: transform .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(13, 20, 51, .12);
}
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-amber:hover { background: #ffc66e; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost .arrow { background: rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy .arrow { background: rgba(255,255,255,.14); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline .arrow { background: var(--blue-100); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; color: var(--blue-600);
  letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--amber); }
.section { padding-block: 110px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 5vw, 58px); margin-top: 10px; }
.section-lead { color: var(--muted); max-width: 620px; margin-top: 14px; font-size: 18px; }

/* ---------- deal bar ---------- */
.dealbar {
  background: var(--navy-900); color: var(--white);
  font-size: 15px; font-weight: 600;
}
.dealbar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 9px; flex-wrap: wrap; text-align: center; }
.dealbar .tag { background: var(--amber); color: var(--navy-900); font-weight: 900; padding: 2px 12px; border-radius: 999px; font-size: 13px; }
.dealbar code { background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 6px; font-family: inherit; font-weight: 800; color: var(--amber); }
.dealbar a.cta { background: var(--white); color: var(--navy-900); padding: 3px 16px; border-radius: 999px; font-weight: 800; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 26, 92, .92); backdrop-filter: blur(10px);
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 21px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--amber); }
.brand small { display: block; font-size: 12px; font-weight: 600; opacity: .7; letter-spacing: .06em; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 700; font-size: 16px; }
.nav a { opacity: .85; } .nav a:hover { opacity: 1; color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4);
}
.lang:hover { border-color: var(--amber); color: var(--amber); }
.yt-btn { display: inline-flex; align-items: center; gap: 8px; background: #ff0033; color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1000px 520px at 70% 10%, #2453c4 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  padding-block: 80px 0;
}
.hero::before, .hero::after { /* banner-style dot field */
  content: ""; position: absolute; width: 420px; height: 420px; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.22) 2.5px, transparent 3px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}
.hero::before { inset-block-start: -80px; inset-inline-end: -80px; }
.hero::after { inset-block-end: 40px; inset-inline-start: -140px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 90px; align-self: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.12; letter-spacing: -.01em; }
[lang="en"] .hero h1 { text-transform: uppercase; line-height: 1.02; }
.rotator { display: block; color: var(--amber); min-height: 1.2em; font-size: .74em; white-space: nowrap; margin-top: .1em; }
.rotator span { display: inline-block; animation: wordIn .5s ease both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
.hero-lead { margin-top: 26px; font-size: 20px; max-width: 560px; color: rgba(255,255,255,.85); }
.hero-lead strong { color: var(--white); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pill { font-size: 13px; font-weight: 800; letter-spacing: .04em; padding: 4px 14px; border-radius: 999px; background: var(--blue-600); color: #fff; }
.pill.hot { background: var(--amber); color: var(--navy-900); }

.hero-visual { position: relative; align-self: end; }
.portrait-card {
  position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, #e9efff, #fff);
  padding-top: 40px; overflow: hidden;
}
.portrait-card img { position: relative; width: 92%; margin-inline: auto; }
.float-card {
  position: absolute; z-index: 2; background: var(--white); color: var(--ink);
  border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700;
}
.float-card .big { font-size: 22px; font-weight: 900; color: var(--navy-800); line-height: 1; }
.float-subs { inset-block-start: 70px; inset-inline-start: -30px; }
.float-subs .yt-dot { width: 40px; height: 40px; border-radius: 12px; background: #ff0033; display: grid; place-items: center; color: #fff; }
.float-new { inset-block-end: 40px; inset-inline-end: -20px; max-width: 290px; }
.float-new img { width: 84px; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.float-new small { display: block; color: var(--blue-600); font-weight: 800; font-size: 12px; }
.float-new b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }

/* ---------- marquee ---------- */
.marquee { background: var(--white); border-block-end: 1px solid var(--line); overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: scroll-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-item { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy-800); white-space: nowrap; font-size: 18px; }
.m-item .num { font-size: 26px; font-weight: 900; color: var(--blue-600); }
.m-item .star { color: var(--amber); font-size: 22px; }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes scroll-rtl { to { transform: translateX(50%); } }

/* ---------- story (01/02/03) ---------- */
.story { background: var(--blue-50); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.story-steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.step .n { font-size: 30px; font-weight: 900; color: var(--amber-600); line-height: 1; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--muted); }
.story-side { position: sticky; top: 110px; }
.story-side .section-lead { margin-bottom: 30px; }
.story-photo { margin-top: 34px; display: flex; align-items: center; gap: 16px; }
.story-photo img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--amber); }
.story-photo b { display: block; font-size: 18px; }
.story-photo span { color: var(--muted); font-size: 15px; }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.video {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.video:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video .thumb { position: relative; aspect-ratio: 16/9; background: var(--navy-800); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video .dur { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; background: rgba(7,18,69,.85); color: #fff; font-size: 13px; font-weight: 800; padding: 1px 10px; border-radius: 8px; direction: ltr; }
.video .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video .cat { font-size: 13px; font-weight: 800; color: var(--blue-600); }
.video h3 { font-size: 18px; line-height: 1.5; font-weight: 800; }
.video .watch { margin-top: auto; font-weight: 800; color: var(--navy-800); font-size: 15px; display: inline-flex; gap: 6px; padding-top: 6px; }
.video.featured { grid-row: span 2; }
.video.featured h3 { font-size: 24px; }
.video.featured .body p { color: var(--muted); }
.yt-strip {
  margin-top: 30px; border-radius: var(--radius); background: var(--navy-800); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 32px; flex-wrap: wrap;
}
.yt-strip h3 { font-size: 24px; }
.yt-strip p { opacity: .8; }

/* ---------- projects ---------- */
.projects { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.projects .eyebrow { color: var(--amber); }
.projects .section-lead { color: rgba(255,255,255,.75); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  border-radius: var(--radius); padding: 28px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 12px; min-height: 230px;
}
.project:hover { background: rgba(255,255,255,.08); }
.project .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(255,181,71,.15); }
.project h3 { font-size: 21px; }
.project p { color: rgba(255,255,255,.72); font-size: 15.5px; }
.project .stack { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.project .stack span { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.1); direction: ltr; }
.project.cta-card { background: var(--amber); color: var(--navy-900); border: 0; justify-content: center; }
.project.cta-card p { color: rgba(13,20,51,.75); }

/* ---------- tools / picks ---------- */
.picks-tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.picks-tabs button {
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  padding: 8px 20px; border-radius: 999px;
}
.picks-tabs button[aria-selected="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.picks-panel[hidden] { display: none; }
.pick-feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  border-radius: var(--radius-lg); background: var(--blue-50); padding: 44px; border: 1px solid var(--line);
}
.pick-feature .badge { display: inline-block; background: var(--amber); color: var(--navy-900); font-weight: 900; font-size: 13px; padding: 2px 12px; border-radius: 999px; }
.pick-feature h3 { font-size: clamp(28px, 3.4vw, 40px); margin-block: 12px; }
.pick-feature ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.pick-feature li { display: flex; gap: 10px; }
.pick-feature li::before { content: "✓"; font-weight: 900; color: var(--blue-600); }
.pick-feature li.con::before { content: "!"; color: var(--amber-600); width: 1ch; text-align: center; }
.price-box { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); text-align: center; }
.price-box .from { color: var(--muted); font-weight: 700; }
.price-box .price { font-size: 64px; font-weight: 900; color: var(--navy-800); line-height: 1.1; }
.price-box .price small { font-size: 20px; }
.price-box .code { margin: 14px 0 20px; border: 2px dashed var(--amber-600); border-radius: 14px; padding: 8px; font-weight: 800; }
.price-box .code b { color: var(--blue-600); letter-spacing: .06em; direction: ltr; display: inline-block; }
.price-box .btn { width: 100%; justify-content: space-between; }
.price-box .note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pick-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.pick-card .ico { font-size: 30px; }
.pick-card h3 { font-size: 22px; }
.pick-card p { color: var(--muted); }

/* ---------- courses waitlist ---------- */
.courses-box {
  border-radius: var(--radius-lg); overflow: hidden; color: #fff; position: relative;
  background:
    radial-gradient(700px 360px at 85% 0%, #2a5fd6 0%, transparent 65%),
    var(--navy-800);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 60px; align-items: center;
}
.courses-box .eyebrow { color: var(--amber); }
.courses-box .section-lead { color: rgba(255,255,255,.8); }
.course-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.course-list li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.course-list li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 14px; }
.signup { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; }
.signup h3 { font-size: 24px; }
.signup p { color: var(--muted); margin: 6px 0 18px; font-size: 15px; }
.signup label { font-weight: 800; font-size: 14px; display: block; margin-bottom: 6px; }
.signup input {
  width: 100%; font: inherit; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line);
  margin-bottom: 14px; background: var(--blue-50);
}
.signup input:focus { outline: 3px solid rgba(42,95,214,.25); border-color: var(--blue-500); }
.signup .btn { width: 100%; justify-content: space-between; cursor: pointer; font-family: inherit; }
.signup .fine { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 18px; padding: 4px 24px; background: var(--white); }
.faq-list details[open] { background: var(--blue-50); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; gap: 16px; align-items: center; padding-block: 16px; font-weight: 800; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .q { color: var(--amber-600); font-weight: 900; }
.faq-list summary::after { content: "+"; margin-inline-start: auto; font-size: 26px; color: var(--blue-600); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 18px; }

/* ---------- final CTA + footer ---------- */
.final {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; text-align: center;
  padding-block: 110px; position: relative; overflow: hidden;
}
.final h2 { font-size: clamp(42px, 7vw, 92px); line-height: 1.08; }
[lang="en"] .final h2 { text-transform: uppercase; }
.final h2 em { font-style: normal; color: var(--amber); }
.final p { max-width: 560px; margin: 22px auto 34px; color: rgba(255,255,255,.8); font-size: 19px; }
.final .hero-ctas { justify-content: center; }
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 30px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.socials a:hover { background: var(--amber); color: var(--navy-900); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.disclosure { font-size: 13px; opacity: .65; max-width: 640px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .rotator span { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; place-items: center; margin-inline-start: auto; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; inset-inline: 0;
    background: var(--navy-800); padding: 20px 24px 28px; gap: 16px;
  }
  .hero .wrap, .story-grid, .pick-feature, .courses-box, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 20px; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .story-side { position: static; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video.featured { grid-column: span 2; grid-row: auto; }
  .project-grid, .pick-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .site-header .wrap { height: 66px; gap: 10px; }
  .nav.open { top: 66px; }
  .brand { font-size: 15px; white-space: nowrap; gap: 8px; min-width: 0; }
  .header-actions { gap: 8px; }
  .header-actions .yt-btn { display: none; }
  .brand img { width: 38px; height: 38px; }
  .dealbar .wrap { gap: 8px; font-size: 13.5px; padding-block: 7px; }
  .dealbar .db-text { display: none; }
  .rotator { white-space: normal; min-height: 2.4em; }
  .brand small, .yt-btn span { display: none; }
  .yt-btn { padding: 8px 12px; }
  .hero { padding-top: 48px; }
  .hero-lead { font-size: 17px; }
  .float-subs { inset-inline-start: 0; inset-block-start: 20px; }
  .float-new { inset-inline-end: 0; inset-block-end: 16px; max-width: 240px; }
  .float-new img { width: 64px; }
  .video-grid, .project-grid, .pick-cards { grid-template-columns: 1fr; }
  .video.featured { grid-column: auto; }
  .pick-feature, .courses-box { padding: 26px; }
  .yt-strip { padding: 22px; }
  .btn { font-size: 16px; }
}

/* ===== v2: inner pages, footer, forms ===== */
.nav a[aria-current="page"] { color: var(--amber); opacity: 1; }
.page-hero {
  color: #fff; padding-block: 70px 80px; position: relative; overflow: hidden;
  background: radial-gradient(900px 420px at 80% 0%, #2453c4 0%, transparent 60%), linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); margin-top: 10px; max-width: 900px; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero .hero-lead { margin-top: 18px; }
.crumbs { font-size: 14px; font-weight: 700; opacity: .7; margin-bottom: 20px; }
.crumbs span { margin-inline: 6px; }
.not-found { padding-block: 120px; text-align: center; }
.not-found h1, .not-found .hero-lead { margin-inline: auto; }
.not-found .hero-ctas { justify-content: center; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.about-photo { position: sticky; top: 110px; }
.about-photo .portrait-card { border-radius: var(--radius-lg); }
.timeline { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: var(--amber); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.timeline small { color: var(--blue-600); font-weight: 800; }
.timeline h3 { font-size: 24px; margin: 2px 0 8px; }
.timeline p { color: var(--muted); }

.video-filter button small { opacity: .6; font-size: 13px; margin-inline-start: 4px; }
.video-filter button[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.video-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video.is-hidden { display: none; }

.project-links { display: flex; gap: 14px; font-weight: 800; font-size: 14px; }
.project-links a { color: var(--amber); }

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose p { color: var(--muted); }

.signup .hp { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.signup { position: relative; }
.signup .fine a { text-decoration: underline; }
.form-msg { margin-top: 12px; font-weight: 800; min-height: 1px; }
.form-msg .ok { color: #127a3d; }
.form-msg .error { color: #b42318; }
.interest { border: 0; padding: 0; margin: 0 0 16px; }
.interest legend { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.interest label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 10px; margin-bottom: 6px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.interest input { accent-color: var(--blue-600); }

.footer-grid { display: grid !important; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: start !important; padding-block: 56px 30px !important; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 18px !important; font-size: 14px; display: block !important; }

@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
  .video-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .video-list { grid-template-columns: 1fr; }
  .page-hero { padding-block: 48px 56px; }
}
.price-box .plan-note { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ===== v3: coupon copy, contact, project images ===== */
.code-copy { font: inherit; font-weight: 900; cursor: pointer; border: 1.5px dashed currentColor; background: rgba(255,181,71,.14); color: var(--amber); padding: 1px 10px; border-radius: 8px; letter-spacing: .04em; direction: ltr; }
.price-box .code-copy { color: var(--blue-600); background: var(--blue-50); }
.code-copy:hover { background: rgba(255,181,71,.28); }
.code-copy.done { border-style: solid; color: #127a3d; background: #e7f7ee; }
.signup textarea { width: 100%; font: inherit; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 14px; background: var(--blue-50); resize: vertical; }
.signup textarea:focus { outline: 3px solid rgba(42,95,214,.25); border-color: var(--blue-500); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.contact-form { border: 1px solid var(--line); box-shadow: var(--shadow); }
.project.has-img { padding-top: 0; overflow: hidden; }
.project-img { margin: 0 -28px 6px; width: calc(100% + 56px); max-width: none; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 1080px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Tutorial pages ===== */
.tut-hero { padding-block: 50px 60px; }
.tut-hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.3; }
.tut-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; font-weight: 700; color: rgba(255,255,255,.85); font-size: 15px; }
.author-chip { display: inline-flex; align-items: center; gap: 8px; }
.author-chip img { border-radius: 50%; border: 2px solid var(--amber); }
.author-chip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tut { padding-top: 50px; }
.tut-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--navy-900); box-shadow: var(--shadow); }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; }
.yt-lite .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 60px; border-radius: 16px; background: #ff0033; color: #fff; display: grid; place-items: center; font-size: 26px; transition: transform .2s; }
.yt-lite:hover .play { transform: scale(1.08); }
.yt-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.yt-out { margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.yt-out a { color: var(--blue-600); }
.tut-intro { font-size: 19px; color: var(--ink); margin-top: 26px; }
.tut-intro p { margin: 0 0 12px; }
.toc { background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; }
.toc ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 4px; }
.toc a { color: var(--blue-600); font-weight: 700; }
.tut-body { max-width: none; }
.tut-body h2 { scroll-margin-top: 100px; font-size: 28px; margin: 40px 0 12px; }
.tut-body h3 { font-size: 21px; margin: 26px 0 8px; }
.tut-body p, .tut-body li { color: #2b3354; font-size: 17.5px; line-height: 1.95; }
.tut-body p { margin: 0 0 14px; }
.tut-body ul, .tut-body ol { padding-inline-start: 24px; margin: 0 0 16px; }
.tut-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.tut-body code { background: var(--blue-50); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.tut-body pre { background: var(--navy-900); color: #e6edff; padding: 18px; border-radius: 14px; overflow-x: auto; font-size: 14px; }
.tut-body pre code { background: none; padding: 0; }
.tut-body figure { margin: 22px 0; }
.tut-body figure img { border-radius: 14px; border: 1px solid var(--line); }
.tut-body figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }
.callout { border-radius: 14px; padding: 14px 18px; margin: 18px 0; font-weight: 600; border-inline-start: 4px solid; }
.callout.tip { background: #eef6ff; border-color: var(--blue-500); }
.callout.tip::before { content: "💡 "; }
.callout.warn { background: #fff6e6; border-color: var(--amber-600); }
.callout.warn::before { content: "⚠️ "; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.inline-cta h3 { font-size: 20px; margin: 6px 0 4px; }
.inline-cta p { margin: 0; color: var(--muted); }
.inline-cta.host { background: var(--blue-50); border: 1px solid var(--line); }
.inline-cta.host .badge { display: inline-block; background: var(--amber); color: var(--navy-900); font-weight: 900; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.inline-cta.host .code { margin-top: 8px; font-weight: 700; color: var(--ink); }
.inline-cta.host .code-copy { color: var(--blue-600); background: #fff; }
.inline-cta.wl { background: #fff8eb; border: 1px dashed var(--amber-600); }
.author-box { display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 26px; }
.author-box img { border-radius: 50%; border: 3px solid var(--amber); flex: none; }
.author-box b { font-size: 19px; }
.author-box p { color: var(--muted); margin: 4px 0 6px; }
.link-arrow { color: var(--blue-600); font-weight: 800; }
.tut-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.side-card h3 { font-size: 18px; }
.side-card p { color: var(--muted); font-size: 15px; margin: 0; }
.side-card .btn { justify-content: space-between; }
.muted-label { color: var(--blue-600); font-weight: 800; font-size: 13px; }
.has-guide { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.95); color: var(--navy-800); font-size: 12.5px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
@media (max-width: 1080px) { .tut-grid { grid-template-columns: 1fr; } .tut-side { position: static; } }

/* ===== UX pass ===== */
.rotator.is-static span { animation: none; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 100; background: var(--amber); color: var(--navy-900); font-weight: 800; padding: 10px 18px; border-radius: 0 0 12px 12px; }
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.footer-links a { display: inline-block; padding-block: 8px; }
.socials a { width: 48px; height: 48px; }
.dealbar a.cta { padding: 6px 16px; }
@media (max-width: 640px) {
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .pills { display: none; }
  .video-grid .video:nth-child(n+4) { display: none; }
  .nav.open a { padding-block: 10px; font-size: 18px; }
  .faq-list summary { font-size: 16.5px; }
}
.pick-feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.price-box .price { font-size: clamp(38px, 9vw, 64px); overflow-wrap: anywhere; }
@media (max-width: 1080px) { .pick-feature { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pick-feature { padding: 22px 18px; } .price-box { padding: 22px 18px; } }
html { scroll-padding-top: 96px; }
@media (max-width: 640px) { html { scroll-padding-top: 80px; } }
