:root {
  --g9: #0a4d2c; --g7: #0f7a3f; --g6: #159447; --g1: #dff2e5; --g0: #f1f9f3;
  --red: #d7261e; --red-d: #b31c15; --yellow: #ffd23f;
  --ink: #14241b; --muted: #55645b; --line: #dbe7df; --bg: #fff;
  --r: 14px; --shadow: 0 6px 20px rgba(10, 77, 44, .10);
  --font: "Lexend", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--g7); }
a:hover { color: var(--g9); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }

/* notice + header */
.notice { background: var(--g9); color: #e7f5ec; font-size: 13px; text-align: center; padding: 6px 12px; }
.notice a { color: var(--yellow); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 44px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; font-size: 21px; color: var(--g7); letter-spacing: -.01em; white-space: nowrap; }
.logo-name b { background: var(--red); color: #fff; padding: 0 8px 1px; border-radius: 6px; font-style: italic; font-weight: 800; }
.logo-tag { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 2px; align-items: center; }
.nav a, .nav button { font: inherit; font-weight: 500; font-size: 15px; color: var(--ink); background: none; border: 0; padding: 8px 12px; border-radius: 8px; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav a:hover, .nav button:hover { background: var(--g0); color: var(--g9); }
.nav > ul > li > a[aria-current] { background: var(--g7); color: #fff; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px !important; display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.sub a[aria-current] { color: var(--g7); font-weight: 600; }
.header-btns { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--g7); color: #fff; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--g9); }
.menu-btn { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--g0); padding: 14px 0; }
.search-panel input { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--g6); border-radius: 10px; }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; }
.search-results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.search-results a:hover { background: #fff; }
.search-results small { display: block; font-weight: 400; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(215, 38, 30, .28); }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-green { background: var(--g7); color: #fff; }
.btn-green:hover { background: var(--g9); color: #fff; }
.btn-outline { background: #fff; color: var(--g9); border-color: var(--g7); }
.btn-outline:hover { background: var(--g0); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #e4f3fb 0%, #f3faf5 70%, #fff 100%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding: 44px 0 56px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -.03em; color: var(--g7); margin-bottom: 14px; }
.hero h1 b { display: inline-block; background: var(--red); color: #fff; font-style: italic; padding: 0 .22em .04em; border-radius: .16em; transform: skewX(-4deg); }
.hero h1 small { display: block; font-size: .3em; letter-spacing: 0; color: var(--ink); font-weight: 600; margin-top: .6em; }
.hero-sub { font-size: clamp(17px, 2.2vw, 22px); max-width: 30em; }
.chips { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.chips li { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 6px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; }
.chips .ic { display: block; margin: 0 auto 6px; width: 30px; height: 30px; color: var(--g7); }
.chips li:nth-child(even) .ic { color: #e08a00; }
.chips small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-height: 300px; display: grid; place-items: center; }
.hero-art .photo { width: 100%; height: auto; border-radius: 24px; display: block; }
.hero-art .photo + .ycard { position: absolute; left: -6%; bottom: -4%; width: 62%; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; color: var(--g1); z-index: 0; }

/* card illustration */
.ycard { width: min(400px, 100%); aspect-ratio: 1.586; border-radius: 18px; padding: 7% 7% 6%; color: #fff; position: relative; overflow: hidden; transform: rotate(-5deg);
  background: radial-gradient(120% 90% at 100% 0%, #2bb866 0%, transparent 55%), linear-gradient(135deg, #0a4d2c, #0f7a3f 60%, #159447);
  box-shadow: 0 24px 40px rgba(10, 77, 44, .35); display: flex; flex-direction: column; justify-content: space-between; }
.ycard::after { content: ""; position: absolute; inset: auto -20% -55% -20%; height: 90%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); }
.ycard-name { font-weight: 800; font-size: clamp(20px, 3vw, 30px); line-height: 1; font-style: italic; }
.ycard-name span { display: block; font-size: .62em; font-weight: 600; }
.ycard-chip { width: 15%; aspect-ratio: 1.3; border-radius: 6px; background: linear-gradient(135deg, #ffe38a, #d9a520); }
.ycard-foot { font-size: 11px; opacity: .85; letter-spacing: .04em; }
.ycard-badge { position: absolute; top: 9%; right: 7%; font-size: 10px; font-weight: 600; background: rgba(255, 255, 255, .16); padding: 3px 8px; border-radius: 99px; }

/* strip + ajrak */
.strip { background: linear-gradient(90deg, var(--g9), var(--g7)); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; }
.strip a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; padding: 16px 12px; }
.strip a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.strip .ic { width: 30px; height: 30px; }
.ajrak { height: 14px; background-color: #8f1512;
  background-image: radial-gradient(circle at 50% 50%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 0 50%, #1c2340 0 4px, transparent 4.5px), radial-gradient(circle at 100% 50%, #1c2340 0 4px, transparent 4.5px);
  background-size: 14px 14px; }

/* sections */
.section { padding: 44px 0; }
.section-title { text-align: center; font-size: clamp(26px, 3.6vw, 34px); color: var(--g9); }
.section-title span, .hl { color: #c98a00; }
.section-sub { text-align: center; color: var(--muted); margin-top: -6px; }
.tiles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.tiles a, .tiles .tile { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; background: var(--g0); border: 1px solid var(--g1); border-radius: var(--r); padding: 18px 10px 14px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.25; transition: transform .15s, box-shadow .15s; }
.tiles a:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.tiles .ic { width: 38px; height: 38px; color: var(--g7); }
.tiles li:nth-child(3n+2) .ic { color: #e08a00; }
.tiles li:nth-child(3n) .ic { color: var(--red); }
.tiles small { font-weight: 400; color: var(--muted); font-size: 12px; }
.go { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin-top: auto; }
.go .ic { width: 14px; height: 14px; color: #fff !important; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.what { background: linear-gradient(135deg, var(--g9), var(--g7)); color: #fff; border-radius: 28px; padding: 30px; position: relative; overflow: hidden; }
.what::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--yellow); }
.what h2 { font-size: clamp(26px, 3.4vw, 34px); }
.what h2 span { color: var(--yellow); display: block; }
.what .photo { width: 100%; height: auto; border-radius: 16px; margin-bottom: 16px; display: block; }
.what p:last-of-type { margin-bottom: 0; }
.what a { color: var(--yellow); font-weight: 600; }
.who h2 { font-size: clamp(26px, 3.4vw, 34px); color: var(--g9); }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding: 5px 0 5px 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--g6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.split h2 { font-size: clamp(24px, 3.2vw, 30px); color: var(--g9); }
.flow { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow li { counter-increment: s; position: relative; background: var(--g0); border: 1px solid var(--g1); border-radius: var(--r); padding: 26px 8px 14px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.flow li::before { content: counter(s); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--g7); color: #fff; display: grid; place-items: center; font-size: 14px; }
.flow .ic { display: block; margin: 0 auto 8px; width: 32px; height: 32px; color: var(--g7); }
.panel { background: var(--g0); border: 1px solid var(--g1); border-radius: 20px; padding: 22px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.duo a { display: block; background: #fff; border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(10, 77, 44, .07); font-size: 14px; }
.duo a:hover { box-shadow: var(--shadow); }
.duo strong { display: block; font-size: 16px; }
.duo .big { color: var(--red); font-weight: 800; font-size: 20px; display: block; }
.duo .ic { width: 34px; height: 34px; color: #e08a00; margin-bottom: 6px; }

.trio { display: grid; grid-template-columns: 1.1fr 1fr .85fr; gap: 20px; align-items: start; }
.box { border: 1px solid var(--g1); background: var(--g0); border-radius: 20px; padding: 20px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.box h2 { font-size: 21px; margin: 0; display: flex; align-items: center; gap: 8px; }
.box h2 .ic { color: var(--red); }
.pill { font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--g7); border-radius: 99px; padding: 3px 12px; text-decoration: none; white-space: nowrap; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.news a { font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.35; display: block; }
.news a:hover { color: var(--g7); }
.news time { font-size: 12.5px; color: var(--muted); }
.subscribe h2 { font-size: 22px; }
.subscribe input { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 99px; margin-bottom: 10px; }
.subscribe .btn { width: 100%; }
.form-msg { font-size: 13.5px; margin: 10px 0 0; color: var(--g9); }

/* faq */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--g7); }
.faq details[open] summary .ic { transform: rotate(90deg); }
.faq-a { padding: 0 16px 6px; color: #2c3b33; }
.box.faq h2 { margin-bottom: 12px; }

/* cta + footer */
.cta { background: linear-gradient(90deg, var(--g9), var(--g7)); color: #fff; text-align: center; padding: 40px 0; }
.cta h2 { font-size: clamp(24px, 3.6vw, 34px); }
.cta h2 span { color: var(--yellow); }
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 36px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer li a { color: var(--ink); text-decoration: none; }
.site-footer li a:hover { color: var(--g7); text-decoration: underline; }
.footer-note { color: var(--muted); margin-top: 12px; max-width: 34em; }
.footer-base { border-top: 1px solid var(--line); margin-top: 24px; padding: 16px 0 24px; color: var(--muted); font-size: 13px; }

/* inner pages */
.page-head { background: linear-gradient(180deg, #e4f3fb, var(--g0)); padding: 26px 0 28px; border-bottom: 1px solid var(--g1); }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.crumbs .ic { width: 14px; height: 14px; }
.page-head h1 { font-size: clamp(28px, 4.6vw, 44px); color: var(--g9); letter-spacing: -.02em; max-width: 22em; }
.lead { font-size: 18px; max-width: 46em; margin-bottom: .5em; }
.updated { font-size: 13.5px; color: var(--muted); margin: 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 36px 0 52px; align-items: start; }
.prose { font-size: 16.5px; }
.prose h2 { font-size: 26px; color: var(--g9); margin-top: 1.7em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose ul:not(.checks), .prose ol:not(.steps) { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; }
.table-wrap { overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--g0); color: var(--g9); }
.steps { list-style: none; counter-reset: st; padding: 0; }
.steps li { counter-increment: st; position: relative; padding: 2px 0 14px 50px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--g7); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; }
.note, .warn { border-radius: 12px; padding: 14px 16px; margin: 0 0 1.2em; border-left: 5px solid var(--g6); background: var(--g0); }
.warn { border-left-color: #e08a00; background: #fff8e6; }
.note p:last-child, .warn p:last-child { margin: 0; }
.prose .btn { margin: 4px 8px 12px 0; }
.status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 99px; background: var(--g1); color: var(--g9); white-space: nowrap; }
.status.maybe { background: #ffecc2; color: #7a5200; }
.side { position: sticky; top: 90px; display: grid; gap: 16px; }
.side-card { border: 1px solid var(--g1); background: var(--g0); border-radius: 18px; padding: 18px; }
.side-card h2 { font-size: 17px; }
.side-card .btn { width: 100%; margin-bottom: 10px; font-size: 14.5px; padding: 10px 14px; }
.side-card p { margin: 4px 0 0; font-size: 14.5px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.side-links a:hover { background: #fff; color: var(--g7); }
.side-links .ic { color: var(--g7); }
.entry { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 26px; scroll-margin-top: 90px; }
.entry time { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.entry h2 { margin-top: .2em !important; }

@media (max-width: 1020px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; max-height: calc(100vh - 110px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button { width: 100%; padding: 12px; justify-content: space-between; }
  .sub { position: static; box-shadow: none; border: 0; padding-left: 14px !important; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .subscribe { grid-column: 1 / -1; }
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; padding: 28px 0 40px; }
  .hero-art { order: -1; min-height: 0; }
  .ycard { width: min(300px, 80%); }
  .hero-art .photo + .ycard { width: 48%; left: 0; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .strip ul { display: grid; grid-template-columns: 1fr 1fr; }
  .about, .split, .trio, .side { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .logo-tag { display: none; }
  .section { padding: 34px 0; }
}
@media (max-width: 430px) {
  .chips { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .logo-name { font-size: 18px; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.duo small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.35; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 16px 0 8px; max-width: 640px; }
.shot, .shot-wide { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 5px solid var(--ink); background: var(--g9); }
.shot-wide { margin: 14px 0 6px; max-width: 640px; }
.shot-wide img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption, .shot-wide figcaption { font-size: 14px; font-weight: 600; margin-top: 8px; }
.shot-src { font-size: 13.5px; color: var(--muted); margin: 0 0 1.2em; }

/* design review fixes */
/* focus ring that shows on both light and dark grounds */
:focus-visible { outline: 3px solid var(--g9); outline-offset: 3px; box-shadow: 0 0 0 3px var(--yellow); }
/* readable line length for long text */
.prose > p, .prose > ul, .prose > ol, .prose .note, .prose .warn, .faq-a p { max-width: 70ch; }
/* accent text that passes contrast on white */
.section-title span, .hl { color: #9a6400; }
/* nothing below 12px */
.logo-tag { font-size: 12px; }
.chips small { font-size: 12px; }
.ycard-foot { font-size: 12px; letter-spacing: 0; }
.ycard-badge { font-size: 12px; }
/* 44px tap targets */
.icon-btn { width: 44px; height: 44px; }
.side-links a { min-height: 44px; }
.site-footer li { margin-bottom: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.pill { padding: 9px 14px; }
.crumbs a { padding: 8px 0; }
.faq summary { min-height: 48px; }
/* buttons answer a press */
.btn:active { transform: translateY(1px); }
@media (max-width: 820px) {
  .site-footer li a { padding: 11px 0; }
  .prose a:not(.btn) { padding: 3px 0; }
}

/* even vertical rhythm between homepage sections */
.section { padding: 40px 0; }
.home .ajrak + .section { padding-top: 48px; }
.home .cta { margin-top: 24px; }
/* card badge readable on the light corner of the card */
.ycard-badge { background: rgba(0, 0, 0, .38); }
.sub-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 820px) { .section { padding: 28px 0; } }

/* ---------- homepage, matched to the mockup ---------- */
/* hero: one wide scene with the title over the sky */
.hero-wide { background: linear-gradient(180deg, #d9eaf7 0%, #eef6f4 78%, #f6fbf7 100%); min-height: 540px; display: flex; align-items: center; }
.hero-bg { position: absolute; right: 0; top: 0; height: 100%; width: min(74%, 1040px); object-fit: cover; object-position: 62% 22%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.hero-wide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(240, 247, 250, .96) 0, rgba(240, 247, 250, .9) 36%, rgba(240, 247, 250, 0) 60%); }
.hero-wide .hero-in { display: block; z-index: 2; padding: 40px 0 48px; }
.hero-text { max-width: min(640px, 55%); }
.hero-wide h1 .h1-main { display: block; white-space: nowrap; }
.hero-wide h1 { font-size: clamp(38px, 5.5vw, 76px); }
.hero-wide .chips { max-width: none; }
.hero-wide > .ycard { position: absolute; z-index: 3; left: 58%; bottom: 34px; width: clamp(200px, 21vw, 290px); transform: rotate(-7deg); }
.hero-wide .ycard-name { font-size: clamp(17px, 2vw, 26px); }

/* guide strip dividers */
@media (min-width: 821px) {
  .strip li + li a { position: relative; }
  .strip li + li a::before { content: ""; position: absolute; left: -6px; top: 22%; bottom: 22%; width: 1px; background: rgba(255, 255, 255, .28); }
}

/* icons get a soft fill so they read as illustrations */
.tiles .ic, .chips .ic, .flow .ic, .duo .ic { fill: currentColor; fill-opacity: .16; }
.go .ic { fill: none; }

/* tiles in a single row on desktop */
@media (min-width: 1100px) {
  .tiles.t8 { grid-template-columns: repeat(8, 1fr); gap: 12px; }
  .tiles.t7 { grid-template-columns: repeat(7, 1fr); gap: 12px; }
  .tiles.t8 a, .tiles.t7 a { font-size: 13.5px; padding: 16px 6px 12px; }
}

/* What is: cut-out student standing in front of the green panel */
.what.has-cut { display: grid; grid-template-columns: 36% 1fr; gap: 14px; align-items: end; overflow: visible; padding: 0 26px 0 0; margin-top: 56px; }
.what.has-cut::after { border-radius: 0 0 28px 28px; }
.what .cut { display: block; width: 100%; height: auto; margin-top: -64px; border-bottom-left-radius: 28px; position: relative; z-index: 1; }
.what-body { padding: 26px 0 30px; }

/* Who can apply: clipboard */
.who { position: relative; }
.clip { position: absolute; right: 0; top: 4px; width: 132px; height: auto; }
.who .checks { padding-right: 140px; }

/* arrows between the five steps */
@media (min-width: 821px) {
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; border: 6px solid transparent; border-left-color: var(--g6); transform: translateY(-50%); }
}

/* update thumbnails */
.news li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 8px; }
.thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }

/* stay updated envelope */
.mail { float: right; width: 86px; height: auto; margin: -8px 0 4px 10px; }

/* closing band landmarks */
.cta { position: relative; overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; }
.cta-l, .cta-r { position: absolute; bottom: 0; width: 320px; height: 128px; color: rgba(255, 255, 255, .16); }
.cta-l { left: 0; }
.cta-r { right: 0; }

@media (max-width: 1020px) {
  .hero-text { max-width: 58%; }
  .hero-wide .chips { grid-template-columns: repeat(3, 1fr); }
  .hero-wide > .ycard { left: 62%; }
  .cta-l, .cta-r { display: none; }
}
@media (max-width: 820px) {
  .hero-wide { display: block; min-height: 0; }
  .hero-bg { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; object-position: 70% 20%; -webkit-mask-image: none; mask-image: none; display: block; }
  .hero-wide::before { display: none; }
  .hero-wide .hero-in { padding: 44px 0 36px; }
  .hero-text { max-width: none; }
  .hero-wide h1 { font-size: clamp(34px, 10.5vw, 60px); }
  .hero-wide > .ycard { left: 16px; right: auto; bottom: auto; top: calc(66.67vw - 96px); width: 168px; }
  .what.has-cut { grid-template-columns: 1fr; padding: 0 22px; margin-top: 0; }
  .what .cut { display: none; }
  .clip { width: 84px; }
  .who .checks { padding-right: 0; }
  .who h2 { padding-right: 96px; }
}

/* homepage pass 2: tighter rhythm, bigger cut-out, card that fits its text */
.home .section { padding: 30px 0; }
.home .ajrak + .section { padding-top: 40px; }
.hero-wide > .ycard { width: clamp(230px, 23vw, 310px); bottom: 22px; padding: 5% 6%; }
.hero-wide .ycard-foot { white-space: nowrap; }
.hero-wide .ycard-badge { top: 8%; right: 6%; }
.about { grid-template-columns: 1.15fr .85fr; }
.what.has-cut { display: block; position: relative; padding: 0 26px 0 0; margin-top: 44px; min-height: 330px; }
.what .cut { position: absolute; left: 0; bottom: 0; height: calc(100% + 44px); width: auto; max-width: 46%; object-fit: contain; object-position: left bottom; margin: 0; }
.what-body { margin-left: 45%; padding: 26px 0 30px; font-size: 15.5px; }
@media (max-width: 820px) {
  .home .section { padding: 24px 0; }
  .about { grid-template-columns: 1fr; }
  .what.has-cut { padding: 0 22px; margin-top: 0; min-height: 0; }
  .what-body { margin-left: 0; }
  .hero-wide > .ycard { width: 176px; bottom: auto; }
}

@media (min-width: 821px) { .what .cut { max-width: 44%; } .what-body { margin-left: 49%; } }

/* ---------- taste audit fixes ---------- */
/* guide pages must not be wider than the phone */
@media (max-width: 1020px) { .page-grid { grid-template-columns: minmax(0, 1fr); } .side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .side { grid-template-columns: minmax(0, 1fr); } }
.prose, .trio > *, .about > *, .split > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
/* very small phones */
@media (max-width: 380px) {
  .hero-wide h1 .h1-main { white-space: normal; }
  .hero-wide h1 { font-size: 34px; }
  .logo-mark { width: 34px; height: 30px; }
  .logo-name { font-size: 16px; }
  .header-in { gap: 8px; }
  .news li { grid-template-columns: 72px 1fr; }
  .thumb { width: 72px; height: 48px; }
  .box { padding: 16px; }
}
/* stronger text contrast */
:root { --muted: #46544c; }
.what { background: linear-gradient(135deg, #083d23, #0c6433); }
.what a:focus-visible, .cta a:focus-visible, .strip a:focus-visible, .notice a:focus-visible { outline-color: #fff; }
/* tap targets */
.logo { min-height: 44px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; }
.news a { padding: 6px 0; }

@media (max-width: 350px) {
  .logo { gap: 6px; }
  .logo-mark { width: 28px; height: 25px; }
  .logo-name { font-size: 14.5px; }
  .logo-name b { padding: 0 5px 1px; }
  .header-btns { gap: 6px; }
}

/* ---------- taste audit fixes, round 2 ---------- */
/* one h2 size on the homepage; box titles are h3 */
.home .section-title, .home .what h2, .home .who h2, .home .split h2, .home .cta h2 { font-size: clamp(24px, 3vw, 32px); }
.h-box { font-size: 21px; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.h-box .ic { color: var(--red); }
.panel .h-box { color: var(--g9); }
.box.faq h3 { font-size: 21px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.box.faq h3 .ic { color: var(--red); }
.subscribe .h-box { margin-bottom: 10px; }
/* one primary and one secondary button; the small link is a link */
.pill { border: 0; padding: 0; background: none; text-decoration: underline; font-size: 14px; }
.ycard-badge { border-radius: 4px; }
/* equal boxes in the last row */
.trio { align-items: stretch; }
/* focused links never hide under the sticky header */
:focus-visible { scroll-margin-top: 110px; scroll-margin-bottom: 40px; }
@media (max-width: 820px) {
  .hero-wide h1 { font-size: clamp(30px, 9.2vw, 56px); }
  .flow li:last-child { grid-column: 1 / -1; }
}

/* hero card drawn as one graphic, matched to the mockup */
svg.ycard { padding: 0; background: none; display: block; height: auto; aspect-ratio: 400 / 252; border-radius: 0; overflow: visible; filter: drop-shadow(0 22px 26px rgba(10, 77, 44, .38)); box-shadow: none; }
svg.ycard::after { content: none; }
.hero-wide > svg.ycard { padding: 0; width: clamp(250px, 26vw, 350px); bottom: 20px; left: 56%; }
@media (max-width: 1020px) { .hero-wide > svg.ycard { left: 60%; } }
@media (max-width: 820px) { .hero-wide > svg.ycard { width: 190px; left: 14px; bottom: auto; } }

@media (min-width: 821px) {
  .hero-wide { min-height: 610px; }
  .hero-bg { object-position: 62% 0%; }
  .hero-wide > svg.ycard { width: clamp(240px, 24vw, 310px); bottom: 16px; left: 57%; }
}

/* ---------- hero card: placed relative to the photo at every width ---------- */
.hero-wide { --iw: min(74vw, 1040px); --cw: clamp(220px, 22vw, 310px); }
@media (min-width: 821px) {
  .hero-wide > svg.ycard { width: var(--cw); left: auto; right: calc(var(--iw) * .46 - var(--cw) / 2); bottom: 16px; }
}
@media (min-width: 821px) and (max-width: 1020px) {
  .hero-wide { --cw: clamp(190px, 22vw, 224px); }
  .hero-text { max-width: 54%; }
  .hero-wide > svg.ycard { right: calc(var(--iw) * .40 - var(--cw) / 2); }
}
@media (max-width: 820px) {
  /* the card hangs off the bottom-left corner of the photo, clear of the faces */
  .hero-wide { --cw: min(38vw, 230px); }
  .hero-wide > svg.ycard { width: var(--cw); left: 16px; right: auto; bottom: auto; top: calc(66.67vw - var(--cw) * .36); }
  .hero-wide .hero-in { padding-top: calc(var(--cw) * .30 + 24px); }
}

/* subscribe form states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.is-ok { color: var(--g9); font-weight: 600; }
.form-msg.is-error { color: #a3160f; font-weight: 600; }
.subscribe input[aria-invalid="true"] { border-color: #a3160f; }
.form-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }

/* ---------- homepage: added sections (approved mockups, 24 Nov 2026) ---------- */
.pic { display: block; height: auto; }
.section-title.lined { display: flex; align-items: center; justify-content: center; gap: 18px; }
.section-title.lined::before, .section-title.lined::after { content: ""; flex: 0 1 120px; height: 3px; border-radius: 3px; background: #e9b62b; }
.src-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.more-link { margin: 14px 0 0; text-align: center; font-weight: 600; }

/* pill heading used for "at a glance" and districts */
.glance-h { display: inline-block; margin: 0 0 22px; padding: 10px 34px 12px 24px; color: #fff; font-style: italic; font-weight: 800; font-size: clamp(22px, 3vw, 32px);
  background: linear-gradient(90deg, var(--g9), var(--g7)); border-radius: 999px 30px 30px 999px; box-shadow: 6px 0 0 #e9b62b; }
.glance-h b { color: var(--yellow); }

/* at a glance */
.glance { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; }
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--g1); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.facts th, .facts td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 15.5px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; color: var(--g9); font-weight: 700; background: var(--g0); white-space: nowrap; }
.facts th .pic { display: inline-block; width: 26px; margin-right: 10px; vertical-align: middle; }
.glance-art .pic { width: 100%; max-width: 240px; margin: auto; }

/* documents */
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-card { display: flex; gap: 20px; align-items: center; background: var(--g0); border: 1px solid var(--g1); border-radius: 18px; padding: 22px 24px; }
.doc-card .pic { width: 110px; flex: none; }
.doc-tag { display: inline-block; margin: 0 0 10px; padding: 4px 16px; border-radius: 999px; background: var(--g7); color: #fff; font-size: 16px; }
.doc-card .checks { margin: 0; }

/* confirmed or proposed */
.cp-wrap { max-width: 760px; margin: 0 auto; }
.cp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--g1); border-radius: 14px; overflow: hidden; }
.cp th, .cp td { padding: 11px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px; }
.cp thead th { background: var(--g0); color: var(--g9); }
.cp td:last-child, .cp th:last-child { text-align: right; width: 150px; }
.badge { display: inline-block; min-width: 108px; text-align: center; padding: 3px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.badge.ok { background: var(--g7); color: #fff; }
.badge.maybe { background: #f6b81a; color: #3d2a00; }
.cp-wrap + .src-note { text-align: center; }

/* official app strip */
.app-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: app; }
.app-strip li { counter-increment: app; text-align: center; }
.app-strip img { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto; border: 6px solid var(--ink); border-radius: 26px; background: var(--g9); box-shadow: var(--shadow); }
.app-strip span { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; }
.app-strip span::before { content: counter(app); width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; }
.app-strip + .src-note { text-align: center; }

/* districts */
.districts { display: grid; grid-template-columns: 34% 1fr; gap: 24px; align-items: center; }
.map-art img { display: block; width: 100%; max-width: 400px; height: auto; margin: auto; }
.div-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.div-cards li { background: var(--g0); border: 1px solid var(--g1); border-radius: 16px; padding: 14px 16px; }
.div-cards .pic { width: 50px; float: left; margin: 0 10px 4px 0; }
.div-cards h3 { margin: 6px 0 8px; display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--red); color: #fff; font-size: 15.5px; }
.div-cards p { clear: left; margin: 0; font-size: 14.5px; line-height: 1.45; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 8px; height: 4px; background: var(--g7); border-radius: 4px; }
.timeline li { position: relative; display: flex; gap: 12px; align-items: center; background: var(--g0); border: 1px solid var(--g1); border-radius: 16px; padding: 14px; }
.timeline li::before { content: ""; position: absolute; left: 50%; top: -26px; width: 14px; height: 14px; margin-left: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--g7); }
.timeline li.next::before { border-color: var(--red); }
.timeline .pic { width: 56px; flex: none; }
.t-date { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--g9); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.timeline li.next .t-date { background: var(--red); }
.t-what { display: block; font-weight: 600; line-height: 1.3; }

/* stay safe */
.safe { display: grid; grid-template-columns: 300px 1fr; border: 2px solid #e1453d; border-radius: 20px; overflow: hidden; background: #fff; }
.safe-l { position: relative; padding: 70px 24px 20px; text-align: center; border-right: 1px solid #f3c3bf; }
.safe-h { position: absolute; left: 0; top: 0; margin: 0; padding: 10px 30px 12px 22px; background: linear-gradient(90deg, #b51d16, var(--red)); color: #fff; font-style: italic; font-weight: 800; font-size: 23px; border-bottom-right-radius: 26px; white-space: nowrap; }
.safe-l .pic { width: 140px; margin: 6px auto 0; }
.safe-list { align-self: center; padding: 18px 26px; margin: 0; }
.safe-list li { font-weight: 600; }

/* kya hai */
.kya { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kya-card { display: flex; gap: 18px; align-items: center; background: var(--g0); border: 1px solid var(--g1); border-radius: 18px; padding: 20px 22px; }
.kya-card .pic { width: 92px; flex: none; }
.kya-card p { margin: 0; font-size: 16.5px; font-weight: 500; }
.kya-card.urdu p { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif; font-size: 19px; line-height: 2.1; font-weight: 400; }

/* more questions */
.more-q .faq { max-width: 900px; margin: 0 auto; }
.more-q .faq > h2 { text-align: center; color: var(--g9); font-size: clamp(24px, 3vw, 32px); }

@media (max-width: 1020px) {
  .glance { grid-template-columns: 1fr; }
  .glance-art { display: none; }
  .div-cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); padding-top: 0; }
  .timeline::before, .timeline li::before { display: none; }
}
@media (max-width: 820px) {
  .doc-cards, .kya { grid-template-columns: 1fr; }
  .districts { grid-template-columns: 1fr; }
  .map-art img { max-width: 260px; }
  .app-strip { grid-template-columns: repeat(2, 1fr); }
  .safe { grid-template-columns: 1fr; }
  .safe-l { border-right: 0; border-bottom: 1px solid #f3c3bf; padding-top: 64px; }
  .facts th { white-space: normal; width: 42%; }
  .section-title.lined::before, .section-title.lined::after { flex-basis: 24px; }
  .glance-h { padding: 8px 24px 10px 18px; }
}
@media (max-width: 480px) {
  .div-cards, .timeline { grid-template-columns: 1fr; }
  .doc-card { padding: 18px; gap: 14px; }
  .doc-card .pic { width: 78px; }
  .facts th, .facts td { padding: 9px 10px; font-size: 14.5px; }
  .facts th .pic { display: none; }
  .safe-h { font-size: 20px; }
  .kya-card { flex-direction: column; align-items: flex-start; }
}

.section-title.lined .lined-t { color: inherit; }

/* independent-guide notice, now at the top of the footer */
.site-footer { padding-top: 0; }
.site-footer > .notice { margin-bottom: 32px; padding: 14px 0; font-size: 14px; text-align: left; }

/* logo as an image (24 Nov 2026) */
.logo { display: block; line-height: 0; margin-right: auto; }
.logo picture, .logo img { display: block; }
.logo img { height: 40px; width: auto; max-width: 100%; }
.site-footer .logo img { height: 34px; }
@media (max-width: 1100px) and (min-width: 821px) { .logo img { height: 32px; } }
@media (max-width: 820px) { .logo { min-width: 0; flex: 1 1 auto; } .logo img { height: 40px; } .site-footer .logo img { height: 40px; } }
@media (max-width: 380px) { .logo img { height: 34px; } }
@media (max-width: 340px) { .logo img { height: 29px; } }

/* ChatGPT logo set (approved 24 Nov 2026) */
.logo img { height: 42px; }
.site-footer .logo img { height: 36px; }
@media (max-width: 1100px) and (min-width: 821px) { .logo img { height: 36px; } }
@media (max-width: 820px) { .logo img { height: 46px; } .site-footer .logo img { height: 46px; } }
@media (max-width: 380px) { .logo img { height: 42px; } }
@media (max-width: 340px) { .logo img { height: 38px; } }

@media (max-width: 820px) { .site-header .logo img { height: 56px; } }
@media (max-width: 380px) { .site-header .logo img { height: 54px; } }
@media (max-width: 340px) { .site-header .logo img { height: 47px; } }

/* minimum text size on phones */
@media (max-width: 820px) { .hero h1 small, .hero-wide h1 small { font-size: 14px; letter-spacing: 0; } .duo small { font-size: 12.5px; } }

/* long web addresses wrap inside table cells */
.prose td a, .prose td { overflow-wrap: anywhere; }
