/* ==========================================================================
   Scrub & Shine Santorini — Design System
   iOS-inspired · Electric Blue / White / Black · Light mode
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Electric blue ramp */
  --blue-50:  #EBF3FF;
  --blue-100: #D6E7FF;
  --blue-200: #ADCEFF;
  --blue-300: #7AAEFF;
  --blue-400: #3D8BFF;
  --blue:     #0066FF;   /* primary electric blue */
  --blue-600: #0052D6;
  --blue-700: #0041AB;
  --blue-800: #003080;
  --cyan:     #00A3FF;
  --cyan-soft:#4FC3FF;

  /* Neutrals (Apple-ish greys) */
  --black:    #000000;
  --ink:      #1D1D1F;
  --ink-2:    #3A3A3C;
  --grey:     #6E6E73;
  --grey-2:   #8E8E93;
  --grey-3:   #AEAEB2;
  --line:     #E5E5EA;
  --line-2:   #F0F0F3;
  --surface:  #F5F5F7;
  --surface-2:#FAFAFC;
  --white:    #FFFFFF;

  /* Semantic */
  --green:  #34C759;
  --amber:  #FF9F0A;
  --red:    #FF3B30;
  --purple: #AF52DE;
  --teal:   #30B0C7;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --fs-hero:  clamp(2.6rem, 7vw, 5rem);
  --fs-h1:    clamp(2.1rem, 5vw, 3.4rem);
  --fs-h2:    clamp(1.75rem, 3.6vw, 2.6rem);
  --fs-h3:    clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, 1.6vw, 1.28rem);
  --fs-body:  1rem;
  --fs-sm:    0.9rem;
  --fs-xs:    0.8rem;

  /* Radii — iOS continuous corners */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl:36px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(0,0,0,.04);
  --sh-sm: 0 2px 8px rgba(0,0,0,.05);
  --sh:    0 6px 24px rgba(0,0,0,.07);
  --sh-lg: 0 16px 48px rgba(0,0,0,.10);
  --sh-blue: 0 8px 28px rgba(0,102,255,.24);
  --sh-blue-lg: 0 16px 44px rgba(0,102,255,.30);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --dur: .28s;

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --nav-h: 68px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-600); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, h5 { line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--blue-800); }

/* ── Layout primitives ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-surface { background: var(--surface); }
.section-ink { background: var(--ink); color: var(--white); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.flex { display: flex; gap: 1rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }

/* ── Typography helpers ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue);
  padding: .38rem .85rem; border-radius: var(--r-pill);
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.title-hero { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.04em; }
.title-1 { font-size: var(--fs-h1); }
.title-2 { font-size: var(--fs-h2); }
.title-3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); color: var(--grey); line-height: 1.55; }
.muted { color: var(--grey); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.center { text-align: center; }
.accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic;
}
.balance { text-wrap: balance; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head .title-2 { margin: .85rem 0 .8rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem; border-radius: var(--r-pill);
  font-size: .97rem; font-weight: 600; letter-spacing: -0.01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  transition: transform .18s var(--spring), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  box-shadow: var(--sh-blue);
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-blue-lg); color: var(--btn-fg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--grey-3); box-shadow: var(--sh-sm); }

.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.20); }
.btn-dark:hover { --btn-bg: var(--black); }

.btn-white { --btn-bg: #fff; --btn-fg: var(--blue); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

.btn-soft { --btn-bg: var(--blue-50); --btn-fg: var(--blue); --btn-bd: var(--blue-100); box-shadow: none; }
.btn-soft:hover { --btn-bg: var(--blue-100); box-shadow: var(--sh-sm); }

.btn-danger { --btn-bg: var(--red); box-shadow: 0 8px 24px rgba(255,59,48,.28); }
.btn-success { --btn-bg: var(--green); box-shadow: 0 8px 24px rgba(52,199,89,.28); }

.btn-lg { padding: 1.08rem 2.1rem; font-size: 1.04rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .87rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .68rem; width: 2.6rem; height: 2.6rem; border-radius: var(--r-pill); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--blue-200); }
.card-flat { border: 0; background: var(--surface); }
.card-glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,.6);
}
.card-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff; border: 0; box-shadow: var(--sh-blue-lg);
}
.card-blue .muted, .card-blue .lead { color: rgba(255,255,255,.85); }
.card-pad-lg { padding: clamp(1.8rem, 4vw, 3rem); }

/* ── Badges & pills ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.4;
  background: var(--surface); color: var(--grey);
  border: 1px solid var(--line);
}
.badge-blue    { background: var(--blue-50);  color: var(--blue);   border-color: var(--blue-100); }
.badge-green   { background: #E8F9ED; color: #1D8A3D; border-color: #C9F0D5; }
.badge-amber   { background: #FFF4E0; color: #A66500; border-color: #FFE4B8; }
.badge-red     { background: #FFECEB; color: #C42B22; border-color: #FFD4D1; }
.badge-purple  { background: #F5EBFC; color: #7A2FA8; border-color: #E8D4F5; }
.badge-ink     { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green); opacity: .5; animation: ping 1.9s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.15rem; }
.label {
  display: block; font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink); margin-bottom: .45rem;
}
.label .req { color: var(--red); margin-left: 2px; }
.hint { font-size: var(--fs-xs); color: var(--grey-2); margin-top: .35rem; }

.input, .select, .textarea {
  width: 100%; padding: .88rem 1.05rem;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.45;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--grey-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50);
}
.input.is-error, .select.is-error, .textarea.is-error {
  border-color: var(--red); background: #FFF7F6;
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236E6E73' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.05rem center;
  padding-right: 2.6rem;
}
.error-text { font-size: var(--fs-xs); color: var(--red); margin-top: .35rem; font-weight: 500; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* iOS segmented control */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface); border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.segmented button {
  padding: .5rem 1.1rem; border-radius: 10px;
  font-size: .88rem; font-weight: 600; color: var(--grey);
  transition: all var(--dur) var(--ease);
}
.segmented button.is-active { background: var(--white); color: var(--ink); box-shadow: var(--sh-xs); }

/* iOS toggle */
.toggle { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track {
  width: 51px; height: 31px; border-radius: var(--r-pill);
  background: var(--line); position: relative; flex: none;
  transition: background-color var(--dur) var(--ease);
}
.toggle .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
  transition: transform var(--dur) var(--spring);
}
.toggle input:checked + .track { background: var(--blue); }
.toggle input:checked + .track::after { transform: translateX(20px); }

/* Choice cards (radio / checkbox styled as tappable tiles) */
.choice-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.choice {
  position: relative; display: flex; flex-direction: column; gap: .3rem;
  padding: 1.05rem 1.1rem; border-radius: var(--r);
  background: var(--surface); border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { background: var(--blue-50); }
.choice .choice-title { font-weight: 650; font-size: .95rem; }
.choice .choice-sub { font-size: var(--fs-xs); color: var(--grey); }
.choice .choice-icon { font-size: 1.5rem; line-height: 1; margin-bottom: .15rem; }
.choice:has(input:checked) {
  background: var(--white); border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-50), var(--sh-sm);
}
.choice:has(input:checked)::after {
  content: "✓"; position: absolute; top: .7rem; right: .8rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .7rem;
  display: grid; place-items: center; font-weight: 700;
}

/* Stepper (− value +) */
.stepper { display: inline-flex; align-items: center; gap: .1rem; background: var(--surface); border-radius: var(--r-pill); padding: 3px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; background: var(--white);
  font-size: 1.15rem; font-weight: 600; color: var(--blue);
  box-shadow: var(--sh-xs); display: grid; place-items: center;
  transition: transform .15s var(--spring);
}
.stepper button:active { transform: scale(.88); }
.stepper button:disabled { color: var(--grey-3); box-shadow: none; background: transparent; }
.stepper .stepper-value { min-width: 46px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Range slider */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: var(--r-pill); background: var(--line); outline: none; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); border: 1px solid var(--line);
  cursor: grab; transition: transform .15s var(--spring);
}
.range::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: grab; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: var(--fs-xs); padding: .5rem 0;
}
.topbar a { color: rgba(255,255,255,.72); }
.topbar a:hover { color: #fff; }
.topbar .flex-between { flex-wrap: wrap; gap: .5rem 1.5rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav.is-scrolled { box-shadow: var(--sh-sm); background: rgba(255,255,255,.94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 1rem; letter-spacing: -.04em;
  box-shadow: var(--sh-blue);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 750; font-size: .98rem; color: var(--ink); letter-spacing: -.02em; }
.brand-sub { font-size: .68rem; color: var(--grey-2); letter-spacing: .04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .82rem; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 550; color: var(--ink-2);
  transition: all var(--dur) var(--ease); white-space: nowrap;
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link.is-active { color: var(--blue); background: var(--blue-50); font-weight: 650; }

.nav-item { position: relative; }
.nav-item > .nav-link .chev { width: 9px; height: 9px; transition: transform var(--dur) var(--ease); }
.nav-item:hover > .nav-link .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 216px;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--dur) var(--ease);
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: .58rem .8rem; border-radius: 10px;
  font-size: .9rem; color: var(--ink-2); font-weight: 500;
}
.nav-dropdown a:hover { background: var(--blue-50); color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.lang-switch { display: flex; gap: 2px; padding: 3px; background: var(--surface); border-radius: var(--r-pill); }
.lang-switch a {
  padding: .32rem .68rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 650; color: var(--grey);
  text-transform: uppercase; letter-spacing: .03em;
}
.lang-switch a.is-active { background: var(--white); color: var(--ink); box-shadow: var(--sh-xs); }

.burger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); place-items: center; }
.burger span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--dur) var(--ease); }
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .34s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu > ul > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .25rem; font-size: 1.15rem; font-weight: 650; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu > ul > li > a.is-active { color: var(--blue); }
.mobile-menu .sub { padding-left: 1rem; }
.mobile-menu .sub a { display: block; padding: .68rem .25rem; font-size: .97rem; color: var(--grey); }
.mobile-menu .mobile-cta { margin-top: 1.75rem; display: grid; gap: .7rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  background:
    radial-gradient(900px 500px at 12% -5%, var(--blue-50) 0%, transparent 62%),
    radial-gradient(700px 420px at 92% 8%, #E6F6FF 0%, transparent 58%),
    var(--white);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 40%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 40%, #000 35%, transparent 78%);
  opacity: .55;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 880px; }
.hero .title-hero { margin: 1.1rem 0 1.15rem; }
.hero .lead { max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.hero-stat .stat-value {
  font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat .stat-label { font-size: var(--fs-xs); color: var(--grey); margin-top: .15rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 1.9rem; }
.trust-item { display: inline-flex; align-items: center; gap: .42rem; font-size: var(--fs-sm); color: var(--grey); font-weight: 500; }
.trust-item .tick {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; font-size: .65rem; font-weight: 800;
}

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  background: radial-gradient(700px 380px at 15% 0%, var(--blue-50) 0%, transparent 65%), var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}
.page-hero .title-1 { margin: .8rem 0 .7rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); color: var(--grey-2); }
.breadcrumbs a { color: var(--grey); }
.breadcrumbs a:hover { color: var(--blue); }

/* ── Service cards ───────────────────────────────────────────────────────── */
.service-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem 1.5rem 1.4rem;
  transition: all var(--dur) var(--ease); overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--blue-100); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--blue-50); display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: .55rem;
  transition: transform .35s var(--spring);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: 1.08rem; font-weight: 700; }
.service-card p { font-size: var(--fs-sm); color: var(--grey); flex: 1; }
.service-price {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line-2);
  font-size: .92rem; font-weight: 700; color: var(--blue);
}
.service-price .arrow { transition: transform var(--dur) var(--ease); font-size: 1rem; }
.service-card:hover .arrow { transform: translateX(4px); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-chip {
  padding: .5rem 1.05rem; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600; color: var(--grey);
  background: var(--surface); border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { background: var(--blue-50); color: var(--blue); }
.filter-chip.is-active { background: var(--ink); color: #fff; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 3.5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--sh-blue);
}
.step h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.step p { font-size: var(--fs-sm); color: var(--grey); }

/* ── Feature list ────────────────────────────────────────────────────────── */
.feature { display: flex; gap: 1rem; }
.feature-icon {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-sm);
  background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; font-size: 1.25rem;
}
.feature h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.feature p { font-size: var(--fs-sm); color: var(--grey); }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonial { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.stars { color: var(--amber); font-size: .95rem; letter-spacing: .12em; }
.testimonial blockquote { font-size: 1rem; line-height: 1.65; color: var(--ink-2); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .84rem; letter-spacing: -.02em;
}
.testimonial-author .name { font-weight: 650; font-size: .93rem; }
.testimonial-author .role { font-size: var(--fs-xs); color: var(--grey); }

/* ── Accordion (FAQ) ─────────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.accordion-item + .accordion-item { border-top: 1px solid var(--line-2); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; text-align: left;
  font-size: 1rem; font-weight: 620; color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}
.accordion-trigger:hover { background: var(--surface-2); }
.accordion-trigger .icon {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--surface); color: var(--blue);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 500;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.accordion-item.is-open .accordion-trigger { color: var(--blue); }
.accordion-item.is-open .icon { transform: rotate(45deg); background: var(--blue-50); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p { padding: 0 1.4rem 1.35rem; font-size: .95rem; color: var(--grey); line-height: 1.65; }

/* ── Alerts / flash ──────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .95rem 1.15rem; border-radius: var(--r);
  font-size: .93rem; font-weight: 500; margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-icon { flex: none; font-size: 1.05rem; line-height: 1.4; }
.alert-success { background: #E8F9ED; color: #146B30; border-color: #C9F0D5; }
.alert-error   { background: #FFECEB; color: #A81E17; border-color: #FFD4D1; }
.alert-warning { background: #FFF4E0; color: #8A5400; border-color: #FFE4B8; }
.alert-info    { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }

.flash-stack { position: fixed; top: calc(var(--nav-h) + 14px); right: var(--gutter); z-index: 200; width: min(370px, calc(100vw - 2 * var(--gutter))); }
.flash-stack .alert { box-shadow: var(--sh-lg); animation: slideIn .38s var(--spring); }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; padding: .85rem 1.05rem; white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: .045em;
  text-transform: uppercase; color: var(--grey);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.table td { padding: .9rem 1.05rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .18s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-variant-numeric: tabular-nums; text-align: right; }
.table .code { font-family: var(--font-mono); font-size: .84rem; font-weight: 600; color: var(--blue); }

/* ── Price breakdown ─────────────────────────────────────────────────────── */
.breakdown { display: flex; flex-direction: column; gap: 0; }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
  font-size: .93rem;
}
.breakdown-row .lbl { color: var(--grey); }
.breakdown-row .amt { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown-row.discount .amt { color: var(--green); }
.breakdown-row.express .amt { color: var(--amber); }
.breakdown-row.vat .lbl, .breakdown-row.vat .amt { color: var(--grey-2); font-size: .87rem; }
.breakdown-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: 1rem; padding-top: 1.1rem; border-top: 2px solid var(--ink);
}
.breakdown-total .lbl { font-size: 1rem; font-weight: 700; }
.breakdown-total .amt {
  font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Stepper progress (booking wizard) ───────────────────────────────────── */
.wizard-progress { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.wizard-step { display: flex; align-items: center; gap: .5rem; flex: 1; }
.wizard-step .dot {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--surface); color: var(--grey-2);
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
  transition: all var(--dur) var(--ease);
}
.wizard-step .bar { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background-color var(--dur) var(--ease); }
.wizard-step:last-child .bar { display: none; }
.wizard-step .lbl { font-size: var(--fs-xs); font-weight: 600; color: var(--grey-2); white-space: nowrap; }
.wizard-step.is-active .dot { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.wizard-step.is-active .lbl { color: var(--blue); }
.wizard-step.is-done .dot { background: var(--green); color: #fff; }
.wizard-step.is-done .bar { background: var(--green); }
@media (max-width: 640px) { .wizard-step .lbl { display: none; } }

.wizard-panel { display: none; animation: fadeUp .34s var(--ease); }
.wizard-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Sticky summary rail ─────────────────────────────────────────────────── */
.calc-layout { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .calc-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.calc-summary { position: sticky; top: calc(var(--nav-h) + 20px); }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff; border-radius: var(--r-2xl);
  padding: clamp(2.25rem, 5vw, 4rem);
  box-shadow: var(--sh-blue-lg);
}
.cta-band::before {
  content: ""; position: absolute; top: -50%; right: -12%;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.cta-band > * { position: relative; }
.cta-band .title-2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer a { color: rgba(255,255,255,.62); }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: .88rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.05rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: .92rem; margin-top: 1rem; line-height: 1.65; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255,255,255,.45); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between; font-size: var(--fs-xs);
}
.social-row { display: flex; gap: .55rem; margin-top: 1.4rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.07); display: grid; place-items: center;
  transition: all var(--dur) var(--ease);
}
.social-row a:hover { background: var(--blue); transform: translateY(-2px); }

/* ── Floating action buttons ─────────────────────────────────────────────── */
.fab-stack { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 90; display: grid; gap: .6rem; }
.fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem;
  background: var(--white); color: var(--blue);
  box-shadow: var(--sh-lg); border: 1px solid var(--line);
  transition: transform .2s var(--spring), box-shadow var(--dur) var(--ease);
}
.fab:hover { transform: scale(1.08) translateY(-2px); }
.fab-whatsapp { background: #25D366; color: #fff; border-color: transparent; }
.fab-call { background: var(--blue); color: #fff; border-color: transparent; }

/* ── Admin shell ─────────────────────────────────────────────────────────── */
.admin-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: var(--surface); }
.admin-side {
  background: var(--white); border-right: 1px solid var(--line);
  padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.25rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-nav { display: grid; gap: .18rem; }
.admin-nav-group { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--grey-3); padding: .9rem .8rem .35rem; }
.admin-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem .8rem; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 550; color: var(--ink-2);
  transition: all var(--dur) var(--ease);
}
.admin-nav a:hover { background: var(--surface); }
.admin-nav a.is-active { background: var(--blue-50); color: var(--blue); font-weight: 650; }
.admin-nav .ico { font-size: 1.05rem; width: 20px; text-align: center; }
.admin-nav .count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: var(--r-pill); background: var(--red); color: #fff; }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: rgba(255,255,255,.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line); padding: .9rem clamp(1rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; z-index: 50;
}
.admin-body { padding: clamp(1.25rem, 3vw, 2rem); flex: 1; }
.admin-title { font-size: 1.35rem; font-weight: 750; letter-spacing: -.03em; }

.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem; }
.stat-card .stat-label { font-size: var(--fs-xs); font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-num { font-size: 2.05rem; font-weight: 800; letter-spacing: -.045em; margin-top: .4rem; font-variant-numeric: tabular-nums; }
.stat-card .stat-delta { font-size: var(--fs-xs); font-weight: 600; margin-top: .3rem; }
.stat-card .stat-delta.up { color: var(--green); }
.stat-card .stat-delta.down { color: var(--red); }
.stat-card.accent-blue { border-color: var(--blue-200); background: linear-gradient(160deg, var(--blue-50), var(--white)); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 120;
    transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--sh-lg);
  }
  .admin-side.is-open { transform: translateX(0); }
}

/* ── B2B portal ──────────────────────────────────────────────────────────── */
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line-2); }
.qty-input { width: 74px; text-align: center; padding: .55rem; border-radius: var(--r-xs); border: 1.5px solid var(--line); background: var(--white); font-variant-numeric: tabular-nums; }
.qty-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }

/* ── Auth screens ────────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter);
  background: radial-gradient(800px 500px at 20% 0%, var(--blue-50), transparent 60%), var(--surface-2); }
.auth-card { width: min(430px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--sh-lg); }

/* ── Prose (blog / pages) ────────────────────────────────────────────────── */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); max-width: 72ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; color: var(--ink); }
.prose h3 { font-size: 1.24rem; margin-top: 2rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose blockquote {
  border-left: 3px solid var(--blue); padding: .3rem 0 .3rem 1.2rem;
  color: var(--grey); font-style: italic;
}
.prose img { border-radius: var(--r); margin-block: 1.75rem; }
.prose code { background: var(--surface); padding: .15em .4em; border-radius: 6px; font-family: var(--font-mono); font-size: .88em; }
.prose strong { color: var(--ink); font-weight: 650; }

/* ── Blog cards ──────────────────────────────────────────────────────────── */
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); border-radius: var(--r); margin-bottom: 1.05rem; display: grid; place-items: center; font-size: 2.4rem; }
.post-card h3 { font-size: 1.12rem; margin-bottom: .5rem; line-height: 1.32; }
.post-card p { font-size: var(--fs-sm); color: var(--grey); flex: 1; }
.post-meta { display: flex; gap: .75rem; align-items: center; font-size: var(--fs-xs); color: var(--grey-2); margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }

/* ── Empty states ────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.empty .emoji { font-size: 2.8rem; margin-bottom: .9rem; }
.empty h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.empty p { color: var(--grey); font-size: .95rem; max-width: 420px; margin-inline: auto; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2.25rem; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding-inline: .6rem; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: .9rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2);
  transition: all var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ── Skeleton / spinner ──────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--line-2) 25%, var(--surface) 50%, var(--line-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-xs); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.32); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-blue { border-color: var(--blue-100); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .62s var(--ease), transform .62s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-5{margin-top:3rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.w-full{width:100%}.hidden{display:none!important}.relative{position:relative}
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.text-blue{color:var(--blue)}.text-green{color:var(--green)}.text-red{color:var(--red)}.text-amber{color:var(--amber)}
.fw-6{font-weight:600}.fw-7{font-weight:700}.tabular{font-variant-numeric:tabular-nums}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 1.5rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-actions .btn:not(.btn-icon) { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .topbar { display: none; }
  .btn { padding: .85rem 1.35rem; }
  .hero-cta .btn { flex: 1; }
  .lang-switch { display: none; }
}

/* ── Print ───────────────────────────────────────────────────────────────── */
@media print {
  .nav, .topbar, .footer, .fab-stack, .flash-stack, .btn, .admin-side { display: none !important; }
  body { background: #fff; }
  .card, .table-wrap { border-color: #ccc; box-shadow: none; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Crew app — mobile-first, thumb-reachable, works with wet hands
   ══════════════════════════════════════════════════════════════════════════ */
.crew-body { background: var(--surface-2); padding-bottom: 96px; }

.crew-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding: .8rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.crew-head .crew-title { font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.crew-head .crew-sub { font-size: var(--fs-xs); color: var(--grey); }

.crew-wrap { padding: 1rem var(--gutter) 2rem; max-width: 720px; margin-inline: auto; }

/* Job card in the run sheet */
.job-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.1rem 1.15rem; margin-bottom: .85rem;
  transition: transform .18s var(--spring), box-shadow var(--dur) var(--ease);
}
.job-card:active { transform: scale(.985); }
.job-card:hover { box-shadow: var(--sh); }
.job-card.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.job-card.is-done { opacity: .62; }
.job-slot {
  font-size: 1.05rem; font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.job-name { font-weight: 650; font-size: 1rem; margin-top: .1rem; }
.job-meta { font-size: var(--fs-sm); color: var(--grey); margin-top: .15rem; }

/* Progress bar */
.progress-track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: .8rem; }
.progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .45s var(--ease);
}
.progress-fill.is-complete { background: linear-gradient(90deg, var(--green), #6FE08C); }

/* Big tappable checklist rows */
.check-row {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1rem .25rem; border-bottom: 1px solid var(--line-2);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.check-row:last-child { border-bottom: 0; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 30px; height: 30px; flex: none; border-radius: 9px; margin-top: 1px;
  border: 2px solid var(--line); background: var(--white);
  display: grid; place-items: center; color: transparent;
  font-size: .95rem; font-weight: 800;
  transition: all .2s var(--spring);
}
.check-row:active .check-box { transform: scale(.9); }
.check-row input:checked ~ .check-box {
  background: var(--green); border-color: var(--green); color: #fff;
}
.check-label { flex: 1; font-size: .97rem; line-height: 1.45; }
.check-row input:checked ~ .check-label { color: var(--grey-2); text-decoration: line-through; }
.check-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }

.check-area-head {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--grey-2);
  padding: 1.1rem .25rem .3rem;
}

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .55rem; }
.photo-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .photo-phase {
  position: absolute; left: 5px; bottom: 5px;
  font-size: .6rem; font-weight: 700; padding: .12rem .4rem;
  border-radius: var(--r-pill); background: rgba(0,0,0,.62); color: #fff;
  text-transform: uppercase; letter-spacing: .04em;
}
.photo-tile .photo-del {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; font-size: .8rem; line-height: 1;
}
.photo-add {
  aspect-ratio: 1; border-radius: var(--r-sm);
  border: 2px dashed var(--blue-200); background: var(--blue-50);
  display: grid; place-items: center; gap: .2rem;
  color: var(--blue); font-size: 1.6rem; cursor: pointer;
}
.photo-add span { font-size: .62rem; font-weight: 700; }

/* Sticky action bar at the bottom of a job */
.crew-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  display: flex; gap: .6rem; max-width: 720px; margin-inline: auto;
}
.crew-actions .btn { flex: 1; padding-block: 1rem; font-size: 1rem; }

/* Timeline */
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding: .45rem 0; font-size: var(--fs-sm); }
.timeline-item::before {
  content: ""; position: absolute; left: -1.4rem; top: .78rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-100);
}
.timeline-item.is-out::before { background: var(--green); box-shadow: 0 0 0 2px #C9F0D5; }
.timeline-item.is-issue::before { background: var(--red); box-shadow: 0 0 0 2px #FFD4D1; }

/* Elapsed timer */
.timer {
  font-variant-numeric: tabular-nums; font-weight: 800;
  font-size: 1.6rem; letter-spacing: -.03em; color: var(--blue);
}

@media (min-width: 720px) {
  .crew-actions { border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
