/* =========================================================
   TeksFix — web.teksfix.pt
   Estilos partilhados por todas as páginas
   ========================================================= */

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

:root {
  --dark:    #0a0d14;
  --surface: #111520;
  --card:    #161b2e;
  --border:  rgba(255,255,255,.08);
  --line:    rgba(255,255,255,.04);   /* linhas subtis (features, tabela) */
  --ghost:   rgba(255,255,255,.15);   /* borda dos botões ghost */
  --hover:   rgba(255,255,255,.03);
  --accent:  #4f7cff;
  --accent2: #7c4fff;
  --gold:    #c9a84c;
  --green:   #22c55e;
  --text:    #e8eaf0;
  --muted:   #6b7280;
}

/* ---------- LIGHT MODE ---------- */
body.light-mode {
  --dark:    #f0f4ff;
  --surface: #ffffff;
  --card:    #f8f9ff;
  --border:  rgba(0,0,0,.1);
  --line:    rgba(0,0,0,.07);
  --ghost:   rgba(0,0,0,.18);
  --hover:   rgba(0,0,0,.03);
  --text:    #0a0d14;
  --muted:   #4b5563;
}
body.light-mode { background: #f0f4ff; color: #0a0d14; }
body.light-mode .cta-section { background: linear-gradient(135deg,rgba(79,124,255,.06),rgba(124,79,255,.06)); }
body.light-mode footer { background: #e8ecff; color: #4b5563; }
body.light-mode .plan-card { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
body.light-mode .plan-parcel { background: rgba(201,168,76,.08); }
body.light-mode .feat-icon.no { background: rgba(0,0,0,.06); }

/* Hero mantém-se escuro no light mode → texto claro fixo */
body.light-mode .hero { background: #1a1f3a; }
body.light-mode .hero h1,
body.light-mode .hero .btn-ghost { color: #e8eaf0; }
body.light-mode .hero .btn-ghost { border-color: rgba(255,255,255,.15); }
body.light-mode .hero .btn-ghost:hover { border-color: rgba(255,255,255,.4); }
body.light-mode .hero-sub,
body.light-mode .hero .stat-label { color: #9ca3af; }

/* ---------- BOTÃO TEMA ---------- */
.theme-btn {
  position: fixed; top: 1.2rem; right: 1.2rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.theme-btn:hover { background: rgba(255,255,255,.22); transform: scale(1.08); }
body.light-mode .theme-btn { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.15); }

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--dark); color: var(--text); overflow-x: hidden; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 30%, rgba(79,124,255,.18) 0%, transparent 55%), radial-gradient(ellipse at 80% 70%, rgba(124,79,255,.12) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(201,168,76,.06) 0%, transparent 60%); }
.hero-logo { margin-bottom: 2rem; position: relative; z-index: 1; animation: fadeUp .6s ease both; }
.hero-logo img { width: 400px; max-width: 90vw; height: 160px; object-fit: contain; display: block; margin: 0 auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.hero-logo-fallback { display: none; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #fff; text-align: center; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.08; position: relative; z-index: 1; animation: fadeUp .7s .1s ease both; }
.hero h1 em { font-style: italic; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); margin-top: 1.2rem; max-width: 560px; line-height: 1.7; position: relative; z-index: 1; animation: fadeUp .7s .2s ease both; }
.hero-cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; animation: fadeUp .7s .3s ease both; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; margin-top: 4rem; position: relative; z-index: 1; animation: fadeUp .7s .4s ease both; }
.stat { text-align: center; }
.stat-val { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: .2rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- BOTÕES ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; cursor: pointer; border: none; transition: all .25s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,124,255,.4); }
.btn-ghost { background: transparent; border: 1px solid var(--ghost); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-lg { font-size: 1rem; padding: 1rem 2.5rem; }

/* ---------- SECÇÕES / TÍTULOS ---------- */
.divider { text-align: center; padding: 4rem 1.5rem 2rem; }
.divider-label { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.divider h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
.divider h2 em, .gold-em { font-style: italic; color: var(--gold); }
.divider-text { font-size: clamp(1rem,2vw,1.2rem); color: var(--muted); line-height: 1.7; max-width: 500px; margin: .75rem auto 0; }

/* ---------- TOGGLE PERÍODO ---------- */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 2rem 0; }
.period-toggle { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: .25rem; }
.period-btn { padding: .45rem 1.2rem; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--muted); transition: all .25s; }
.period-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.discount-badge { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); color: var(--green); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 100px; }

/* ---------- BOTÃO DEMO ---------- */
.demo-wrap { text-align: center; margin-bottom: 2rem; }
.demo-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 2rem; border-radius: 10px;
  background: linear-gradient(135deg,rgba(201,168,76,.15),rgba(201,168,76,.08));
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold); font-family: 'DM Sans', sans-serif;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  transition: all .25s; letter-spacing: .03em;
}
.demo-btn:hover { background: linear-gradient(135deg,rgba(201,168,76,.25),rgba(201,168,76,.15)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.2); }
.demo-icon { font-size: 1.1rem; }
.demo-tag { font-size: .78rem; background: rgba(201,168,76,.2); padding: .15rem .55rem; border-radius: 100px; }
.demo-note { font-size: .75rem; color: var(--muted); margin-top: .6rem; }

/* ---------- PLANOS ---------- */
.plans-section { padding: 1rem 1.5rem 5rem; }
.plans-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: all .3s; position: relative; animation: fadeUp .6s ease both; }
.plan-card:hover { transform: translateY(-6px); border-color: var(--ghost); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px rgba(79,124,255,.2); }
.plan-card:nth-child(1){ animation-delay:.05s } .plan-card:nth-child(2){ animation-delay:.15s } .plan-card:nth-child(3){ animation-delay:.25s }
.ribbon { position: absolute; top: 1.2rem; right: -2.5rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem 3rem; transform: rotate(45deg); z-index: 2; }
.plan-top { padding: 2rem 1.8rem 1.5rem; border-bottom: 1px solid var(--border); }
.plan-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.plan-icon img { width: 48px; height: 48px; object-fit: contain; }
.plan-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: .3rem; }
.plan-name.basic { color: var(--accent); }
.plan-name.pro   { color: #a78bfa; }
.plan-desc { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.plan-price-wrap { margin-top: 1.5rem; }
.plan-setup { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.plan-setup strong { color: var(--gold); font-size: 1rem; }
.plan-monthly { display: flex; align-items: baseline; gap: .3rem; }
.price-val { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; }
.price-val.starter { color: #9ca3af; }
.price-val.basic   { color: var(--accent); }
.price-val.pro     { color: #a78bfa; }
.price-unit { font-size: .88rem; color: var(--muted); }
.price-note { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.price-saving { display: none; align-items: center; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); color: var(--green); font-size: .72rem; font-weight: 700; padding: .2rem .65rem; border-radius: 100px; margin-top: .5rem; }
.plan-parcel { margin-top: 1rem; padding: .85rem 1rem; background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.2); border-radius: 10px; }
.plan-parcel-title { font-size: .72rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.plan-parcel-val { font-size: .88rem; color: var(--text); line-height: 1.6; }
.plan-parcel-val span { color: var(--gold); font-weight: 600; }
.plan-parcel.warn { border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.06); }
.plan-parcel.warn .plan-parcel-title,
.plan-parcel.warn .plan-parcel-val { color: #f59e0b; }
.plan-features { padding: 1.5rem 1.8rem; }
.feature { display: flex; align-items: flex-start; gap: .65rem; padding: .45rem 0; font-size: .88rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: none; }
.feature.yes { color: var(--text); }
.feat-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; margin-top: .1rem; }
.feat-icon.yes { background: rgba(34,197,94,.15); color: var(--green); }
.feat-icon.no  { background: rgba(255,255,255,.06); color: var(--muted); }
.plan-cta { padding: 0 1.8rem 2rem; }
.plan-btn { width: 100%; padding: .85rem; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 600; cursor: pointer; border: none; transition: all .25s; text-align: center; text-decoration: none; display: block; }
.plan-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.plan-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.plan-btn-ghost { background: transparent; border: 1px solid var(--ghost); color: var(--text); }
.plan-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.plan-btn-pro { background: transparent; border: 1px solid rgba(167,139,250,.4); color: #a78bfa; }
.plan-btn-pro:hover { border-color: #a78bfa; background: rgba(167,139,250,.08); }

/* ---------- TABELA COMPARAÇÃO ---------- */
.compare-section { padding: 3rem 1.5rem 5rem; max-width: 900px; margin: 0 auto; }
.compare-section h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; text-align: center; margin-bottom: 2rem; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { padding: 1rem 1.2rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 2px solid var(--border); text-align: left; }
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td { padding: .85rem 1.2rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:hover td { background: var(--hover); }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--muted); font-size: 1rem; }
.col-highlight { color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-section { padding: 3rem 1.5rem 5rem; max-width: 700px; margin: 0 auto; }
.faq-section h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; text-align: center; margin-bottom: 2rem; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: .75rem; overflow: hidden; }
.faq-q { padding: 1.1rem 1.3rem; font-size: .95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; }
.faq-q:hover { background: var(--hover); }
.faq-icon { font-size: 1.2rem; color: var(--accent); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; padding: 0 1.3rem; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.3rem 1.1rem; }
.faq-warn { color: #f97316; }

/* ---------- CTA FINAL ---------- */
.cta-section { padding: 5rem 1.5rem; text-align: center; background: linear-gradient(135deg, rgba(79,124,255,.08), rgba(124,79,255,.08)); border-top: 1px solid var(--border); }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-section p { color: var(--muted); margin-bottom: 2rem; font-size: .95rem; }

/* ---------- FOOTER ---------- */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center; font-size: .82rem; color: var(--muted); }
footer strong { color: var(--text); }
footer a { color: var(--accent); text-decoration: none; }
.footer-copy { margin-top: .5rem; }

/* ---------- ANIMAÇÕES / RESPONSIVO ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 460px; } }
@media (max-width: 600px) { .hero-stats { gap: 1.5rem; } .compare-table { font-size: .8rem; } .compare-table th, .compare-table td { padding: .65rem .7rem; } }

/* =========================================================
   PORTFÓLIO
   ========================================================= */
.hero.hero-sm { min-height: 62vh; padding-top: 5rem; }
.hero-sm .hero-logo img { width: 280px; height: 110px; }

.top-link { position: fixed; top: 1.2rem; left: 1.2rem; z-index: 999; display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 100px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); color: #e8eaf0; font-size: .82rem; font-weight: 600; text-decoration: none; transition: all .25s; }
.top-link:hover { background: rgba(255,255,255,.22); }
body.light-mode .top-link { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.15); color: #0a0d14; }

.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0 1.5rem; margin: 1rem 0 2.5rem; }
.pf-filter { padding: .5rem 1.1rem; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .25s; }
.pf-filter:hover { color: var(--text); border-color: var(--ghost); }
.pf-filter.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.pf-count { opacity: .65; font-weight: 500; margin-left: .2rem; }

.pf-section { padding: 0 1.5rem 5rem; }
.pf-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.pf-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; animation: fadeUp .6s ease both; }
.pf-card:hover { transform: translateY(-6px); border-color: var(--ghost); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.pf-card.hide { display: none; }
body.light-mode .pf-card { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.pf-browser { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.pf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ghost); }
.pf-dot:nth-child(1) { background: #f87171; } .pf-dot:nth-child(2) { background: #fbbf24; } .pf-dot:nth-child(3) { background: #34d399; }
.pf-url { flex: 1; margin-left: .5rem; padding: .2rem .7rem; border-radius: 100px; background: var(--hover); border: 1px solid var(--line); font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-shot { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--surface); }
.pf-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s ease; }
.pf-card:hover .pf-shot img { transform: scale(1.04); }

.pf-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pf-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.pf-type { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 100px; }
.pf-type.site  { background: rgba(79,124,255,.12);  color: var(--accent); }
.pf-type.lp    { background: rgba(167,139,250,.12); color: #a78bfa; }
.pf-type.links { background: rgba(34,197,94,.12);   color: var(--green); }
.pf-type.demo  { background: rgba(201,168,76,.15);  color: var(--gold); }
.pf-flag { font-size: .95rem; }
.pf-body h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: .35rem; }
.pf-body p { font-size: .86rem; color: var(--muted); line-height: 1.6; }
.pf-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 1.2rem; }
.pf-tag { font-size: .72rem; padding: .2rem .6rem; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.pf-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.pf-link:hover { gap: .65rem; }
.pf-link, .pf-link:hover { transition: gap .25s; }

@media (max-width: 600px) { .pf-grid { grid-template-columns: 1fr; } .top-link { top: 1.2rem; left: 1rem; } }
