@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-primary: #f3f7fb;
  /* Warm Platina/Stone background */
  --bg-secondary: #edece8;
  /* Slightly darker stone */
  --bg-tertiary: #e3e1db;
  /* Border / Divider tone */
  --text-primary: #181a1c;
  /* Deep Graphite/Charcoal instead of green */
  --text-secondary: #595b5e;
  /* Charcoal secondary */
  --text-muted: #8c8e91;
  /* Charcoal muted */
  --accent-brand: #9e8e7d;
  /* Sandstone/Brass studio accent */
  --accent-brand-light: #f1eee9;

  --btn-primary-bg: #1b354c;
  --btn-primary-text: #ffffff;

  /* Product 1: Daily Journal (Organic warm green) */
  --journal-green: #3d5248;
  --journal-green-light: #e9ede9;
  --journal-gold: #bc9c74;
  --journal-gold-light: #f8f5f0;

  /* Product 2: Mo Money (Sleek light-mode dashboard: Off-white, Blue, Red) */
  --money-bg: #fcfbfa;
  /* Soft off-white */
  --money-blue: #1b5299;
  /* Trustful Financial Blue */
  --money-blue-light: #eef3fc;
  --money-red: #d9383a;
  /* Clean Action Red */
  --money-red-light: #fdeeee;

  /* Product 3: Portable Camera (Analog sepia/amber and slate) */
  --camera-amber: #c27d38;
  --camera-amber-light: #faf0e6;
  --camera-slate: #2c2e33;
  --camera-rose: #bf7c72;
  --camera-rose-light: #fbf0ee;

  /* Aliases kept within the existing palette (used by mockups + legacy rules) */
  --accent-green: var(--journal-green);
  --accent-gold: var(--accent-brand);
  --accent-rose: var(--camera-rose);
  --ink: #101113;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;

  --shadow-sm: 0 2px 8px rgba(26, 27, 28, 0.03);
  --shadow-md: 0 8px 24px rgba(26, 27, 28, 0.05);
  --shadow-lg: 0 16px 48px rgba(26, 27, 28, 0.07);
  --shadow-device: 0 25px 60px -15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-device: 40px;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  /* Fluid typographic scale */
  --fs-hero: clamp(2.9rem, 1.1rem + 7.6vw, 7.2rem);
  --fs-display: clamp(3.2rem, 0.5rem + 13vw, 13rem);
  --fs-h2: clamp(2.1rem, 1.2rem + 3.2vw, 3.8rem);
  --fs-h3: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  --section-pad: clamp(5.5rem, 9vw, 11rem);

  scroll-behavior: smooth;
}

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

html {
  scroll-padding-top: 6rem;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
  height: 100vh;
}

::selection {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Layout utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

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

/* Eyebrow / kicker label — editorial mono detail */
.kicker,
.tagline,
.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 400;
  color: var(--accent-brand);
}

.kicker::before,
.tagline::before,
.about-tag::before {
  content: '';
  width: 1.8rem;
  height: 1px;
  background-color: var(--accent-brand);
  opacity: 0.6;
}

/* ============ GRAIN / NOISE OVERLAY ============ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, 2%); }
  80% { transform: translate(4%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.cursor-ready .cursor {
  opacity: 1;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.32s var(--ease), height 0.32s var(--ease),
    background-color 0.32s var(--ease), border-color 0.32s var(--ease);
  will-change: transform;
}

.cursor.is-hover .cursor-ring {
  width: 66px;
  height: 66px;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: transparent;
}

.cursor.is-down .cursor-ring {
  width: 30px;
  height: 30px;
}

body.cursor-ready {
  cursor: none;
}

body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready .btn,
body.cursor-ready [data-cursor] {
  cursor: none;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-brand), var(--btn-primary-bg));
  z-index: 9999;
  will-change: transform;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 1.1s var(--ease-out-expo);
}

.preloader.done {
  transform: translateY(-101%);
}

.preloader-row {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  overflow: hidden;
  padding: 0 2rem;
}

.preloader-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transform: translateY(110%);
  animation: pl-rise 0.9s var(--ease-out-expo) 0.1s forwards;
}

.preloader-count {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent-brand);
  font-weight: 400;
}

.preloader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--accent-brand);
}

@keyframes pl-rise {
  to { transform: translateY(0); }
}

/* ============ HEADER / NAVIGATION ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(243, 247, 251, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

header.scrolled {
  background-color: rgba(243, 247, 251, 0.82);
  border-bottom: 1px solid rgba(24, 26, 28, 0.06);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.5rem;
  transition: height 0.5s var(--ease);
}

header.scrolled .nav-container {
  height: 4.5rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.03em;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-brand);
  border-radius: 50%;
  animation: pulse-dot 3s infinite ease-in-out;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.8rem;
}

nav a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  overflow: hidden;
  display: inline-block;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

nav a:hover,
nav a.nav-active {
  color: var(--text-primary);
}

nav a:hover::after,
nav a.nav-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--btn-primary-bg);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.header-cta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.header-cta:hover {
  background-color: transparent;
  color: var(--btn-primary-bg);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1500;
  padding: 0.5rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-primary);
  margin-bottom: 6px;
  transition: var(--transition-fast);
}

.mobile-nav-toggle span:last-child {
  margin-bottom: 0;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 1.05rem 2.1rem;
  border-radius: 50px;
  transition: var(--transition-fast);
  cursor: pointer;
  gap: 0.6rem;
}

.btn svg {
  transition: transform 0.4s var(--ease);
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--btn-primary-bg);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover {
  background-color: rgba(26, 27, 28, 0.03);
  border-color: var(--text-primary);
}

/* Magnetic wrapper (JS translates inner) */
[data-magnetic] {
  display: inline-flex;
  will-change: transform;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 10rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, var(--accent-brand-light) 0%, transparent 42%),
    radial-gradient(circle at 8% 88%, var(--bg-secondary) 0%, transparent 45%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  will-change: transform;
}

.hero-orb.orb-1 {
  width: 38vw;
  height: 38vw;
  top: 6%;
  right: 4%;
  background: radial-gradient(circle, rgba(188, 156, 116, 0.22) 0%, transparent 70%);
  animation: float-glow 12s infinite alternate ease-in-out;
}

.hero-orb.orb-2 {
  width: 30vw;
  height: 30vw;
  bottom: 2%;
  left: -6%;
  background: radial-gradient(circle, rgba(61, 82, 72, 0.12) 0%, transparent 70%);
  animation: float-glow 16s infinite alternate-reverse ease-in-out;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.hero-meta .meta-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 2.2rem;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.title-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out-expo);
  transition-delay: calc(0.35s + var(--i, 0) * 0.12s);
}

body.loaded .title-inner {
  transform: translateY(0);
}

.gradient-text {
  background: linear-gradient(135deg, #1b354c 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif);
  font-weight: 600;
}

.hero-desc {
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.8rem;
  line-height: 1.7;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero load-in animation for non-title elements */
.hero [data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(0.55s + var(--i, 0) * 0.1s);
}

body.loaded .hero [data-anim] {
  opacity: 1;
  transform: none;
}

/* ============ PRODUCTS ============ */
.products-header {
  max-width: 760px;
  margin: 0 auto 7rem;
  text-align: center;
}

.products-header .tagline,
.products-header .kicker {
  margin-bottom: 1.6rem;
}

.products-header h2 {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
}

.product-showcase-container {
  display: flex;
  flex-direction: column;
  gap: clamp(7rem, 12vw, 13rem);
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
}

.product-row:nth-child(even) {
  direction: rtl;
}

.product-row:nth-child(even) .product-content,
.product-row:nth-child(even) .product-features {
  direction: ltr;
}

/* Giant ghost index number */
.product-index {
  position: absolute;
  top: -3.5rem;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(24, 26, 28, 0.1);
  z-index: 0;
  pointer-events: none;
  direction: ltr;
}

.product-row:nth-child(odd) .product-index {
  right: 0;
}

.product-row:nth-child(even) .product-index {
  left: 0;
}

.product-content {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 400;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
}

.product-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.badge-green {
  background-color: var(--journal-green-light);
  color: var(--journal-green);
}

.badge-blue {
  background-color: var(--money-blue-light);
  color: var(--money-blue);
}

.badge-amber {
  background-color: var(--camera-amber-light);
  color: var(--camera-amber);
}

.product-title {
  font-size: var(--fs-h3);
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
}

.product-title-journal {
  color: var(--journal-green);
}

.product-title-money {
  color: var(--money-blue);
}

.product-title-camera {
  color: var(--camera-amber);
}

.product-desc {
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 2.6rem;
  border-top: 1px solid var(--bg-tertiary);
}

.product-features li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.8rem;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
  transition: padding-left 0.4s var(--ease), color 0.4s var(--ease);
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease);
}

.product-features li:hover {
  padding-left: 2.2rem;
  color: var(--text-primary);
}

.product-features li:hover::before {
  transform: scale(1.4);
}

.features-green li::before {
  background-color: var(--journal-green);
}

.features-blue li::before {
  background-color: var(--money-blue);
}

.features-amber li::before {
  background-color: var(--camera-amber);
}

/* Device Mockups */
.device-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  z-index: 1;
  direction: ltr;
  perspective: 1400px;
}

.device-tilt {
  transition: transform 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

/* SAMSUNG GALAXY S25 MOCKUP */
.samsung-s25 {
  width: 290px;
  height: 590px;
  background-color: #17181c;
  /* Titanium frame */
  border-radius: var(--radius-device);
  padding: 10px;
  /* Minimal, symmetric bezel padding */
  box-shadow: var(--shadow-device);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.samsung-s25::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: calc(var(--radius-device) - 2px);
  border: 2px solid #3c3d42;
  /* Premium metallic trim */
  pointer-events: none;
  z-index: 10;
}

/* Phone side buttons */
.phone-btn {
  position: absolute;
  right: -3px;
  width: 3px;
  background: #3c3d42;
  border-radius: 2px 0 0 2px;
}

.volume-up {
  top: 130px;
  height: 40px;
}

.volume-down {
  top: 180px;
  height: 40px;
}

.power {
  top: 240px;
  height: 60px;
}

.screen-s25 {
  width: 100%;
  height: 100%;
  background-color: #faf8f5;
  /* Warm screen bg matching Daily Journal */
  border-radius: calc(var(--radius-device) - 10px);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dynamic Punch Hole Camera */
.punch-hole {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #000;
  border-radius: 50%;
  z-index: 15;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Status Bar Mockup */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 14;
  font-family: var(--font-sans);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery {
  width: 18px;
  height: 10px;
  border: 1px solid var(--text-primary);
  border-radius: 2px;
  padding: 1px;
  display: flex;
}

.battery-fill {
  background-color: var(--text-primary);
  width: 80%;
  height: 100%;
}

.screenshot-content {
  flex: 1;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 calc(var(--radius-device) - 10px) calc(var(--radius-device) - 10px);
}

/* Reflection glare overlay for screen realism */
.screen-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
  z-index: 12;
}

/* MO MONEY DASHBOARD CLIENT-SIDE CSS MOCKUP */
.mo-money-dashboard {
  width: 290px;
  height: 590px;
  background-color: var(--money-bg);
  /* Warm off-white theme */
  color: #1a1b1c;
  border-radius: var(--radius-device);
  padding: 10px;
  box-shadow: var(--shadow-device);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.mo-money-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: calc(var(--radius-device) - 2px);
  border: 2px solid #e1ded6;
  /* Titanium sand frame */
  pointer-events: none;
  z-index: 10;
}

.screen-mo-money {
  width: 100%;
  height: 100%;
  background-color: var(--money-bg);
  border-radius: calc(var(--radius-device) - 10px);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  padding: 38px 18px 20px;
}

.mo-money-dashboard .status-bar {
  color: #1a1b1c;
}

.mo-money-dashboard .battery {
  border-color: #1a1b1c;
}

.mo-money-dashboard .battery-fill {
  background-color: #1a1b1c;
}

.mo-money-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mo-money-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--money-blue) 0%, #4a80c2 100%);
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1b1c;
}

.wallet-icon {
  color: var(--money-blue);
  background: var(--money-blue-light);
  padding: 6px;
  border-radius: 8px;
}

.mo-money-balance-card {
  background: linear-gradient(135deg, #f6f5f0 0%, #edebe4 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.mo-money-balance-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(27, 82, 153, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.balance-label {
  font-size: 0.7rem;
  color: #595b5e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.balance-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1b1c;
  margin-bottom: 0.8rem;
}

.balance-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 0.6rem;
}

.stat-income {
  color: var(--money-blue);
}

.stat-expense {
  color: var(--money-red);
}

.mo-money-savings-goal {
  background: var(--money-blue-light);
  border: 1px dashed rgba(27, 82, 153, 0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.goal-label {
  color: var(--money-blue);
}

.goal-progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.goal-progress-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--money-blue) 0%, #4a80c2 100%);
  border-radius: 3px;
}

.goal-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #595b5e;
}

.mo-money-recent {
  flex: 1;
}

.recent-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #595b5e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f6f5f0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
}

.tx-grocery {
  background-color: var(--money-red-light);
  color: var(--money-red);
}

.tx-salary {
  background-color: var(--money-blue-light);
  color: var(--money-blue);
}

.tx-details {
  display: flex;
  flex-direction: column;
}

.tx-name {
  font-weight: 500;
  color: #1a1b1c;
}

.tx-category {
  font-size: 0.65rem;
  color: #8c8e91;
}

.tx-amount {
  font-weight: 600;
}

.tx-out {
  color: #1a1b1c;
}

.tx-in {
  color: var(--money-blue);
}

/* PORTABLE CAMERA INTERACTIVE MOCKUP */
.portable-camera-mockup {
  width: 290px;
  height: 590px;
  background-color: #fafaf9;
  /* Clean cream camera body style */
  border-radius: var(--radius-device);
  padding: 10px;
  box-shadow: var(--shadow-device);
  position: relative;
  border: 1px solid rgba(61, 82, 72, 0.08);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.portable-camera-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: calc(var(--radius-device) - 2px);
  border: 2px solid #e1e1db;
  pointer-events: none;
  z-index: 10;
}

.screen-camera {
  width: 100%;
  height: 100%;
  background-color: #121316;
  border-radius: calc(var(--radius-device) - 10px);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #fff;
  padding: 38px 0 0;
}

.camera-header {
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.event-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-pulse {
  width: 6px;
  height: 6px;
  background-color: #e07f7c;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

.camera-viewfinder {
  flex: 1;
  position: relative;
  background-color: #23252a;
  margin: 0 12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.viewfinder-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.6;
}

.camera-feed-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.camera-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  z-index: 4;
}

.camera-grid-lines::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.3%;
  right: 33.3%;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  border-right: 1px dashed rgba(255, 255, 255, 0.15);
}

.camera-controls {
  height: 110px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 16px;
  z-index: 10;
}

.btn-gallery {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.btn-shutter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}

.btn-shutter:active {
  transform: scale(0.9);
  background-color: var(--accent-rose);
}

.btn-print {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  color: #fff;
}

.btn-print:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hover effects for all devices */
.device-container:hover .samsung-s25,
.device-container:hover .mo-money-dashboard,
.device-container:hover .portable-camera-mockup {
  box-shadow:
    0 35px 80px -20px rgba(61, 82, 72, 0.22),
    0 0 0 1px rgba(61, 82, 72, 0.08);
}

/* ============ ABOUT / PHILOSOPHY ============ */
.about {
  background-color: var(--bg-secondary);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(188, 156, 116, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-sticky {
  position: sticky;
  top: 9rem;
}

.about-tag {
  margin-bottom: 1.5rem;
}

.about h2 {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.about-philosophy h3 {
  font-size: 1.7rem;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  margin-top: 2.5rem;
  letter-spacing: -0.01em;
}

.about-philosophy h3:first-child {
  margin-top: 0;
}

.about-philosophy > p {
  margin-bottom: 1.6rem;
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 56ch;
}

.about-values {
  display: flex;
  flex-direction: column;
  margin-top: 3.5rem;
  border-top: 1px solid var(--bg-tertiary);
}

.value-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: start;
  gap: 1.6rem;
  padding: 1.9rem 1.3rem;
  border-bottom: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  position: relative;
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.value-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.55rem;
  letter-spacing: 0.05em;
  transition: color 0.5s var(--ease);
}

.value-body h4 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.value-body p {
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 46ch;
}

.value-emoji {
  font-size: 1.6rem;
  line-height: 1;
  align-self: center;
  opacity: 0.32;
  filter: grayscale(0.35);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    filter 0.5s var(--ease);
}

.value-item:hover {
  background-color: var(--bg-primary);
  transform: translateX(6px);
}

.value-item:hover .value-index {
  color: var(--accent-brand);
}

.value-item:hover .value-emoji {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.18) rotate(-6deg);
}

/* ============ CONTACT ============ */
#contact {
  background-color: var(--bg-secondary);
  position: relative;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-inner .tagline,
.contact-inner .kicker {
  justify-content: center;
  margin-bottom: 1.8rem;
}

.contact-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 0.9rem + 1.4vw, 1.9rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 30ch;
  margin: 0 auto 2.8rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.05;
  position: relative;
  padding-bottom: 0.1em;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.contact-email:hover {
  color: var(--accent-brand);
}

.contact-email:hover::after {
  transform: scaleX(1);
  background-color: var(--accent-brand);
}

.contact-foot {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============ FOOTER ============ */
footer {
  background-color: #14161c;
  color: #ebeceb;
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(188, 156, 116, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  white-space: nowrap;
  margin-bottom: 4rem;
  user-select: none;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.7fr;
  gap: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 4rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.footer-brand p {
  color: #a4a9a5;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 320px;
}

.footer-links h4,
.footer-company h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-brand);
  margin-bottom: 1.6rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #a4a9a5;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-company-details {
  display: flex;
  gap: 3.5rem;
  font-size: 0.9rem;
  color: #a4a9a5;
  line-height: 1.7;
}

.company-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.company-detail-row {
  color: #a4a9a5;
}

.company-name,
.company-office {
  color: #ebeceb;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #838884;
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-bottom-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* --- ANIMATIONS AND REVEAL EFFECTS (SCROLL ANIMATIONS) --- */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.reveal.reveal-left {
  transform: translateX(-44px);
}

.reveal.reveal-right {
  transform: translateX(44px);
}

.reveal.active {
  opacity: 1;
  transform: translate(0);
}

/* Masked text reveal for section headings */
.reveal-mask {
  display: block;
  overflow: hidden;
}

.reveal-mask > * {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.reveal-mask.active > * {
  transform: translateY(0);
}

/* Stagger transition delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Micro-animations keyframes */
@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

/* Scroll indicator animation */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 3;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--text-primary);
}

.mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--text-muted);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: var(--transition-fast);
}

.scroll-indicator:hover .mouse {
  border-color: var(--text-primary);
}

.wheel {
  width: 3px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 2px;
  animation: scroll-wheel 1.6s infinite ease-in-out;
}

.scroll-indicator:hover .wheel {
  background-color: var(--text-primary);
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.3;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }

  .product-row {
    gap: 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section-padding {
    padding: 5rem 0;
  }

  .nav-container {
    height: 4.5rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 1400;
    padding: 7rem 2.5rem 2rem;
    transition: right 0.6s var(--ease);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 1.8rem;
  }

  nav a {
    font-size: 1rem;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 9rem;
    min-height: 100vh;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .product-row {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .product-row:nth-child(even) {
    direction: ltr;
  }

  .product-index {
    top: -2.5rem;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }

  .product-content {
    margin: 0 auto;
    order: 2;
  }

  .device-container {
    order: 1;
  }

  .product-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .product-features {
    display: inline-block;
    text-align: left;
  }

  .value-item {
    grid-template-columns: 2.1rem 1fr auto;
    gap: 1rem;
    padding: 1.5rem 0.4rem;
  }

  .value-item:hover {
    transform: none;
  }

  .value-body h4 {
    font-size: 1.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-company-details {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Hide custom cursor on touch / coarse pointers */
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none !important;
  }
  body.cursor-ready {
    cursor: auto;
  }
}

/* Reduced motion: calm everything down */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .grain {
    display: none;
  }

  .reveal,
  .reveal-mask > *,
  .title-inner,
  .hero [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }

  .preloader {
    display: none !important;
  }
}

/* --- LEGAL & POLICY SUBPAGES STYLING --- */
.legal-page {
  padding-top: 8rem;
  background:
    radial-gradient(circle at 80% 10%, var(--accent-brand-light) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, var(--bg-secondary) 0%, transparent 35%);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.legal-header {
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--bg-tertiary);
  padding-bottom: 2rem;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-brand);
  margin-bottom: 2rem;
  transition: var(--transition-fast);
}

.back-home-btn svg {
  transition: var(--transition-fast);
}

.back-home-btn:hover {
  color: var(--text-primary);
}

.back-home-btn:hover svg {
  transform: translateX(-4px);
}

.legal-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.legal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.legal-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.05rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 3.5rem;
  margin-bottom: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(24, 26, 28, 0.06);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}

.legal-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.legal-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.legal-content p {
  margin-bottom: 1.6rem;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.8rem;
  padding-left: 1.8rem;
}

.legal-content li {
  margin-bottom: 0.6rem;
}

.legal-content li strong {
  color: var(--text-primary);
}

.legal-content blockquote {
  background-color: var(--accent-brand-light);
  border-left: 4px solid var(--accent-brand);
  padding: 1.5rem 1.8rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.5rem 0;
  font-style: italic;
}

.legal-content blockquote p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.legal-content hr {
  border: 0;
  height: 1px;
  background-color: var(--bg-tertiary);
  margin: 3.5rem 0;
}

.legal-content a {
  color: var(--btn-primary-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.legal-content a:hover {
  color: var(--accent-brand);
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-tertiary);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.legal-content th {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--bg-tertiary);
}

.legal-content td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(24, 26, 28, 0.05);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.6;
}

.legal-content tr:last-child td {
  border-bottom: none;
}

.legal-content tr:hover td {
  background-color: var(--bg-primary);
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 6rem;
  }

  .legal-container {
    padding: 0 1.5rem 4rem;
  }

  .legal-title {
    font-size: 2.4rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }

  .legal-content h3 {
    font-size: 1.2rem;
  }
}

/* --- PREMIUM COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 440px;
  max-width: calc(100vw - 4rem);
  background-color: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(158, 142, 125, 0.25);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(24, 26, 28, 0.08);
  z-index: 10000;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, visibility 0.6s;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  visibility: hidden;
}

.cookie-banner.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.cookie-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.cookie-banner p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.cookie-banner p a {
  color: var(--btn-primary-bg);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner p a:hover {
  color: var(--accent-brand);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  flex: 1;
  min-width: 100px;
  justify-content: center;
}

.cookie-banner-actions .btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
}

.cookie-banner-actions .btn-primary:hover {
  background-color: transparent;
  color: var(--btn-primary-bg);
  transform: translateY(-2px);
}

.cookie-banner-actions .btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-tertiary);
}

.cookie-banner-actions .btn-secondary:hover {
  background-color: rgba(24, 26, 28, 0.03);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.cookie-banner-actions .btn-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  transition: var(--transition-fast);
}

.cookie-banner-actions .btn-link:hover {
  color: var(--text-primary);
}

/* Settings View inside Banner */
.cookie-banner-settings-view {
  display: none;
}

.cookie-banner.show-settings .cookie-banner-main-view {
  display: none;
}

.cookie-banner.show-settings .cookie-banner-settings-view {
  display: block;
}

.cookie-option-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(24, 26, 28, 0.06);
  gap: 1rem;
}

.cookie-option-item:last-of-type {
  border-bottom: none;
  padding-bottom: 1.4rem;
}

.cookie-option-info {
  flex: 1;
}

.cookie-option-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-option-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.cookie-option-badge {
  font-size: 0.7rem;
  background-color: var(--accent-brand-light);
  color: var(--accent-brand);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.cookie-option-desc {
  font-size: 0.82rem !important;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}

/* Custom Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .cookie-slider {
  background-color: var(--btn-primary-bg);
}

input:focus + .cookie-slider {
  box-shadow: 0 0 1px var(--btn-primary-bg);
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive adjustment */
@media (max-width: 576px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1.5rem;
    box-shadow: 0 -10px 40px rgba(24, 26, 28, 0.08);
  }
}
