/* Messages - SMS Texting website. Single stylesheet, no external requests. */
:root {
  --blue: #1a6cf0;
  --blue-dark: #1553bd;
  --green: #2fb344;
  --teal: #12a0a8;
  --ink: #0f1b2d;
  --ink-2: #44526a;
  --ink-3: #6b7a90;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-tint: #eaf2ff;
  --card: #ffffff;
  --line: #e1e8f2;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .07);
  --shadow-lg: 0 20px 60px rgba(15, 40, 90, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --grad: linear-gradient(135deg, #1a6cf0 0%, #12a0a8 55%, #2fb344 100%);
  --maxw: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf0fb; --ink-2: #b4c0d4; --ink-3: #8a98ae;
    --bg: #0c131f; --bg-soft: #101a2a; --bg-tint: #11203a;
    --card: #142033; --line: #24344d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --blue: #5b9bff; --blue-dark: #86b5ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.1rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav .btn { margin-left: 8px; color: #fff; padding: 9px 18px; }
.nav .btn:hover { color: #fff; background: var(--blue-dark); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}
.no-js .nav { display: flex; flex-wrap: wrap; position: static; box-shadow: none; }
.no-js .menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; box-shadow: 0 6px 18px rgba(26, 108, 240, .28); }
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.play-btn { background: #0f1b2d; box-shadow: 0 6px 18px rgba(15, 27, 45, .3); }
.play-btn:hover { background: #000; }
.play-btn small { display: block; font-size: .68rem; font-weight: 600; opacity: .8; line-height: 1.1; letter-spacing: .02em; }
.play-btn b { display: block; font-size: 1.12rem; line-height: 1.15; }
.play-btn svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .play-btn { background: #fff; color: #0f1b2d; } :root:not([data-theme="light"]) .play-btn:hover { background: #dfe8f7; color: #0f1b2d; } }

/* Hero */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, var(--bg-tint), transparent 60%), radial-gradient(800px 400px at -10% 10%, color-mix(in srgb, var(--green) 10%, transparent), transparent 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-tint); color: var(--blue-dark); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 8px; align-items: center; }
.fine { font-size: .88rem; color: var(--ink-3); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--green); }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.hero-phones .phone { position: relative; }
.hero-phones .phone:nth-child(1) { transform: translateX(22px) rotate(-4deg) scale(.92); z-index: 1; }
.hero-phones .phone:nth-child(2) { transform: translateX(-22px) translateY(-24px); z-index: 2; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { min-height: 0; margin-top: 12px; }
}

/* Phone frame */
.phone { width: 250px; flex: none; border-radius: 34px; padding: 8px; background: #0f1b2d; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; background: var(--bg-soft); }
@media (max-width: 520px) { .hero-phones .phone { width: 42vw; max-width: 210px; } }

/* Sections */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.kicker { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 10px; display: block; }
.page-hero { padding: 56px 0 30px; background: radial-gradient(900px 300px at 80% -20%, var(--bg-tint), transparent 60%); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-3, .g-2, .g-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.card p + p { margin-top: .8em; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); margin-bottom: 16px; }
.ico .icon { width: 24px; height: 24px; }
.ico.green { background: color-mix(in srgb, var(--green) 14%, var(--bg)); color: var(--green); }
.ico.teal { background: color-mix(in srgb, var(--teal) 14%, var(--bg)); color: var(--teal); }
.ico.orange { background: color-mix(in srgb, #f08a1a 14%, var(--bg)); color: #d97a0a; }
.ico.purple { background: color-mix(in srgb, #7a5af0 14%, var(--bg)); color: #6f4fe0; }
.ico.pink { background: color-mix(in srgb, #e04a92 14%, var(--bg)); color: #d23c85; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Split (text + phone) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: -1; }
.split-media { display: flex; justify-content: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev .split-media { order: 0; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--green); margin-top: 4px; }

/* Screenshot gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 8px 20px 26px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -20px; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; width: 250px; text-align: center; }
.gallery figcaption { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }
.gallery figcaption b { display: block; color: var(--ink); font-size: 1rem; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 24px; justify-items: center; }
.shot-grid figure { margin: 0; text-align: center; max-width: 270px; }
.shot-grid figcaption { margin-top: 14px; color: var(--ink-2); font-size: .97rem; }
.shot-grid figcaption b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.note { background: var(--bg-tint); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--ink-2); font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 18px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.steps > li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq h2 { margin-top: 44px; font-size: 1.5rem; }

/* Article / legal text */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 22px; margin: 0 0 30px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
table.compare { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { background: var(--bg-soft); font-size: .9rem; }
.table-wrap { overflow-x: auto; }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: 28px; padding: 54px 30px; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .92; max-width: 34em; margin: 0 auto 24px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.cta-band .play-btn { background: #fff; color: #0f1b2d; box-shadow: none; }
.cta-band .play-btn:hover { background: #eaf2ff; color: #0f1b2d; }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ico { margin: 0; }
form.contact label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: .95rem; }
form.contact input, form.contact select, form.contact textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
form.contact textarea { min-height: 150px; resize: vertical; }

/* Footer */
.site-footer { background: #0b1220; color: #b7c3d8; padding: 56px 0 28px; }
.site-footer a { color: #d6e2f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .97rem; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: .95rem; }
.footer-bottom { border-top: 1px solid #1c2a44; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .cta-band { display: none; } section { padding: 16px 0; } }
.faq > h2:first-child { margin-top: 0; }
.narrow-wide { max-width: var(--maxw); }
