/* Noga CV — nogacv.com
   Idea: the app's "paper on a dark desk". The page is the desk (Nocturne
   palette); real CV pages and real app screens are the objects on it. */

:root {
  /* Nocturne tokens, shared with the app */
  --desk: #0d0e18;
  --bg: #161826;
  --surface: #232532;
  --surface-2: #2c3040;
  --text: #e9e9ed;
  --muted: #9397ab;
  --accent: #9184d9;
  --accent-light: #d2cefd;
  --paper: #fbfaf7;
  --success: #7fd1a3;
  --warn: #f0c07a;

  /* Ink for content printed on paper */
  --ink: #1b1d2b;
  --ink-muted: #565a6e;
  --ink-link: #5a4cb0;
  --paper-line: #e6e3dc;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Type scale (16 · 18 · 21 · 24 · 36 · 48 · 72) */
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.3125rem;
  --step-3: 1.5rem;
  --step-4: clamp(1.75rem, 1.2rem + 2.2vw, 2.25rem);
  --step-5: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  --step-6: clamp(2.75rem, 1.4rem + 5.6vw, 5.25rem);

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
  --page: 1200px;
  --section-gap: clamp(72px, 10vw, 136px);

  --radius-paper: 3px;
  --radius-control: 14px;
  --radius-panel: 22px;
  --shadow-paper: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 24px 48px -18px rgb(0 0 0 / 0.75), 0 2px 6px rgb(0 0 0 / 0.35);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  /* The desk lamp: one pool of accent light behind the hero composition. */
  background: radial-gradient(900px 640px at 78% 300px, rgb(145 132 217 / 0.2), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-light); text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; line-height: 1.25; }

p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  background: var(--accent-light);
  color: var(--desk);
  border-radius: var(--radius-control);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 800 var(--step-2)/1 var(--font-display);
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }

.site-nav ul { display: flex; gap: clamp(12px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--text); }

/* ---------- Store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding-block: 10px;
  padding-inline: 16px 22px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--desk);
  text-decoration: none;
  line-height: 1.15;
  text-align: start;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.store[href]:hover { background: var(--accent-light); transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: grid; }
.store small { font-size: 0.75rem; font-weight: 500; }
.store strong { font: 800 1.1875rem/1.1 var(--font-display); letter-spacing: -0.01em; }

/* Without a URL the App Store button is a quiet, non-interactive label. */
.store:not([href]) {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px var(--surface-2);
  cursor: default;
}
.store:not([href]) strong { color: var(--text); }

/* Content that depends on the App Store launch (see data-appstore-url). */
.when-live { display: none; }
.appstore-live .when-live { display: revert; }
.appstore-live .when-soon { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding-bottom: clamp(40px, 6vw, 72px);
  background: linear-gradient(transparent 40%, var(--desk));
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(24px, 5vw, 64px);
}

.hero-kicker { color: var(--accent-light); font-weight: 500; margin-bottom: 18px; }

.hero h1 { font-size: var(--step-6); line-height: 0.98; letter-spacing: -0.045em; max-width: 11ch; }

.hero-sub {
  margin-top: 14px;
  font: 300 var(--step-4)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--accent-light);
}

.hero-lede { margin-block: 28px 32px; max-width: 46ch; color: var(--muted); font-size: var(--step-1); }

.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.875rem; }

/* The desk composition: three CV pages fanned behind the phone. */
.desk-scene {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1.08;
  margin-inline: auto;
}

.desk-scene .sheet {
  position: absolute;
  left: 4%;
  top: 10%;
  width: 52%;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  animation: fan-out 1100ms var(--ease-out) both;
  animation-delay: var(--delay);
}
.desk-scene .sheet:nth-child(1) { --x: -6%; --y: 6%; --r: -13deg; --delay: 160ms; }
.desk-scene .sheet:nth-child(2) { --x: 18%; --y: -4%; --r: -4deg; --delay: 240ms; }
.desk-scene .sheet:nth-child(3) { --x: 42%; --y: -9%; --r: 6deg; --delay: 320ms; }

.desk-scene .phone {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 44%;
  animation: rise 900ms var(--ease-out) both;
}

@keyframes fan-out {
  from { opacity: 0; transform: translate(30%, 8%) rotate(0deg); }
  to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Shared objects: paper and phone ---------- */

.sheet { border-radius: var(--radius-paper); box-shadow: var(--shadow-paper); background: var(--paper); }

.phone {
  margin: 0;
  padding: 7px;
  border-radius: 34px;
  background: #05060c;
  box-shadow: 0 0 0 1px var(--surface-2), 0 40px 70px -24px rgb(0 0 0 / 0.85);
}
.phone img { border-radius: 27px; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-gap) 0; }

.section-head { display: grid; gap: 18px; max-width: 40rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* Templates: a spread of real pages across the desk, right below the hero */
.templates { background: var(--desk); padding-top: clamp(40px, 6vw, 72px); }

.spread {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 28px var(--gutter) 56px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.spread li {
  flex: none;
  width: clamp(190px, 22vw, 260px);
  margin-right: -18px;
  scroll-snap-align: center;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0));
}
.spread li:nth-child(3n + 1) { --tilt: -2.5deg; --lift: 10px; }
.spread li:nth-child(3n + 2) { --tilt: 1.5deg; --lift: -6px; }
.spread li:nth-child(3n) { --tilt: -0.5deg; --lift: 16px; }
.spread li:last-child { margin-right: 0; }

/* Features */
.features { background: var(--desk); padding-bottom: var(--section-gap); }

.feature-list {
  display: grid;
  gap: clamp(56px, 7vw, 40px) clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature { display: grid; gap: 24px; align-content: start; }
.feature .phone { width: min(62%, 280px); }
.feature p { color: var(--muted); margin-top: 10px; max-width: 34ch; }

.extras {
  display: grid;
  gap: 16px 48px;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--surface-2);
  list-style: none;
}
.extras li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.extras svg { width: 24px; height: 24px; margin-top: 2px; stroke: var(--warn); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.extras strong { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.extras span { color: var(--muted); }

/* How it works — a real three-step sequence, so it is numbered */
.steps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  content: counter(step);
  font: 800 clamp(4.5rem, 3rem + 5vw, 7rem)/0.85 var(--font-display);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.steps p { color: var(--muted); max-width: 32ch; }

/* Free and Pro: Free sits on the desk, Pro is printed on paper */
.plans { display: grid; gap: 20px; align-items: stretch; }

.plan { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-panel); }
.plan h3 { font-size: var(--step-4); }
.plan-lede { margin-top: 8px; }
.plan ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.plan li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.plan-free { background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-2); }
.plan-free .plan-lede { color: var(--muted); }
.plan-free li::before { color: var(--muted); }

.plan-pro { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-paper); }
.plan-pro .plan-lede { color: var(--ink-muted); }
.plan-pro li::before { color: var(--ink-link); }

.unlock {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 24px clamp(28px, 4vw, 44px);
  border-radius: var(--radius-panel);
  border: 1.5px dashed var(--surface-2);
}
.unlock strong { font-family: var(--font-display); font-size: var(--step-2); }
.unlock span { color: var(--muted); }

.fine-print { margin-top: 20px; color: var(--muted); font-size: 0.875rem; }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }

.faq-list { border-top: 1px solid var(--surface-2); }
.faq-list details { border-bottom: 1px solid var(--surface-2); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font: 700 var(--step-1)/1.35 var(--font-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq-list details p { padding: 0 0 24px; max-width: var(--measure); color: var(--muted); }

/* Closing call to action */
.closing { text-align: center; padding-bottom: var(--section-gap); }
.closing h2 { font-size: var(--step-6); letter-spacing: -0.045em; line-height: 0.98; }
.closing p { margin: 20px auto 36px; max-width: 40ch; color: var(--muted); font-size: var(--step-1); }
.closing .stores { justify-content: center; }
.closing img { width: 88px; height: 88px; margin: 0 auto 32px; border-radius: 22px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--desk); padding-block: 48px; color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 20px; }
.footer-grid ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }

/* ---------- Legal pages: the policy is a sheet of paper on the desk ---------- */

.legal-page { background: var(--desk); }

.legal {
  width: min(100% - 2 * var(--gutter), 52rem);
  margin: clamp(16px, 4vw, 40px) auto clamp(48px, 7vw, 88px);
  padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 80px);
  border-radius: var(--radius-paper);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-paper);
  line-height: 1.7;
}
.legal h1 { font-size: var(--step-5); }
.legal h2 { margin-top: 2.4em; font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1.25; }
.legal p, .legal ul { margin: 0.9em 0 0; max-width: var(--measure); }
.legal ul { padding-inline-start: 1.25em; }
.legal li + li { margin-top: 0.4em; }
.legal a { color: var(--ink-link); }
.legal :focus-visible { outline-color: var(--ink-link); }
.legal .updated { margin-top: 12px; color: var(--ink-muted); }
.legal .summary { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--paper-line); font-size: var(--step-1); }

/* 404 */
.not-found { padding-block: clamp(48px, 10vw, 120px) var(--section-gap); }
.not-found h1 { font-size: var(--step-6); letter-spacing: -0.045em; }
.not-found p { margin-block: 20px 32px; color: var(--muted); font-size: var(--step-1); max-width: 40ch; }

/* ---------- Guide pages: templates, CV examples ---------- */

.guide-page { background: var(--desk); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.875rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; color: var(--surface-2); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

.page-intro { display: grid; gap: 18px; padding-block: clamp(24px, 5vw, 56px) clamp(40px, 6vw, 64px); }
.page-intro h1 { font-size: var(--step-5); max-width: 18ch; }
.page-intro .lede { max-width: 48rem; color: var(--muted); font-size: var(--step-1); }

.guide-section { padding-bottom: clamp(56px, 8vw, 96px); }
.guide-section > h2 { font-size: var(--step-4); margin-bottom: 24px; }
.guide-section > p { max-width: var(--measure); color: var(--muted); }
.guide-section > p + p { margin-top: 1em; }

/* Template families: a real page on the desk beside its description */
.family-list { display: grid; gap: clamp(40px, 6vw, 64px); margin: 0; padding: 0; list-style: none; }
.family { display: grid; gap: 24px; align-items: start; }
.family-pages { display: flex; gap: 16px; }
.family-pages img { width: min(46%, 220px); }
.family h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
.family .count { margin-top: 6px; color: var(--accent-light); font-weight: 500; }
.family p:not(.count) { margin-top: 12px; max-width: var(--measure); color: var(--muted); }
.family .names { margin-top: 12px; color: var(--text); font-size: 0.9375rem; }
.family > div:only-child { grid-column: 1 / -1; }

/* Card links to other pages */
.link-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.link-cards a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 20px 22px;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 160ms ease;
}
.link-cards a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.link-cards strong { font: 700 var(--step-1)/1.3 var(--font-display); }
.link-cards span { color: var(--muted); font-size: 0.9375rem; }

/* The example CV: printed on a sheet of paper */
.cv-sheet {
  max-width: 52rem;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-paper);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-paper);
  line-height: 1.55;
}
.cv-sheet header { padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.cv-sheet .cv-name { font: 800 var(--step-4)/1.1 var(--font-display); letter-spacing: -0.03em; }
.cv-sheet .cv-role { margin-top: 4px; color: var(--ink-link); font-weight: 600; }
.cv-sheet .cv-contact { margin-top: 8px; color: var(--ink-muted); font-size: 0.875rem; }
.cv-sheet h3 {
  margin-top: 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-link);
}
.cv-sheet h4 { margin: 16px 0 0; font: 700 var(--step-0)/1.35 var(--font-display); }
.cv-sheet .cv-meta { color: var(--ink-muted); font-size: 0.875rem; }
.cv-sheet p { margin-top: 10px; }
.cv-sheet ul { margin: 8px 0 0; padding-inline-start: 1.2em; }
.cv-sheet li + li { margin-top: 4px; }
.cv-sheet .cv-skills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.cv-sheet .cv-skills li { margin: 0; padding: 2px 10px; border: 1px solid var(--paper-line); border-radius: 999px; font-size: 0.875rem; }

/* The designed example: the CV rendered in a real template, on the desk */
.example-showcase { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
.example-figure { margin: 0; width: min(100%, 620px); }
.example-figure img { width: 100%; }
.example-aside { display: grid; gap: 16px; align-content: start; }
.example-aside h2 { font-size: var(--step-4); }
.example-aside p { color: var(--muted); max-width: 40ch; }
.example-aside .template-name { color: var(--accent-light); font-weight: 500; }
.example-aside .stores { margin-top: 8px; }
.example-aside .fine-print { margin-top: 0; }

/* Example cards on the hub: a thumbnail page above the job title */
.example-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px) clamp(14px, 3vw, 28px); margin: 0; padding: 0; list-style: none; }
.example-cards a { display: grid; gap: 6px; align-content: start; color: var(--text); text-decoration: none; }
.example-cards img { margin-bottom: 12px; transition: transform 200ms var(--ease-out); }
.example-cards a:hover img { transform: translateY(-4px); }
.example-cards strong { font: 700 var(--step-1)/1.3 var(--font-display); }
.example-cards a:hover strong { text-decoration: underline; }
.example-cards span { color: var(--muted); font-size: 0.9375rem; }

.section-head .more-link { font-size: var(--step-0); }

/* Writing tips */
.tips { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 2.5rem 1fr; gap: 4px 12px; }
.tips li::before { content: counter(tip); grid-row: span 2; font: 800 var(--step-4)/1 var(--font-display); color: var(--accent); }
.tips h3 { font-size: var(--step-1); }
.tips p { color: var(--muted); max-width: var(--measure); }

.guide-section .faq-list { max-width: 52rem; }

/* Plain bullet lists and in-text buttons inside guide sections */
.guide-section > .plain-list { max-width: var(--measure); margin: 1em 0 0; padding-inline-start: 1.25em; color: var(--muted); }
.plain-list li + li { margin-top: 0.5em; }
.guide-section > .stores { margin-top: 24px; }
.guide-section > p + .example-cards, .guide-section > .cv-sheet + .fine-print { margin-top: 28px; }
.guide-section > p strong { color: var(--text); }

/* Product page: numbered steps with real app screens */
.shot-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(16px, 3vw, 32px); margin: 0; padding: 0; list-style: none; counter-reset: shot; }
.shot-steps li { counter-increment: shot; display: grid; gap: 12px; align-content: start; }
.shot-steps .phone { width: min(100%, 220px); margin: 0 0 8px; }
.shot-steps h3 { font-size: var(--step-1); }
.shot-steps h3::before { content: counter(shot) ". "; color: var(--accent); }
.shot-steps p { color: var(--muted); font-size: 0.9375rem; }

/* Comparison tables (Free vs Pro) */
.table-scroll { max-width: 52rem; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--surface-2); text-align: start; vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: var(--step-1); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }

@media (min-width: 720px) {
  .link-cards { grid-template-columns: repeat(2, 1fr); }
  .family { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
}

@media (min-width: 960px) {
  .link-cards { grid-template-columns: repeat(4, 1fr); }
  .example-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .example-cards.layout-samples { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 56rem; }
  .shot-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .example-showcase { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
  .example-aside { position: sticky; top: 32px; padding-top: 8px; }
}

/* ---------- Cookie consent banner (added by /assets/analytics.js) ---------- */

.consent {
  position: fixed;
  z-index: 20;
  inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 40rem;
  margin-inline: auto;
  padding-block: 14px;
  padding-inline: 20px 16px;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface-2), 0 18px 40px -12px rgb(0 0 0 / 0.7);
  font-size: 0.9375rem;
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 18rem; color: var(--text); }
.consent-actions { display: flex; gap: 10px; }
.consent-button {
  min-width: 6.5rem;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--text);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.consent-button:hover { background: var(--accent); color: var(--desk); }

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .feature-list, .steps { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(2) { margin-top: 64px; }
  .feature .phone { width: min(80%, 280px); }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; }
  .faq-grid .section-head { position: sticky; top: 32px; align-self: start; }
}

@media (max-width: 520px) {
  .site-nav { display: none; }
  .stores { flex-direction: column; }
  .store { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .consent-actions { flex: 1 1 100%; }
  .consent-button { flex: 1; }
}

/* ---------- Arabic pages (/ar/): right-to-left, self-hosted Noto Sans Arabic ---------- */

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-sans-arabic-regular.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-sans-arabic-bold.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

[lang="ar"] {
  --font-display: "Noto Sans Arabic", "Manrope", system-ui, sans-serif;
  --font-body: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}
/* An Arabic link on an English page (the footer language switch). */
[lang="ar"]:not(html) { font-family: var(--font-body); }
/* Arabic letters join, so tracking breaks words apart; taller glyphs need
   more line height than the Latin display type. */
[dir="rtl"] :is(h1, h2, h3, h4, .brand, .store strong, .cv-sheet h3, .cv-sheet .cv-name, .closing h2, .page-intro h1) {
  letter-spacing: 0;
  line-height: 1.35;
}
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .cv-sheet h3 { text-transform: none; font-size: 0.9375rem; }
[dir="rtl"] .page-intro h1 { max-width: 22ch; }
