/* TimbrGrid marketing site — static, no build step. Wood palette mirrors the app. */
:root {
  --wood-50: #faf6f0;
  --wood-100: #f0e6d6;
  --wood-200: #e0c9a6;
  --wood-300: #cda877;
  --wood-400: #bb8d52;
  --wood-500: #a9763f;
  --wood-600: #8c5d33;
  --wood-700: #6f482d;
  --wood-800: #5c3c29;
  --wood-900: #4d3324;
  --ink: #3a2a1e;
  --muted: #7a6a5b;
  --kofi: #ff5e5b;
  --kofi-dark: #e94e4b;
  --maxw: 1120px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(77, 51, 36, 0.08);
  --shadow-md: 0 10px 30px rgba(77, 51, 36, 0.12);
  --shadow-lg: 0 24px 60px rgba(77, 51, 36, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--wood-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wood-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }

.btn-primary { background: var(--wood-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--wood-700); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--wood-800); border-color: var(--wood-300); }
.btn-ghost:hover { background: var(--wood-100); }

.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); }

.btn-kofi { background: var(--kofi); color: #fff; box-shadow: var(--shadow-sm); }
.btn-kofi:hover { background: var(--kofi-dark); box-shadow: var(--shadow-md); }
.kofi-cup { display: inline-flex; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--wood-100);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--wood-800); letter-spacing: -0.02em; }
.brand-tagline { font-size: 0.72rem; color: var(--muted); }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 500; color: var(--wood-800); font-size: 0.95rem; }
.main-nav a:hover { color: var(--wood-600); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switch */
.lang-switch {
  display: inline-flex;
  background: var(--wood-100);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--wood-700);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn:hover { color: var(--wood-900); }
.lang-btn[aria-pressed="true"] { background: #fff; color: var(--wood-900); box-shadow: var(--shadow-sm); }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(1200px 400px at 75% -10%, rgba(187,141,82,0.18), transparent 60%),
    linear-gradient(180deg, var(--wood-50), #fff);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-600);
  background: var(--wood-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; color: var(--wood-900); }
.hero .lead { font-size: 1.18rem; color: var(--muted); margin: 18px 0 28px; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--wood-800);
  font-weight: 500;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--wood-300);
  box-shadow: inset 0 0 0 2px var(--wood-50), 0 0 0 3px var(--wood-200);
}

/* Browser mockup visual */
.hero-visual { perspective: 1400px; }
.browser-mock {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--wood-100);
  transform: rotateY(-7deg) rotateX(3deg);
  transform-style: preserve-3d;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--wood-100);
  border-bottom: 1px solid var(--wood-200);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ec6a5e; }
.dot-y { background: #f4bf4f; }
.dot-g { background: #61c554; }
.browser-url {
  margin-left: 12px;
  font-size: 0.82rem;
  color: var(--wood-700);
  background: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--wood-200);
}
.browser-canvas { position: relative; background: #eef4f8; }
.app-shot { width: 100%; height: auto; display: block; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, #fff, var(--wood-50)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--wood-900); }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 14px 0 0; }

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--wood-100);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--wood-200); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--wood-100);
  color: var(--wood-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; color: var(--wood-900); margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--wood-100);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wood-600);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; color: var(--wood-900); margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* Use-case chips */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.chips li {
  background: #fff;
  border: 1px solid var(--wood-200);
  color: var(--wood-800);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Support section */
.section-support {
  background: linear-gradient(135deg, var(--wood-700), var(--wood-900));
  color: #fff;
}
.support-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.section-support h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.section-support p { font-size: 1.12rem; color: rgba(255,255,255,0.85); margin: 16px 0 30px; }
.support-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Final CTA band */
.cta-band { background: var(--wood-50); padding: 70px 0; }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-inner h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--wood-900); }

/* Footer */
.site-footer { background: var(--wood-900); color: var(--wood-100); padding: 48px 0 28px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand p { margin: 8px 0 0; color: rgba(255,255,255,0.7); max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-lang .lang-switch { background: rgba(255,255,255,0.1); }
.footer-lang .lang-btn { color: rgba(255,255,255,0.8); }
.footer-lang .lang-btn[aria-pressed="true"] { background: rgba(255,255,255,0.18); color: #fff; box-shadow: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: none; }
  .browser-mock { transform: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 44px; }
  .section { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .brand-tagline { display: none; }
  .header-actions .btn-primary { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn, .support-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
