/* ============================================================
   ShowroomShot — Shared Design System
   Brand: Reshot.co.uk / ShowroomShot
   Palette: Black · White · Vivid Orange (#F97316)
   Font: Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Palette */
  --black:        #0A0A0A;
  --black-soft:   #111111;
  --black-muted:  #1A1A1A;
  --black-border: #2A2A2A;
  --grey-700:     #3D3D3D;
  --grey-500:     #666666;
  --grey-300:     #999999;
  --grey-100:     #E8E8E8;
  --grey-50:      #F4F4F4;
  --white:        #FFFFFF;

  --lime:         #F97316;
  --lime-hover:   #EA580C;
  --lime-muted:   rgba(249,115,22,0.10);
  --lime-border:  rgba(249,115,22,0.28);

  --red:          #FF4444;
  --red-muted:    rgba(255,68,68,0.12);
  --amber:        #FFAA00;
  --amber-muted:  rgba(255,170,0,0.12);

  /* Typography */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Menlo', 'Monaco', monospace;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.18);
  --shadow-lime: 0 0 24px rgba(170,255,0,0.25);

  /* Transitions */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.2s var(--ease);

  /* Layout */
  --container:  1160px;
  --nav-height: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-lg {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.display-md {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-lg { font-size: 18px; line-height: 1.6; }
.text-md { font-size: 15px; line-height: 1.6; }
.text-sm { font-size: 13px; line-height: 1.5; }
.text-xs { font-size: 11px; line-height: 1.4; letter-spacing: 0.02em; }

.text-muted  { color: var(--grey-500); }
.text-light  { color: var(--grey-300); }
.text-lime   { color: var(--lime); }
.text-white  { color: var(--white); }

.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }

.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* Highlight — lime underline accent */
.highlight {
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--lime);
  border-radius: 2px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Primary — Black on Lime (reads well on white pages) */
.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-primary:hover:not(:disabled) {
  background: var(--grey-700);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Primary buttons on dark CTA bands invert to white so they're not
   black-on-black. Applies across all pages via these band classes. */
.features-cta .btn-primary,
.hiw-cta .btn-primary,
.about-cta .btn-primary,
.faq-cta-band .btn-primary {
  background: var(--white);
  color: var(--black);
}
.features-cta .btn-primary:hover:not(:disabled),
.hiw-cta .btn-primary:hover:not(:disabled),
.about-cta .btn-primary:hover:not(:disabled),
.faq-cta-band .btn-primary:hover:not(:disabled) {
  background: rgba(255,255,255,0.88);
}

/* Primary Lime — for accented CTAs */
.btn-lime {
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(122,224,0,0.25);
}
.btn-lime:hover:not(:disabled) {
  background: var(--lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(122,224,0,0.35);
}
.btn-lime:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary — White border */
.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black-border);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--black);
  background: var(--grey-50);
}

/* Ghost on light */
.btn-ghost {
  background: transparent;
  color: var(--grey-500);
  border: 1.5px solid var(--grey-100);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--grey-300);
  color: var(--black);
  background: var(--grey-50);
}

/* Ghost on dark */
.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--grey-700);
}
.btn-ghost-dark:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}

/* Danger */
.btn-danger {
  background: var(--red-muted);
  color: var(--red);
  border: 1.5px solid rgba(255,68,68,0.2);
}
.btn-danger:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
}

/* Sizes */
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-xl { padding: 18px 36px; font-size: 17px; border-radius: var(--radius-lg); }

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* 3-column grid: logo | centered links | CTA — matches ReShot layout */
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}

.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Real logo image — footer (dark bg) */
.footer-brand-logo img {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Auth + app page logo image */
.auth-logo img,
.app-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-500);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
  background: var(--grey-50);
}

.nav-links a.active {
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: end;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-dark {
  background: var(--black-soft);
  border-color: var(--black-border);
  color: var(--white);
}

/* ── Form Elements ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.form-label .req {
  color: var(--lime);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--grey-100);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input::placeholder { color: var(--grey-300); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-muted);
}

.form-input.error { border-color: var(--red); }
.form-hint { font-size: 12px; color: var(--grey-500); }
.form-error { font-size: 12px; color: var(--red); font-weight: 500; }

/* ── Badge / Pill ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-lime    { background: var(--lime-muted); color: #4d7a00; border: 1px solid var(--lime-border); }
.badge-grey    { background: var(--grey-50); color: var(--grey-700); border: 1px solid var(--grey-100); }
.badge-red     { background: var(--red-muted); color: var(--red); border: 1px solid rgba(255,68,68,0.2); }
.badge-amber   { background: var(--amber-muted); color: #996600; border: 1px solid rgba(255,170,0,0.2); }

/* ── Credit Chip ────────────────────────────────────────────── */
.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.credit-chip .chip-count {
  color: var(--lime);
  font-weight: 800;
}

/* ── Upload Zone ────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--grey-100);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--grey-50);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--lime);
  background: var(--lime-muted);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  width: 48px;
  height: 48px;
  background: var(--black);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.upload-icon svg { color: var(--lime); }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress {
  width: 100%;
  height: 4px;
  background: var(--grey-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--lime);
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease);
}

/* ── Toast Notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideUp 0.3s var(--ease);
  max-width: 360px;
  border: 1px solid var(--black-border);
}

.toast.success { border-left: 3px solid var(--lime); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--grey-500); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(8px);
  transition: transform var(--transition);
}

.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--grey-100); }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--grey-100);
  margin: var(--space-6) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--grey-300);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-100);
}

/* ── Auth Layout ────────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-visual {
  background: var(--black);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-10);
}

/* ── Section Tag + Heading ──────────────────────────────────── */
.section-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: var(--space-5);
}

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--black-border);
  padding: 60px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.4px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand-logo .lm {
  width: 28px;
  height: 28px;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo .lm svg { width: 16px; height: 16px; }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 16px;
}

.footer-parent {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-parent a { color: var(--lime); text-decoration: none; }
.footer-parent a:hover { text-decoration: underline; }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--black-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright { font-size: 12.5px; color: rgba(255,255,255,0.25); }

.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-legal a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.5); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Section Utilities ──────────────────────────────────────── */
.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-lime {
  0%, 100% { box-shadow: 0 0 0 0 rgba(170,255,0,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(170,255,0,0); }
}

/* ── Skeleton Loading ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Mobile hamburger ───────────────────────────────────────── */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
  color: var(--black);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  margin-left: var(--space-2);
}
.nav-burger:hover { background: var(--grey-50); }
.nav-burger svg { display: block; }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 199;
  padding: 8px 20px 20px;
}
nav.mob-open ~ .nav-mobile-menu { display: block; }

.nav-mobile-links {
  list-style: none;
  margin-bottom: 14px;
}
.nav-mobile-links li a {
  display: block;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  border-radius: 9px;
  transition: background var(--transition);
}
.nav-mobile-links li a:hover,
.nav-mobile-links li a.active {
  background: var(--grey-50);
  font-weight: 500;
}

.nav-mobile-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile-btns a {
  display: block;
  text-align: center;
  padding: 11px 20px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Collapse to 2-col when links start squishing */
  .nav-inner {
    grid-template-columns: auto 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    justify-self: end;
  }
  /* Hide desktop CTA buttons; show burger */
  .nav-actions a.btn {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .nav-inner   { grid-template-columns: 1fr auto; }
  .nav-links   { display: none; }
  .container   { padding: 0 var(--space-4); }
}

/* ── Shared JS Utilities ────────────────────────────────────── */

/* Toast helper — add via JS: showToast(msg, type) */
/* Usage: document.dispatchEvent(new CustomEvent('toast', { detail: { msg, type } })) */
