/* ===========================================================
   Zendor landing page — global styles
   =========================================================== */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent-blue: #2323f0;
  --accent-pink: #e9b8f5;
  --pill-bg: #151517;
  --pill-border: rgba(255, 255, 255, 0.1);
  --muted: rgba(255, 255, 255, 0.65);
  --font-heading: "Space Grotesk", "Helvetica Neue", Arial, "Inter", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

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

section {
  padding: 64px 20px;
}

@media (min-width: 640px) {
  section {
    padding: 96px 32px;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 128px 48px;
  }
}

/* ===========================================================
   Section 1 — Hero
   =========================================================== */

.hero {
  padding: 0;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  animation: hero-fade-in 0.9s ease both;
}

.hero-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.hero-picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.hero-picture img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
}

@media (min-width: 640px) {
  .hero-picture img {
    aspect-ratio: 3600 / 1050;
  }
}

.hero-nav[hidden],
.hero-dots[hidden] {
  display: none;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover,
.hero-nav:focus-visible {
  background: rgba(0, 0, 0, 0.75);
  outline: none;
}

.hero-nav-prev {
  left: 16px;
}

.hero-nav-next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: var(--fg);
  transform: scale(1.3);
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===========================================================
   Section 2 — Subscribe
   =========================================================== */

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

.subscribe-heading {
  font-size: 1.75rem;
}

@media (min-width: 640px) {
  .subscribe-heading {
    font-size: 2.25rem;
  }
}

.subscribe-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.subscribe-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.field-group {
  width: 100%;
}

.pill-input {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--fg);
  padding: 0 24px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.pill-input:focus-visible {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(35, 35, 240, 0.35);
}

.extra-fields {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.extra-fields.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}

.extra-fields-inner {
  overflow: hidden;
  min-height: 0;
}

/* Once fully revealed, allow the country dropdown panel to escape this
   wrapper's bounds instead of staying clipped by the collapse animation's
   overflow:hidden. */
.extra-fields.is-visible .extra-fields-inner {
  overflow: visible;
}

.extra-fields-inner .field-group + .field-group {
  margin-top: 16px;
}

.phone-field-group {
  position: relative;
}

.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-field:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(35, 35, 240, 0.35);
}

.country-select {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 12px 0 20px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--pill-border);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.country-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.country-dial {
  white-space: nowrap;
}

.country-caret {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.country-select[aria-expanded="true"] .country-caret {
  transform: rotate(180deg);
}

.phone-number-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 20px;
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
}

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

.phone-number-input:focus {
  outline: none;
}

.country-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, 100%);
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 10;
  overflow: hidden;
}

.country-panel[hidden] {
  display: none;
}

.country-search {
  margin: 12px 12px 8px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  padding: 0 16px;
  font-size: 0.9rem;
  font-family: inherit;
}

.country-search::placeholder {
  color: var(--muted);
}

.country-search:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.country-list {
  list-style: none;
  overflow-y: auto;
  padding: 0 8px 12px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--fg);
  text-align: left;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

.country-option:hover,
.country-option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.country-option-flag {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.country-option-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-option-dial {
  color: var(--muted);
  flex-shrink: 0;
}

.country-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.form-error {
  color: var(--accent-pink);
  font-size: 0.9rem;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .subscribe-form {
    align-items: stretch;
  }
}

/* ===========================================================
   Thank-you page
   =========================================================== */

.thanks {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thanks-inner {
  max-width: 480px;
}

.thanks-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.thanks-heading {
  margin-top: 24px;
  font-size: 2rem;
}

@media (min-width: 640px) {
  .thanks-heading {
    font-size: 2.5rem;
  }
}

.thanks-body {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.thanks-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--accent-pink);
  font-weight: 600;
  text-decoration: none;
}

.thanks-link:hover,
.thanks-link:focus-visible {
  text-decoration: underline;
}

/* ===========================================================
   Reusable CTA pill button ("Let's Collaborate")
   =========================================================== */

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 56px;
  min-width: 240px;
  justify-content: flex-start;
  border: none;
  border-radius: 999px;
  background: var(--accent-blue);
  cursor: pointer;
  overflow: hidden;
  padding: 0 8px;
  margin-top: 24px;
  transition: transform 0.15s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  outline: none;
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-btn:disabled {
  background: #666666;
  cursor: not-allowed;
}

.cta-btn:disabled .cta-label,
.cta-btn:disabled .cta-icon {
  opacity: 0.7;
}

.cta-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cta-label {
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  padding-left: 20px;
  padding-right: 56px;
  transition: padding 0.28s ease;
}

.cta-btn:hover .cta-label,
.cta-btn:focus-visible .cta-label {
  padding-left: 56px;
  padding-right: 20px;
}

.cta-icon {
  position: absolute;
  top: 8px;
  left: calc(100% - 48px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.28s ease;
}

.cta-btn:hover .cta-icon,
.cta-btn:focus-visible .cta-icon {
  left: 8px;
}

.cta-icon svg {
  transform: rotate(-45deg);
  transition: transform 0.28s ease;
}

.cta-btn:hover .cta-icon svg,
.cta-btn:focus-visible .cta-icon svg {
  transform: rotate(0deg);
}

/* ===========================================================
   Section 3 — FAQ accordion
   =========================================================== */

.faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq-heading {
  font-size: 1.75rem;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .faq-heading {
    font-size: 2.25rem;
    margin-bottom: 48px;
  }
}

.faq-list {
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid var(--pill-border);
  transition-delay: calc(var(--stagger, 0) * 40ms);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  padding: 20px 4px;
}

.faq-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}

.faq-number {
  font-family: var(--font-heading);
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 2ch;
}

.faq-question {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .faq-question {
    font-size: 1.1rem;
  }
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--fg);
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel-inner p {
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 70ch;
}

@media (min-width: 640px) {
  .faq-panel-inner p {
    font-size: 1rem;
  }
}

/* ===========================================================
   Subtle scroll-reveal (vanilla, no dependencies)
   =========================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-carousel,
  .whatsapp-fab {
    animation: none !important;
  }
}

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--pill-border);
}

/* ===========================================================
   WhatsApp floating action button
   =========================================================== */

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fab-in 0.5s ease 0.6s both;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  outline: none;
}

@keyframes fab-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
