/* =============================================
   Mikilyuto — ARCHITECTURAL GRID DESIGN SYSTEM
   ============================================= */


:root {
  
  --primary: oklch(25% 0.06 240);
  --accent: oklch(55% 0.18 195);
  --surface: oklch(97% 0.01 240);

  
  --primary-deep: color-mix(in oklch, var(--primary), black 20%);
  --primary-mid: color-mix(in oklch, var(--primary), white 15%);
  --primary-light: color-mix(in oklch, var(--primary), white 60%);
  --primary-mist: color-mix(in oklch, var(--primary), white 88%);
  --primary-ghost: color-mix(in oklch, var(--primary), white 95%);

  --accent-deep: color-mix(in oklch, var(--accent), black 20%);
  --accent-mid: color-mix(in oklch, var(--accent), var(--primary) 30%);
  --accent-light: color-mix(in oklch, var(--accent), white 55%);
  --accent-mist: color-mix(in oklch, var(--accent), white 82%);

  --surface-warm: color-mix(in oklch, var(--surface), var(--accent) 4%);
  --surface-dark: color-mix(in oklch, var(--primary), white 8%);

  
  --text-primary: color-mix(in oklch, var(--primary), black 5%);
  --text-secondary: color-mix(in oklch, var(--primary), white 35%);
  --text-muted: color-mix(in oklch, var(--primary), white 55%);
  --text-on-dark: color-mix(in oklch, white, var(--accent) 8%);
  --text-on-dark-muted: color-mix(in oklch, white, var(--primary) 40%);

  
  --border: color-mix(in oklch, var(--primary), white 78%);
  --border-strong: color-mix(in oklch, var(--primary), white 60%);
  --border-accent: color-mix(in oklch, var(--accent), white 40%);

  
  --shadow-sm: 0 1px 2px color-mix(in oklch, var(--primary), transparent 88%),
               0 0 0 1px color-mix(in oklch, var(--primary), transparent 94%);
  --shadow-md: 0 4px 6px color-mix(in oklch, var(--primary), transparent 82%),
               0 1px 3px color-mix(in oklch, var(--primary), transparent 88%),
               0 0 0 1px color-mix(in oklch, var(--primary), transparent 94%);
  --shadow-lg: 0 10px 25px color-mix(in oklch, var(--primary), transparent 78%),
               0 4px 10px color-mix(in oklch, var(--primary), transparent 85%),
               0 0 0 1px color-mix(in oklch, var(--primary), transparent 94%);
  --shadow-xl: 0 20px 50px color-mix(in oklch, var(--primary), transparent 72%),
               0 8px 20px color-mix(in oklch, var(--primary), transparent 82%),
               0 0 0 1px color-mix(in oklch, var(--primary), transparent 94%);
  --shadow-accent: 0 8px 30px color-mix(in oklch, var(--accent), transparent 60%),
                   0 2px 8px color-mix(in oklch, var(--accent), transparent 75%);

  
  --grid-color: color-mix(in oklch, var(--primary), transparent 91%);
  --grid-size: 40px;

  
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  
  --nav-height: 96px;
}


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

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--surface);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

address {
  font-style: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


.hero, .page-hero, .hero__grid-overlay, .page-hero__grid {
  position: relative;
}

.hero__grid-overlay,
.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
}

.page-hero__grid {
  background-image:
    linear-gradient(color-mix(in oklch, white, transparent 85%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, white, transparent 85%) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}


.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
}

.section > .container,
.section > div:not(.section::before) {
  position: relative;
  z-index: 1;
}


.heading--section {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.heading--light {
  color: var(--text-on-dark);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-mist);
  border: 1px solid var(--border-accent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.label--light {
  color: var(--accent-light);
  background: color-mix(in oklch, white, transparent 88%);
  border-color: color-mix(in oklch, white, transparent 80%);
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}


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

.section--dark {
  background-color: var(--primary);
  color: var(--text-on-dark);
}

.section--dark::before {
  background-image:
    linear-gradient(color-mix(in oklch, white, transparent 93%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, white, transparent 93%) 1px, transparent 1px);
}

.section--dark .heading--section {
  color: var(--text-on-dark);
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 48px;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 12px 40px color-mix(in oklch, var(--accent), transparent 50%);
  transform: translateY(-1px);
  color: white;
}

.btn--outline {
  background: var(--accent-mist);
  color: var(--accent);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-mist);
}

.btn--ghost {
  background: color-mix(in oklch, white, transparent 88%);
  color: var(--text-on-dark);
  border-color: color-mix(in oklch, white, transparent 80%);
}

.btn--ghost:hover {
  background: color-mix(in oklch, white, transparent 80%);
  color: white;
  border-color: color-mix(in oklch, white, transparent 70%);
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  min-height: 40px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--surface), transparent 5%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition-slow);
}

.nav__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav__top {
  padding: var(--space-4) 0 var(--space-3);
}

.nav__logo {
  display: block;
  transition: opacity var(--transition-fast);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-bottom: var(--space-3);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--primary-ghost);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.nav__link--active {
  color: var(--accent);
  font-weight: 600;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

.nav__hamburger:hover {
  background: var(--primary-ghost);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

/* =============================================
   MOBILE MENU — Circular reveal
   ============================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__circle {
  position: absolute;
  inset: 0;
  background: var(--primary-deep);
  clip-path: circle(0px at calc(100% - 40px) 48px);
  transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  pointer-events: all;
}

.mobile-menu.is-open .mobile-menu__circle {
  clip-path: circle(150% at calc(100% - 40px) 48px);
}

.mobile-menu__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.mobile-menu.is-open .mobile-menu__nav {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__link {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--accent-light);
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 2;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  padding: var(--space-3);
  border-radius: 50%;
  transition: background var(--transition-fast);
  opacity: 0;
  transition: opacity 0.3s ease 0.4s;
}

.mobile-menu.is-open .mobile-menu__close {
  opacity: 1;
}

.mobile-menu__close:hover {
  background: color-mix(in oklch, white, transparent 88%);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--surface);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-16) var(--space-6) var(--space-16) max(var(--space-6), calc((100vw - 1200px) / 2 + var(--space-6)));
}

.hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.hero__label-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__heading {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero__heading em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero__meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__meta-item i {
  color: var(--accent);
  font-size: 0.875rem;
}


.hero__visual {
  position: relative;
  z-index: 1;
  padding: var(--space-16) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 380px;
}

.hero__card {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero__card--back {
  inset: 0;
  background: var(--primary-mist);
  border: 1px solid var(--border);
  transform: rotate(4deg) translate(16px, 12px);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__card--mid {
  inset: 8px;
  background: var(--primary);
  border: 1px solid color-mix(in oklch, white, transparent 85%);
  transform: rotate(-2deg) translate(-8px, 8px);
  padding: var(--space-6);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.hero__card--front {
  inset: 0;
  background: white;
  box-shadow: var(--shadow-xl);
  z-index: 2;
}

.hero__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card-badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: white;
  color: var(--accent);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.hero__card-badge i {
  color: var(--accent);
}

.hero__card-line {
  height: 2px;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  width: 100%;
}

.hero__card-line--short { width: 60%; }
.hero__card-line--medium { width: 80%; }

.hero__card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklch, white, transparent 40%);
}

.hero__card-amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
}

.hero__card-bar {
  height: 6px;
  background: color-mix(in oklch, white, transparent 80%);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.hero__card-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--primary);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-20);
  overflow: hidden;
}

.page-hero--legal {
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero__heading {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  margin-bottom: var(--space-5);
}

.page-hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 580px;
}

/* =============================================
   PROBLEM SECTION
   ============================================= */
.section--problem {
  background: var(--surface-warm);
}

.problem__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.problem__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.75;
}

.problem__text .btn {
  margin-top: var(--space-4);
}

.problem__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.problem__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

.problem__tag {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: white;
  color: var(--accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.section--features {
  background: var(--surface);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.features__intro {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

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

.card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card--feature {
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.card--feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.card--feature:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.card--feature:hover::before {
  transform: scaleX(1);
}

.card__icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-mist);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.25rem;
  color: var(--accent);
  transition: all var(--transition-base);
}

.card--feature:hover .card__icon-wrap {
  background: var(--accent);
  color: white;
}

.card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.card__body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.card__detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.card__detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.card__detail-item i {
  color: var(--accent);
  font-size: 0.875rem;
}

/* =============================================
   PROCESS SECTION
   ============================================= */
.section--process {
  background: var(--primary);
}

.process__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.process__intro {
  color: var(--text-on-dark-muted);
  max-width: 540px;
  margin: 0 auto;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--space-6);
}

.process__step:first-child {
  padding-left: 0;
}

.process__step:last-child {
  padding-right: 0;
}

.process__number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: color-mix(in oklch, white, transparent 80%);
  line-height: 1;
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}

.process__content {
  flex: 1;
}

.process__icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-accent);
}

.process__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.process__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

.process__connector {
  position: absolute;
  top: 60px;
  right: -1px;
  width: 2px;
  height: 2px;
  background: color-mix(in oklch, white, transparent 75%);
  box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent), transparent 80%);
  border-radius: 50%;
}

.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 62px;
  right: 0;
  left: calc(var(--space-6) + 22px + 24px);
  height: 1px;
  background: color-mix(in oklch, white, transparent 80%);
  background: repeating-linear-gradient(90deg, color-mix(in oklch, white, transparent 70%) 0, color-mix(in oklch, white, transparent 70%) 4px, transparent 4px, transparent 10px);
}

/* =============================================
   ACCOUNTANT SECTION
   ============================================= */
.accountant__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.accountant__image-stack {
  position: relative;
}

.accountant__img--main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.accountant__note {
  position: absolute;
  bottom: -var(--space-4);
  right: -var(--space-4);
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  max-width: 240px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  bottom: var(--space-4);
  right: var(--space-4);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.accountant__note i {
  color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
}

.accountant__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.75;
}

/* =============================================
   PLATFORM VISUAL SECTION
   ============================================= */
.section--platform-visual {
  padding: var(--space-12) 0;
  background: var(--primary-mist);
}

.section--platform-visual::before {
  display: none;
}

.platform-visual__inner {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.platform-visual__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.platform-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    color-mix(in oklch, var(--primary), transparent 15%) 0%,
    color-mix(in oklch, var(--primary), transparent 60%) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-10);
}

.platform-visual__caption {
  max-width: 420px;
  color: white;
}

.platform-visual__caption h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.platform-visual__caption p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: color-mix(in oklch, white, transparent 25%);
}

/* =============================================
   WHY SECTION
   ============================================= */
.section--why {
  background: var(--surface);
}

.why__header {
  margin-bottom: var(--space-12);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.why__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.why__item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.why__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-mist);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.125rem;
  transition: all var(--transition-base);
}

.why__item:hover .why__icon {
  background: var(--accent);
  color: white;
}

.why__item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.why__item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =============================================
   CTA SECTION
   ============================================= */
.section--cta {
  background: var(--primary);
}

.cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__inner p {
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-8);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.cta__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta__contact a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.cta__contact a:hover {
  color: var(--text-on-dark);
}

.cta__contact i {
  color: var(--accent-light);
}

/* =============================================
   STORY SECTION (Our Background)
   ============================================= */
.section--story {
  background: var(--surface-warm);
}

.story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.story__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.8;
}

.story__img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* =============================================
   VALUES SECTION
   ============================================= */
.section--values {
  background: var(--primary-deep);
}

.values__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.card--value {
  background: color-mix(in oklch, white, transparent 93%);
  border: 1px solid color-mix(in oklch, white, transparent 88%);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  color: var(--text-on-dark);
}

.card--value:hover {
  background: color-mix(in oklch, white, transparent 88%);
  box-shadow: none;
  transform: none;
}

.card__icon-top {
  font-size: 1.5rem;
  color: var(--accent-light);
  margin-bottom: var(--space-5);
  display: block;
}

.card--value h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.card--value p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

/* =============================================
   LOCATION SECTION
   ============================================= */
.location__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.location__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.75;
}

.location__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: var(--space-6);
}

.location__address i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.location__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* =============================================
   INTEGRATIONS PAGE
   ============================================= */
.integrations-intro__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.integrations-intro__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.75;
}


.integration-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.integration-diagram__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-accent);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-diagram__nodes {
  position: absolute;
  inset: 0;
}

.integration-diagram__node {
  position: absolute;
  width: 88px;
  height: 88px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.integration-diagram__node:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.integration-diagram__node i {
  font-size: 1.25rem;
  color: var(--accent);
}

.integration-diagram__node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.integration-diagram__node:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.integration-diagram__node:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.integration-diagram__node:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

.integration-cats__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.integration-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.card--integration {
  padding: var(--space-8);
  background: color-mix(in oklch, white, transparent 93%);
  border: 1px solid color-mix(in oklch, white, transparent 85%);
  border-radius: var(--radius-xl);
}

.card--integration:hover {
  background: color-mix(in oklch, white, transparent 88%);
  transform: none;
  box-shadow: none;
}

.card--integration .card__icon-wrap {
  background: color-mix(in oklch, var(--accent), transparent 80%);
}

.card--integration .card__title {
  color: var(--text-on-dark);
}

.card--integration .card__body {
  color: var(--text-on-dark-muted);
}

.integration__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in oklch, white, transparent 88%);
}

.integration__list li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  padding-left: var(--space-4);
  position: relative;
}

.integration__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
}


.api__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.api__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.75;
}

.api__code-block {
  background: var(--primary-deep);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid color-mix(in oklch, white, transparent 90%);
  box-shadow: var(--shadow-xl);
}

.api__code-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: color-mix(in oklch, white, transparent 95%);
  border-bottom: 1px solid color-mix(in oklch, white, transparent 90%);
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

.api__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in oklch, white, transparent 70%);
}

.api__dot:first-child { background: #ff5f57; }
.api__dot:nth-child(2) { background: #ffbd2e; }
.api__dot:nth-child(3) { background: #28ca41; }

.api__code {
  padding: var(--space-6);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: color-mix(in oklch, white, transparent 15%);
  font-family: 'Fira Code', 'Courier New', monospace;
  overflow-x: auto;
}

/* =============================================
   WHAT CHANGES PAGE
   ============================================= */
.section--before-after {
  background: var(--surface);
}

.before-after__header {
  margin-bottom: var(--space-12);
}

.before-after__header p {
  color: var(--text-secondary);
  margin-top: var(--space-4);
  max-width: 600px;
  line-height: 1.7;
}

.before-after__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.before-after__col {
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--border);
}

.before-after__col--before {
  background: color-mix(in oklch, var(--surface), var(--primary-mist) 40%);
}

.before-after__col--after {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.before-after__header-col {
  margin-bottom: var(--space-6);
}

.before-after__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
}

.before-after__badge--before {
  background: var(--primary-mist);
  color: var(--text-muted);
}

.before-after__badge--after {
  background: var(--accent-mist);
  color: var(--accent);
}

.before-after__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.before-after__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.before-after__col--before .before-after__item i {
  color: var(--text-muted);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.before-after__col--after .before-after__item i {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.before-after__item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.before-after__item p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}


.section--platform-detail {
  background: var(--primary);
}

.platform-detail__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.platform-detail__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.platform-detail__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.platform-detail__item--reverse {
  direction: rtl;
}

.platform-detail__item--reverse > * {
  direction: ltr;
}

.platform-detail__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.platform-detail__text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.platform-detail__text p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-4);
}


.reconcile-widget {
  background: color-mix(in oklch, white, transparent 93%);
  border: 1px solid color-mix(in oklch, white, transparent 85%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.reconcile-widget__header {
  padding: var(--space-4) var(--space-5);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  border-bottom: 1px solid color-mix(in oklch, white, transparent 88%);
}

.reconcile-widget__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid color-mix(in oklch, white, transparent 93%);
  font-size: 0.875rem;
}

.reconcile-widget__row:last-child {
  border-bottom: none;
}

.reconcile-widget__row span:first-of-type {
  flex: 1;
  color: var(--text-on-dark);
  font-weight: 500;
}

.reconcile-widget__amount {
  font-weight: 700;
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}

.reconcile-widget__row--confirmed i { color: #22c55e; }
.reconcile-widget__row--pending i { color: #eab308; }
.reconcile-widget__row--flagged i { color: #f97316; }


.section--faq {
  background: var(--surface-warm);
}

.faq__header {
  margin-bottom: var(--space-10);
}

.faq__list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq__item:hover {
  border-color: var(--border-accent);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__icon {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--transition-base);
  font-size: 0.875rem;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq__answer p {
  padding: 0 var(--space-6) var(--space-5);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq__item.is-open .faq__answer {
  max-height: 300px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.section--contact-main {
  background: var(--surface-warm);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}


.chat-form {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chat-form__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--primary);
  color: white;
  border-bottom: 1px solid color-mix(in oklch, white, transparent 90%);
}

.chat-form__avatar {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: white;
  flex-shrink: 0;
}

.chat-form__header-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
}

.chat-form__header-text span {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

.chat-form__thread {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.chat-form__bubble {
  align-self: flex-start;
  max-width: 80%;
}

.chat-form__bubble--question {
  background: var(--primary-ghost);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
  padding: var(--space-3) var(--space-4);
}

.chat-form__bubble--question p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

.chat-form__reply {
  align-self: flex-end;
  width: 100%;
}

.chat-form__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: none;
}

.chat-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 80%);
}

.chat-form__input--textarea {
  border-radius: var(--radius-lg);
  resize: vertical;
  min-height: 100px;
}

.chat-form__privacy-wrap {
  padding: var(--space-2) 0;
}

.chat-form__privacy-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.chat-form__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.chat-form__privacy-label a {
  color: var(--accent);
  text-decoration: underline;
}

.chat-form__error {
  font-size: 0.875rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: none;
}

.chat-form__error.is-visible {
  display: block;
}

.chat-form__send {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}


.contact__info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
}

.contact__info-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.contact__info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.contact__info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact__info-item > i {
  width: 36px;
  height: 36px;
  background: var(--accent-mist);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.875rem;
}

.contact__info-item div {
  flex: 1;
}

.contact__info-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.contact__info-item a,
.contact__info-item address {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  line-height: 1.5;
}

.contact__info-item a:hover {
  color: var(--accent);
}


.contact__gallery h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.contact__gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 140px 140px;
  gap: var(--space-3);
}

.contact__gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact__gallery-item--tall {
  grid-row: span 2;
}

.contact__gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.contact__gallery-item:hover .contact__gallery-img {
  transform: scale(1.03);
}


.section--map {
  padding: 0 0 var(--space-16);
  background: var(--surface-warm);
}

.map__wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: white;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.map__header i {
  color: var(--accent);
}

.map__iframe {
  display: block;
  width: 100%;
  border: none;
}

/* =============================================
   THANKS PAGE
   ============================================= */
.thanks-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) var(--space-6);
  padding-top: calc(var(--nav-height) + var(--space-16));
  background: var(--surface-warm);
}

.thanks__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
}


.thanks__envelope {
  margin-bottom: var(--space-10);
}

.envelope {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 0 auto;
}

.envelope__body {
  width: 120px;
  height: 80px;
  background: white;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-md);
}

.envelope__flap {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 45px;
  background: var(--primary-mist);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: openFlap 0.6s ease 0.8s forwards;
}

@keyframes openFlap {
  0% { transform: rotateX(0deg); clip-path: polygon(0 0, 100% 0, 50% 100%); }
  100% { transform: rotateX(-140deg); clip-path: polygon(0 0, 100% 0, 50% 100%); }
}

.envelope__letter {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 60px;
  background: var(--accent-mist);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  animation: slideLetterUp 0.5s ease 1.3s both;
}

@keyframes slideLetterUp {
  0% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(-50px); opacity: 1; }
}

.envelope__letter-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--space-1);
}

.envelope__letter-line {
  height: 2px;
  background: var(--accent-light);
  border-radius: var(--radius-pill);
}

.envelope__letter-line--short {
  width: 60%;
}

.thanks__content {
  animation: fadeInUp 0.5s ease 1.8s both;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.thanks__heading {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.thanks__sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.thanks__note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.thanks__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.section--legal {
  background: var(--surface);
  padding: var(--space-16) 0 var(--space-24);
}

.section--legal::before {
  display: none;
}

.legal__doc {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-sm);
}

.legal__intro {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 2px solid var(--border);
}

.legal__intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal__section {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.legal__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal__section h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.legal__section p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--primary-deep);
  color: var(--text-on-dark);
  border-top: 1px solid color-mix(in oklch, white, transparent 90%);
}

.footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
}

.footer__logo {
  display: block;
  margin-bottom: var(--space-5);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer__logo:hover {
  opacity: 1;
}

.footer__story {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-6);
  max-width: 340px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-4);
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
  line-height: 1.6;
}

.footer__link:hover {
  color: var(--text-on-dark);
}

.footer__address {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.footer__bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid color-mix(in oklch, white, transparent 90%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: color-mix(in oklch, var(--text-on-dark-muted), transparent 30%);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer__legal-links a {
  font-size: 0.8125rem;
  color: color-mix(in oklch, var(--text-on-dark-muted), transparent 30%);
  transition: color var(--transition-fast);
}

.footer__legal-links a:hover {
  color: var(--text-on-dark);
}

/* =============================================
   COOKIE CONSENT — Floating pill / modal
   ============================================= */
.cookie-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--primary-deep);
  color: white;
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xl);
  white-space: nowrap;
  border: 1px solid color-mix(in oklch, white, transparent 85%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  font-weight: 500;
}

.cookie-pill__text {
  color: var(--text-on-dark-muted);
}

.cookie-pill__text a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-pill__actions {
  display: flex;
  gap: var(--space-2);
}

.cookie-pill__btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 32px;
}

.cookie-pill__btn--accept {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.cookie-pill__btn--accept:hover {
  background: var(--accent-deep);
}

.cookie-pill__btn--settings {
  background: transparent;
  color: var(--text-on-dark-muted);
  border: 1px solid color-mix(in oklch, white, transparent 80%);
}

.cookie-pill__btn--settings:hover {
  color: white;
  border-color: color-mix(in oklch, white, transparent 65%);
}


.cookie-modal {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--primary-deep);
  border: 1px solid color-mix(in oklch, white, transparent 82%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: min(480px, calc(100vw - 32px));
  padding: var(--space-6);
  color: white;
  display: none;
  animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal.is-open {
  display: block;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-modal__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.cookie-modal__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-5);
}

.cookie-modal__desc a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.cookie-modal__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  background: color-mix(in oklch, white, transparent 93%);
  border-radius: var(--radius-md);
}

.cookie-modal__cat-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.cookie-modal__cat-info p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

.cookie-modal__toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-modal__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-modal__toggle-slider {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, white, transparent 75%);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cookie-modal__toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
}

.cookie-modal__toggle input:checked + .cookie-modal__toggle-slider {
  background: var(--accent);
}

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

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

.cookie-modal__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-modal__btn {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 42px;
  text-align: center;
}

.cookie-modal__btn--save {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.cookie-modal__btn--save:hover {
  background: var(--accent-deep);
}

.cookie-modal__btn--all {
  background: transparent;
  color: var(--text-on-dark-muted);
  border: 1px solid color-mix(in oklch, white, transparent 80%);
}

.cookie-modal__btn--all:hover {
  color: white;
  border-color: color-mix(in oklch, white, transparent 65%);
}

/* =============================================
   RESPONSIVE — Mobile First Adjustments
   ============================================= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: var(--space-16);
  }

  .hero__content {
    padding: var(--space-12) var(--space-6) var(--space-8);
    text-align: center;
  }

  .hero__sub {
    margin: 0 auto var(--space-8);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero__visual {
    padding: 0 var(--space-6) var(--space-10);
  }

  .hero__card-stack {
    max-width: 360px;
    height: 300px;
    margin: 0 auto;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .process__steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .process__step::after {
    display: none;
  }

  .problem__layout,
  .accountant__layout,
  .story__layout,
  .location__layout,
  .integrations-intro__layout,
  .api__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .integration-cats__grid {
    grid-template-columns: 1fr;
  }

  .before-after__grid {
    grid-template-columns: 1fr;
  }

  .platform-detail__item {
    grid-template-columns: 1fr;
  }

  .platform-detail__item--reverse {
    direction: ltr;
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
    --grid-size: 32px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__top {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-4) 0 var(--space-4);
  }

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

  .process__steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .process__step {
    padding: 0;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact__gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .contact__gallery-item--tall {
    grid-row: span 1;
  }

  .cta__contact {
    flex-direction: column;
    gap: var(--space-4);
  }

  .cookie-pill {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    white-space: normal;
    width: calc(100vw - 32px);
    max-width: 400px;
  }

  .cookie-pill__actions {
    justify-content: flex-end;
  }

  .hero__label {
    justify-content: center;
  }

  .platform-visual__img {
    height: 280px;
  }

  .platform-visual__overlay {
    background: linear-gradient(to top,
      color-mix(in oklch, var(--primary), transparent 10%) 0%,
      color-mix(in oklch, var(--primary), transparent 50%) 50%,
      transparent 100%
    );
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }

  .hero__heading {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .heading--section {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .legal__doc {
    padding: var(--space-6);
  }

  .footer__links {
    grid-template-columns: 1fr;
  }

  .hero__card-stack {
    height: 240px;
  }

  .problem__img,
  .story__img,
  .location__img,
  .accountant__img--main {
    height: 280px;
  }

  .thanks__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .thanks__actions .btn {
    text-align: center;
    justify-content: center;
  }
}

/* =============================================
   UTILITY
   ============================================= */
.section--wide {
  padding-left: 0;
  padding-right: 0;
}