/* ==========================================================================
   Rich Print Solutions — Demo Stylesheet
   --------------------------------------------------------------------------
   Contents
   01. Design tokens (light + dark themes)
   02. Reset & base
   03. Typography & layout primitives
   04. Buttons
   05. Forms
   06. Header / navigation / mobile menu
   07. Hero
   08. Services
   09. How it works
   10. Why choose us
   11. About & stats
   12. Contact
   13. Footer
   14. Login page
   15. Dashboard
   16. Poster mockups (pure CSS artwork)
   17. Modal
   18. Toasts
   19. Utilities, accessibility & reduced motion
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   Every colour used by the UI is a custom property so both themes stay in
   sync and a single [data-theme] switch repaints the whole site.
   ========================================================================== */

:root {
  /* ---- Light theme (default): pastel blue + pista green ----
     Brand hue is a soft powder/steel blue; pista (pistachio green) is the
     secondary accent and doubles as the success colour. Sand and periwinkle
     appear only as low-saturation supporting tones. ---- */
  --bg:            #f8fbfc; /* cool white with a faint blue cast */
  --bg-alt:        #eef5f6;
  --surface:       #ffffff;
  --surface-2:     #f5faf9;
  --surface-3:     #e9f2f2;

  --text:          #23323a; /* deep blue-charcoal */
  --text-muted:    #55666f;
  --text-soft:     #7c8b93;

  --border:        #dde9ea; /* light cool-gray borders */
  --border-strong: #c5d7d9;

  /* Brand — pastel blue */
  --primary:       #3b7a9e; /* muted powder blue (AA on white) */
  --primary-hover: #2f6480;
  --primary-soft:  #cae1ef; /* pastel blue wash */
  --primary-tint:  #eaf4fa;
  --on-primary:    #ffffff;

  /* Secondary — pista green (also success) */
  --green:         #557a30; /* deep pista, AA on white */
  --green-soft:    #dcecc2; /* pastel pista */
  --green-tint:    #f1f8e6;

  /* Supporting accents */
  --blue:          #2d7f7a; /* soft teal, for tile variety */
  --blue-soft:     #cbe8e5;
  --blue-tint:     #eaf6f5;

  --yellow:        #8a6a25; /* muted sand — warnings and notes only */
  --yellow-soft:   #f3e7c4;
  --yellow-tint:   #faf5e8;

  --lavender:      #5a6bb5; /* soft periwinkle for highlighted sections */
  --lavender-soft: #d9dff4;
  --lavender-tint: #eff2fb;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(35, 50, 58, .06), 0 1px 3px rgba(35, 50, 58, .05);
  --shadow-md: 0 4px 10px rgba(35, 50, 58, .06), 0 10px 24px rgba(35, 50, 58, .08);
  --shadow-lg: 0 10px 24px rgba(35, 50, 58, .09), 0 24px 56px rgba(35, 50, 58, .11);
  --ring: 0 0 0 3px rgba(59, 122, 158, .32);

  --grad-hero: linear-gradient(160deg, #eaf4fa 0%, #f8fbfc 44%, #f1f8e6 100%);
  --grad-cta:  linear-gradient(135deg, #cae1ef 0%, #e5f1d4 55%, #cbe8e5 100%);
  --grad-soft: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  --grad-lav:  linear-gradient(140deg, #eff2fb 0%, #f8fbfc 58%, #f1f8e6 100%);

  /* Decorative pattern inks — see section 3b */
  --pattern:        rgba(35, 50, 58, .13);
  --pattern-soft:   rgba(35, 50, 58, .07);
  --pattern-accent: rgba(59, 122, 158, .20);
  --grain-opacity:  .04;

  /* Geometry */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Spacing scale */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;

  --container: 1180px;
  --header-h: 68px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --speed: 220ms;

  color-scheme: light;
}

[data-theme="dark"] {
  /* ---- Dark theme: layered deep blue-navy surfaces, never pure black ---- */
  --bg:            #0e1720;
  --bg-alt:        #131e29;
  --surface:       #18242f;
  --surface-2:     #1f2d3a;
  --surface-3:     #29394a;

  --text:          #e7eef2; /* soft off-white */
  --text-muted:    #a4b5bf;
  --text-soft:     #8697a2;

  --border:        #2f4150;
  --border-strong: #425a6c;

  /* Brand — light pastel blue reads well on dark surfaces */
  --primary:       #7cc0e0;
  --primary-hover: #9ad2ec;
  --primary-soft:  #1d3a4a;
  --primary-tint:  #162b38;
  --on-primary:    #0b1e28;

  /* Secondary — pista green */
  --green:         #b5d98a;
  --green-soft:    #263a1e;
  --green-tint:    #1d2c18;

  /* Supporting accents */
  --blue:          #7fd0cb;
  --blue-soft:     #17383a;
  --blue-tint:     #132c2e;

  --yellow:        #e3c98a;
  --yellow-soft:   #38321f;
  --yellow-tint:   #2a2618;

  --lavender:      #a8b4ee;
  --lavender-soft: #252d4c;
  --lavender-tint: #1d233b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .38), 0 12px 28px rgba(0, 0, 0, .32);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, .45), 0 28px 60px rgba(0, 0, 0, .40);
  --ring: 0 0 0 3px rgba(124, 192, 224, .38);

  --grad-hero: linear-gradient(160deg, #1a2a38 0%, #0e1720 45%, #16281f 100%);
  --grad-cta:  linear-gradient(135deg, #1d3a4a 0%, #1a2b33 55%, #22331f 100%);
  --grad-soft: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  --grad-lav:  linear-gradient(140deg, #1d233b 0%, #0e1720 58%, #1d2c18 100%);

  /* Decorative pattern inks — lighter and slightly stronger on dark */
  --pattern:        rgba(231, 238, 242, .10);
  --pattern-soft:   rgba(231, 238, 242, .05);
  --pattern-accent: rgba(124, 192, 224, .18);
  --grain-opacity:  .05;

  color-scheme: dark;
}

/* Smooth cross-fade between themes. The class is added by JS only for the
   duration of the switch, so normal interactions never fight a transition. */
.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition: background-color 320ms var(--ease),
              border-color 320ms var(--ease),
              color 320ms var(--ease),
              fill 320ms var(--ease),
              box-shadow 320ms var(--ease) !important;
  transition-delay: 0s !important;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Poppins", "Manrope", system-ui, -apple-system,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guard against any decorative overflow */
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-3);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em;
}

p { margin: 0 0 var(--sp-4); }
/* ol included so ordered lists styled as cards never show native markers */
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
a:hover { color: var(--primary-hover); }

/* Consistent, always-visible focus treatment */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--primary-soft); color: var(--text); }

/* ==========================================================================
   03. TYPOGRAPHY & LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section--lav { background: var(--grad-lav); }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); }
.h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
.h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }

.lead {
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  color: var(--text-muted);
}

.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

/* Reusable card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   03b. BACKGROUND GRAPHICS
   A small set of print-shop-flavoured decorative layers. Each is drawn with
   CSS gradients (no image files, no libraries) onto a ::before layer that is
   masked so it fades out rather than tiling edge to edge.

   .pattern-halftone  dot screen — the signature print reproduction texture
   .pattern-grid      blueprint grid — process / technical sections
   .pattern-dots      sparse dot matrix — light rhythm behind card grids
   .pattern-lines     diagonal press lines — motion / momentum
   .pattern-glow      soft brand-coloured light blooms
   ========================================================================== */

/* Shared plumbing: the layer sits behind, content is lifted above it. */
.has-pattern { position: relative; isolation: isolate; }
.has-pattern > * { position: relative; z-index: 1; }
.has-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Halftone: two offset dot layers read as a print screen ------------- */
.pattern-halftone::before {
  background-image:
    radial-gradient(circle, var(--pattern) 1.9px, transparent 2px),
    radial-gradient(circle, var(--pattern-soft) 1px, transparent 1.1px);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
  -webkit-mask-image: radial-gradient(115% 85% at 88% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(115% 85% at 88% 0%, #000 0%, transparent 70%);
}

/* --- Blueprint grid ----------------------------------------------------- */
.pattern-grid::before {
  background-image:
    linear-gradient(var(--pattern-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--pattern-soft) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(105% 75% at 50% 0%, #000 8%, transparent 78%);
          mask-image: radial-gradient(105% 75% at 50% 0%, #000 8%, transparent 78%);
}

/* --- Sparse dot matrix -------------------------------------------------- */
.pattern-dots::before {
  background-image: radial-gradient(circle, var(--pattern) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 68%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 68%);
}

/* --- Diagonal press lines ----------------------------------------------- */
.pattern-lines::before {
  background-image: repeating-linear-gradient(
    135deg, var(--pattern-soft) 0 1px, transparent 1px 13px
  );
  -webkit-mask-image: radial-gradient(95% 85% at 8% 45%, #000, transparent 72%);
          mask-image: radial-gradient(95% 85% at 8% 45%, #000, transparent 72%);
}

/* --- Soft brand glow blooms --------------------------------------------- */
.pattern-glow::before {
  background:
    radial-gradient(42% 55% at 10% 12%, var(--pattern-accent), transparent 70%),
    radial-gradient(38% 50% at 90% 85%, var(--green-soft), transparent 72%);
  opacity: .6;
}

/* --- Aurora: slow-drifting colour blooms --------------------------------
   Three blurred blobs on independent long loops. Sits behind the pattern
   layer and the content; purely decorative. */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.has-pattern > .aurora { z-index: 0; }
.aurora i {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .5;
  will-change: transform;
}
.aurora i:nth-child(1) {
  width: 46%; left: -8%; top: -14%;
  background: var(--primary-soft);
  animation: blob-a 24s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 38%; right: -6%; top: 6%;
  background: var(--green-soft);
  animation: blob-b 31s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: 52%; left: 28%; bottom: -26%;
  background: var(--lavender-soft);
  animation: blob-c 27s ease-in-out infinite alternate;
}
@keyframes blob-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(14%, 10%, 0) scale(1.18); }
}
@keyframes blob-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.1); }
  100% { transform: translate3d(-16%, 14%, 0) scale(.92); }
}
@keyframes blob-c {
  0%   { transform: translate3d(0, 0, 0) scale(.95); }
  100% { transform: translate3d(10%, -12%, 0) scale(1.15); }
}

/* --- Staggered entrance -------------------------------------------------
   --d sets each element's delay so a group rises in sequence. */
/* `backwards` (not `both`) on purpose: a forwards fill would lock `transform`
   to the final keyframe and outrank :hover, killing the card tilt. The last
   keyframe already matches the element's natural state, so nothing jumps. */
.rise-in {
  animation: rise-in 720ms cubic-bezier(.22, .9, .28, 1) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* --- Pointer tilt + spotlight -------------------------------------------
   --rx/--ry (tilt) and --mx/--my (cursor position) are written by JS. */
.tilt { position: relative; isolation: isolate; }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              var(--primary-tint), transparent 72%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

/* --- Paper grain --------------------------------------------------------
   One fixed, non-interactive film over the whole viewport. Gives every page
   the faint tooth of printed stock without touching any element's own
   background. Kept very low opacity so text stays crisp. */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ==========================================================================
   04. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;            /* comfortable touch target */
  padding: .7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 140ms var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: var(--on-primary);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--text);
}

.btn--soft {
  background: var(--primary-tint);
  border-color: var(--primary-soft);
  color: var(--primary);
}
.btn--soft:hover:not(:disabled) { background: var(--primary-soft); }

.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: .9rem 1.8rem; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .85rem; }

/* Icon-only control (theme toggle, modal close, hamburger) */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              transform 140ms var(--ease);
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* Sun / moon swap — only one icon is shown per theme */
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* Inline spinner used by loading states */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   05. FORMS
   ========================================================================== */

.field { margin-bottom: var(--sp-4); }

.label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 650;
  color: var(--text);
}
.label .req { color: var(--primary); }

.input,
.textarea {
  width: 100%;
  min-height: 48px;                 /* >= 44px touch target */
  padding: .75rem .95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;                  /* 16px prevents iOS zoom-on-focus */
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background-color var(--speed) var(--ease);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.input::placeholder,
.textarea::placeholder { color: var(--text-soft); }

.input:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--primary); background: var(--primary-tint); }

.field-error {
  display: block;
  margin-top: .35rem;
  min-height: 1.1em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 44px;
}
.checkbox input {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Password field with a show/hide affordance */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 3.25rem; }
.input-wrap .reveal {
  position: absolute;
  top: 50%;
  right: .4rem;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.input-wrap .reveal:hover { background: var(--surface-3); color: var(--text); }
.input-wrap .reveal svg { width: 19px; height: 19px; }
.input-wrap .reveal .icon-eye-off { display: none; }
.input-wrap .reveal[aria-pressed="true"] .icon-eye-off { display: block; }
.input-wrap .reveal[aria-pressed="true"] .icon-eye { display: none; }

/* Inline alert (login errors, dashboard notices) */
.alert {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary-soft);
  background: var(--primary-tint);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}
.alert svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--primary); margin-top: 1px; }
.alert[hidden] { display: none; }

/* ==========================================================================
   06. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 260ms var(--ease), background-color 260ms var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* --- Logo --------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  font-weight: 800;
  /* "Rich Print Solutions" is a long wordmark and the lockup is nowrap,
     so it scales down on narrow phones instead of overflowing */
  font-size: clamp(.92rem, 3.2vw, 1.1rem);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
/* Pixel-mosaic mark. Fills are set here rather than on the SVG so the mark
   follows the theme — presentation attributes cannot read custom properties. */
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.logo__mark svg { display: block; width: 100%; height: 100%; }
.logo__mark .mark-bg  { fill: var(--primary); }
.logo__mark .mark-tab { fill: #000; opacity: .22; }
/* Monochrome blue mosaic — two opacities of the same tint give the mark
   depth without introducing a second hue. */
.logo__mark .mark-dot rect { fill: var(--primary-soft); opacity: .72; }
.logo__mark .mark-dot--alt rect { fill: var(--primary-soft); opacity: 1; }

/* Column flex: the name and the tagline are the only two items, so the
   wordmark must stay a single text node or it breaks onto extra lines. */
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  /* --text is off-white in dark mode and near-black in light. A literal
     #fff would vanish against the light theme's near-white background. */
  color: var(--text);
}
.logo__text small {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.logo--lg { font-size: 1.35rem; }
.logo--lg .logo__mark { width: 42px; height: 42px; border-radius: 12px; }

/* --- Desktop links ------------------------------------------------------ */
.nav__links {
  display: none;
  align-items: center;
  gap: .25rem;
  margin-inline: auto;
}
.nav__links a {
  display: block;
  padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .93rem;
  font-weight: 600;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav__links a:hover { background: var(--surface-2); color: var(--text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.nav__login { display: none; }

/* --- Hamburger ----------------------------------------------------------
   Three hairlines, each absolutely centred on the button. Positioning from
   the centre (rather than stacking with margins) means the two outer bars
   rotate about the exact same point, so the X closes true. */
.hamburger { position: relative; }
.hamburger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  margin: 0;
  border-radius: 1px;
  background: currentColor;
  transition: transform 280ms var(--ease), opacity 140ms var(--ease);
}
.hamburger span:nth-child(1) { transform: translate(-50%, -50%) translateY(-5px); }
.hamburger span:nth-child(2) { transform: translate(-50%, -50%); }
.hamburger span:nth-child(3) { transform: translate(-50%, -50%) translateY(5px); }

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(.35); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- Slide-in mobile panel ---------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 80;
  width: min(320px, 86vw);
  padding: calc(var(--header-h) + 1rem) var(--sp-5) var(--sp-6);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  /* visibility keeps the closed panel out of the tab order entirely */
  visibility: hidden;
  transition: transform 280ms var(--ease), visibility 280ms var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
/* :not(.btn) so the Login button keeps its pill styling */
.mobile-menu a:not(.btn) {
  display: block;
  padding: .85rem .5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 650;
}
.mobile-menu a:not(.btn):hover { color: var(--primary); }
.mobile-menu .btn { margin-top: var(--sp-5); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 18, 26, .48);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease), visibility 280ms var(--ease);
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; }

body.menu-open { overflow: hidden; }

/* ==========================================================================
   07. HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::after { /* soft pastel glow, purely decorative */
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 68%);
  opacity: .75;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center;
}

.hero__title { font-size: clamp(2rem, 6.4vw, 3.35rem); margin-bottom: var(--sp-4); }
.hero__title .accent { color: var(--primary); }
.hero__sub { max-width: 34rem; margin-bottom: var(--sp-5); }

.hero__cta { display: flex; flex-direction: column; gap: .75rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: var(--sp-5);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hero__trust li { display: flex; align-items: center; gap: .4rem; }
.hero__trust svg { width: 16px; height: 16px; color: var(--green); }

/* --- CSS-only hero collage: posters, banner, print stack ---------------- */
.collage {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
.collage__item {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  /* --px/--py are written by the pointer-parallax module */
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 320ms cubic-bezier(.2, .8, .3, 1);
}

/* Big promo poster */
.collage__poster {
  top: 4%; left: 4%;
  width: 52%; height: 72%;
  background: linear-gradient(165deg, var(--primary) 0%, #24506b 100%);
  color: #fff;
  padding: 7%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: float 7s ease-in-out infinite;
}
[data-theme="dark"] .collage__poster { color: #0b1e28; }
.collage__poster b { font-size: clamp(1.1rem, 4.4vw, 1.7rem); line-height: 1.05; display: block; }
.collage__poster span { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.collage__poster .pill {
  align-self: flex-start;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.collage__poster .rings {
  position: absolute;
  right: -30%; bottom: -25%;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, .16);
}

/* Secondary card — banner mock */
.collage__banner {
  top: 12%; right: 2%;
  width: 42%; height: 26%;
  background: var(--surface);
  padding: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6%;
  animation: float 7s ease-in-out infinite .9s;
}
.collage__banner i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--blue-soft);
}
.collage__banner i:first-child { width: 62%; background: var(--primary-soft); }
.collage__banner i:nth-child(3) { width: 78%; }
.collage__banner i:last-child { width: 45%; background: var(--yellow-soft); }

/* Approval chip */
.collage__approve {
  right: 4%; bottom: 20%;
  width: 46%;
  padding: 5% 6%;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: float 7s ease-in-out infinite 1.8s;
}
.collage__approve .tick {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.collage__approve .tick svg { width: 15px; height: 15px; }
.collage__approve b { display: block; font-size: .78rem; }
.collage__approve small { font-size: .68rem; color: var(--text-muted); }

/* Stack of printed sheets */
.collage__stack {
  left: 8%; bottom: 2%;
  width: 46%; height: 20%;
  background: var(--green-tint);
  border-color: var(--green-soft);
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 4%;
  animation: float 7s ease-in-out infinite 1.2s;
}
.collage__stack .sheets { display: flex; gap: 5px; align-items: flex-end; height: 55%; }
.collage__stack .sheets i {
  width: 13px;
  border-radius: 3px 3px 0 0;
  background: var(--primary-soft);
}
.collage__stack .sheets i:nth-child(1) { height: 55%; }
.collage__stack .sheets i:nth-child(2) { height: 85%; background: var(--blue-soft); }
.collage__stack .sheets i:nth-child(3) { height: 70%; }
.collage__stack .sheets i:nth-child(4) { height: 100%; background: var(--green-soft); }
.collage__stack small { font-size: .62rem; font-weight: 700; color: var(--green); letter-spacing: .1em; }

/* Uses the `translate` property, not `transform`, so the JS pointer-parallax
   (which writes `transform`) composes with the float instead of fighting it. */
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

/* ==========================================================================
   08. SERVICES
   ========================================================================== */

.grid { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }

/* Wide horizontal cards — icon beside the copy, left-aligned. Deliberately
   unlike the How It Works steps below (tall, centred, icon on the top edge)
   so the two sections never read as the same component. */
.service {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-5);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.service:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}
.service .tile { grid-row: 1 / span 2; margin-bottom: 0; width: 56px; height: 56px; }
.service h3 { grid-column: 2; font-size: 1.06rem; margin-bottom: .3rem; }
.service p { grid-column: 2; margin-bottom: 0; color: var(--text-muted); font-size: .92rem; }

/* Pastel icon tile — colour set via a modifier */
.tile {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--primary-soft);
}
.tile svg { width: 26px; height: 26px; }
.tile--blue { background: var(--blue-tint); color: var(--blue); border-color: var(--blue-soft); }
.tile--yellow { background: var(--yellow-tint); color: var(--yellow); border-color: var(--yellow-soft); }
.tile--green { background: var(--green-tint); color: var(--green); border-color: var(--green-soft); }
.tile--lav { background: var(--lavender-tint); color: var(--lavender); border-color: var(--lavender-soft); }

/* ==========================================================================
   09. HOW IT WORKS
   ========================================================================== */

/* ---------------------------------------------------------------------
   How It Works — icon badge overhanging the top edge of an equal-height
   card, centred copy. The <li> is the card, so CSS Grid stretches every
   step in a row to a matching height.
   --------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--sp-5);
  list-style: none;
  margin-top: 2.25rem; /* clearance for the overhanging icons */
}

.step {
  position: relative;
  padding: var(--sp-5);
  padding-top: calc(var(--sp-5) + 18px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
/* --d staggers the scroll reveal; Reveal clears it once each card has
   landed so hover stays instant. */
.steps .step {
  transition: opacity 520ms var(--ease) var(--d, 0s),
              transform 520ms var(--ease) var(--d, 0s),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
}

/* Centred with left/margin-left, leaving `transform` free for hover */
.step__icon {
  position: absolute;
  top: -26px;
  left: 50%;
  margin-left: -26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-md);
  transition: background-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.step__icon svg {
  width: 25px;
  height: 25px;
  transition: transform 280ms var(--ease);
}
.step:hover .step__icon {
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg), 0 0 0 5px var(--primary-tint);
}
.step:hover .step__icon svg { transform: scale(1.14) rotate(-6deg); }

.step h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.step p { margin-bottom: 0; font-size: .9rem; color: var(--text-muted); }

/* ==========================================================================
   10. WHY CHOOSE US
   ========================================================================== */

.benefit {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.benefit:hover { border-color: var(--primary-soft); transform: translateX(3px); }
.benefit__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid var(--green-soft);
}
.benefit__icon svg { width: 21px; height: 21px; }
.benefit h3 { font-size: .98rem; margin-bottom: .2rem; }
.benefit p { margin: 0; font-size: .86rem; color: var(--text-muted); }

/* ==========================================================================
   11. ABOUT & STATS
   ========================================================================== */

.about__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }

.stat {
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--grad-cta);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.stat span { font-size: .82rem; font-weight: 600; color: var(--text-muted); }

.note {
  margin-top: var(--sp-4);
  padding: .7rem 1rem;
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--yellow-tint);
  color: var(--text-muted);
  font-size: .82rem;
}
.note strong { color: var(--text); }

/* ==========================================================================
   12. CONTACT
   ========================================================================== */

.contact__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }

.contact__form {
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 0; }

.contact__info { display: grid; gap: var(--sp-4); }
.info-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.info-item svg { width: 22px; height: 22px; color: var(--primary); flex: 0 0 auto; }
.info-item b { display: block; font-size: .9rem; }
.info-item span { font-size: .86rem; color: var(--text-muted); word-break: break-word; }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--sp-5);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer__grid { display: grid; gap: var(--sp-6); }
.footer h4 {
  margin-bottom: var(--sp-3);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.footer li { margin-bottom: .5rem; }
.footer li a, .footer__about p { color: var(--text-muted); font-size: .9rem; }
.footer li a:hover { color: var(--primary); }
.footer__about p { max-width: 28rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text-muted);
}

.badge-demo {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--lavender-tint);
  border: 1px solid var(--lavender-soft);
  color: var(--lavender);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ==========================================================================
   14. LOGIN PAGE
   ========================================================================== */

.auth {
  display: grid;
  min-height: 100svh;            /* svh keeps it stable when mobile keyboard opens */
  background: var(--grad-hero);
}

.auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-5) clamp(1rem, 5vw, 3rem) var(--sp-6);
}

.auth__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
}

.auth__card {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  padding: clamp(1.4rem, 5vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.auth__card h1 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin-bottom: .35rem; }
.auth__card > p { color: var(--text-muted); font-size: .93rem; }

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--sp-4);
}
.auth__row a { font-size: .88rem; font-weight: 600; }

/* Demo credential helper card */
.creds {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--radius);
  background: var(--lavender-tint);
  border: 1px dashed var(--lavender-soft);
}
.creds h2 {
  margin-bottom: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lavender);
}
.creds dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem .75rem;
  margin: 0;
  font-size: .86rem;
}
.creds dt { color: var(--text-muted); font-weight: 600; }
.creds dd {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: .84rem;
  color: var(--text);
  word-break: break-all;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: var(--sp-5);
  font-size: .9rem;
  font-weight: 600;
}
.back-link svg { width: 16px; height: 16px; }

/* Decorative half of the split-screen (desktop only) */
.auth__aside {
  display: none;
  position: relative;
  padding: var(--sp-7);
  background: linear-gradient(155deg, var(--primary) 0%, #1d4863 100%);
  color: #fff;
  overflow: hidden;
  place-content: center;
}
[data-theme="dark"] .auth__aside {
  background: linear-gradient(155deg, #1b3444 0%, #0e1720 100%);
  border-right: 1px solid var(--border);
}
.auth__aside::before {
  content: "";
  position: absolute;
  inset: auto -30% -35% auto;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .08);
}
/* Halftone screen in white ink — the shared .pattern-halftone uses dark ink,
   which would be invisible on this deep panel. */
.auth__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .17) 2px, transparent 2.1px),
    radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  -webkit-mask-image: radial-gradient(110% 80% at 90% 6%, #000, transparent 68%);
          mask-image: radial-gradient(110% 80% at 90% 6%, #000, transparent 68%);
}
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside h2 { font-size: 2rem; color: #fff; max-width: 15ch; }
.auth__aside p { color: rgba(255, 255, 255, .82); max-width: 34ch; }
.auth__aside ul { display: grid; gap: .7rem; margin-top: var(--sp-5); position: relative; }
.auth__aside li { display: flex; gap: .6rem; align-items: center; font-size: .93rem; }
.auth__aside li svg { width: 18px; height: 18px; flex: 0 0 auto; }
.auth__aside .collage { max-width: 330px; margin: 0 0 var(--sp-6); }

/* ==========================================================================
   15. DASHBOARD
   ========================================================================== */

.dash-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 260ms var(--ease), background-color 260ms var(--ease);
}
/* Both sticky headers lift off the page once it scrolls */
.site-header.is-stuck,
.dash-header.is-stuck {
  box-shadow: var(--shadow-md);
  background: color-mix(in srgb, var(--bg) 97%, transparent);
}
.dash-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
}
.dash-header__who {
  flex: 1 1 100%;
  order: 3;
  min-width: 0;
}
.dash-header__who b { font-size: .9rem; line-height: 1.3; }
.dash-header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* --- Dashboard shell: role menu + content ------------------------------- */
.dash-layout { display: grid; gap: var(--sp-5); align-items: start; }
/* min-width:0 stops the poster grid forcing the column wider than its track */
.dash-content { min-width: 0; }

/* Sidebar is desktop-only; on phones the sections live in the slide-in
   drawer instead. min-width:0 stops its nowrap items widening the grid
   track (which pushed the whole dashboard past the viewport). */
.dash-nav {
  display: none;
  min-width: 0;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Role card — desktop only; on phones the page header already names the team */
.dash-nav__role {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .3rem .4rem var(--sp-4);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.dash-nav__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.dash-nav__role b { display: block; font-size: .85rem; line-height: 1.25; }
.dash-nav__role small {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--primary);
}

.dash-nav__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.dash-nav__list > li { position: relative; z-index: 1; display: flex; }
/* the marker is an <li> only so it is valid inside the <ul>; it is removed
   from flow and sits behind the real items */
.dash-nav__list > li.dash-nav__marker { display: block; z-index: 0; }

/* Active-item highlight that slides between entries instead of jumping.
   Position and size are written by JS. */
.dash-nav__marker {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  height: 0;
  border-radius: var(--radius);
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  opacity: 0;
  transition: transform 340ms cubic-bezier(.3, .8, .3, 1),
              height 340ms cubic-bezier(.3, .8, .3, 1),
              opacity 200ms var(--ease);
  pointer-events: none;
}
.dash-nav__marker.is-ready { opacity: 1; }
/* The marker provides the highlight, so the active link stays transparent */
.dash-nav__list .dash-nav__link.is-active { background: transparent; border-color: transparent; }

/* The same section list rendered inside the mobile drawer */
.mobile-menu .dash-nav__role { display: flex; margin-bottom: var(--sp-4); }
.mobile-menu .dash-nav__list { gap: .15rem; }
.mobile-menu .dash-nav__link { font-size: .95rem; padding: .7rem .8rem; }

.dash-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.dash-nav__link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.dash-nav__link:hover { background: var(--surface-2); color: var(--text); }
.dash-nav__link.is-active {
  background: var(--primary-tint);
  border-color: var(--primary-soft);
  color: var(--primary);
}
/* Sits below the section list, separated so it reads as a distinct action */
.dash-nav__logout {
  margin-top: .5rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-soft);
}
.dash-nav__logout:hover { background: var(--primary-tint); color: var(--primary); }
.mobile-menu .dash-nav__logout { margin-top: .75rem; font-size: .95rem; padding: .8rem; }

.dash-nav__badge {
  margin-left: auto;
  padding: .08rem .45rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: .67rem;
  font-weight: 800;
}

/* Sidebar entries cascade in on load */
.dash-nav .dash-nav__list > li { animation: rise-in 480ms var(--ease) backwards; }
.dash-nav .dash-nav__list > li:nth-child(2) { animation-delay: .04s; }
.dash-nav .dash-nav__list > li:nth-child(3) { animation-delay: .08s; }
.dash-nav .dash-nav__list > li:nth-child(4) { animation-delay: .12s; }
.dash-nav .dash-nav__list > li:nth-child(5) { animation-delay: .16s; }
.dash-nav .dash-nav__list > li:nth-child(6) { animation-delay: .20s; }
.dash-nav .dash-nav__list > li:nth-child(7) { animation-delay: .24s; }
.dash-nav .dash-nav__list > li:nth-child(8) { animation-delay: .28s; }

/* Panels animate whenever they are shown — including when [hidden] is
   removed on a section switch, since display:none -> block restarts it. */
.dash-content > div { animation: panel-in 420ms cubic-bezier(.22, .9, .28, 1) backwards; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --- Empty state for the non-interactive demo sections ------------------ */
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2.5rem, 9vw, 4.5rem) clamp(1.25rem, 5vw, 2rem);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: var(--sp-4);
  border-radius: 20px;
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  color: var(--primary);
}
.empty-state__icon svg { width: 32px; height: 32px; }
.empty-state h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); margin-bottom: .5rem; }
.empty-state p { max-width: 46ch; font-size: .93rem; color: var(--text-muted); }

/* --- Campaign summary --------------------------------------------------- */
/* Kept deliberately compact so the poster concepts sit near the fold. */
.campaign {
  padding: clamp(1rem, 3vw, 1.4rem);
  border-radius: var(--radius-lg);
  background: var(--grad-cta);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden; /* keeps the halftone layer inside the rounded corners */
}
.campaign h1 { font-size: clamp(1.15rem, 3.4vw, 1.5rem); margin: 0; }

/* --- Collapsible campaign details ------------------------------------- */
.campaign__summary {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 44px;
  cursor: pointer;
  list-style: none; /* hide the native disclosure triangle */
}
.campaign__summary::-webkit-details-marker { display: none; }
.campaign__summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.campaign__title-wrap { min-width: 0; }
.campaign__sub {
  display: block;
  margin-top: .15rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.campaign__chev {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  padding: .35rem .5rem .35rem .7rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.campaign__chev svg {
  width: 17px;
  height: 17px;
  transition: transform var(--speed) var(--ease);
}
.campaign__details[open] .campaign__chev svg { transform: rotate(180deg); }
.campaign__summary:hover .campaign__chev { background: var(--surface); color: var(--text); }

/* Fade the panel in rather than having it snap open */
.campaign__details[open] .campaign__meta,
.campaign__details[open] .callout { animation: rise 260ms var(--ease); }

/* The word "Details" is dropped on very small screens; the chevron carries it */
@media (max-width: 400px) {
  .campaign__chev-label { display: none; }
  .campaign__chev { padding: .35rem; }
}

/* auto-fit lets all five details sit on one row from tablet up */
.campaign__meta {
  display: grid;
  gap: .6rem;
  margin-top: var(--sp-4);
  grid-template-columns: 1fr;
}
.meta-item {
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
}
.meta-item dt {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.meta-item dd { margin: .1rem 0 0; font-size: .88rem; font-weight: 700; line-height: 1.35; }

.callout {
  display: flex;
  gap: .6rem;
  margin-top: .8rem;
  padding: .6rem .85rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border: 1px solid var(--border);
  font-size: .86rem;
  color: var(--text-muted);
}
.callout svg { width: 18px; height: 18px; }
.callout svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--primary); margin-top: 2px; }

/* --- Poster choice cards ------------------------------------------------ */
.poster-grid { display: grid; gap: clamp(1.25rem, 4vw, 2rem); }

.poster-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.poster-card:hover {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px);
  box-shadow: var(--shadow-md);
}
.poster-card { cursor: pointer; }

/* Selected state — border, tint, check, label (works in both themes) */
.poster-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--primary-soft);
}

.poster-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: var(--sp-4);
}
.poster-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Check indicator shown only when the card is selected */
.selected-flag {
  display: none;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--green-tint);
  border: 1px solid var(--green-soft);
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
}
.selected-flag svg { width: 15px; height: 15px; }
.poster-card.is-selected .selected-flag { display: inline-flex; }

.poster-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.poster-card p { font-size: .9rem; color: var(--text-muted); }

.poster-frame {
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
/* Artwork eases in slightly as the card is hovered */
.poster-frame .poster { transition: transform 620ms cubic-bezier(.2, .7, .3, 1); }
.poster-card:hover .poster-frame .poster { transform: scale(1.045); }

.poster-card__actions {
  display: grid;
  gap: .6rem;
  margin-top: auto;
  padding-top: var(--sp-4);
}

/* Custom radio row */
.pick {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .2rem;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--text-muted);
  cursor: pointer;
}
.pick input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.poster-card.is-selected .pick { color: var(--primary); }

.disclaimer {
  margin-top: var(--sp-4);
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Comments + submit -------------------------------------------------- */
.review-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.counter {
  display: flex;
  justify-content: flex-end;
  margin-top: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.counter.is-near { color: var(--primary); }

.submit-row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: var(--sp-5);
}

/* --- Celebration dialog (shown after a successful submission) ------------
   The animations are scoped to .is-open so they replay every time the
   dialog is reopened, rather than running once at page load. */
.modal--celebrate .modal__box { max-width: 460px; }

.celebrate {
  position: relative;
  min-height: 0;              /* lets it scroll inside the flex column */
  padding: clamp(1.75rem, 6vw, 2.4rem) clamp(1.25rem, 5vw, 2rem) clamp(1rem, 4vw, 1.5rem);
  text-align: center;
  background: linear-gradient(180deg, var(--green-tint) 0%, var(--surface) 78%);
  overflow: hidden auto;      /* vertical scroll on short viewports */
}

.celebrate__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.celebrate__badge svg { width: 40px; height: 40px; }
.celebrate__badge::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
}

.celebrate h2 { font-size: clamp(1.25rem, 4.5vw, 1.55rem); margin-bottom: .5rem; }
.celebrate p { font-size: .92rem; color: var(--text-muted); margin-bottom: 0; }

.celebrate__meta {
  display: grid;
  gap: .8rem;
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  text-align: left;
}
.celebrate__meta dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.celebrate__meta dd {
  margin: .2rem 0 0;
  font-size: .93rem;
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.modal__foot--center { justify-content: center; }
.modal__foot--center .btn { min-width: 170px; }

.modal--celebrate.is-open .celebrate__badge {
  animation: badge-pop 560ms cubic-bezier(.2, 1.35, .4, 1) both;
}
.modal--celebrate.is-open .celebrate__badge::after {
  animation: badge-ring 1.8s ease-out .45s infinite;
}

@keyframes badge-pop {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(1.14) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes badge-ring {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.45); }
}

/* --- Confetti -----------------------------------------------------------
   Its own overflow:hidden keeps the falling pieces from extending the
   scrollable area of .celebrate. */
.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -18px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  opacity: 0;
}
.modal--celebrate.is-open .confetti i {
  animation: confetti-fall 2.6s cubic-bezier(.3, .5, .7, 1) forwards;
}

@keyframes confetti-fall {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(360px) rotate(600deg); }
}

.confetti i:nth-child(1)  { left: 5%;  background: var(--primary);  animation-delay: .02s; }
.confetti i:nth-child(2)  { left: 13%; background: var(--green);    animation-delay: .30s; }
.confetti i:nth-child(3)  { left: 21%; background: var(--yellow);   animation-delay: .12s; border-radius: 50%; width: 9px; height: 9px; }
.confetti i:nth-child(4)  { left: 29%; background: var(--lavender); animation-delay: .48s; }
.confetti i:nth-child(5)  { left: 37%; background: var(--blue);     animation-delay: .20s; }
.confetti i:nth-child(6)  { left: 45%; background: var(--primary);  animation-delay: .58s; border-radius: 50%; width: 7px; height: 7px; }
.confetti i:nth-child(7)  { left: 53%; background: var(--green);    animation-delay: .08s; }
.confetti i:nth-child(8)  { left: 61%; background: var(--yellow);   animation-delay: .40s; }
.confetti i:nth-child(9)  { left: 69%; background: var(--lavender); animation-delay: .16s; border-radius: 50%; width: 9px; height: 9px; }
.confetti i:nth-child(10) { left: 77%; background: var(--blue);     animation-delay: .52s; }
.confetti i:nth-child(11) { left: 85%; background: var(--primary);  animation-delay: .26s; }
.confetti i:nth-child(12) { left: 92%; background: var(--green);    animation-delay: .62s; }
.confetti i:nth-child(13) { left: 9%;  background: var(--blue);     animation-delay: .70s; border-radius: 50%; width: 7px; height: 7px; }
.confetti i:nth-child(14) { left: 65%; background: var(--yellow);   animation-delay: .76s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-footer {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  padding-block: var(--sp-5);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.dash-footer p { max-width: 70ch; }

/* ==========================================================================
   16. POSTER MOCKUPS — original CSS artwork, no external images
   Each poster is a container; children size with cqw so the identical markup
   scales perfectly inside a small card or a large modal.
   ========================================================================== */

.poster {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  font-family: inherit;
  user-select: none;
}

/* ---------- Poster A — bold, energetic, festive red --------------------- */
.poster-a {
  background: radial-gradient(circle at 78% 12%, #4a90b8 0%, #2f6d92 45%, #1d4863 100%);
  color: #f4fbff;
  display: flex;
  flex-direction: column;
  padding: 7cqw;
  text-align: center;
}
.poster-a__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  font-size: 3cqw;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .9;
}
.poster-a__brand i {
  width: 4cqw; height: 4cqw;
  border-radius: 1cqw;
  background: #d9ecbb;
  display: inline-block;
}
.poster-a__kicker {
  margin: 5cqw 0 1cqw;
  font-size: 4.4cqw;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #d9ecbb;
}
.poster-a__title {
  margin: 0;
  font-size: 15cqw;
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.03em;
  text-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .28);
}
.poster-a__rule {
  width: 26cqw; height: .9cqw;
  margin: 3.5cqw auto;
  border-radius: 1cqw;
  background: linear-gradient(90deg, #d9ecbb, #ffffff);
}

/* Price burst */
.poster-a__burst {
  position: absolute;
  top: 20cqw; right: 5cqw;
  width: 25cqw; height: 25cqw;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #d9ecbb;
  color: #1d4863;
  box-shadow: 0 1.5cqw 3cqw rgba(0, 0, 0, .3);
  transform: rotate(-11deg);
  text-align: center;
}
.poster-a__burst b { display: block; font-size: 9cqw; font-weight: 900; line-height: 1; }
.poster-a__burst small { font-size: 2.6cqw; font-weight: 800; letter-spacing: .16em; }

/* Generic food illustration built from plain divs */
.poster-a__art {
  position: relative;
  height: 34cqw;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3cqw;
}
.burger { width: 26cqw; display: grid; gap: .7cqw; }
.burger i { display: block; border-radius: 1.2cqw; }
.burger .bun-top { height: 7cqw; border-radius: 13cqw 13cqw 1.5cqw 1.5cqw; background: linear-gradient(180deg, #f0b464, #d99340); }
.burger .lettuce { height: 2.4cqw; background: #9ecb6d; border-radius: 2cqw; }
.burger .patty  { height: 4cqw; background: #7b4a2d; }
.burger .cheese { height: 2cqw; background: #f0cf7a; }
.burger .bun-bot { height: 5cqw; border-radius: 1.5cqw 1.5cqw 5cqw 5cqw; background: linear-gradient(180deg, #dda04c, #c07f34); }

.fries {
  position: relative;
  width: 16cqw; height: 22cqw;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fries .sticks { display: flex; gap: .8cqw; align-items: flex-end; position: absolute; bottom: 9cqw; }
.fries .sticks i { width: 2cqw; background: #f2d488; border-radius: .6cqw .6cqw 0 0; display: block; }
.fries .sticks i:nth-child(1) { height: 7cqw; }
.fries .sticks i:nth-child(2) { height: 10cqw; }
.fries .sticks i:nth-child(3) { height: 8cqw; }
.fries .sticks i:nth-child(4) { height: 11cqw; }
.fries .box {
  width: 100%; height: 12cqw;
  background: linear-gradient(180deg, #5ba0c6, #2f6d92);
  clip-path: polygon(12% 0, 88% 0, 76% 100%, 24% 100%);
  border-radius: 1cqw;
}

.cup {
  width: 13cqw; height: 24cqw;
  display: flex; flex-direction: column; align-items: center;
}
.cup .lid { width: 100%; height: 3cqw; border-radius: 1cqw; background: #f4f0ea; }
.cup .straw { position: absolute; width: 1.4cqw; height: 7cqw; background: #f4f0ea; transform: translateY(-6cqw) rotate(12deg); border-radius: 1cqw; }
.cup .body {
  width: 100%; flex: 1;
  margin-top: .6cqw;
  background: linear-gradient(180deg, #fdf6ec, #e6d9c6);
  clip-path: polygon(4% 0, 96% 0, 84% 100%, 16% 100%);
  border-radius: .8cqw;
}

.poster-a__footer {
  margin-top: 3cqw;
  padding-top: 2.5cqw;
  border-top: .4cqw dashed rgba(255, 255, 255, .35);
  font-size: 2.4cqw;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .88;
}

/* Falling snow specks (decorative) */
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i {
  position: absolute;
  width: 1.4cqw; height: 1.4cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
}
.snow i:nth-child(1) { top: 8%;  left: 12%; }
.snow i:nth-child(2) { top: 18%; left: 34%; width: 2.2cqw; height: 2.2cqw; }
.snow i:nth-child(3) { top: 30%; left: 8%;  opacity: .6; }
.snow i:nth-child(4) { top: 46%; left: 88%; width: 2cqw; height: 2cqw; }
.snow i:nth-child(5) { top: 58%; left: 20%; opacity: .5; }
.snow i:nth-child(6) { top: 68%; left: 72%; width: 1.8cqw; height: 1.8cqw; }
.snow i:nth-child(7) { top: 12%; left: 66%; opacity: .55; }
.snow i:nth-child(8) { top: 82%; left: 42%; opacity: .45; }

/* ---------- Poster B — clean, modern, elegant --------------------------- */
.poster-b {
  background: linear-gradient(170deg, #fbfbf6 0%, #f0f4e9 58%, #e4ebda 100%);
  color: #2a3230;
  display: flex;
  flex-direction: column;
  padding: 7cqw;
}
.poster-b__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 2.6cqw;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8a9384;
}
.poster-b__brand i {
  width: 3.4cqw; height: 3.4cqw;
  border-radius: 50%;
  background: #6f9c3f;
  display: inline-block;
}

/* Minimal geometric tree */
.poster-b__tree {
  position: relative;
  width: 27cqw; height: 27cqw;
  margin: 5cqw auto 3.5cqw;
  display: grid;
  place-items: center;
}
.poster-b__tree .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: .7cqw solid #d6dfc8;
}
.poster-b__tree .tri {
  position: absolute;
  width: 0; height: 0;
  border-left: 6cqw solid transparent;
  border-right: 6cqw solid transparent;
  border-bottom: 8cqw solid #6f9c3f;
}
/* Children order: ring, star, tri, tri, tri, trunk — nth-child keeps the
   three triangles correctly stacked (all children are <span> elements). */
.poster-b__tree .tri:nth-child(3) { top: 4cqw; }
.poster-b__tree .tri:nth-child(4) { top: 9.5cqw; border-left-width: 8cqw; border-right-width: 8cqw; border-bottom-color: #7dab4c; }
.poster-b__tree .tri:nth-child(5) { top: 15cqw; border-left-width: 10cqw; border-right-width: 10cqw; border-bottom-color: #8cba5c; }
.poster-b__tree .trunk {
  position: absolute;
  bottom: 3cqw;
  width: 2.4cqw; height: 4cqw;
  border-radius: .6cqw;
  background: #9a7550;
}
.poster-b__tree .star {
  position: absolute;
  top: 2.4cqw;
  width: 3cqw; height: 3cqw;
  background: #3b7a9e;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.poster-b__kicker {
  margin: 0;
  font-size: 3.2cqw;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #557a30;
  text-align: center;
}
.poster-b__title {
  margin: 2.2cqw 0 0;
  font-size: 9.6cqw;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-align: center;
}
.poster-b__title b { display: block; font-weight: 800; }
.poster-b__rule { width: 12cqw; height: .5cqw; margin: 3.2cqw auto; background: #3b7a9e; }
.poster-b__body {
  margin: 0 auto;
  max-width: 74%;
  font-size: 3cqw;
  line-height: 1.55;
  text-align: center;
  color: #66705f;
}

.poster-b__offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  margin-top: auto;
  padding: 3.2cqw 2cqw;
  border-radius: 2cqw;
  background: #3b7a9e;
  color: #f6fbfd;
}
.poster-b__offer b { font-size: 6.5cqw; font-weight: 800; line-height: 1; }
.poster-b__offer span { font-size: 2.5cqw; letter-spacing: .16em; text-transform: uppercase; text-align: left; line-height: 1.35; }

.poster-b__footer {
  margin-top: 3cqw;
  font-size: 2.3cqw;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: #98a08e;
}

/* Corner accents */
.poster-b__corner {
  position: absolute;
  width: 9cqw; height: 9cqw;
  border: .6cqw solid #3b7a9e;
  opacity: .55;
}
.poster-b__corner--tl { top: 3cqw; left: 3cqw; border-right: 0; border-bottom: 0; }
.poster-b__corner--br { bottom: 3cqw; right: 3cqw; border-left: 0; border-top: 0; }

/* ==========================================================================
   17. MODAL
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(.5rem, 3vw, 2rem);
  background: rgba(16, 14, 22, .62);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease), visibility 200ms var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
  width: 100%;
  max-width: 520px;
  max-height: 94svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  /* Zooms out of the element that opened it — JS writes --from-* from the
     opener's bounding box. Defaults give a plain scale-in. */
  transform: translate3d(var(--from-x, 0px), var(--from-y, 14px), 0) scale(var(--from-s, .96));
  transition: transform 320ms cubic-bezier(.22, .9, .28, 1);
  overflow: hidden;
}
.modal.is-open .modal__box { transform: none; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal__head h2 { margin: 0; font-size: 1.05rem; }
.modal__head p { margin: 0; font-size: .8rem; color: var(--text-muted); }

.modal__body {
  padding: var(--sp-5);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal__body .poster { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ==========================================================================
   18. TOASTS
   ========================================================================== */

.toasts {
  position: fixed;
  z-index: 120;
  left: 1rem; right: 1rem; bottom: 1rem;   /* mobile: bottom, full width w/ margin */
  display: flex;
  flex-direction: column-reverse;
  gap: .6rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  pointer-events: auto;
  animation: toast-in 260ms var(--ease);
}
.toast.is-leaving { animation: toast-out 220ms var(--ease) forwards; }
.toast__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.toast__icon svg { width: 20px; height: 20px; }
.toast__msg { flex: 1; font-size: .89rem; font-weight: 600; line-height: 1.45; }
.toast__close {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}
.toast__close:hover { background: var(--surface-3); color: var(--text); }
.toast__close svg { width: 14px; height: 14px; }

.toast--success { border-left-color: var(--green); }
.toast--success .toast__icon { color: var(--green); }
.toast--warning { border-left-color: var(--yellow); }
.toast--warning .toast__icon { color: var(--yellow); }
.toast--error   { border-left-color: var(--primary); }
.toast--error .toast__icon { color: var(--primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(.97); }
}

/* ==========================================================================
   19. UTILITIES & ACCESSIBILITY
   ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard users get a real skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: .65rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 0; color: var(--on-primary); }

[hidden] { display: none !important; }

/* Scroll-in reveal (progressive enhancement — visible by default if no JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   20. RESPONSIVE BREAKPOINTS (mobile-first)
   576px  large phone / small tablet
   768px  tablet
   992px  desktop
   1200px large desktop
   ========================================================================== */

@media (min-width: 576px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .hero__cta .btn { flex: 1 1 auto; min-width: 180px; }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--benefits { grid-template-columns: repeat(2, 1fr); }
  /* .steps stays a single vertical timeline here — a 2-column split would
     break the sense of sequence. It goes horizontal at 992px instead. */
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); gap: 0 var(--sp-4); }
  /* auto-fit collapses the five details onto one row once there is room */
  .campaign__meta { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
  .submit-row { flex-direction: row; align-items: center; }
  .toasts { left: auto; right: 1rem; width: min(380px, calc(100vw - 2rem)); }
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }

  .nav__links { display: flex; }
  .nav__login { display: inline-flex; }
  /* scoped to the landing header — the dashboard keeps its hamburger
     until the sidebar appears at 992px */
  .site-header .hamburger { display: none; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .poster-card__actions { grid-template-columns: 1fr 1fr; }
  .poster-card__actions .pick { grid-column: 1 / -1; order: -1; }

  .dash-header__inner { flex-wrap: nowrap; }
  .dash-header__who { flex: 1 1 auto; order: 0; }

  .modal__box { max-width: 560px; }

  /* Toasts move to the top-right corner on larger screens */
  .toasts {
    top: calc(var(--header-h) + 1rem);
    bottom: auto;
    right: 1.25rem;
    left: auto;
    flex-direction: column;
    width: min(400px, calc(100vw - 2.5rem));
  }
}

@media (min-width: 992px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .hero__cta .btn { flex: 0 0 auto; }
  /* Services stay 2-up even on wide screens — the horizontal cards need the
     width, and it keeps them visually distinct from the 4-up steps below. */
  .grid--benefits { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1.15fr .85fr; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }

  /* Sidebar replaces the drawer from here up */
  .dash-layout { grid-template-columns: 252px 1fr; }
  .dash-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding: var(--sp-4);
  }
  .dash-nav__role { display: flex; }
  .dash-header .hamburger { display: none; }

  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth__aside { display: grid; }

  .modal__box { max-width: 620px; }
}

@media (min-width: 1200px) {
  .collage { max-width: 520px; }
}

/* Large phones in landscape / short viewports — trim vertical padding */
@media (max-height: 560px) and (min-width: 768px) {
  .auth__panel { padding-block: var(--sp-5); }
}

/* ==========================================================================
   21. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .collage__item { animation: none; }
}

/* ==========================================================================
   22. PRINT — keep the demo presentable if a client prints a page
   ========================================================================== */

@media print {
  .site-header, .dash-header, .toasts, .mobile-menu, .menu-backdrop,
  .modal, .icon-btn, .hero__cta, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
