/* ============================================================
   DRIPPY STUDIO — Design system
   Baby blue / electric blue • white • dark navy • soft grey
   Mobile-first, premium, minimal.
   ============================================================ */

:root {
  --blue: #2f9bff;
  --blue-strong: #0b7ae8;
  --blue-soft: #e6f3ff;
  --baby: #9fd4ff;
  --navy: #0b1220;
  --navy-2: #111a2e;
  --navy-3: #1a2540;
  --ink: #16233c;
  --grey: #64748b;
  --grey-soft: #f4f7fb;
  --line: #e3eaf3;
  --white: #ffffff;
  --green: #16a34a;
  --wa: #25d366;
  --red: #dc2626;
  --amber: #d97706;
  --violet: #7c3aed;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(15, 35, 70, .08);
  --shadow-lg: 0 16px 48px rgba(15, 35, 70, .14);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
p, li, td, a { overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-alt { background: var(--grey-soft); }
.section-dark { background: var(--navy); color: #c9d6ea; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-strong);
  background: var(--blue-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-dark .kicker { background: rgba(47,155,255,.15); color: var(--baby); }
.lead { font-size: 1.08rem; color: var(--grey); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 48px; line-height: 1.2;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue-strong); color: var(--white); box-shadow: 0 6px 18px rgba(11,122,232,.28); }
.btn-primary:hover { background: #0968c8; transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-strong); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.28); }
.btn-wa:hover { background: #1fb958; transform: translateY(-1px); }
.btn-dark { background: var(--navy-2); color: var(--white); }
.btn-sm { padding: 8px 16px; min-height: 38px; font-size: .85rem; border-radius: 10px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.22rem; color: var(--navy); letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong)); color: #fff; font-size: 1.05rem; font-weight: 900;
  box-shadow: 0 4px 14px rgba(11,122,232,.35);
}
.logo span em { color: var(--blue-strong); font-style: normal; }
.nav-links { display: none; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .92rem; padding: 9px 13px; border-radius: 9px;
  text-decoration: none !important;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-soft); color: var(--blue-strong); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .2s; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 6px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--grey-soft); text-decoration: none !important; }
.mobile-menu a:hover { color: var(--blue-strong); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Mobile header fit (prevent overflow) ---------- */
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .nav { gap: 6px; height: 60px; }
  .logo { font-size: .98rem; gap: 7px; flex-shrink: 1; min-width: 0; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: .9rem; flex-shrink: 0; }
  .nav-actions { gap: 5px; flex-shrink: 0; }
  .nav-actions .btn-sm { padding: 7px 11px; min-height: 38px; font-size: .78rem; border-radius: 9px; }
  .nav-toggle { padding: 9px 6px; }
  .site-header .mobile-menu { padding-top: 4px; }
}
@media (max-width: 440px) {
  .nav-actions .hide-sm { display: none; }
  .logo span:not(.logo-mark) { font-size: .92rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47,155,255,.16), transparent 60%),
    radial-gradient(600px 320px at -5% 30%, rgba(159,212,255,.22), transparent 55%),
    var(--white);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--blue-strong); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stats div strong { display: block; font-size: 1.25rem; color: var(--navy); }
.hero-stats div span { font-size: .85rem; color: var(--grey); }
.hero-card {
  background: var(--navy); color: #c9d6ea; border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; margin-bottom: 16px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.hero-card li::before { content: "✓"; color: var(--baby); font-weight: 800; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3f7; }
.card .icon { font-size: 1.7rem; margin-bottom: 12px; display: inline-block; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--blue-strong); }
.card .meta { font-size: .82rem; color: var(--grey); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.card .price { font-weight: 800; color: var(--blue-strong); }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.badge-blue { background: var(--blue-soft); color: var(--blue-strong); }
.badge-green { background: #e7f7ee; color: var(--green); }
.badge-amber { background: #fdf1e2; color: var(--amber); }
.badge-red { background: #fdeaea; color: var(--red); }
.badge-violet { background: #f1eafd; color: var(--violet); }
.badge-grey { background: #eef2f7; color: var(--grey); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1/-1; } }
label { font-weight: 600; font-size: .88rem; color: var(--navy); display: block; margin-bottom: 6px; }
label .req { color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--white); min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,155,255,.18);
}
.hint { font-size: .8rem; color: var(--grey); margin-top: 5px; }
.field-error { color: var(--red); font-size: .82rem; margin-top: 5px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.alert-success { background: #e7f7ee; color: #14532d; border: 1px solid #b7e4c7; }
.alert-error { background: #fdeaea; color: #7f1d1d; border: 1px solid #f5c2c2; }
.alert-warn { background: #fdf6e3; color: #713f12; border: 1px solid #f2e3b3; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.data th {
  text-align: left; padding: 13px 16px; background: var(--grey-soft); color: var(--grey);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--grey-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfdff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #93a5c4; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #b7c6e0; display: block; padding: 5px 0; font-size: .9rem; text-decoration: none; }
.site-footer a:hover { color: var(--baby); }
.footer-bottom { border-top: 1px solid var(--navy-3); margin-top: 40px; padding-top: 22px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Sponsored ads ---------- */
.sponsored-ad {
  display: block; position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; text-decoration: none !important; max-width: 720px; margin: 20px auto;
}
.sponsored-ad img { width: 100%; object-fit: cover; max-height: 220px; }
.sponsored-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(11,18,32,.85); color: #fff;
  font-size: .62rem; letter-spacing: .12em; font-weight: 700; padding: 4px 9px; border-radius: 6px;
}
.sponsored-title { display: block; padding: 12px 16px; font-weight: 700; color: var(--navy); }

/* ---------- Reveal animation (JS-gated: content always visible without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* ---------- Blog article body ---------- */
.blog-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.blog-body h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
.blog-body h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.blog-body h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.blog-body p { margin: 0 0 1.1em; }
.blog-body ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.blog-body li { margin-bottom: .45em; }
.blog-body strong { color: var(--navy); }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 17px 20px; font-weight: 700; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--blue-strong); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--grey); }

/* ---------- Pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .tier { font-size: .76rem; font-weight: 800; letter-spacing: .12em; color: var(--blue-strong); text-transform: uppercase; }
.price-card .amount { font-size: 2rem; font-weight: 900; color: var(--navy); margin: 8px 0 2px; }
.price-card .period { color: var(--grey); font-size: .85rem; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; flex: 1; }
.price-card li { display: flex; gap: 9px; font-size: .92rem; color: var(--ink); }
.price-card li::before { content: "✓"; color: var(--blue-strong); font-weight: 800; }
.price-card.popular { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.price-card .pop-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue-strong); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 5px 14px; border-radius: 999px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 24px 24px 70px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 22px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue-strong); font-weight: 800; display: grid; place-items: center;
}

/* ---------- Misc ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .84rem; font-weight: 600; color: var(--ink); background: #fff; text-decoration: none !important;
}
.chip:hover, .chip.active { border-color: var(--blue); color: var(--blue-strong); background: var(--blue-soft); }
.breadcrumb { font-size: .84rem; color: var(--grey); margin-bottom: 18px; }
.breadcrumb a { color: var(--grey); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--grey); }
.empty-state .big { font-size: 2.4rem; margin-bottom: 10px; }
.demo-flag { background: #fdf6e3; border: 1px dashed #e5cd7a; color: #713f12; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; display: inline-block; }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; background: var(--grey-soft); border-radius: 10px; padding: 10px 14px; font-size: .88rem; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar input[type=search] { flex: 1 1 220px; min-width: 0; }
.searchbar select { max-width: 100%; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.pagination .current { background: var(--blue-strong); color: #fff; border-color: var(--blue-strong); }
