/* ===== Fred Digital Marketing — One Page ===== */

:root {
  --brand-blue: #1f4e7a;
  --brand-blue-mid: #4a7cb3;
  --brand-blue-soft: #e7eff7;
  --brand-amber: #f5b445;
  --brand-amber-soft: #fdf1d4;
  --ink: #0f1d2c;
  --ink-2: #32485d;
  --ink-3: #6b7d90;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-2: #f7f4ec;       /* marfim */
  --bg-dark: #0f2a44;
  --radius: 14px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* Dark mode — promove amarelo como destaque principal */
[data-theme="dark"] {
  --ink: #f3f6fa;
  --ink-2: #c5d2e0;
  --ink-3: #8ea0b4;
  --line: #223548;
  --bg: #0b1c2f;
  --bg-2: #0f2a44;
  --bg-dark: #061624;
  --brand-blue-soft: #12314d;
  --brand-amber-soft: #3a2d10;
}
[data-theme="dark"] .eyebrow { color: var(--brand-amber); }
[data-theme="dark"] .eyebrow::before { background: var(--brand-amber); }
[data-theme="dark"] .hero h1 em { color: var(--brand-amber); }
[data-theme="dark"] .hero h1 em::after { background: var(--brand-amber); opacity: .28; }
[data-theme="dark"] .hero-eyebrow { background: color-mix(in oklab, var(--brand-amber) 18%, transparent); color: var(--brand-amber); }
[data-theme="dark"] .btn-primary { background: var(--brand-amber); color: #0b1c2f; box-shadow: 0 6px 24px -8px color-mix(in oklab, var(--brand-amber) 55%, transparent); }
[data-theme="dark"] .btn-primary:hover { background: #ffc75c; }
[data-theme="dark"] .nav-cta { background: var(--brand-amber); color: #0b1c2f; }
[data-theme="dark"] .nav-cta:hover { background: #ffc75c; }
[data-theme="dark"] .phase-icon { background: color-mix(in oklab, var(--brand-amber) 18%, transparent); color: var(--brand-amber); }
[data-theme="dark"] .service-icon { background: color-mix(in oklab, var(--brand-amber) 18%, transparent); color: var(--brand-amber); }
[data-theme="dark"] .channel .ico { background: color-mix(in oklab, var(--brand-amber) 18%, transparent); color: var(--brand-amber); }
[data-theme="dark"] .channel:hover { border-color: var(--brand-amber); }
[data-theme="dark"] .service:hover { border-color: var(--brand-amber); }
[data-theme="dark"] .nav-links a:hover { color: var(--brand-amber); }
[data-theme="dark"] .method-num { background: color-mix(in oklab, var(--brand-amber) 22%, transparent); color: var(--brand-amber); }
[data-theme="dark"] .phase-num { color: var(--brand-amber); }
[data-theme="dark"] .phase-tag { color: var(--brand-amber); }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus { border-color: var(--brand-amber); }
[data-theme="dark"] .about-highlights div { border-left-color: var(--brand-amber); }
[data-theme="dark"] .hero-card-main { background: #13324f; border-color: #264863; }
[data-theme="dark"] .hero-card-main::before { background: radial-gradient(circle, color-mix(in oklab, var(--brand-amber) 80%, transparent) 0%, transparent 70%); }
[data-theme="dark"] .hero-card-chart span:nth-child(9) { background: var(--brand-amber); }
[data-theme="dark"] .hero-card-float .ico { background: color-mix(in oklab, var(--brand-amber) 22%, transparent); color: var(--brand-amber); }
[data-theme="dark"] .service li::before { background: var(--brand-amber); }
[data-theme="dark"] .footer a:hover { color: var(--brand-amber); }

.hero-brand { display: block; margin-bottom: 28px; }
.hero-brand img { height: 72px; width: auto; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.nav-links a:hover { color: var(--brand-blue); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand-blue); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--brand-blue-mid); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ===== Hero ===== */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-amber-soft); color: var(--brand-blue);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-amber);
}
.hero h1 {
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-blue);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: var(--brand-amber); opacity: .55; z-index: -1;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-blue); color: #fff;
  box-shadow: 0 6px 24px -8px color-mix(in oklab, var(--brand-blue) 60%, transparent);
}
.btn-primary:hover { background: var(--brand-blue-mid); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-whats {
  background: #25D366; color: #fff;
}
.btn-whats:hover { background: #1ebe5a; }

.hero-trust {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
}
.hero-trust-item { font-size: 13px; color: var(--ink-3); }
.hero-trust-item strong {
  display: block; font-size: 22px; color: var(--ink); font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 520px; width: 100%; margin: 0 auto;
}
.hero-card {
  position: absolute;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 60px -30px rgba(15,29,44,.25);
}
[data-theme="dark"] .hero-card { background: #13324f; border-color: #264863; }
.hero-card-main {
  inset: 8% 4% 8% 4%;
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  overflow: hidden;
}
.hero-card-main::before {
  content: ''; position: absolute;
  right: -40px; top: -40px; width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-amber) 60%, transparent) 0%, transparent 70%);
}
.hero-card-label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .7; font-weight: 600;
}
.hero-card-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 16px;
}
.hero-card-chart span {
  flex: 1; background: color-mix(in oklab, #fff 22%, transparent);
  border-radius: 4px 4px 0 0;
  animation: growBar 1s cubic-bezier(.2,.8,.2,1) both;
}
.hero-card-chart span:nth-child(1) { height: 25%; animation-delay: .05s;}
.hero-card-chart span:nth-child(2) { height: 32%; animation-delay: .1s;}
.hero-card-chart span:nth-child(3) { height: 28%; animation-delay: .15s;}
.hero-card-chart span:nth-child(4) { height: 44%; animation-delay: .2s;}
.hero-card-chart span:nth-child(5) { height: 55%; animation-delay: .25s;}
.hero-card-chart span:nth-child(6) { height: 48%; animation-delay: .3s;}
.hero-card-chart span:nth-child(7) { height: 68%; animation-delay: .35s;}
.hero-card-chart span:nth-child(8) { height: 78%; animation-delay: .4s;}
.hero-card-chart span:nth-child(9) { height: 92%; background: var(--brand-amber); animation-delay: .45s;}
@keyframes growBar { from { height: 0; } }

.hero-card-stat {
  margin-top: 18px; display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-card-stat .big {
  font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.hero-card-stat .label { font-size: 12px; opacity: .7; max-width: 120px; text-align: right; }

.hero-card-float {
  bottom: 0; right: -4%;
  width: 56%;
  padding: 16px 18px;
  display: flex; gap: 12px; align-items: center;
}
.hero-card-float .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-amber-soft); color: var(--brand-amber);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-card-float .t { font-size: 12px; color: var(--ink-3); }
.hero-card-float .v { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em;}

.hero-card-float-2 {
  top: -2%; left: -4%;
  padding: 12px 14px; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink);
}
.hero-card-float-2 .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px color-mix(in oklab, #22c55e 25%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in oklab, #22c55e 0%, transparent); } }

/* ===== Generic section ===== */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--bg-dark); color: #e6eef7; }
.section-dark .eyebrow { color: var(--brand-amber); }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: #b9c7d6; }

.section-header { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-blue);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1.5px; background: var(--brand-amber);
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ===== Fases (Preparação → Semeadura → Colheita) ===== */
.phases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  position: relative;
}
@media (max-width: 880px) { .phases { grid-template-columns: 1fr; } }
.phase {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.phase:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -25px rgba(15,29,44,.2); }
[data-theme="dark"] .phase { background: #13324f; }
.phase-num {
  font-size: 14px; font-weight: 600; color: var(--brand-blue);
  letter-spacing: .1em;
}
.phase-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-blue-soft); color: var(--brand-blue);
  display: grid; place-items: center;
  margin: 16px 0 24px;
}
.phase h3 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.phase p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.phase-tag {
  display: inline-block; margin-top: 18px;
  font-size: 12px; font-weight: 600; color: var(--brand-blue);
  border-top: 1px solid var(--line); padding-top: 14px; width: 100%;
}

/* ===== F.R.E.D Methodology list ===== */
.methodology-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 820px) { .methodology-grid { grid-template-columns: 1fr; } }
.method-item {
  background: var(--bg);
  padding: 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  align-items: start;
  transition: background .2s;
}
[data-theme="dark"] .method-item { background: #0b1c2f; }
.method-item:hover { background: var(--bg-2); }
[data-theme="dark"] .method-item:hover { background: #13324f; }
.method-num {
  font-size: 13px; font-weight: 700; color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
  background: var(--brand-amber-soft);
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  letter-spacing: 0;
}
.method-item h4 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.method-item p {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
}

/* ===== FRED acronym ===== */
.fred-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 48px;
}
@media (max-width: 820px) { .fred-grid { grid-template-columns: repeat(2, 1fr); } }
.fred-cell {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: color-mix(in oklab, #fff 6%, transparent);
  border: 1px solid color-mix(in oklab, #fff 12%, transparent);
}
.fred-cell .letter {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--brand-amber); line-height: 1;
}
.fred-cell .word {
  font-size: 14px; color: #b9c7d6; margin-top: 4px; font-weight: 500;
}
.fred-cell h4 {
  font-size: 16px; margin: 20px 0 8px; font-weight: 700; color: #fff;
}
.fred-cell p { font-size: 13.5px; color: #9fb0c3; line-height: 1.55; }

/* ===== Serviços ===== */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s;
}
.service:hover {
  border-color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -25px rgba(15,29,44,.2);
}
[data-theme="dark"] .service { background: #13324f; }
.service-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--brand-blue-soft); color: var(--brand-blue);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service h4 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service p {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
  margin-bottom: 14px;
}
.service ul { list-style: none; padding: 0; }
.service li {
  font-size: 13.5px; color: var(--ink-2);
  padding: 4px 0 4px 18px; position: relative;
}
.service li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 8px; height: 2px; background: var(--brand-amber);
}

/* ===== Sobre ===== */
.about-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--brand-blue-soft);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, color-mix(in oklab, var(--brand-amber) 18%, transparent));
  pointer-events: none;
}
.about h2 { margin-bottom: 20px; }
.about-text p {
  font-size: 16.5px; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 18px;
}
.about-highlights {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 28px;
}
.about-highlights div {
  padding: 14px 16px;
  border-left: 3px solid var(--brand-amber);
  background: var(--bg-2);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
}
[data-theme="dark"] .about-highlights div { background: #13324f; }
.about-highlights strong { display: block; color: var(--ink); margin-bottom: 2px; }
.about-highlights span { color: var(--ink-3); font-size: 13px; }

/* ===== Contato ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p {
  font-size: 17px; color: var(--ink-2); margin-bottom: 32px;
  line-height: 1.65; max-width: 440px;
}
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px;
  transition: all .2s;
}
.channel:hover { border-color: var(--brand-blue); transform: translateX(4px); }
[data-theme="dark"] .channel { background: #13324f; }
.channel .ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-blue-soft); color: var(--brand-blue);
  display: grid; place-items: center; flex-shrink: 0;
}
.channel .l { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.channel .v { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 2px; }

.form {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 40px);
}
[data-theme="dark"] .form { background: #13324f; }
.form h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  font: inherit; color: var(--ink);
  transition: border-color .15s;
}
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select { background: #0b1c2f; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-blue);
}
.field textarea { min-height: 100px; resize: vertical; }
.form button[type="submit"] { width: 100%; justify-content: center; margin-top: 8px; }
.form-ok { display: none; padding: 14px; border-radius: 10px; background: #def5e4; color: #137a3a; font-size: 14px; margin-top: 12px; }
.form-ok.show { display: block; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark); color: #b9c7d6;
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo { height: 56px; width: auto; display: block; }
.footer p { font-size: 14px; line-height: 1.65; max-width: 360px; color: #9fb0c3; }
.footer h5 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer a:hover { color: var(--brand-amber); }
.footer-bottom {
  border-top: 1px solid #1d3a58;
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #7d93aa;
}

/* ===== Reveal animation comment moved below ===== */
/* ===== Tweaks panel ===== */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.3);
  font-size: 13px;
  display: none;
  max-height: 80vh; overflow-y: auto;
}
.tweaks-panel.show { display: block; }
.tweaks-panel h5 {
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel h5 small { font-weight: 500; color: var(--brand-amber); }
.tw-field { margin-bottom: 16px; }
.tw-field > label { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.tw-field input[type="text"], .tw-field select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-2); color: var(--ink); font: inherit; font-size: 13px;
}
[data-theme="dark"] .tw-field input[type="text"], [data-theme="dark"] .tw-field select { background: #0b1c2f; }
.tw-switches label {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-weight: 500; color: var(--ink-2);
}
.tw-switches input { accent-color: var(--brand-blue); }
.tw-colors { display: flex; gap: 8px; }
.tw-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; transition: transform .15s; }
.tw-color:hover { transform: scale(1.1); }
.tw-color.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--brand-amber); }

/* ===== Seção Rota (metáfora do mar) ===== */
.rota {
  background: var(--bg-dark);
  color: #e6eef7;
  position: relative;
  overflow: hidden;
}
.rota::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, color-mix(in oklab, var(--brand-blue-mid) 30%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, color-mix(in oklab, var(--brand-amber) 18%, transparent) 0%, transparent 50%);
  pointer-events: none;
}
.rota .wrap { position: relative; z-index: 1; }
.rota-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .rota-grid { grid-template-columns: 1fr; } }
.rota h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; text-wrap: balance; margin-bottom: 22px; }
.rota h2 em { font-style: normal; color: var(--brand-amber); }
.rota-lead { font-size: clamp(16px, 1.4vw, 18px); color: #b9c7d6; line-height: 1.7; margin-bottom: 18px; }
.rota-lead strong { color: #fff; font-weight: 600; }
.rota-sig { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 20px; border-top: 1px solid #1d3a58; font-size: 14px; color: var(--brand-amber); font-weight: 500; }
.rota-sig svg { flex-shrink: 0; }

/* Visual do compass/mapa */
.rota-visual {
  aspect-ratio: 1;
  max-width: 460px; width: 100%; margin: 0 auto;
  position: relative;
}
.compass {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.compass-ring {
  width: 90%; height: 90%;
  border: 1.5px dashed color-mix(in oklab, var(--brand-amber) 45%, transparent);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.compass-ring-inner {
  position: absolute;
  width: 62%; height: 62%;
  border: 1px solid color-mix(in oklab, #fff 18%, transparent);
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.compass-needle {
  position: absolute;
  width: 4px; height: 52%;
  top: 24%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.compass-needle::before, .compass-needle::after {
  content: ''; flex: 1; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.compass-needle::before { background: var(--brand-amber); }
.compass-needle::after { background: #4a7cb3; transform: rotate(180deg); }
.compass-center {
  position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 50%; left: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--brand-amber), 0 0 0 6px rgba(255,255,255,.1);
}
.compass-tick {
  position: absolute;
  width: 3px; height: 18px;
  background: var(--brand-amber);
  border-radius: 2px;
}
.compass-tick-n { top: 2%; left: 50%; transform: translateX(-50%); }
.compass-tick-s { bottom: 2%; left: 50%; transform: translateX(-50%); background: color-mix(in oklab, #fff 30%, transparent); height: 12px; }
.compass-tick-e { right: 2%; top: 50%; transform: translateY(-50%) rotate(90deg); background: color-mix(in oklab, #fff 30%, transparent); height: 12px; }
.compass-tick-w { left: 2%; top: 50%; transform: translateY(-50%) rotate(90deg); background: color-mix(in oklab, #fff 30%, transparent); height: 12px; }

/* Waves at bottom */
.rota-waves {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  pointer-events: none;
  opacity: .25;
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
