:root {
  /* Print Studio Palette — Warm Alabaster Paper, Deep Offset Ink & Forest Emerald */
  --bg-canvas: hsl(38, 26%, 95%);
  --bg-sheet: hsl(40, 33%, 98.5%);
  --bg-subtle: hsl(38, 20%, 93%);

  --ink-primary: hsl(216, 28%, 12%);
  --ink-secondary: hsl(216, 14%, 34%);
  --ink-muted: hsl(216, 10%, 50%);
  --ink-hairline: hsla(216, 20%, 15%, 0.11);
  --ink-crop: hsla(216, 24%, 18%, 0.28);

  --whatsapp-accent: hsl(152, 62%, 29%);
  --whatsapp-accent-hover: hsl(152, 65%, 23%);
  --whatsapp-soft: hsla(152, 55%, 32%, 0.09);

  /* CMYK Registration Micro-Accents (Print Press Heritage) */
  --cmyk-c: hsl(195, 85%, 42%);
  --cmyk-m: hsl(338, 78%, 48%);
  --cmyk-y: hsl(45, 92%, 48%);
  --cmyk-k: hsl(216, 28%, 14%);

  --font-ar: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shadow-sheet:
    0 1px 2px hsla(216, 28%, 12%, 0.04),
    0 12px 32px -8px hsla(216, 28%, 12%, 0.07),
    0 28px 60px -16px hsla(35, 25%, 20%, 0.08);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-ar);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow-x: hidden;
  /* Subtle warm radial ambient lighting like studio daylight on paper */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, hsla(42, 50%, 99%, 0.9), transparent 70%),
    radial-gradient(ellipse 60% 50% at 15% 100%, hsla(152, 30%, 90%, 0.35), transparent 65%);
}

/* Tactile fine-grain paper overlay */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
}

/* Page shell */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 54rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vw, 3rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 5vh, 3.5rem);
}

/* Top Studio Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink-hairline);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.registration-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  background-color: var(--ink-primary);
  color: var(--bg-sheet);
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .registration-mark {
  transform: rotate(45deg);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink-primary);
}

.brand-ar {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 1.3;
}

.service-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background-color: var(--bg-sheet);
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--ink-hairline);
}

.status-led {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--whatsapp-accent);
  box-shadow: 0 0 0 3px var(--whatsapp-soft);
  animation: pulse-led 2.6s ease-in-out infinite;
}

@keyframes pulse-led {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px hsla(152, 55%, 32%, 0.12);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 6px hsla(152, 55%, 32%, 0.04);
  }
}

/* Main Press Sheet */
.press-sheet {
  position: relative;
  background-color: var(--bg-sheet);
  border: 1px solid var(--ink-hairline);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 3.75rem);
  box-shadow: var(--shadow-sheet);
}

/* Authentic Offset Printing Crop Marks at Sheet Corners */
.crop-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.crop-mark::before,
.crop-mark::after {
  content: '';
  position: absolute;
  background-color: var(--ink-crop);
}

.crop-tl { top: -8px; left: -8px; }
.crop-tl::before { top: 0; left: 7px; width: 1px; height: 14px; }
.crop-tl::after  { top: 7px; left: 0; width: 14px; height: 1px; }

.crop-tr { top: -8px; right: -8px; }
.crop-tr::before { top: 0; right: 7px; width: 1px; height: 14px; }
.crop-tr::after  { top: 7px; right: 0; width: 14px; height: 1px; }

.crop-bl { bottom: -8px; left: -8px; }
.crop-bl::before { bottom: 0; left: 7px; width: 1px; height: 14px; }
.crop-bl::after  { bottom: 7px; left: 0; width: 14px; height: 1px; }

.crop-br { bottom: -8px; right: -8px; }
.crop-br::before { bottom: 0; right: 7px; width: 1px; height: 14px; }
.crop-br::after  { bottom: 7px; right: 0; width: 14px; height: 1px; }

/* CMYK Color Calibration Bar (Top Corner Detail) */
.sheet-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.sheet-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.cmyk-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cmyk-swatch {
  width: 10px;
  height: 10px;
  border-radius: 1px;
}

.cmyk-swatch.c { background-color: var(--cmyk-c); }
.cmyk-swatch.m { background-color: var(--cmyk-m); }
.cmyk-swatch.y { background-color: var(--cmyk-y); }
.cmyk-swatch.k { background-color: var(--cmyk-k); }

/* Hero Copy */
.hero-heading {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  color: var(--ink-secondary);
  max-width: 42rem;
  line-height: 1.85;
  margin-bottom: 2.25rem;
}

.hero-lead strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.en-inline {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Two-Column Editorial Specification Strip */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  padding-block: 1.65rem;
  border-top: 1px solid var(--ink-hairline);
  border-bottom: 1px solid var(--ink-hairline);
  margin-bottom: 2.25rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.spec-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--whatsapp-accent);
  flex-shrink: 0;
}

.spec-icon.icon-ink {
  color: var(--ink-secondary);
}

.spec-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* Action Row */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background-color: var(--whatsapp-accent);
  color: #ffffff;
  font-family: var(--font-ar);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.82rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
  box-shadow: 0 4px 14px -3px hsla(152, 62%, 25%, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px hsla(152, 62%, 22%, 0.42);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-whatsapp svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.server-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.config-toast {
  margin-top: 0.9rem;
  padding: 0.7rem 1rem;
  background-color: var(--bg-subtle);
  border-radius: 5px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  display: none;
}

.config-toast.is-visible {
  display: block;
}

.config-toast code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  background-color: var(--bg-sheet);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* Footer Colophon */
.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.colophon-en {
  font-family: var(--font-en);
  letter-spacing: 0.03em;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .page-wrapper {
    width: calc(100% - 1.5rem);
    padding-block: 1.25rem;
  }

  .press-sheet {
    padding: 1.65rem 1.35rem;
  }

  .spec-strip {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-whatsapp {
    width: 100%;
  }

  .server-note {
    text-align: center;
  }

  .colophon {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-led,
  .registration-mark,
  .btn-whatsapp {
    animation: none;
    transition: none;
  }
}
