/* Illari landing. Colors and type follow Illari's design system (assets/styles/tokens.css in the app). */
@font-face { font-family: Nunito; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format("woff2"); }

:root {
  --indigo: #3e28a2;
  --indigo-hover: #2d1c7a;
  --purple: #7b42d2;
  --teal: #00b1c0;
  --gold: #febc02;
  --gold-hover: #e5a600;
  --ink: #19134c;
  --ink-muted: #5e5880;
  --night: #19134c;
  --night-raised: #231760;
  --tint: #eeeafb;
  --bg: #f8f7fc;
  --surface: #ffffff;
  --line: #dedaea;
  --ok: #0f6b47;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px #19134c14, 0 12px 32px #19134c1f;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 Nunito, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 800 16px/1 Nunito, system-ui, sans-serif; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { color: #fff; border-color: #ffffff59; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { color: var(--indigo); border-color: var(--indigo); }
.btn-line:hover { background: var(--indigo); color: #fff; }
.wa { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: #19134cf2; backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.top-nav { display: none; gap: 28px; margin-left: auto; }
.top-nav a { color: #e9e6fb; text-decoration: none; font-weight: 700; font-size: 15px; }
.top-nav a:hover { color: var(--gold); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .top-nav { display: flex; } .top .btn { margin-left: 8px; } }

/* Hero */
.hero { background: radial-gradient(1200px 520px at 85% -10%, #3e28a280, transparent 60%), var(--night); color: #fff; padding: 48px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 5fr 6fr; gap: 56px; } }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; }
.lead { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: #d9d4f4; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 14px; color: #b9b2e3; }
.hero-shots { position: relative; padding-bottom: 40px; }
.browser { margin: 0; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px #0006; overflow: hidden; border: 1px solid #ffffff26; }
.browser .dots { display: flex; gap: 6px; padding: 10px 12px; background: #ece9f7; }
.browser .dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9c3e3; }
.phone { margin: 0; width: 34%; max-width: 230px; border-radius: 28px; border: 6px solid #0d0a2b; overflow: hidden; background: #0d0a2b; box-shadow: 0 24px 60px #0008; }
.hero-shots .phone { position: absolute; right: -8px; bottom: 0; }
@media (min-width: 1000px) { .hero-shots .phone { right: -28px; bottom: -24px; } }

/* Value strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 820px) { .strip-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.strip strong { display: block; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.strip p { color: var(--ink-muted); }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2, .phones-copy h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; }
.section-sub { margin-top: 14px; color: var(--ink-muted); font-size: 18px; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #d6f3e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f6b47' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Features */
.feature { display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: 72px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 56px; }
  .feature.reverse .feature-copy { order: 2; }
  .feature + .feature { margin-top: 112px; }
}
.feature h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 14px; }
.feature-copy > p { color: var(--ink-muted); font-size: 18px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Phones */
.phones-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .phones-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.phone-point { margin-top: 28px; }
.phone-point h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.phone-point p { color: var(--ink-muted); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.phones .phone { width: 46%; max-width: 270px; }
.phones .phone-low { margin-top: 56px; }

/* Plans */
.plans { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; height: 100%; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan .price { margin-top: 12px; font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.plan .cur { font-size: 22px; vertical-align: top; margin-right: 4px; position: relative; top: 6px; }
.plan .per { font-size: 15px; font-weight: 600; color: var(--ink-muted); margin-left: 8px; letter-spacing: 0; }
.plan-for { margin-top: 10px; font-weight: 700; color: var(--indigo); }
.plan .ticks { margin-bottom: 28px; font-size: 16px; }
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--night); color: #fff; border-color: var(--night); box-shadow: var(--shadow); }
.plan-featured .per, .plan-featured .ticks { color: #d9d4f4; }
.plan-featured .plan-for { color: var(--gold); }
.plan-featured .ticks li::before { background-color: #ffffff1f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23febc02' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.badge { position: absolute; top: -14px; left: 28px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.plans-note { margin: 28px auto 0; max-width: 760px; text-align: center; color: var(--ink-muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--ink-muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--indigo); border-bottom: 2.5px solid var(--indigo); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-muted); }

/* Final call */
.final { padding: 0 0 88px; }
.final-box { background: radial-gradient(700px 300px at 50% 0%, #3e28a299, transparent 70%), var(--night); color: #fff; border-radius: 28px; padding: 56px 24px; text-align: center; display: grid; justify-items: center; gap: 16px; max-width: calc(var(--wrap) - 64px); }
.final-box h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; }
.final-box > p { color: #d9d4f4; max-width: 34em; }
@media (max-width: 719px) { .final-box { border-radius: 0; max-width: none; } .final { padding-bottom: 0; } }

/* Footer */
.foot { background: var(--night); color: #b9b2e3; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 28px; padding-bottom: 28px; }
.brand-small { font-size: 18px; }
.foot-row p:last-child { margin-left: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: #d9d4f3; }
@media (max-width: 719px) { .foot-row p:last-child { margin-left: 0; } }

/* Legal page (cookies.html) */
.top .btn-ghost { margin-left: auto; }
.doc { display: grid; gap: 14px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); }
.doc h2 { font-size: 22px; margin-top: 22px; }
.doc p, .doc li { color: var(--ink-muted); }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc .meta { font-size: 15px; }

/* Cookie consent (analytics.js). It sits bottom-left so it leaves the chat bubble free. */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 440px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 720px) { .consent { left: 24px; right: auto; bottom: 24px; } }
.consent p { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.consent-row { display: flex; gap: 10px; margin-top: 16px; }
.consent-row .btn { flex: 1; }
button.btn { cursor: pointer; }
button.btn-line { background: none; }
