/* DataAutomationPro client portal — brand: indigo #6366F1, Inter, slate neutrals */
:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-soft: #eef2ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ok: #059669;   --ok-soft: #ecfdf5;
  --warn: #b45309; --warn-soft: #fffbeb;
  --bad: #dc2626;  --bad-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: .6rem; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--brand-dark); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo img { height: 44px; width: auto; }
@media (max-width: 560px) { .logo img { height: 38px; } }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav summary { color: var(--text); font-weight: 550; font-size: .95rem; padding: .5rem .75rem; border-radius: 8px; cursor: pointer; list-style: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--brand); }
.nav a.btn-primary:hover { background: var(--brand-dark); }
.nav a:not(.btn):hover, .nav summary:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav .dropdown { position: relative; }
.nav .dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.nav .dropdown-menu a { display: flex; gap: .6rem; align-items: center; }
.nav-cta { display: flex; gap: .5rem; margin-left: 12px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 16px; gap: 2px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-cta { margin: 8px 0 0; flex-direction: column; }
}

/* Messages */
.messages { margin: 20px auto 0; }
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: .6rem; border: 1px solid; font-size: .95rem; }
.alert-success { background: var(--ok-soft); border-color: #a7f3d0; color: #065f46; }
.alert-info { background: var(--brand-soft); border-color: #c7d2fe; color: #3730a3; }
.alert-warning { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.alert-error { background: var(--bad-soft); border-color: #fecaca; color: #991b1b; }

/* Hero */
.hero { padding: 80px 0 64px; background: radial-gradient(1200px 400px at 50% -10%, var(--brand-soft), transparent 70%); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.hero.center .lead { margin-inline: auto; }
.hero.center .btn-row { justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.hero.center .hero-badges { justify-content: center; }
.hero-badges span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .4rem; }
.app-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.app-hero .icon-big { font-size: 3rem; margin-bottom: .5rem; }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; gap: 28px; } }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.app-card { display: flex; flex-direction: column; }
.app-card .icon { font-size: 2rem; margin-bottom: .75rem; }
.app-card .price { margin: .75rem 0 1.25rem; color: var(--muted); font-size: .92rem; }
.app-card .price strong { color: var(--ink); font-size: 1.1rem; }
.app-card .btn-row { margin-top: auto; }
.feature-card .ficon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: .75rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 20px 20px 20px 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.flow .card .num { font-size: .8rem; font-weight: 800; color: var(--brand-dark); letter-spacing: .08em; }

/* Checklists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.6rem; position: relative; margin: .45rem 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.checks.req li::before { content: "•"; color: var(--brand); font-size: 1.3rem; line-height: 1.1; }

/* Pricing */
.billing-toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 28px; }
.billing-toggle button { border: 0; background: none; padding: .45rem 1.1rem; border-radius: 999px; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.billing-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
/* Line up name, description, price, maintenance box, features and button
   across all cards, whatever the text length (subgrid: 6 shared rows). */
@supports (grid-template-rows: subgrid) {
  .plans { row-gap: 0; }
  .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 20px; }
  .plan > .plan-desc { align-self: start; }
  .plan > .btn { align-self: end; }
}
.plan .plan-desc { margin: 0; font-size: .92rem; color: var(--muted); }
.plan .maint { align-self: stretch; }
.plan.featured { border: 2px solid var(--brand); }
.plan .badge-pop { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }
.plan .setup { font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin-top: .75rem; }
.plan .setup small { display: block; margin-top: .2rem; font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .maint { margin: .5rem 0 1.25rem; padding: .6rem .8rem; background: var(--bg-soft); border-radius: 10px; font-size: .9rem; }
.plan .maint strong { color: var(--ink); }
.plan .checks { margin-bottom: 1.5rem; font-size: .93rem; }
.plan .btn { margin-top: auto; }
[data-cycle="monthly"] .yearly-only, [data-cycle="yearly"] .monthly-only { display: none; }
.save { color: var(--ok); font-weight: 600; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 650; color: var(--ink); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 13px; font-size: 1.3rem; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--ink); color: #cbd5e1; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; }
@media (max-width: 640px) { .cta-band { padding: 28px; } }

/* Forms */
.form-card { max-width: 560px; margin: 0 auto; }
.form-card.wide { max-width: 760px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: .35rem; }
.field .help { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.field .error { font-size: .85rem; color: var(--bad); margin-top: .3rem; }
.field.check { display: flex; gap: .6rem; align-items: flex-start; }
.field.check label { font-weight: 500; margin: 0; }
.field.check input { width: auto; margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.non-field { background: var(--bad-soft); border: 1px solid #fecaca; color: #991b1b; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-page { padding: 56px 0 80px; background: var(--bg-soft); min-height: calc(100vh - 68px - 220px); }

/* Dashboard */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dash-section { margin-bottom: 40px; }
.dash-section > h2 { font-size: 1.25rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); padding: .7rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-info { background: var(--brand-soft); color: var(--brand-dark); }
.pill-muted { background: var(--bg-soft); color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed #cbd5e1; border-radius: var(--radius); background: #fff; }
.creds { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .92rem; margin-top: .75rem; }
.creds dt { color: var(--muted); }
.creds dd { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); word-break: break-all; }

/* Legal */
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal li { margin: .35rem 0; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; columns: 2; font-size: .92rem; }
.toc a { display: block; padding: .15rem 0; }
@media (max-width: 640px) { .toc { columns: 1; } }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 56px 0 28px; font-size: .92rem; margin-top: 0; }
.site-footer a { color: #cbd5e1; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: .8rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .4rem 0; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.wa-float:hover { background: #1fb457; text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
