/* =========================================================================
   Save Web — estilos no estilo Apple (SF Pro / tipografia do sistema)
   Tema claro, muito espaço em branco, botões em pílula. Destaque vermelho.
   Mude as variáveis de marca no :root para recolorir.
   ========================================================================= */
:root {
  --red:        #e2231a;   /* vermelho da marca (destaque) */
  --red-ink:    #b81d15;   /* vermelho escuro (hover) */
  --red-soft:   #fff1f0;   /* fundo vermelho bem claro */

  --ink:        #1d1d1f;   /* texto principal (cor exata da Apple) */
  --ink-soft:   #6e6e73;   /* texto secundário (cinza Apple) */
  --muted:      #86868b;   /* texto apagado */
  --bg:         #ffffff;
  --bg-2:       #f5f5f7;   /* cinza claro da Apple */
  --line:       #d2d2d7;   /* hairline da Apple */
  --line-2:     #e8e8ed;

  --radius:     18px;
  --radius-sm:  12px;
  --pill:       980px;     /* botões em pílula */

  /* Fonte da Apple: SF Pro nos aparelhos Apple; Inter/Helvetica de reserva */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-disp: var(--font);
  --maxw: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47;
  font-size: 17px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: var(--font-disp); margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.07; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
i, em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 720px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 500; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ===================== HEADER (nav translúcida da Apple) ===================== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.hdr-in { display: flex; align-items: center; gap: 18px; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-logo { width: 28px; height: 28px; }
.brand-name { font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }

.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { color: #1d1d1f; opacity: .82; font-weight: 400; font-size: 14px; padding: 7px 12px; border-radius: 8px; transition: opacity .15s; }
.nav a:hover { opacity: 1; }

/* seletor de idioma */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--pill);
  color: var(--ink); font-size: 13px; font-weight: 400; background: rgba(255,255,255,.6); max-width: 170px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--ink-soft); }
.lang summary span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang summary svg { color: var(--ink-soft); flex: none; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,.18); padding: 7px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  width: min(380px, 86vw); max-height: 60vh; overflow: auto;
}
.lang-menu a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-menu a:hover { background: var(--bg-2); }
.lang-menu a[aria-current] { color: var(--red); font-weight: 500; }

/* ===================== HERO ===================== */
.hero { padding: clamp(54px, 9vw, 100px) 0 48px; text-align: center; }
.hero-head { max-width: 720px; margin: 0 auto 34px; }
.eyebrow { display: inline-block; font-size: 17px; font-weight: 500; color: var(--red); margin-bottom: 10px; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 600; color: var(--ink); letter-spacing: -.025em; line-height: 1.05; }
.hero-sub { margin: 18px auto 0; max-width: 600px; font-size: clamp(19px, 2.6vw, 24px); line-height: 1.38; color: var(--ink-soft); font-weight: 400; }

/* ===================== FERRAMENTA (form) ===================== */
.tool { max-width: 560px; margin: 0 auto; }
.tool-row { display: flex; gap: 10px; align-items: center; }
.tool-ic { display: none; }
.tool-row input {
  flex: 1; min-width: 0; height: 50px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 16px; color: var(--ink); font-size: 16px; letter-spacing: -.01em;
  transition: border-color .15s, box-shadow .15s;
}
.tool-row input::placeholder { color: var(--muted); }
.tool-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.btn {
  height: 50px; padding: 0 26px; flex: none;
  background: var(--red); color: #fff; font-weight: 500; font-size: 16px;
  border: none; border-radius: var(--pill); cursor: pointer;
  transition: background .15s, transform .1s; white-space: nowrap;
}
.btn:hover { background: var(--red-ink); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }

.tool-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 16px 6px 2px; }
.opt { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.opt input {
  appearance: none; width: 18px; height: 18px; flex: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 5px; background: #fff;
  display: grid; place-items: center; transition: .15s;
}
.opt input:checked { background: var(--red); border-color: var(--red); }
.opt input:checked::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 700; }
.opt input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* status / resultado */
.tool-status { margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14.5px; display: flex; align-items: center; gap: 11px; }
.tool-status.is-loading { background: var(--bg-2); color: var(--ink-soft); }
.tool-status.is-error { background: var(--red-soft); color: var(--red-ink); }
.tool-status.is-ok { background: #eaf7ea; color: #1d7a23; }
.tool-status .dl-link { margin-inline-start: auto; color: var(--red); font-weight: 500; }
.tool-status .dl-link:hover { text-decoration: underline; }
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--red); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* faixa de confiança */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 26px auto 0; max-width: 560px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 14px; }
.trust svg { color: var(--red); }

/* ===================== ANÚNCIO ===================== */
.ad { margin: 44px 0; min-height: 100px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.ad-ph { color: var(--muted); font-size: 12px; letter-spacing: .04em; }

/* ===================== SEÇÕES ===================== */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-tint { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 600; color: var(--ink); letter-spacing: -.025em; }
.sec-head p { margin-top: 14px; font-size: clamp(18px, 2.3vw, 21px); color: var(--ink-soft); line-height: 1.4; }

/* chips "o que ele salva" */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 9px 18px 9px 11px; font-weight: 400; font-size: 15px; color: var(--ink); }
.section-tint .chips li { background: #fff; }
.chip-ic { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; background: var(--red-soft); color: var(--red); border-radius: var(--pill); font-size: 12px; font-weight: 600; }

/* passos */
.steps { display: grid; gap: 40px 30px; grid-template-columns: repeat(3, 1fr); }
.step { text-align: center; }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; background: var(--red); color: #fff; border-radius: 50%; font-weight: 600; font-size: 20px; }
.step h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -.02em; }
.step p { color: var(--ink-soft); font-size: 16px; line-height: 1.45; }

/* vantagens */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.feat { background: var(--bg-2); border-radius: var(--radius); padding: 28px 26px; }
.section-tint .feat { background: #fff; }
.feat-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; background: var(--red-soft); color: var(--red); border-radius: 12px; }
.feat h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }
.feat p { color: var(--ink-soft); font-size: 16px; line-height: 1.45; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 4px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 12px; font-size: 18px; letter-spacing: -.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-inline-start: auto; color: var(--red); font-size: 26px; font-weight: 300; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 4px 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

/* ===================== FOOTER (fino, estilo Apple) ===================== */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 30px; }
.ftr-in { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: start; justify-content: space-between; }
.ftr-brand { max-width: 360px; }
.ftr-brand .brand { margin-bottom: 10px; }
.ftr-brand p { color: var(--ink-soft); font-size: 14px; }
.ftr-use { max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.ftr-bottom a { color: var(--ink-soft); }
.ftr-bottom a:hover { color: var(--red); }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .tool-row { flex-wrap: wrap; }
  .tool-row input { flex: 1 1 100%; }
  .btn { flex: 1 1 100%; }
}
@media (max-width: 480px) { .lang-menu { grid-template-columns: 1fr; } }

/* RTL */
[dir="rtl"] .faq-item summary, [dir="rtl"] .tool-status .dl-link { text-align: right; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; scroll-behavior: auto !important; } }
