/* Seu Vet Agro — marketing site styles. Brand tokens mirror apps/native/lib/theme.ts */

:root {
  --brand-50: #f9f2e7;
  --brand-100: #f2dfc0;
  --brand-200: #e4c38b;
  --brand-400: #d7af6a;
  --brand-500: #d0a159;
  --brand-600: #9c6d1c;
  --brand-700: #795515;
  --brand-900: #422d0b;

  --surface-bg: #f6f7f5;
  --surface-card: #ffffff;
  --surface-muted: #f1f3ef;
  --surface-dark: #15201a;

  --text-primary: #15201a;
  --text-secondary: #5b645e;
  --text-tertiary: #8c948e;
  --text-on-brand: #ffffff;

  --border-subtle: #e5e8e4;
  --border-strong: #d1d6ce;

  --accent-green-soft: #e4f3ea;
  --accent-green-strong: #1e8a4c;
  --accent-blue-soft: #e5edfb;
  --accent-blue-strong: #2f6fbf;
  --accent-purple-soft: #ece7fb;
  --accent-purple-strong: #6d4fd3;
  --accent-teal-soft: #dcf1ee;
  --accent-teal-strong: #138b82;
  --accent-amber-soft: #faefd8;
  --accent-amber-strong: #c2791b;
  --accent-red-soft: #fbe5e1;
  --accent-red-strong: #c0453b;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 30, 20, 0.08);
  --shadow-lg: 0 10px 24px rgba(15, 30, 20, 0.14);
  --shadow-xl: 0 24px 60px rgba(15, 30, 20, 0.22);

  --container: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--surface-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.75rem;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 245, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand__name .accent {
  color: var(--brand-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav__links a:hover {
  color: var(--text-primary);
  background: var(--surface-muted);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.btn--primary {
  background: var(--brand-600);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--brand-700);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-muted);
  text-decoration: none;
}

/* ---------- Store badges (coming soon) ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  color: #fff;
  position: relative;
  cursor: default;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge__top {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}

.store-badge__name {
  font-size: 1rem;
  font-weight: 700;
}

.store-badge__soon {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-500);
  color: var(--surface-dark);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  align-self: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(
      1200px 500px at 78% -10%,
      var(--brand-100),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 110%,
      var(--accent-green-soft),
      transparent 55%
    ),
    var(--surface-bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  margin-top: 1.25rem;
  max-width: 16ch;
}

.hero__lead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 46ch;
}

.hero__cta {
  margin-top: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero__cta-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.app-tile {
  width: min(320px, 80vw);
  aspect-ratio: 1;
  border-radius: clamp(36px, 9vw, 60px);
  box-shadow: var(--shadow-xl);
  transform: rotate(-3deg);
}

@media (prefers-reduced-motion: no-preference) {
  .app-tile {
    animation: float 6s ease-in-out infinite;
  }
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-12px);
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section__head {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.section__head p {
  margin-top: 0.85rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.feature {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.tint-green {
  background: var(--accent-green-soft);
  color: var(--accent-green-strong);
}
.tint-blue {
  background: var(--accent-blue-soft);
  color: var(--accent-blue-strong);
}
.tint-amber {
  background: var(--accent-amber-soft);
  color: var(--accent-amber-strong);
}
.tint-purple {
  background: var(--accent-purple-soft);
  color: var(--accent-purple-strong);
}
.tint-teal {
  background: var(--accent-teal-soft);
  color: var(--accent-teal-strong);
}
.tint-red {
  background: var(--accent-red-soft);
  color: var(--accent-red-strong);
}

/* ---------- Trust band ---------- */
.trust {
  background: var(--surface-muted);
  border-block: 1px solid var(--border-subtle);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.trust__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.trust__item p {
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__logo {
  width: 168px;
  margin-bottom: 0.9rem;
}

.site-footer__tagline {
  max-width: 30ch;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-nav h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #fff;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Article (privacy / legal) ---------- */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.legal__inner {
  max-width: 720px;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

.legal__updated {
  margin-top: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.legal__lead {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.legal p {
  margin-top: 1rem;
}

.legal ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.legal strong {
  color: var(--text-primary);
}

.legal__toc {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.legal__toc h2 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.legal__toc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.notfound h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.notfound p {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1,
  .hero__lead {
    margin-inline: auto;
  }

  .hero__cta {
    align-items: center;
  }

  .hero__visual {
    order: -1;
  }

  .stores {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
