/* ==========================================================================
   AmikoPet — site institucional (amikopet.com.br)
   Tokens portados de src/theme/tokens.ts (fonte única de verdade do app).
   Site estático, sem build tooling — CSS puro, mobile-first.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --petrol-900: #0f332c;
  --petrol-700: #175449;
  --petrol-500: #1f6e5d;
  --amber-500: #e2963c;
  --amber-300: #f0be7c;
  --cream: #f5f1e8;
  --cream-soft: #efe9db;
  --ink: #16211e;
  --ink-soft: #5b6863;
  --line: #e4dfd1;

  --font-display: "Baloo 2", "Segoe UI Rounded", ui-rounded, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --max-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--petrol-900);
  text-wrap: balance;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--petrol-900);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--petrol-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.pill-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-500);
  background: #fcf3e4;
  border: 1px dashed var(--amber-500);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--amber-500);
}

.hero-sub {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--petrol-900);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--petrol-700);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--petrol-900);
}

.btn-ghost:hover {
  border-color: var(--petrol-900);
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Hero visual: tag-shaped photo/illustration frame, echoing the logo mark */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  justify-self: center;
}

.tag-frame {
  position: absolute;
  inset: 0;
  background: var(--petrol-900);
  border-radius: 42% 42% 40% 40% / 46% 46% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tag-frame::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--cream);
}

.tag-frame::after {
  content: "";
  position: absolute;
  top: 12.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 8%;
  height: 8%;
  border-radius: 50%;
  background: var(--petrol-900);
}

.tag-frame img {
  width: 62%;
  height: auto;
  position: relative;
  top: 6%;
}

/* ---------- Story sections (Por que existimos / Como o feed funciona) ---------- */

.story {
  padding: 72px 0;
}

.story .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.story-reverse .wrap {
  grid-template-columns: 1.15fr 0.85fr;
}

.story-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-soft);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 18px;
}

.story-copy > p {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 58ch;
  margin-bottom: 16px;
}

.founder-note {
  border-left: 3px solid var(--amber-500);
  padding-left: 20px;
  margin: 20px 0;
}

.founder-note p {
  font-size: 14.5px;
  font-style: italic;
  color: var(--petrol-700);
  max-width: 58ch;
  margin-bottom: 12px;
}

.founder-note p:last-child {
  margin-bottom: 0;
}

.story-reverse .subtabs {
  margin-top: 20px;
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}

.section-head .kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol-500);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
}

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

.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.section-alt .feature-card {
  background: #fffdf8;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--cream);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Alternating icon accent colors, matching feed sub-abas (Farejando / Amikos / Fora da casinha) */
.feature-card:nth-child(1) .feature-icon { background: var(--petrol-900); }
.feature-card:nth-child(2) .feature-icon { background: var(--amber-500); color: var(--petrol-900); }
.feature-card:nth-child(3) .feature-icon { background: var(--petrol-500); }

/* ---------- Sub-tabs strip (Farejando / Amikos / Fora da casinha) ---------- */

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.subtab-chip {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--petrol-900);
  background: var(--cream);
}

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

.cta-band {
  background: var(--petrol-900);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--cream);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  max-width: 30ch;
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--amber-300);
  font-size: 15px;
}

.cta-band .btn-primary {
  background: var(--amber-500);
  color: var(--petrol-900);
  flex-shrink: 0;
}

.cta-band .btn-primary:hover {
  background: var(--amber-300);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.footer-brand img {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--petrol-900);
}

/* ---------- Legal pages (Termos / Privacidade) ---------- */

.legal-page {
  padding: 56px 0 96px;
}

.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-shell h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-bottom: 28px;
}

.legal-disclaimer {
  display: flex;
  gap: 12px;
  background: #fcf3e4;
  border: 1.5px dashed var(--amber-500);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--petrol-900);
  margin-bottom: 36px;
}

.legal-disclaimer strong {
  color: var(--amber-500);
}

.legal-shell h2 {
  font-size: 19px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-shell h3 {
  font-size: 15.5px;
  color: var(--petrol-700);
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-shell p {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 14px;
}

.legal-shell ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink);
  font-size: 15px;
}

.legal-shell li {
  margin-bottom: 6px;
}

.legal-shell table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.legal-shell th,
.legal-shell td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-shell th {
  background: var(--cream-soft);
  font-family: var(--font-body);
  font-weight: 700;
}

.pending {
  color: var(--amber-500);
  font-weight: 700;
}

.legal-checklist {
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
}

.legal-checklist h2 {
  margin-top: 0;
}

.legal-checklist ul {
  list-style: none;
  padding-left: 0;
}

.legal-checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.legal-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--amber-500);
}

/* ---------- Confirmação de e-mail ---------- */

.confirm-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--petrol-900);
  padding: 24px;
}

.confirm-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #eaf3ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-card h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.confirm-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.confirm-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.confirm-brand {
  margin-top: 28px;
  opacity: 0.7;
}

.confirm-brand img {
  height: 22px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 260px;
  }

  .story .wrap,
  .story-reverse .wrap {
    grid-template-columns: 1fr;
  }

  .story-photo {
    order: -1;
    aspect-ratio: 16 / 10;
  }

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

  .site-nav {
    gap: 16px;
    font-size: 13.5px;
  }

  .cta-band {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .site-header .pill-badge {
    display: none;
  }
}
