/* ==========================================================================
   Maju Vendas Online — Design System (tokens)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  /* Base ramp — brand teal */
  --teal-900: #0B302C;
  --teal-800: #10403B;
  --teal-700: #14514B;
  --teal-300: #7FB69B;
  --teal-50:  #E9F1EE;
  --teal-100: #D8E6E1;

  /* Base ramp — action amber */
  --amber-700: #C4741F;
  --amber-600: #D9832F;
  --amber-500: #E8944A;
  --amber-50:  #FDF0E3;
  --amber-ink: #A65B14;

  /* Warm neutrals */
  --ink-900: #16211F;
  --ink-700: #3A423F;
  --ink-500: #5C6360;
  --ink-400: #8B8478;
  --ink-300: #A9A296;
  --sand-300: #CFC7B9;
  --sand-250: #DDD4C6;
  --sand-200: #E5DCCE;
  --sand-150: #EDE6DC;
  --sand-100: #F6F1E9;
  --sand-50:  #FBF8F4;
  --white:    #FFFFFF;

  /* Semantic status */
  --red-600:  #A8382A;
  --red-50:   #FBE9E6;

  /* Aliases */
  --brand:        var(--teal-800);
  --brand-hover:  var(--teal-700);
  --brand-active: var(--teal-900);
  --brand-50:     var(--teal-50);
  --action:        var(--amber-500);
  --action-hover:  var(--amber-600);
  --action-active: var(--amber-700);
  --action-50:     var(--amber-50);
  --support:       var(--teal-300);
  --danger:  var(--red-600);
  --danger-bg: var(--red-50);
  --warning: var(--amber-ink);
  --warning-bg: var(--amber-50);

  /* Typography */
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --size-display: 3.25rem;
  --leading-display: 1.02;
  --tracking-display: -0.03em;

  --size-h2: 2.5rem;
  --leading-h2: 1.1;
  --tracking-h2: -0.025em;

  --size-body: 1.1875rem;
  --leading-body: 1.65;

  --size-ui: 1.0625rem;
  --size-small: 0.9375rem;
  --leading-small: 1.5;

  --size-eyebrow: 0.8125rem;
  --tracking-eyebrow: 0.1em;
  --tracking-wordmark: 0.3em;

  --measure-prose: 68ch;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 72px;
  --space-6: 88px;
  --container: 1200px;

  /* Effects */
  --radius-chip: 8px;
  --radius-input: 12px;
  --radius-card: 16px;
  --radius-card-lg: 20px;
  --radius-pill: 999px;

  --border: 1px solid var(--sand-150);
  --shadow-card: 0 1px 2px rgba(22, 33, 31, 0.04), 0 8px 24px rgba(22, 33, 31, 0.06);
  --shadow-float: 0 30px 70px rgba(22, 33, 31, 0.18);
  --focus-ring: 0 0 0 4px var(--brand-50);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 150ms;
  --transition: all var(--duration) var(--ease);

  /* Semantic */
  --bg: var(--sand-50);
  --surface: var(--sand-100);
  --surface-card: var(--white);
  --border-color: var(--sand-150);

  --text-body: var(--ink-700);
  --text-heading: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400);
  --text-on-brand: var(--sand-50);
  --text-on-brand-muted: #C9DAD6;
  --text-on-action: var(--ink-900);
  --text-link: var(--brand);
  --text-link-hover: #C97A2E;

  --cta-bg: var(--action);
  --cta-fg: var(--ink-900);
  --outline-border: var(--sand-300);
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); text-decoration: underline; }
img { max-width: 100%; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--sand-150);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 34px 40px;
  background: var(--brand);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__copy {
  font-size: 15px;
  color: var(--text-on-brand-muted);
}

.site-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-footer__links a {
  color: #CFDCD7;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--text-on-brand);
  text-decoration: underline;
}

/* ==========================================================================
   Logo
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.logo-mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--text-on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.logo-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--action);
  border: 2px solid var(--bg);
}

.logo-mark--sm { width: 32px; height: 32px; font-size: 14px; }

.logo-mark--negative {
  background: var(--sand-50);
  color: var(--brand);
}

.logo-mark--negative::after { border-color: var(--brand); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink-900);
}

.logo-word .dot { color: var(--action); }

.logo-tagline {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-wordmark);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Button
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--sm { padding: 9px 20px; font-size: 15px; }

.btn--action {
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.btn--action:hover { background: var(--action-hover); transform: translateY(-1px); }
.btn--action:active { background: var(--action-active); transform: translateY(1px); }

.btn--outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--outline-border);
}

.btn--outline:hover { border-color: var(--brand); background: var(--teal-50); }

/* ==========================================================================
   Affiliate disclosure
   ========================================================================== */
.disclosure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.disclosure::before {
  content: "";
  flex: none;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--support);
}

.disclosure p {
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .site-header, .site-footer, section { padding-left: 20px !important; padding-right: 20px !important; }
  h1 { font-size: 38px !important; }
  h2 { font-size: 28px !important; }
}
