/*
Theme Name: Avokato
Theme URI: https://www.avokato.ai
Description: Avokato waitlist landing page theme
Author: Kite Systems
Version: 1.0.0
Text Domain: avokato
*/

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

:root {
  --font-display: 'Syne', sans-serif;
  --font-sans: 'DM Sans', sans-serif;
  --color-ink: #2c2b29;
  --color-mid: #7a7a78;
  --color-muted: #b8b8b6;
  --color-rule: #e2e0dc;
  --color-bg: #f7f6f4;
  --color-white: #ffffff;
  --color-btn: #5e5e5e;
  --color-badge: #9a9896;
  --color-border: #d8d6d2;
}

[dir="rtl"] {
  --font-display: 'Cairo', sans-serif;
  --font-sans: 'Cairo', sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  min-height: 100vh;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-0 { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.00s both; }
.anim-1 { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.10s both; }
.anim-2 { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.20s both; }
.anim-3 { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.32s both; }
.anim-4 { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.44s both; }
.anim-in { animation: fadeIn 0.4s ease both; }

/* ── Navbar ─────────────────────────────────────────── */
.avk-nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 16px 48px;
  background: rgba(247,246,244,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-rule);
}

.avk-nav-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-badge);
  font-family: var(--font-sans);
}

.avk-nav-lang {
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-mid);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 16px;
  text-decoration: none;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.avk-nav-lang:hover {
  color: var(--color-ink);
  border-color: var(--color-badge);
  background: #edecea;
}

/* ── Page Layout ────────────────────────────────────── */
.avk-page {
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.avk-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  height: 0;
}
[dir="rtl"] .avk-main { flex-direction: row-reverse; }

.avk-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline-start: 56px;
  padding-inline-end: 8px;
  padding-bottom: 80px;
}
[dir="rtl"] .avk-content {
  padding-inline-start: 8px;
  padding-inline-end: 56px;
}

.avk-logo-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
  padding-inline-start: 8px;
  padding-inline-end: 56px;
}
[dir="rtl"] .avk-logo-panel {
  padding-inline-start: 56px;
  padding-inline-end: 8px;
}

.avk-logo-img {
  width: auto;
  height: 45%;
  max-height: 320px;
  opacity: 0.85;
  animation: fadeIn 0.8s ease 0.2s both;
}

/* ── Badge ──────────────────────────────────────────── */
.avk-badge {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-badge);
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avk-badge-line {
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: #c0bebb;
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── Headline ───────────────────────────────────────── */
.avk-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin-bottom: 28px;
  white-space: nowrap;
}
.avk-headline-sub { color: #5e5e5e; }

/* ── URL line ───────────────────────────────────────── */
.avk-url {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-badge);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

/* ── Decorative bars ────────────────────────────────── */
.avk-bars {
  display: flex;
  gap: 3px;
  margin-bottom: 24px;
}
.avk-bar { height: 2px; background: #5e5e5e; border-radius: 1px; }

/* ── Subtext ────────────────────────────────────────── */
.avk-subtext {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-mid);
  max-width: 380px;
  margin-bottom: 40px;
  font-family: var(--font-sans);
}

/* ── Form ───────────────────────────────────────────── */
.avk-form {
  width: 100%;
  max-width: 520px;
}
.avk-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.avk-input {
  flex: 1 1 220px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-family: var(--font-sans);
}
.avk-input:focus {
  border-color: #5e5e5e;
  box-shadow: 0 0 0 3px rgba(94,94,94,0.1);
}
.avk-input::placeholder { color: var(--color-muted); }

.avk-btn {
  flex-shrink: 0;
  background: var(--color-btn);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-display);
  white-space: nowrap;
}
.avk-btn:hover { background: #3a3a3a; }
.avk-btn:disabled { background: var(--color-badge); cursor: not-allowed; }

.avk-error {
  margin-top: 10px;
  font-size: 13px;
  color: #c0392b;
  font-family: var(--font-sans);
}

/* ── Features list ──────────────────────────────────── */
.avk-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 28px;
}
.avk-feature {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #c0bebb;
  font-family: var(--font-sans);
}
.avk-feature-sep {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: #d8d6d2;
  margin: 0 14px;
}

/* ── Success step ───────────────────────────────────── */
.avk-success-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.avk-check-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avk-success-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.avk-success-subtitle {
  font-size: 15px;
  color: var(--color-mid);
  font-family: var(--font-sans);
  line-height: 1.65;
  max-width: 400px;
}

/* ── Follow-up form ─────────────────────────────────── */
.avk-followup-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.avk-textarea {
  width: 100%;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--color-ink);
  outline: none;
  resize: none;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-family: var(--font-sans);
  line-height: 1.65;
}
.avk-textarea:focus {
  border-color: #5e5e5e;
  box-shadow: 0 0 0 3px rgba(94,94,94,0.1);
}

.avk-btn-row { display: flex; gap: 10px; align-items: center; }
.avk-skip-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: #c0bebb;
  cursor: pointer;
  padding: 8px 12px;
  font-family: var(--font-sans);
  transition: color 0.15s;
}
.avk-skip-btn:hover { color: var(--color-mid); }

/* ── Hidden steps ───────────────────────────────────── */
.avk-step { display: none; }
.avk-step.active { display: flex; }

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .avk-page { height: auto; overflow-y: auto; overflow-x: hidden; }
  .avk-main {
    flex-direction: column !important;
    height: auto;
    padding-top: 80px;
  }
  .avk-logo-panel {
    order: -1;
    flex: 0 0 170px;
    min-height: 0;
    height: 170px;
    padding: 16px 0 0 0;
  }
  .avk-content {
    padding: 8px 40px 32px 40px !important;
  }
  .avk-headline { white-space: normal; }
  .avk-logo-img { height: 140px; max-height: 140px; }
  .avk-nav { padding: 16px 24px; }
}
