/* HaiBella site styles. Colors come from the app icon and screenshots. */
:root {
  --blue: #1e78e6;
  --blue-deep: #12407a;
  --sky: #9fd3ff;
  --sky-soft: #fdf6ec;
  --green: #22a565;
  --ink: #14213d;
  --ink-soft: #4d5a70;
  --line: #e9e1d4;
  --bg: #fffdf9;
  --bg-alt: #fdf6ec;
  --card: #ffffff;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #5ba8ff;
    --blue-deep: #a9d0ff;
    --sky: #1d4f78;
    --sky-soft: #172131;
    --green: #3fcb84;
    --ink: #eef2f8;
    --ink-soft: #aab6c6;
    --line: #2a3445;
    --bg: #0f1520;
    --bg-alt: #141c2a;
    --card: #182233;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 9vw, 96px); }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 0.8em;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-inline: auto; max-width: 640px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--ink); color: var(--bg); line-height: 1.1; border: 0;
}
.btn:hover { color: var(--bg); opacity: 0.88; }
.btn small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.8; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: var(--ink); }
.site-nav .btn { color: var(--bg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky-soft), var(--bg)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-block: clamp(48px, 8vw, 88px); }
.hero h1 span { color: var(--blue); }
.hero-shot { justify-self: center; width: min(320px, 80vw); filter: drop-shadow(0 24px 40px rgba(20, 33, 61, 0.18)); border-radius: 28px; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 0.95rem; }
.badges li::before { content: "✓ "; color: var(--green); font-weight: 800; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .cta-row, .badges { justify-content: center; }
}

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card .emoji { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .shot { width: min(300px, 75vw); justify-self: center; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 40px rgba(20, 33, 61, 0.14); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 36px; } .split .shot { order: -1; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 0.8rem; font-weight: 800; display: grid; place-items: center;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 40px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Screenshot gallery */
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin-top: 36px;
}
.gallery figure { margin: 0; flex: 0 0 min(240px, 62vw); scroll-snap-align: center; }
.gallery img { border-radius: 22px; box-shadow: 0 10px 24px rgba(20, 33, 61, 0.12); }

/* Pricing */
.price-box { max-width: 640px; margin: 36px auto 0; text-align: left; }

/* FAQ */
.faq { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* Final CTA */
.cta-band { background: var(--blue-deep); color: #fff; text-align: center; border-radius: 28px; padding: clamp(40px, 7vw, 72px) 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }
.cta-band .btn { background: #fff; color: #12233a; }
.cta-band .cta-row { justify-content: center; }
@media (prefers-color-scheme: dark) { .cta-band { background: #173b5f; } }

/* Article pages */
.article { padding-block: clamp(40px, 7vw, 72px); }
.article h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.article h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1em; }
.article li { margin-bottom: 0.4em; }
.article .updated { color: var(--ink-soft); font-size: 0.95rem; }
.callout { background: var(--sky-soft); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); }
.inline-shot { width: min(260px, 70vw); margin: 24px auto; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 24px rgba(20, 33, 61, 0.12); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.92rem; color: var(--ink-soft); margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-soft); }
.fineprint { flex-basis: 100%; font-size: 0.82rem; margin: 0; }

/* HaiBella additions */
.hero-mascot { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px; }
.quote-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; text-align: left; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote p { margin: 0 0 12px; font-size: 1.02rem; }
.quote footer { color: var(--ink-soft); font-size: 0.88rem; }
.stars { color: #f5a623; letter-spacing: 2px; }
.rating-line { font-weight: 700; margin-top: 8px; }
.lang-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 28px; padding: 0; list-style: none; }
.lang-grid li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.lang-grid li span { margin-right: 8px; }
.feature-rows { display: grid; gap: clamp(48px, 8vw, 88px); margin-top: 48px; }
.split.reverse .shot { order: 2; }
@media (max-width: 820px) { .split.reverse .shot { order: -1; } }
.price-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 36px auto 0; max-width: 820px; text-align: left; }
.price-cards .card h3 { margin-bottom: 4px; }
.price { font-size: 1.8rem; font-weight: 800; margin: 6px 0 10px; }
.price small { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.article .lang-grid { padding-left: 0; }
