/**
 * Vettara™ landing page — styles
 * Mobile-first; teal #1DB5A8, navy #0A3D62
 */

/* ----- CSS variables ----- */
:root {
  /* Derived from docs/branding/logo SVG (navy / teal family) */
  --color-teal: #039d83;
  --color-teal-hover: #028297;
  --color-navy: #002358;
  --color-white: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #cce8e5;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 8px 32px rgba(10, 61, 98, 0.08);
  --header-h: 4rem;
  --container: 1200px;
  --space-section: 2.5rem;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: 720px;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo--full .logo__img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(200px, 45vw);
}

.logo:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

.header-badge {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-teal);
}

.header-badge__text {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(29, 181, 168, 0.12);
  border-radius: 999px;
}

/* Nav */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.site-nav.is-open {
  max-height: 280px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(29, 181, 168, 0.1);
  color: var(--color-teal-hover);
}

.nav-list a:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .header-badge {
    flex-basis: 100%;
    order: 10;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    width: auto;
    max-height: none !important;
    overflow: visible;
    order: 1;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
  }

  .nav-list a {
    padding: 0.5rem 0.75rem;
  }

  .logo {
    order: 0;
  }

  .header-badge {
    order: 2;
    margin-left: auto;
  }
}

/* ----- Main offset for fixed header ----- */
main {
  padding-top: calc(var(--header-h) + 0.5rem);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding-block: var(--space-section);
  overflow: hidden;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(29, 181, 168, 0.12) 0%, transparent 45%, rgba(10, 61, 98, 0.06) 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  max-width: 36rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 1rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.hero__date {
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
  color: var(--color-text);
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero__logo-mark {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.site-footer__logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  display: block;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero {
    padding-block: 3.5rem;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-teal-hover);
}

.btn--store {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.9375rem;
}

.btn--store:hover {
  background: #062a44;
}

/* ----- Forms ----- */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-form--inline {
  flex-direction: column;
  max-width: 480px;
  margin-inline: auto;
}

@media (min-width: 480px) {
  .waitlist-form--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .waitlist-form--inline .input-email {
    flex: 1;
    min-width: 200px;
  }
}

.input-email {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--color-teal);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: box-shadow var(--transition);
}

.input-email::placeholder {
  color: #999;
}

.input-email:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 181, 168, 0.35);
}

.honey {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-message {
  min-height: 1.5rem;
  font-size: 0.9375rem;
  margin: 0.5rem 0 0;
}

.form-message--success {
  color: #0d6e3f;
  font-weight: 600;
}

.form-message--error {
  color: #b00020;
  font-weight: 600;
}

/* ----- Sections ----- */
.section {
  padding-block: var(--space-section);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
  text-align: center;
}

.section__lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .section h2 {
    font-size: 1.75rem;
  }

  .section {
    padding-block: 3rem;
  }
}

@media (min-width: 1024px) {
  .section h2 {
    font-size: 2rem;
  }
}

/* Features grid */
.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 61, 98, 0.06);
}

.feature-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--color-navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}

.steps__item h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
  color: var(--color-navy);
}

.steps__item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Value list */
.value-list {
  margin: 1.5rem auto 0;
  padding: 0;
  max-width: 40rem;
  list-style: none;
}

.value-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--color-text);
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0d4d7a 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-band h2 {
  color: var(--color-white);
}

.cta-band__sub {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0 0 0.5rem;
}

.cta-band__small {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0 0 1.5rem;
}

.cta-band .input-email {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.cta-band .btn--primary {
  background: var(--color-teal);
}

.cta-band .btn--primary:hover {
  background: var(--color-teal-hover);
}

.cta-band .form-message {
  color: #b8ffe8;
}

.cta-band .form-message--error {
  color: #ffcccc;
}

/* FAQ */
.faq {
  margin: 1.5rem 0 0;
}

.faq__item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.faq dd {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.faq a {
  color: var(--color-teal-hover);
  font-weight: 600;
}

.faq a:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

/* Contact section */
#contact p {
  font-size: 1rem;
  margin: 0;
}

#contact a {
  color: var(--color-teal-hover);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .site-footer__links,
  .site-footer__contact {
    text-align: right;
  }
}

.site-footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0;
}

.site-footer__tagline {
  margin: 0;
  opacity: 0.85;
  font-size: 0.875rem;
}

.site-footer__legal p {
  margin: 0 0 0.35rem;
}

.site-footer__links a,
.site-footer__contact a {
  color: #7fd9d0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-white);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}
