/* Quran Sessions redesign. Theme: Iznik-tile turquoise/teal with a mulberry accent on cool mint-white; arch (mihrab) motif. */
:root {
  --bg: #f3f7f5;
  --surface: #ffffff;
  --surface-2: #e4eee9;
  --ink: #1b2826;
  --muted: #4f5d59;
  --line: #d0ded8;
  --brand: #0f5b50;
  --brand-hover: #0b4a41;
  --brand-ink: #ffffff;
  --brand-soft: #e1efeb;
  --deep: #0b3b35;
  --deep-ink: #f4efe6;
  --deep-muted: #c3d3ce;
  --accent: #8a2f5e;
  --accent-soft: #f5e3ed;
  --focus: #a3266b;
  --shadow: 0 1px 2px rgba(20, 40, 36, .06), 0 8px 24px rgba(20, 40, 36, .08);
  --radius: 14px;
  --arch: 999px 999px 18px 18px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Noto Naskh Arabic", "Traditional Arabic", serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1614; --surface: #14211e; --surface-2: #1a2a27; --ink: #ebe5d9; --muted: #a9b6b1; --line: #2a3c38;
    --brand: #5fc4b0; --brand-hover: #7fd3c2; --brand-ink: #062420; --brand-soft: #173430;
    --deep: #071b18; --deep-ink: #ebe5d9; --deep-muted: #a9b6b1;
    --accent: #f2a5c8; --accent-soft: #35202c; --focus: #f7b6d3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1614; --surface: #14211e; --surface-2: #1a2a27; --ink: #ebe5d9; --muted: #a9b6b1; --line: #2a3c38;
  --brand: #5fc4b0; --brand-hover: #7fd3c2; --brand-ink: #062420; --brand-soft: #173430;
  --deep: #071b18; --deep-ink: #ebe5d9; --deep-muted: #a9b6b1;
  --accent: #f2a5c8; --accent-soft: #35202c; --focus: #f7b6d3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--surface-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 12px; border: 2px solid currentColor; border-bottom: 0; border-radius: 999px 999px 0 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-accent { color: #062420; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-accent { color: #062420; } }
.btn-accent:hover { filter: brightness(1.08); color: inherit; }
.btn-ghost { border-color: currentColor; color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: var(--deep-ink); color: var(--deep); }
.btn-light:hover { background: #fff; color: var(--deep); }
.btn-outline-light { border-color: var(--deep-ink); color: var(--deep-ink); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--deep-ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header (always dark: the logo is white) */
.topbar { background: var(--deep); color: var(--deep-muted); font-size: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; padding-block: 8px; }
.topbar a { color: var(--deep-ink); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .tb-list { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-header { background: var(--deep); color: var(--deep-ink); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a, .nav .sub-toggle { display: block; color: var(--deep-ink); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; background: none; border: 0; font: 500 1rem/1.2 var(--font-body); cursor: pointer; }
.nav a:hover, .nav .sub-toggle:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"], .nav a[aria-current="true"] { color: #fff; box-shadow: inset 0 -3px 0 #8fe3d2; border-radius: 8px 8px 0 0; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.nav .has-sub { position: relative; display: flex; align-items: center; }
.nav .has-sub > a { padding-right: 4px; }
.nav .sub-toggle { padding: 10px 8px 10px 2px; }
.nav .sub-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .15s; }
.nav .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); display: none; }
.nav .sub.open { display: block; }
@media (hover: hover) and (min-width: 1001px) { .nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; } }
.nav .sub a { color: var(--ink); padding: 10px 12px; }
.nav .sub a:hover { background: var(--brand-soft); color: var(--ink); }
.nav .sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 4px; }
.nav .nav-cta { margin-left: 8px; }
.nav .nav-cta a { background: #8fe3d2; color: #062420; border-radius: 999px; padding: 11px 20px; font-weight: 600; }
.nav .nav-cta a:hover { background: #b4efe3; color: #062420; }
.nav .nav-cta a[aria-current="page"] { box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px #8fe3d2; border-radius: 999px; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--deep-ink); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: block; } }

@media (max-width: 1000px) {
  .menu-btn { display: inline-grid; }
  .site-header .wrap { min-height: 68px; }
  .brand img { width: 128px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); background: var(--deep); border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 30px rgba(0, 0, 0, .3); display: none; flex-direction: column; align-items: stretch; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 28px; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav .sub-toggle { padding: 14px 12px; font-size: 1.05rem; }
  .nav .has-sub { flex-wrap: wrap; }
  .nav .has-sub > a { flex: 1; }
  .nav .sub-toggle { padding: 14px 14px; }
  .nav .sub { position: static; width: 100%; min-width: 0; background: rgba(255, 255, 255, .05); border: 0; box-shadow: none; margin: 2px 0 6px; }
  .nav .sub a { color: var(--deep-ink); }
  .nav .sub a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .nav a[aria-current="page"], .nav a[aria-current="true"] { box-shadow: inset 3px 0 0 #8fe3d2; border-radius: 4px; }
  .nav .nav-cta { margin: 14px 0 0; }
  .nav .nav-cta a { text-align: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .topbar { font-size: .82rem; }
  .topbar .wrap { justify-content: center; padding-block: 7px; }
  .topbar .tb-list { flex-wrap: nowrap; gap: 16px; }
  .topbar svg { display: none; }
  .topbar .tb-hours, .topbar .tb-addr { display: none; }
}

/* Hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { margin-bottom: 26px; }
.arch-frame { position: relative; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); box-shadow: var(--shadow); }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-wrap { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.arch-wrap::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent); border-radius: var(--arch); z-index: -1; opacity: .55; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; flex: none; stroke: var(--brand); fill: none; stroke-width: 2.4; }
.bismillah { font-family: var(--font-ar); font-size: 1.5rem; color: var(--brand); margin: 0 0 6px; line-height: 1.6; }
.socials { display: flex; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.socials a:hover { border-color: var(--brand); color: var(--brand); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Page hero (inner pages) */
.page-hero { background: var(--surface-2); padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .hero-grid { grid-template-columns: 1.2fr .8fr; }
.page-hero .arch-frame { aspect-ratio: 1 / 1; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.course-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; position: relative; }
.course-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 0 0 50% 50% / 0 0 14% 14%; }
.course-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card h3 a:hover { color: var(--brand); }
.course-card p { color: var(--muted); flex: 1; }
.course-card .more { font-weight: 600; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.course-card:hover { border-color: var(--brand); }
.course-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.course-card h3 a:focus-visible { outline: none; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ic { flex: none; width: 52px; height: 58px; display: grid; place-items: center; border-radius: 999px 999px 10px 10px; background: var(--brand-soft); color: var(--brand); }
.feature .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 52px; border-radius: 999px 999px 8px 8px; background: var(--accent); color: #fff; font: 600 1.3rem/1 var(--font-head); margin-bottom: 14px; }
:root[data-theme="dark"] .steps li::before { color: #062420; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: #062420; } }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }

/* Prose (long course copy) */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side h2 { font-size: 1.2rem; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side li a:hover { color: var(--brand); }
.side li a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.cta-card { background: var(--deep); color: var(--deep-ink); border: 0; }
.cta-card p { color: var(--deep-muted); }
.cta-card h2 { color: var(--deep-ink); }
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0 0 1.2em; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5b50' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
blockquote { margin: 1.4em 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.5; }
blockquote cite { display: block; margin-top: 8px; font: 500 .92rem/1.4 var(--font-body); font-style: normal; color: var(--muted); }
.callout { padding: 18px 22px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--line); }
.related { margin-top: 2.2em; padding-top: 1.6em; border-top: 1px solid var(--line); }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; gap: 16px; }
.quote-card blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: 1.08rem; }
.quote-card blockquote::before { content: "\201C"; display: block; font: 600 3rem/0.6 var(--font-head); color: var(--accent); margin-bottom: 10px; }
.person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 600 1rem/1 var(--font-head); }
.person strong { display: block; }
.person span { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.05rem; position: relative; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 22px 18px; color: var(--muted); }
.faq .ans p:last-child { margin-bottom: 0; }
.faq .ans ul { display: grid; gap: 8px; padding-left: 1.2em; margin: 0 0 1em; }
.faq .ans strong { color: var(--ink); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; text-align: center; padding: 30px 26px; position: relative; }
.plan h2, .plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .price { font: 600 3rem/1 var(--font-head); color: var(--ink); margin: 14px 0 4px; }
.plan .price small { font: 500 1rem/1 var(--font-body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; display: grid; gap: 10px; }
.plan ul li { display: flex; gap: 10px; }
.plan ul li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5b50' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan .btn { margin-top: auto; }
.plan.featured { border: 2px solid var(--brand); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--brand-ink); font: 600 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }

/* Tutors */
.tutor { display: flex; flex-direction: column; gap: 10px; }
.tutor .top { display: flex; gap: 14px; align-items: center; }
.tutor .avatar { width: 64px; height: 72px; border-radius: 999px 999px 12px 12px; font-size: 1.25rem; }
.tutor h3 { margin: 0; font-size: 1.15rem; }
.tutor .loc { color: var(--muted); font-size: .92rem; }
.tutor p { margin: 0; color: var(--muted); }
.pill { display: inline-block; font: 600 .75rem/1 var(--font-body); padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; justify-content: center; }
.filter button { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .95rem/1 var(--font-body); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Placeholders (content missing on the live site) */
.ph { border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 12px 16px; font-size: .95rem; }
.ph strong { color: var(--accent); }
.ph-inline { display: inline-block; border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--ink); border-radius: 6px; padding: 0 6px; font-size: .9em; }

/* Forms */
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--brand); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field .err { color: #b42318; font-size: .9rem; margin-top: 4px; }
:root[data-theme="dark"] .field .err { color: #fda29b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #fda29b; } }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.radios { display: flex; gap: 18px; }
.radios label { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 44px; }
.radios input { width: 20px; height: 20px; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--brand-soft); }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 600; word-break: break-word; }

/* Blog */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.post-card img { aspect-ratio: 300 / 214; object-fit: cover; width: 100%; }
.post-card .body { padding: 20px 22px 24px; }
.post-card .meta { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 a { color: var(--brand); }
.post-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.post-card h3 a:focus-visible { outline: none; }

/* CTA band */
.band { background: var(--deep); color: var(--deep-ink); position: relative; overflow: hidden; }
.band::before, .band::after { content: ""; position: absolute; width: 220px; height: 300px; border: 2px solid rgba(143, 227, 210, .3); border-radius: 999px 999px 0 0; bottom: -40px; }
.band::before { left: -60px; }
.band::after { right: -60px; height: 380px; }
.band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; }
.band h2 { color: var(--deep-ink); }
.band p { color: var(--deep-muted); margin: 0; }
.band .btns { justify-content: flex-end; }

/* Legal */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--deep); color: var(--deep-muted); padding-top: 48px; font-size: .95rem; line-height: 1.55; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer a { color: var(--deep-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer p, .site-footer address { margin: 0; font-style: normal; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 28px 40px; }
.foot-grid h2 { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #8fe3d2; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-brand { display: grid; gap: 14px; align-content: start; max-width: 320px; }
.foot-brand .brand img { width: 140px; }
.foot-grid .foot-brand .socials { display: flex; gap: 10px; margin: 0; flex-wrap: nowrap; }
.site-footer .socials a { width: 38px; height: 38px; border-color: rgba(255, 255, 255, .25); background: transparent; color: var(--deep-ink); }
.site-footer .socials a:hover { border-color: #8fe3d2; color: #8fe3d2; }
.foot-contact { display: grid; gap: 8px; align-content: start; }
.foot-contact h2 { margin-bottom: 6px; }
.foot-contact a { font-weight: 600; }
.foot-bottom { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }
.foot-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.foot-bottom a { display: inline-block; padding-block: 6px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; max-width: none; grid-template-columns: auto 1fr; align-items: center; } .foot-brand > p { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .site-footer { padding-top: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .foot-brand { grid-template-columns: auto 1fr; gap: 12px; }
  .foot-brand .brand img { width: 120px; }
  .foot-brand .socials { justify-self: end; }
  .foot-bottom { justify-content: center; text-align: center; gap: 2px 20px; }
  .foot-contact { grid-column: 1 / -1; }
  .foot-links a { display: inline-block; padding-block: 3px; }
  .foot-bottom { margin-top: 28px; }
}

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout-side { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 860px) {
  .hero-grid, .page-hero .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .plans, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .band .wrap { grid-template-columns: 1fr; }
  .band .btns { justify-content: flex-start; }
  .hero .arch-wrap { max-width: 340px; }
  .page-hero .arch-wrap { max-width: 260px; margin-inline: 0; }
  .plans { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .grid-4, .row2, .checklist { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .btns .btn { flex: 1 1 100%; }
  .arch-wrap::after { inset: 12px -10px -12px 10px; }
  .page-hero .arch-wrap { display: none; }
}
@media print { .topbar, .site-header, .band, .site-footer, .skip { display: none; } body { background: #fff; color: #000; } }
