/* Hula page stylesheet. All-white layout in the style of the Puuull page (scheme W).
   Palette 1 "Hula Blue": colour only as small accents (buttons, links, thin highlights). */
:root {
  --brand: #0b5ed7;        /* primary: hula.ai blue #0d6efd darkened to pass WCAG AA (5.84:1 with white) */
  --accent: #16a394;       /* secondary: teal from the app icon; decoration only (dots, short bars) */
  --brand-soft: #eef4ff;   /* soft tint */
  --ink: #1f2430;          /* text */
  --muted: #5d6270;
  --line: #e7e8ec;
  --white: #ffffff;        /* background */
  --frame: #1f2430;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
.shell { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px #0000001f; }
.nav-actions { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav-actions a { opacity: .85; } .nav-actions a:hover { opacity: 1; }
.nav-actions a.store-link { opacity: 1; background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 88px; align-items: center; padding-block: 96px 120px; }
.hero-icon { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 6px 18px #00000014; margin-bottom: 36px; }
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; }
.hero h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.04; font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 88%, var(--brand) 88% 96%, transparent 96%); }
.hero-lede { max-width: 580px; margin: 32px 0 40px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff;
  border-radius: 12px; padding: 10px 20px 10px 16px; box-shadow: 0 10px 24px #00000026; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 11px; } .store-badge strong { font-size: 21px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; border-radius: 999px; padding: 15px 24px; font-weight: 600; background: var(--brand); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.phone-stage { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.shot { width: 230px; border-radius: 34px; border: 5px solid var(--frame); background: #fff; overflow: hidden; box-shadow: 0 18px 50px #0000001a; }
.shot.tilt { width: 210px; transform: translateY(-28px); }


/* Stats */
.stat b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.stat b::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 14px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: 56px; border-top: 1px solid var(--line); }
.as-of { font-size: 13px; color: var(--muted); margin: 0 0 40px; }

/* Sections */
.section { padding-block: 120px; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section h2, .closing h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 700; }
.section-heading p:last-child { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.features article { border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.features article > span { color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: .1em; }
.features h3 { margin: 12px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.features p { margin: 0; color: var(--muted); line-height: 1.65; }

/* Language apps */
.langs { border-top: 1px solid var(--line); }
.lang { display: grid; grid-template-columns: 290px 1fr 230px 250px; gap: 32px; align-items: center; padding: 28px 4px; border-bottom: 1px solid var(--line); }
.lang header { display: flex; align-items: center; gap: 14px; }
.lang header img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 4px 12px #00000014; }
.lang .glyph { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.lang h3 { font-size: 19px; letter-spacing: -.01em; }
.lang .native { color: var(--muted); font-size: 14px; }
.lang p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lang .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.lang .links a { font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.lang .links a.primary { color: var(--brand); border-color: #c9dbf8; }
.lang .count { font-size: 13px; color: var(--muted); line-height: 1.5; }
.lang .count strong { display: block; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }

/* Gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px; }
.gallery figure { margin: 0; flex: 0 0 220px; }
.gallery .shot { width: 220px; }
.gallery figcaption { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Numbers table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; font-weight: 700; }
.sources { margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 900px; }
.sources li { margin-bottom: 6px; }

/* Closing + footer */
.closing { text-align: center; padding-block: 120px 136px; border-top: 1px solid var(--line); }
.closing > img { width: 72px; border-radius: 18px; margin: 0 auto 26px; }
.closing p { max-width: 560px; margin: 22px auto 30px; font-size: 18px; color: var(--muted); }
.closing h2 em { font-style: normal; background: linear-gradient(transparent 88%, var(--brand) 88% 96%, transparent 96%); }
.help-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 26px; font-size: 15px; font-weight: 600; }
.help-links a, footer a { color: var(--brand); }
footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: 110px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer .brand { font-size: 16px; color: var(--ink); } footer .brand img { width: 32px; height: 32px; }
footer > p { text-align: center; margin: 0; } footer > small { justify-self: end; }

@media (width <= 820px) {
  .nav-actions a:not(.store-link) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 80px; text-align: center; }
  .hero-icon, .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .shot { width: 165px; } .shot.tilt { width: 150px; transform: translateY(-16px); }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .features { grid-template-columns: 1fr; }
  .lang { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .lang .links { justify-content: flex-start; }
    .section { padding-block: 80px; } .closing { padding-block: 88px 96px; }
  footer { grid-template-columns: 1fr; text-align: center; padding-block: 28px; }
  footer .brand, footer > small { justify-self: center; }
}
@media (width <= 520px) { .shell { width: min(100% - 28px, 1180px); } }
.inline-link, .sources a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* all-language download row */
.hero-actions { display: block; }
.app-row-label { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.app-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; max-width: 580px; }
.app-chip { display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; transition: border-color .15s, box-shadow .15s; }
.app-chip:hover, .app-chip:focus-visible { border-color: var(--brand); box-shadow: 0 6px 18px rgba(11,94,215,.10); }
.app-chip img, .app-chip .glyph { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.app-chip .glyph { display: grid; place-items: center; font-size: 20px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.app-chip > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.app-chip strong { font-size: 15px; font-weight: 600; }
.app-chip small { font-size: 12px; color: var(--muted); }
.app-chip em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); margin-top: 3px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.app-chip svg.apple { width: 10px; height: 12px; fill: currentColor; }
.closing-row { grid-template-columns: repeat(5, 1fr); max-width: 980px; margin: 0 auto 34px; }
@media (width <= 980px) { .closing-row { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); max-width: 580px; } }
@media (width <= 820px) { .app-row { margin-inline: auto; } .app-row-label { text-align: center; } }
@media (width <= 520px) { .app-row, .closing-row { grid-template-columns: 1fr 1fr; gap: 10px; } .app-chip { padding: 10px; gap: 10px; } .app-chip img, .app-chip .glyph { width: 34px; height: 34px; } .app-chip em { font-size: 11px; } }
