/* ============ CloThis landing — design system from CloThis v11 prototype ============ */

:root {
  --ink: #111110;
  --bg: #FAF9F6;
  --paper: #F4F3F1;
  --line: #E6E5E1;
  --muted: #73716B; /* prototipo #77756F patamsintas iki WCAG AA (4.63:1 ant --bg) */
  --accent: #C5462B;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography helpers ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ---------- nav ---------- */

.nav {
  border-bottom: 0.5px solid var(--line);
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo { flex-shrink: 0; }

.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wordmark-dot { color: var(--accent); }

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border: 0.5px solid var(--line);
  background: #fff;
  border-radius: 100px;
  padding: 8px 16px;
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero { overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-title {
  font-size: clamp(44px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero-title-accent {
  color: #A5674F; /* prigesinta terakota — švelnesnė už --accent */
  font-weight: 400;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ---------- phone mockup ---------- */

.phone {
  position: relative;
  border: 11px solid var(--ink);
  border-radius: 48px;
  background: var(--ink);
  box-shadow:
    0 24px 64px rgba(17, 17, 16, 0.16),
    0 6px 20px rgba(17, 17, 16, 0.08);
  width: 300px;
  flex-shrink: 0;
}

.phone-screen {
  border-radius: 37px;
  overflow: hidden;
  background: #fff;
}

.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 24px;
  background: #000;
  border-radius: 100px;
}

.phone-hero { width: min(320px, 82vw); }

.phone-small { width: min(280px, 78vw); }

/* ---------- waitlist form ---------- */

.waitlist { max-width: 440px; }

.pill-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 2px 12px rgba(17, 17, 16, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill-form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 4px 20px rgba(17, 17, 16, 0.10);
}

.pill-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  padding: 10px 0;
}

.pill-input::placeholder { color: var(--muted); }

.pill-submit {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pill-submit:hover { transform: scale(1.03); }
.pill-submit:disabled { opacity: 0.55; cursor: default; transform: none; }

/* honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

.form-status.is-error { color: var(--accent); }
.form-status.is-success { color: var(--ink); font-weight: 600; }

.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- features ---------- */

.features { padding: 96px 0; border-top: 0.5px solid var(--line); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(17, 17, 16, 0.04);
}

.feature-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pro-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 100px;
  padding: 4px 10px;
}

.feature-text {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- steps ---------- */

.steps { padding: 96px 0; background: var(--paper); border-top: 0.5px solid var(--line); }

.steps-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 520px;
}

.steps-visual { text-align: center; margin: 0; }

.steps-visual .preview-caption { margin-top: 24px; }

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 14px;
}

.step-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.step-text {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- app preview ---------- */

.preview { padding: 96px 0; border-top: 0.5px solid var(--line); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
}

.preview-item { text-align: center; }

.preview-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
}

/* ---------- CTA ---------- */

.cta { padding: 32px 0 112px; }

.cta-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 32px;
  padding: 80px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(17, 17, 16, 0.06);
}

.cta-card .eyebrow { margin-bottom: 20px; }

.cta-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 32px;
}

.waitlist-center { margin: 0 auto; }

/* ---------- footer ---------- */

.footer { border-top: 0.5px solid var(--line); background: var(--bg); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer-mail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.footer-mail:hover { border-color: var(--ink); }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .feature-grid,
  .steps-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .steps-layout {
    grid-template-columns: 1fr;
    gap: 56px;
    justify-items: center;
  }

  .steps-grid { max-width: none; justify-items: start; }

  .features, .steps, .preview { padding: 72px 0; }

  .preview-grid { gap: 56px; }

  .section-title { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .badge { padding: 7px 12px; font-size: 10px; }

  .wordmark { font-size: 18px; }

  .hero-title { font-size: clamp(40px, 12vw, 52px); }

  .pill-form { padding-left: 18px; }

  .pill-submit { padding: 11px 18px; font-size: 14px; }

  .cta-card { padding: 56px 20px; border-radius: 24px; }

  .footer-inner { flex-direction: column; }
}

/* ---------- formos statusu spalvos (Supabase versija) ---------- */
.form-status { min-height: 1.2em; font-size: 0.9rem; margin-top: 0.5rem; }
.form-status.is-ok  { color: #1a7f4b; }
.form-status.is-err { color: #c0392b; }
.pill-submit:disabled { opacity: 0.6; cursor: wait; }
