/* Masjid Studio. One family (Schibsted Grotesk, self-hosted), one accent (ink blue), one radius (10px). */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f5f6f3;
  --surface: #fbfbf9;
  --tint: #eceee9;
  --ink: #16181d;
  --muted: #545963;
  --line: #d9dcd5;
  --accent: #2b4a96;
  --accent-hover: #223c7c;
  --accent-ink: #f8f9f6;
  --accent-soft: #e4e9f4;
  --shadow: 0 1px 2px rgba(22, 30, 52, 0.06), 0 18px 40px -18px rgba(22, 30, 52, 0.28);
  --radius: 10px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #181b20;
    --tint: #1b1f25;
    --ink: #eceee9;
    --muted: #a5aab2;
    --line: #2b3038;
    --accent: #93a9e6;
    --accent-hover: #b0c1ee;
    --accent-ink: #11141a;
    --accent-soft: #1d2537;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--radius); z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons: one shape everywhere. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--accent);
  transition: background-color .2s ease, transform .15s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--tint); border-color: var(--muted); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
.nav__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.01em; text-decoration: none; font-size: 1.05rem; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .97rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav__in { justify-content: space-between; }
}

/* Hero: split, copy left, the real Alnur site right. */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.4rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.hero h1 em { font-style: italic; font-weight: 750; color: var(--accent); }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__shot { margin: 0; margin-right: calc(-1 * var(--gutter) - 6vw); }
.hero__shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero__shot figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__shot { margin-right: 0; }
  .lede { max-width: 40ch; }
}

/* What you get: a plain 2 x 2, divided by rules, no boxes. */
.gets { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.gets h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 18ch; }
.gets__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); margin-top: 44px; }
.get { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.get h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.get p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
@media (max-width: 720px) { .gets__grid { grid-template-columns: 1fr; } }

/* How updates work: the one tinted band. */
.updates { background: var(--tint); padding: clamp(64px, 8vw, 112px) 0; }
.updates__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.updates h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.03em; max-width: 16ch; }
.updates__intro { position: sticky; top: 104px; }
.checked { margin-top: 40px; padding: 24px 26px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.checked h3 { font-size: 1.1rem; }
.checked p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { padding: 0 0 36px 28px; border-left: 2px solid var(--line); position: relative; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.flow h3 { font-size: 1.35rem; }
.flow p { margin-top: 8px; color: var(--muted); max-width: 48ch; }
.addr { color: var(--ink); font-weight: 600; white-space: nowrap; }
.reply { margin: 18px 0 0; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); max-width: 48ch; }
.reply p { margin: 0; color: var(--ink); font-size: 1rem; }
.reply footer { margin-top: 10px; font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) {
  .updates__grid { grid-template-columns: 1fr; }
  .updates__intro { position: static; }
  .addr { white-space: normal; overflow-wrap: anywhere; }
}

/* Work: one real client, shown on a phone. */
.work { padding: clamp(64px, 8vw, 120px) 0; }
.work__grid { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.work__phone { margin: 0; justify-self: center; width: min(100%, 340px); }
.work__phone img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.work h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.035em; }
.work__url { margin-top: 8px; font-weight: 600; }
.work__url a { color: var(--accent); text-underline-offset: 3px; }
.work__copy > p:not(.work__url) { margin-top: 20px; color: var(--muted); max-width: 46ch; }
.work__copy .btn { margin-top: 30px; }
@media (max-width: 820px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__copy { order: -1; }
  .work__phone { width: min(80%, 320px); }
}

/* Pricing: two builds side by side, the care plan as a wide band. */
.pricing { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.pricing h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.plan { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan h3, .care h3 { font-size: 1.2rem; }
.price { margin-top: 10px; font-size: 2.5rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.price span { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan > p:last-child { margin-top: 16px; color: var(--muted); }
.care { display: grid; grid-template-columns: 1fr 2fr; gap: 20px 48px; align-items: center; margin-top: 20px; padding: 30px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.care > p { color: var(--ink); }
.split { margin-top: 22px; color: var(--muted); }
@media (max-width: 760px) {
  .plans, .care { grid-template-columns: 1fr; }
}

/* Contact */
.contact { padding: clamp(72px, 9vw, 128px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; max-width: 20ch; }
.contact p { margin-top: 18px; color: var(--muted); max-width: 46ch; font-size: 1.15rem; }
.contact__mail { display: inline-block; margin-top: 28px; font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--accent-hover); }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Gentle entrance for the hero only, and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .hero__shot { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__shot { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
.contact--full { border-top: 0; min-height: 100dvh; }
