/* ============================================================
   MENHIR — STYLESHEET
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Palette */
  --c-bg:           #faf9f6;
  --c-bg-warm:      #f2ede3;
  --c-dark:         #182234;
  --c-dark-mid:     #243047;
  --c-stone:        #8b7355;
  --c-stone-light:  #c4a882;
  --c-stone-pale:   #e8dfd0;
  --c-text:         #1e2b3a;
  --c-muted:        #6b7a90;
  --c-border:       rgba(139, 115, 85, 0.18);
  --c-white:        #ffffff;

  /* Glass */
  --glass-bg:       rgba(250, 249, 246, 0.70);
  --glass-border:   rgba(255, 255, 255, 0.55);
  --glass-blur:     blur(18px);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 2.5rem;
  --sp-3xl: 4rem;

  /* Layout */
  --max-w:     1140px;
  --nav-h:     72px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(24, 34, 52, 0.06);
  --sh-md: 0 4px 24px rgba(24, 34, 52, 0.10);
  --sh-lg: 0 12px 48px rgba(24, 34, 52, 0.14);
  --sh-xl: 0 24px 80px rgba(24, 34, 52, 0.20);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 260ms ease;
  --t-slow: 480ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

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

ul {
  list-style: none;
}

/* Ensure the HTML `hidden` attribute always wins over display rules */
[hidden] { display: none !important; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), transform var(--t-base),
              box-shadow var(--t-base), opacity var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--c-stone-light);
  outline-offset: 3px;
}

/* Primary: dark fill */
.btn--primary {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
}
.btn--primary:hover {
  background: var(--c-dark-mid);
  border-color: var(--c-dark-mid);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn--primary:active {
  transform: translateY(0);
}

/* Outline: transparent fill */
.btn--outline {
  background: transparent;
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.btn--outline:hover {
  background: var(--c-dark);
  color: var(--c-white);
}

/* Ghost: for dark/image backgrounds */
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.60);
}

/* Full-width variant */
.btn--full {
  width: 100%;
}

/* ============================================================
   GLASS CARD UTILITY
   ============================================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ============================================================
   SCROLL-TRIGGERED FADE-IN
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered grid children */
.features__grid .feature-card:nth-child(2).fade-in  { transition-delay: 0.13s; }
.features__grid .feature-card:nth-child(3).fade-in  { transition-delay: 0.26s; }
.audience__grid .audience-card:nth-child(2).fade-in { transition-delay: 0.13s; }
.audience__grid .audience-card:nth-child(3).fade-in { transition-delay: 0.26s; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background var(--t-base), backdrop-filter var(--t-base),
              box-shadow var(--t-base);
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: var(--sp-lg);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-white);
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.nav.scrolled .nav__logo { color: var(--c-dark); }

.nav__logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  /* Subtle ring so it reads on the dark hero background */
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  transition: box-shadow var(--t-fast);
}
.nav.scrolled .nav__logo-img {
  box-shadow: none;
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin-inline-start: auto;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--t-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: currentColor;
  transition: right var(--t-base);
}

.nav__links a:hover::after { right: 0; }

.nav__links a:hover { color: var(--c-white); }
.nav.scrolled .nav__links a { color: var(--c-muted); }
.nav.scrolled .nav__links a:hover { color: var(--c-dark); }

/* Login button */
.nav__login {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.42);
}
.nav__login:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.70);
}
.nav.scrolled .nav__login {
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.nav.scrolled .nav__login:hover {
  background: var(--c-dark);
  color: var(--c-white);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xs);
  color: var(--c-white);
  border-radius: var(--r-sm);
  margin-inline-start: auto;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__hamburger:hover { background: rgba(255, 255, 255, 0.12); }
.nav.scrolled .nav__hamburger { color: var(--c-dark); }
.nav.scrolled .nav__hamburger:hover { background: var(--c-stone-pale); }
.nav__hamburger svg { width: 22px; height: 22px; }

/* Mobile dropdown */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(250, 249, 246, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
}
.nav__mobile.open {
  display: flex;
}
.nav__mobile a {
  font-size: 1rem;
  font-weight: 450;
  color: var(--c-dark);
  padding: 0.875rem var(--sp-lg);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.nav__mobile a:hover { background: var(--c-stone-pale); }
.nav__mobile .btn--primary {
  margin: var(--sp-md) var(--sp-lg);
  width: calc(100% - var(--sp-lg) * 2);
  justify-content: center;
  border: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  /* REPLACE: hero background image */
  background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1800&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Dark gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(24, 34, 52, 0.75) 0%,
    rgba(24, 34, 52, 0.55) 55%,
    rgba(24, 34, 52, 0.38) 100%
  );
}

/* Content */
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--nav-h) + var(--sp-2xl)) var(--sp-3xl);
}

.hero__text {
  max-width: 680px;
  opacity: 0;
  transform: translateY(32px);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.075;
  letter-spacing: -0.035em;
  color: var(--c-white);
  margin-bottom: var(--sp-md);
}

.hero__subheadline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 350;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.80);
  max-width: 540px;
  margin-bottom: var(--sp-xl);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.45);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero__scroll-hint svg { width: 24px; height: 24px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.80; }
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding-block: var(--sp-3xl);
  background: var(--c-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.feature-card {
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--c-dark);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--c-white);
  flex-shrink: 0;
}
.feature-card__icon svg { width: 21px; height: 21px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--c-dark);
  margin-bottom: var(--sp-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.72;
}

/* ============================================================
   PRODUCT PREVIEW
   ============================================================ */

.product {
  padding-block: var(--sp-3xl);
  background: var(--c-bg-warm);
}

.product__copy {
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
  text-align: center;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.72;
}

/* Perspective wrapper for 3-D tilt */
.product__frame {
  perspective: 1400px;
}

/* Browser chrome mockup */
.browser-frame {
  max-width: 920px;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transform: rotateX(3.5deg) rotateY(-1deg) scale(0.98);
  transform-origin: center top;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.browser-frame:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  box-shadow: 0 32px 96px rgba(24, 34, 52, 0.22);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ececec;
  border-bottom: 1px solid #ddd;
}

.browser-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.browser-frame__dot:nth-child(1) { background: #ff5f57; }
.browser-frame__dot:nth-child(2) { background: #febc2e; }
.browser-frame__dot:nth-child(3) { background: #28c840; }

.browser-frame__url {
  flex: 1;
  margin-inline: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.72rem;
  color: #999;
  text-align: center;
}

.browser-frame__screen {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Placeholder UI inside the browser frame */
.placeholder-screen {
  display: flex;
  height: 100%;
  background: #f0f2f5;
}

.placeholder-screen__sidebar {
  width: 190px;
  flex-shrink: 0;
  background: var(--c-dark);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-logo {
  height: 26px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-nav-items { display: flex; flex-direction: column; gap: 6px; }

.ph-nav {
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}
.ph-nav--active {
  background: rgba(139, 115, 85, 0.45);
}

.placeholder-screen__main {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  min-width: 0;
}

.ph-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ph-title { min-height: 22px; display: flex; align-items: center; }
.ph-btn   { min-height: 28px; padding: 4px 12px; background: var(--c-dark); border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.ph-btn--sm { min-height: 24px; padding: 3px 10px; background: var(--c-dark); border-radius: 4px; display: flex; align-items: center; justify-content: center; }

.ph-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ph-stat {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ph-stat__num { min-height: 20px; }
.ph-stat__lbl { min-height: 10px; }

.ph-table {
  flex: 1;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.ph-table__head {
  min-height: 34px;
  background: #f6f8fa;
  border-bottom: 1px solid #e4e7eb;
}
.ph-table__row {
  min-height: 36px;
  border-bottom: 1px solid #f0f2f5;
}
.ph-table__row--alt {
  background: #fafbfc;
}
.ph-table__row:last-child { border-bottom: none; }

/* ============================================================
   CAROUSEL
   ============================================================ */

.carousel {
  position: relative;
  /* Bleed edge-to-edge while keeping controls centred */
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

/*
 * CSS Scroll Snap carousel — the most reliable single-slide approach.
 * The viewport scrolls horizontally; each slide snaps into place.
 * JS drives it with scrollTo() so no transform/width guesswork.
 */
.carousel__viewport {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  scroll-behavior: smooth;
}
.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Browser frame fills the slide; no tilt/shadow from the standalone version */
.carousel__slide .browser-frame {
  max-width: 100%;
  margin-inline: 0;
  transform: none !important;
  box-shadow: var(--sh-xl);
  border-radius: var(--r-md);
}
.carousel__slide .browser-frame:hover {
  transform: none !important;
}
.carousel__slide .browser-frame__screen {
  aspect-ratio: 16 / 9;
}

/* ---- Liquid glass controls (Apple-style) ---- */

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--sp-lg);
}

/*
 * Single unified glass bar: arrows, dots, label all sit
 * inside one frosted capsule — like iOS 26 bottom bars.
 */
.carousel__controls {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 100px;
  box-shadow:
    0 1px 3px rgba(24, 34, 52, 0.06),
    0 4px 14px rgba(24, 34, 52, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: 6px 6px;
  width: fit-content;
  margin-inline: auto;
}

/* Prev / Next arrow buttons */
.carousel__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(24, 34, 52, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.18s ease;
  flex-shrink: 0;
}
.carousel__arrow:hover {
  color: var(--c-dark);
  background: rgba(24, 34, 52, 0.07);
}
.carousel__arrow:active {
  transform: scale(0.90);
  background: rgba(24, 34, 52, 0.10);
}
.carousel__arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* Center: dots + label stacked */
.carousel__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-inline: 8px;
}

/* Dot track — sits inside the glass bar, no extra background */
.carousel__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px 4px;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50px;
  background: rgba(24, 34, 52, 0.18);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.25s ease,
              border-radius 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.2s ease;
}
.carousel__dot.active {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--c-dark);
}
.carousel__dot:hover:not(.active) {
  background: rgba(24, 34, 52, 0.35);
}

/* Slide label — sits directly below dots inside the glass pill */
.carousel__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(24, 34, 52, 0.42);
  letter-spacing: 0.02em;
  text-align: center;
  min-height: 1em;
  padding-bottom: 2px;
  transition: opacity 0.18s ease;
}
.carousel__label.switching {
  opacity: 0;
}

/* ---- Client profile placeholder ---- */

.ph-client-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ph-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-stone-pale);
  flex-shrink: 0;
}

.ph-client-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ph-client-name {
  min-height: 13px;
}

.ph-client-sub {
  min-height: 9px;
}

.ph-btn--sm {
  height: 24px;
  width: 70px;
  background: var(--c-dark);
  border-radius: 4px;
  flex-shrink: 0;
}

.ph-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ph-info-card {
  min-height: 44px;
  background: #f4f6f8;
  border: 1px solid #e4e7eb;
  border-radius: 6px;
}

/* ---- Trip timeline placeholder ---- */

.ph-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ph-day {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ph-day__label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.ph-day__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ph-day__item {
  min-height: 22px;
  background: #f0f2f5;
  border: 1px solid #e4e7eb;
  border-radius: 5px;
  border-left: 3px solid #dde2ea;
}

.ph-day__item--accent {
  background: rgba(139, 115, 85, 0.10);
  border-left-color: var(--c-stone);
}

/* ---- Pipeline / Kanban placeholder ---- */

.placeholder-screen__main--pipeline {
  overflow: hidden;
}

.ph-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  flex: 1;
  overflow: hidden;
}

.ph-kanban__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f4f6f8;
  border-radius: 6px;
  padding: 8px 6px;
  overflow: hidden;
}

.ph-kanban__head {
  min-height: 16px;
  margin-bottom: 4px;
}

.ph-kanban__card {
  min-height: 36px;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 5px;
}

.ph-kanban__card--accent {
  border-left: 3px solid var(--c-stone);
}

/* Smaller sidebar for secondary screens */
.placeholder-screen__sidebar--sm {
  width: 140px;
}

/* Smaller table variant */
.ph-table--sm .ph-table__row {
  height: 32px;
}

/* ============================================================
   WIREFRAME TEXT SYSTEM
   ============================================================ */

.wf-txt {
  font-family: var(--font-body);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.wf-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}
.ph-nav--active .wf-icon { opacity: 1; }

/* Logo letter */
.wf-txt--logo {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* Sidebar nav text */
.ph-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.ph-nav--active { color: rgba(255, 255, 255, 0.95); }

/* Headings inside screens */
.wf-txt--heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #1e2b3a;
}

/* Stat numbers */
.wf-txt--stat {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #1e2b3a;
  letter-spacing: -0.02em;
}

/* Second line under stat (e.g. client preferences in wireframe) */
.wf-txt--pref-secondary {
  font-size: 11px;
  font-weight: 600;
  color: #5a6b7d;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Meta / labels */
.wf-txt--meta {
  font-size: 9px;
  color: #8b97a7;
  letter-spacing: 0.01em;
}

.wf-muted { opacity: 0.7; }

/* Buttons */
.wf-txt--btn {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* Table headers */
.wf-txt--th {
  font-size: 9px;
  font-weight: 600;
  color: #8b97a7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Table cells */
.wf-txt--cell {
  font-size: 10px;
  font-weight: 450;
  color: #1e2b3a;
}

/* Status badges */
.wf-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1.4;
}
.wf-badge--green  { background: rgba(40, 200, 120, 0.14); color: #1a9956; }
.wf-badge--amber  { background: rgba(245, 166, 35, 0.14); color: #b47a13; }
.wf-badge--blue   { background: rgba(60, 130, 246, 0.14); color: #2563eb; }
.wf-badge--slate  { background: rgba(100, 116, 139, 0.12); color: #64748b; }

/* Avatar initials */
.wf-txt--avatar {
  font-size: 13px;
  font-weight: 600;
  color: #8b7355;
  text-align: center;
  line-height: 38px;
}

/* Table layout — distribute columns */
.ph-table__head,
.ph-table__row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  align-items: center;
  padding-inline: 12px;
  gap: 6px;
}

/* Client info cards — vertical stack */
.ph-info-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  justify-content: center;
}

/* Client header text sizing */
.ph-client-header .wf-txt--heading { font-size: 13px; }

/* Day timeline labels */
.wf-txt--day {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 28px;
}

/* Activity line items */
.wf-txt--activity {
  font-size: 10px;
  color: #4b5c6f;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kanban column header */
.ph-kanban__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.wf-txt--khead {
  font-size: 10px;
  font-weight: 600;
  color: #4b5c6f;
}
.wf-txt--kcount {
  font-size: 9px;
  font-weight: 600;
  color: #8b97a7;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  padding: 1px 5px;
}

/* Kanban cards — stack text */
.ph-kanban__card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
}
.wf-txt--kcard {
  font-size: 10px;
  font-weight: 500;
  color: #1e2b3a;
}

/* ============================================================
   AUDIENCE / WHO IT'S FOR
   ============================================================ */

.audience {
  padding-block: var(--sp-3xl);
  background: var(--c-bg);
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.audience-card {
  padding: var(--sp-xl);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-stone-light);
}

.audience-card__icon {
  width: 44px;
  height: 44px;
  background: var(--c-stone-pale);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--c-stone);
  flex-shrink: 0;
}
.audience-card__icon svg { width: 20px; height: 20px; }

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-dark);
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.01em;
}

.audience-card p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.72;
}

/* ============================================================
   REGISTER (dark section)
   ============================================================ */

.register {
  padding-block: var(--sp-3xl);
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glows for atmosphere */
.register::before,
.register::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.register::before {
  width: 700px;
  height: 700px;
  top: -30%;
  right: -15%;
  background: radial-gradient(circle, rgba(139, 115, 85, 0.16) 0%, transparent 70%);
}
.register::after {
  width: 500px;
  height: 500px;
  bottom: -25%;
  left: -10%;
  background: radial-gradient(circle, rgba(139, 115, 85, 0.10) 0%, transparent 70%);
}

.register__inner {
  max-width: 660px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.register__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.register__header .section-title { color: var(--c-white); }
.register__header .label         { color: var(--c-stone-light); }

.register__sub {
  margin-top: var(--sp-sm);
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.60);
}

.register__form {
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

/* ============================================================
   FORMS — SHARED
   ============================================================ */

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-md);
}
.form__group:last-of-type { margin-bottom: 0; }

/* ---- Register form (dark variant) ---- */

.register__form .form__group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.register__form input,
.register__form select,
.register__form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  color: var(--c-white);
  font-size: 0.9375rem;
  line-height: 1.5;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}

.register__form input::placeholder,
.register__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.register__form input:focus,
.register__form select:focus,
.register__form textarea:focus {
  border-color: var(--c-stone-light);
  background: rgba(255, 255, 255, 0.11);
}

.register__form input.invalid,
.register__form select.invalid,
.register__form textarea.invalid {
  border-color: #f07070;
}

.register__form select option {
  background: var(--c-dark);
  color: var(--c-white);
}

.select-wrapper {
  position: relative;
}
.select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.45);
}
.select-icon svg { width: 16px; height: 16px; }

/* ---- Contact form (light variant) ---- */

.contact__form .form__group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-muted);
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--c-white);
  border: 1.5px solid rgba(139, 115, 85, 0.22);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: 0.9375rem;
  line-height: 1.5;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: #b0bac8;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--c-stone);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.13);
}

.contact__form input.invalid,
.contact__form textarea.invalid {
  border-color: #e05555;
}

.contact__form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit button spacing */
.form__group + .btn,
.form__row + .btn {
  margin-top: var(--sp-sm);
}

/* Form feedback states */
.form__success,
.form__error {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  border-radius: var(--r-sm);
  padding: var(--sp-md);
  margin-top: var(--sp-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__success {
  background: rgba(40, 200, 120, 0.12);
  border: 1px solid rgba(40, 200, 120, 0.30);
  color: #2fd881;
}
.form__success svg { width: 20px; height: 20px; flex-shrink: 0; }

.form__error {
  background: rgba(240, 80, 80, 0.12);
  border: 1px solid rgba(240, 80, 80, 0.28);
  color: #f07070;
}

.form__note {
  margin-top: var(--sp-md);
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.36);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact {
  padding-block: var(--sp-3xl);
  background: var(--c-bg-warm);
}

.contact__inner {
  max-width: 660px;
  margin-inline: auto;
}

.contact__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.contact__form {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--sh-md);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--c-dark);
  /* Slightly tighter block padding so extra gap inside .footer__brand doesn’t grow the footer */
  padding-block: 1.25rem;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--c-white);
}

.footer__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  /* Keep the natural colours on the dark footer background */
  opacity: 0.90;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.40);
}

.footer__login {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  color: rgba(255, 255, 255, 0.70);
  border-color: rgba(255, 255, 255, 0.24);
}
.footer__login:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.50);
}

.footer__bottom {
  padding-top: var(--sp-lg);
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.30);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 960px) {
  :root { --sp-3xl: 2.75rem; }

  .features__grid,
  .audience__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .ph-stats { grid-template-columns: repeat(2, 1fr); }

  .browser-frame {
    transform: none;
  }
  .browser-frame:hover {
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --sp-3xl: 2rem;
    --sp-2xl: 1.5rem;
  }

  /* Nav */
  .nav__links,
  .nav__login  { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn { justify-content: center; }

  /* Forms */
  .form__row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-md); }

  .register__form,
  .contact__form { padding: var(--sp-md); }

  .feature-card,
  .audience-card { padding: var(--sp-lg); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}
