/* ============================================
   Drukveratika — Vanilla CSS
   Exact visual copy of the original TanStack site
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --radius: 0.75rem;
  --background: #fdfaf4;
  --foreground: #1a0e0e;
  --card: #ffffff;
  --card-foreground: #1a0e0e;
  --primary: #822a33;
  --primary-foreground: #fdfaf4;
  --primary-soft: #ffe9e6;
  --secondary: #faf0e8;
  --secondary-foreground: #1a0e0e;
  --muted: #f1eae3;
  --muted-foreground: #5d5250;
  --accent: #ffe9e6;
  --accent-foreground: #822a33;
  --border: #e4dcd6;
  --input: #e4dcd6;
  --ring: #822a33;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* --- Layout --- */
.container-page {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-1 {
  flex: 1;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.block {
  display: block;
}
.hidden {
  display: none;
}

/* --- Spacing --- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-24 { margin-top: 6rem; }
.mt-auto { margin-top: auto; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.mx-auto { margin-inline: auto; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }

.px-2 { padding-inline: 0.5rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.px-6 { padding-inline: 1.5rem; }

.py-2 { padding-block: 0.5rem; }
.py-2\.5 { padding-block: 0.625rem; }
.py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; }
.py-5 { padding-block: 1.25rem; }
.py-16 { padding-block: 4rem; }

.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-12 { padding-top: 3rem; }

.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }

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

.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-tight { line-height: 1.25; }
.leading-\[1.05\] { line-height: 1.05; }

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.underline-offset-8 { text-underline-offset: 8px; }
.decoration-2 { text-decoration-thickness: 2px; }

.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

/* --- Colors / Backgrounds --- */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }

.border { border: 1px solid var(--border); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-border { border-color: var(--border); }
.border-border\/60 { border-color: color-mix(in oklab, var(--border) 60%, transparent); }
.border-input { border-color: var(--input); }

.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* --- Shadows --- */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

/* --- Transitions --- */
.transition { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }

/* --- Object Fit --- */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* --- Aspect Ratio --- */
.aspect-square { aspect-ratio: 1; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }

/* --- Width / Height --- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-xs { max-width: 20rem; }
.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* --- Sticky --- */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }

/* --- Backdrop Blur --- */
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* --- Components --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.6rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background-color: #6f1724;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.6rem;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  height: 6rem;
  align-items: center;
  justify-content: space-between;
}
.logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.8;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  opacity: 1;
}
.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}
/* --- Mobile Hamburger Button --- */
.hamburger-btn {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 width: 2.5rem;
 height: 2.5rem;
 gap: 5px;
 cursor: pointer;
 border: none;
 background: transparent;
 padding: 0;
 z-index: 60;
 position: relative;
}
.hamburger-btn span {
 display: block;
 width: 24px;
 height: 2.5px;
 background-color: var(--foreground);
 border-radius: 2px;
 transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-btn.active span:nth-child(1) {
 transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
 opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
 transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Mobile Navigation Overlay --- */
.mobile-nav {
 position: fixed;
 top: 0;
 right: 0;
 width: 100%;
 height: 100vh;
 background-color: var(--background);
 z-index: 50;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 1.5rem;
 transform: translateX(100%);
 transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
 padding: 2rem;
}
.mobile-nav.open {
 transform: translateX(0);
}
.mobile-nav .nav-link {
 font-size: 1.25rem;
 font-weight: 600;
 padding: 0.5rem 0;
 display: block;
}
.mobile-nav .nav-link.active {
 text-decoration: underline;
 text-underline-offset: 8px;
 text-decoration-thickness: 3px;
}

/* --- Mobile Responsive --- */
@media (max-width: 767px) {
 .container-page {
   padding-inline: 1rem;
 }
 .header-inner {
   height: 4rem;
 }
 .site-header {
   height: 4rem;
 }
 .logo-img {
   height: 2.5rem;
 }
 h1 {
   word-break: break-word;
 }
 .text-4xl.md\:text-5xl {
   font-size: 1.875rem;
   line-height: 1.15;
 }
 .text-3xl.md\:text-4xl {
   font-size: 1.5rem;
 }
 .text-2xl.md\:text-3xl {
   font-size: 1.25rem;
 }
 .md\:grid-cols-\[1fr_1\.4fr\] {
   grid-template-columns: 1fr;
 }
 .lg\:grid-cols-2,
 .md\:grid-cols-2 {
   grid-template-columns: 1fr;
 }
 .md\:grid-cols-3,
 .lg\:grid-cols-4 {
   grid-template-columns: repeat(2, minmax(0, 1fr));
 }
 .sm\:grid-cols-2 {
   grid-template-columns: 1fr;
 }
 .py-16.md\:py-24 {
   padding-block: 2.5rem;
 }
 .pt-12 {
   padding-top: 2rem;
 }
 .pb-16 {
   padding-bottom: 2.5rem;
 }
 .pb-20 {
   padding-bottom: 3rem;
 }
 .mt-10 {
   margin-top: 1.5rem;
 }
 .mt-12 {
   margin-top: 2rem;
 }
 .mt-24 {
   margin-top: 3rem;
 }
 .mb-10 {
   margin-bottom: 1.5rem;
 }
 .footer-grid {
   gap: 2rem;
   padding: 2.5rem 1rem;
   grid-template-columns: 1fr;
 }
 .w-\[24\%\] {
   width: 30%;
 }
 .w-\[34\%\] {
   width: 40%;
 }
 .max-w-\[560px\] {
   max-width: 100%;
 }
 .gap-6.md\:grid-cols-3 {
   grid-template-columns: 1fr;
 }
 .option-label {
   padding: 0.85rem 0.75rem;
   font-size: 0.875rem;
 }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: color-mix(in oklab, var(--primary-soft) 40%, transparent);
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin-inline: auto;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* --- Form Inputs --- */
.form-input {
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  border-color: var(--primary);
}

.form-textarea {
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}
.form-textarea:focus {
  border-color: var(--primary);
}

/* --- Survey / Option Select --- */
.option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.option-label:hover {
  border-color: color-mix(in oklab, var(--primary) 60%, transparent);
}
.option-label.checked {
  border-color: var(--primary);
  background-color: var(--primary-soft);
}
.option-input {
  margin-top: 0.25rem;
  accent-color: var(--primary);
}

/* --- Mix-blend --- */
.mix-blend-multiply { mix-blend-mode: multiply; }

/* --- Miscellaneous --- */
.w-\[90\%\] { width: 90%; }
.w-\[24\%\] { width: 24%; }
.w-\[34\%\] { width: 34%; }
.max-w-\[560px\] { max-width: 560px; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-24 { height: 6rem; }

/* --- Responsive --- */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:h-16 { height: 4rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_1.4fr\] { grid-template-columns: 1fr 1.4fr; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-\[15px\] { font-size: 15px; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:pb-20 { padding-bottom: 5rem; }
  .md\:pb-28 { padding-bottom: 7rem; }
  .md\:py-24 { padding-block: 6rem; }
  .md\:p-9 { padding: 2.25rem; }
  .md\:w-auto { width: auto; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:items-center { align-items: center; }
  .lg\:text-6xl { font-size: 3.75rem; }
}