/* ─────────────────────────────────────────
   TextInOrder — Public Site Styles
   ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --tio-navy:       #0f172a;
  --tio-text:       #1e293b;
  --tio-muted:      #64748b;
  --tio-blue:       #2563eb;
  --tio-blue-dark:  #1d4ed8;
  --tio-blue-light: #eff6ff;
  --tio-border:     #e2e8f0;
  --tio-bg:         #ffffff;
  --tio-bg-alt:     #f8fafc;
  --tio-radius:     12px;
  --tio-shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --tio-shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--tio-text);
  background: var(--tio-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────── */
.tio-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.tio-nav.is-scrolled {
  border-color: var(--tio-border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.tio-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.tio-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tio-navy);
  text-decoration: none;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.tio-logo:hover { color: var(--tio-blue); text-decoration: none; }
.tio-logo-footer { color: var(--tio-navy); }

.tio-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.tio-nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--tio-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.tio-nav-links a:hover { color: var(--tio-navy); background: var(--tio-bg-alt); }

.tio-btn-primary {
  background: var(--tio-blue);
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  transition: background .15s, transform .1s;
}
.tio-btn-primary:hover { background: var(--tio-blue-dark) !important; transform: translateY(-1px); }
.tio-btn-sm { font-size: .875rem; padding: 7px 16px; }

.tio-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tio-text);
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: 6px;
}
.tio-nav-toggle:hover { background: var(--tio-bg-alt); }

/* ── ALERTS ─────────────────────────────── */
.tio-alerts { max-width: 800px; margin: 16px auto 0; padding: 0 24px; }
.tio-alert {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 8px; font-size: .875rem; margin-bottom: 8px;
}
.tio-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.tio-alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.tio-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.tio-alert button  { background: none; border: none; cursor: pointer; color: inherit; font-size: 1.1rem; padding: 0 4px; }

/* ── BUTTONS ─────────────────────────────── */
.tio-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: .9375rem; font-weight: 600;
  border-radius: 10px; padding: 12px 24px;
  border: none; cursor: pointer; text-decoration: none; transition: all .15s;
}
.tio-btn-blue  { background: var(--tio-blue); color: #fff; }
.tio-btn-blue:hover { background: var(--tio-blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); color: #fff; text-decoration: none; }
.tio-btn-ghost { background: transparent; color: var(--tio-text); border: 1.5px solid var(--tio-border); }
.tio-btn-ghost:hover { border-color: var(--tio-blue); color: var(--tio-blue); text-decoration: none; }

/* ── CONTAINER ───────────────────────────── */
.tio-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tio-container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION ─────────────────────────────── */
.tio-section { padding: 96px 0; }
.tio-section-alt { background: var(--tio-bg-alt); }
.tio-section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tio-blue); margin-bottom: 12px;
}
.tio-section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700;
  color: var(--tio-navy); line-height: 1.2; margin: 0 0 16px;
}
.tio-section-sub {
  font-size: 1.0625rem; color: var(--tio-muted); line-height: 1.7;
  max-width: 600px;
}

/* ── HERO ─────────────────────────────────── */
.tio-hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}
.tio-hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
}
.tio-hero-headline {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700;
  color: var(--tio-navy); line-height: 1.15; margin: 0 0 20px;
  letter-spacing: -.02em;
}
.tio-hero-sub {
  font-size: 1.0625rem; color: var(--tio-muted); line-height: 1.75;
  margin: 0 0 36px;
}
.tio-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SMS Demo mockup */
.tio-phone-demo {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--tio-shadow-md), 0 0 0 1px var(--tio-border);
  overflow: hidden;
  max-width: 340px;
  margin-left: auto;
}
.tio-phone-bar {
  background: var(--tio-bg-alt);
  border-bottom: 1px solid var(--tio-border);
  padding: 12px 16px;
  font-size: .75rem; font-weight: 600; color: var(--tio-muted);
  text-align: center; letter-spacing: .04em; text-transform: uppercase;
}
.tio-phone-messages { padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.tio-msg {
  max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: .875rem; line-height: 1.5;
}
.tio-msg-out {
  background: var(--tio-blue); color: #fff;
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.tio-msg-in {
  background: var(--tio-bg-alt); color: var(--tio-text);
  border-bottom-left-radius: 4px; border: 1px solid var(--tio-border);
}
.tio-msg-sender {
  font-size: .7rem; font-weight: 600; color: var(--tio-muted);
  margin-bottom: 3px; text-transform: uppercase; letter-spacing: .05em;
}
.tio-phone-caption {
  text-align: center; padding: 12px 16px;
  font-size: .75rem; color: var(--tio-muted);
  border-top: 1px solid var(--tio-border);
  font-style: italic;
}

/* ── HOW IT WORKS ─────────────────────────── */
.tio-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 56px;
}
.tio-step { text-align: center; }
.tio-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--tio-blue-light); color: var(--tio-blue);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
}
.tio-step h3 { font-size: 1.0625rem; font-weight: 600; color: var(--tio-navy); margin: 0 0 8px; }
.tio-step p  { font-size: .9375rem; color: var(--tio-muted); line-height: 1.65; margin: 0; }
.tio-step-connector {
  display: flex; align-items: center; justify-content: center;
  margin-top: 12px; color: var(--tio-border); font-size: 1.25rem;
}
.tio-compliance-note {
  margin-top: 48px; padding: 16px 20px;
  background: var(--tio-blue-light); border-radius: var(--tio-radius);
  border-left: 3px solid var(--tio-blue);
  font-size: .875rem; color: var(--tio-navy); line-height: 1.6;
}

/* ── SOLUTIONS CARDS ──────────────────────── */
.tio-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
}
.tio-card {
  background: #fff; border: 1px solid var(--tio-border);
  border-radius: var(--tio-radius); padding: 24px;
  box-shadow: var(--tio-shadow); transition: box-shadow .2s, transform .2s;
}
.tio-card:hover { box-shadow: var(--tio-shadow-md); transform: translateY(-2px); }
.tio-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--tio-blue-light); color: var(--tio-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tio-card h3 { font-size: 1rem; font-weight: 600; color: var(--tio-navy); margin: 0 0 8px; }
.tio-card p  { font-size: .875rem; color: var(--tio-muted); line-height: 1.65; margin: 0; }
.tio-badge {
  display: inline-block; margin-top: 10px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #92400e; background: #fef3c7; border-radius: 99px; padding: 2px 8px;
}

/* ── WHY SECTION ──────────────────────────── */
.tio-benefits {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-top: 48px;
}
.tio-benefit {
  background: #fff; border: 1px solid var(--tio-border);
  border-radius: var(--tio-radius); padding: 24px;
}
.tio-benefit-check {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tio-blue-light); color: var(--tio-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 1rem;
}
.tio-benefit h3 { font-size: .9375rem; font-weight: 600; color: var(--tio-navy); margin: 0 0 6px; }
.tio-benefit p  { font-size: .875rem; color: var(--tio-muted); line-height: 1.6; margin: 0; }

/* ── SMS DISCLOSURE ───────────────────────── */
.tio-disclosure {
  background: #fff; border: 1px solid var(--tio-border);
  border-radius: var(--tio-radius); padding: 32px 36px;
  box-shadow: var(--tio-shadow);
}
.tio-disclosure h3 { font-size: 1.125rem; font-weight: 600; color: var(--tio-navy); margin: 0 0 16px; }
.tio-disclosure p, .tio-disclosure li {
  font-size: .9375rem; color: var(--tio-text); line-height: 1.7; margin: 0 0 8px;
}
.tio-disclosure ul { padding-left: 20px; }
.tio-disclosure a { color: var(--tio-blue); }

/* ── FAQ ──────────────────────────────────── */
.tio-faq { margin-top: 48px; }
.tio-faq-item {
  border-bottom: 1px solid var(--tio-border);
}
.tio-faq-q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 16px;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  color: var(--tio-navy); cursor: pointer;
}
.tio-faq-q:hover { color: var(--tio-blue); }
.tio-faq-icon { flex-shrink: 0; transition: transform .2s; color: var(--tio-muted); }
.tio-faq-item.is-open .tio-faq-icon { transform: rotate(45deg); }
.tio-faq-a {
  display: none; padding: 0 0 20px;
  font-size: .9375rem; color: var(--tio-muted); line-height: 1.7;
}
.tio-faq-item.is-open .tio-faq-a { display: block; }

/* ── CONTENT PAGES (Privacy / Terms) ─────── */
.tio-prose {
  max-width: 720px; margin: 0 auto; padding: 72px 24px 96px;
}
.tio-prose h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700;
  color: var(--tio-navy); margin: 0 0 8px;
}
.tio-prose .tio-prose-date { font-size: .875rem; color: var(--tio-muted); margin: 0 0 40px; }
.tio-prose h2 {
  font-size: 1.1875rem; font-weight: 600; color: var(--tio-navy);
  margin: 40px 0 10px; padding-top: 4px;
  border-top: 1px solid var(--tio-border);
}
.tio-prose h2:first-of-type { border-top: none; margin-top: 32px; }
.tio-prose p, .tio-prose li {
  font-size: .9375rem; color: var(--tio-text); line-height: 1.75; margin: 0 0 14px;
}
.tio-prose ul { padding-left: 20px; }
.tio-prose a { color: var(--tio-blue); }
.tio-prose strong { font-weight: 600; color: var(--tio-navy); }
.tio-prose .tio-highlight-box {
  background: var(--tio-blue-light); border-left: 3px solid var(--tio-blue);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 20px 0;
  font-size: .9375rem; color: var(--tio-navy); line-height: 1.65;
}

/* ── CONTACT PAGE ─────────────────────────── */
.tio-contact-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start;
}
.tio-contact-info h3 { font-size: 1rem; font-weight: 600; color: var(--tio-navy); margin: 0 0 6px; }
.tio-contact-info p  { font-size: .9375rem; color: var(--tio-muted); line-height: 1.65; margin: 0 0 20px; }
.tio-contact-info a  { color: var(--tio-blue); text-decoration: none; }
.tio-contact-info a:hover { text-decoration: underline; }

.tio-form { display: flex; flex-direction: column; gap: 18px; }
.tio-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tio-form label {
  display: block; font-size: .8125rem; font-weight: 600;
  color: var(--tio-navy); margin-bottom: 6px; letter-spacing: .01em;
}
.tio-form input, .tio-form textarea, .tio-form select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--tio-border); border-radius: 8px;
  font-family: var(--font); font-size: .9375rem; color: var(--tio-text);
  background: #fff; transition: border-color .15s;
}
.tio-form input:focus, .tio-form textarea:focus {
  outline: none; border-color: var(--tio-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.tio-form textarea { min-height: 140px; resize: vertical; }

/* ── SMS INFO PAGE ────────────────────────── */
.tio-smsinfo-hero {
  background: var(--tio-blue-light); padding: 64px 0 48px; text-align: center;
}
.tio-smsinfo-flow {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  max-width: 600px; margin: 32px auto 0; padding: 0 24px;
}
.tio-smsinfo-bubble {
  background: #fff; border: 1px solid var(--tio-border);
  border-radius: 14px; padding: 14px 18px;
  font-size: .9rem; line-height: 1.6;
}
.tio-smsinfo-bubble-label {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--tio-muted); margin-bottom: 4px;
}
.tio-smsinfo-arrow { color: var(--tio-muted); font-size: 1.25rem; }

/* ── FOOTER ───────────────────────────────── */
.tio-footer {
  background: var(--tio-navy); color: #94a3b8; margin-top: 0; padding: 56px 0 32px;
}
.tio-footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.tio-footer .tio-logo { color: #fff; margin-bottom: 8px; }
.tio-footer-tagline { font-size: .875rem; color: #64748b; margin: 4px 0 0; }
.tio-footer-brand { margin-bottom: 32px; }
.tio-footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px;
}
.tio-footer-nav a { font-size: .875rem; color: #94a3b8; text-decoration: none; }
.tio-footer-nav a:hover { color: #fff; }
.tio-footer-admin-link { opacity: .5; font-size: .8rem !important; }
.tio-footer-admin-link:hover { opacity: .9; }
.tio-footer-copy { font-size: .8rem; color: #475569; border-top: 1px solid #1e293b; padding-top: 24px; margin: 0; }

/* ── PAGE HEADER ──────────────────────────── */
.tio-page-header { padding: 64px 0 48px; background: var(--tio-bg-alt); border-bottom: 1px solid var(--tio-border); }
.tio-page-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--tio-navy); margin: 0 0 8px; }
.tio-page-header p  { font-size: 1.0625rem; color: var(--tio-muted); margin: 0; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 767px) {
  .tio-nav-toggle { display: flex; }
  .tio-nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--tio-border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .tio-nav-links.is-open { display: flex; }
  .tio-nav-links a { padding: 12px 24px; border-radius: 0; }
  .tio-btn-primary.tio-btn-sm { margin: 8px 24px 12px; text-align: center; }
  .tio-nav-inner { position: relative; }

  .tio-hero { padding: 56px 0 40px; }
  .tio-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .tio-phone-demo { margin: 0 auto; max-width: 300px; }

  .tio-steps { grid-template-columns: 1fr; gap: 24px; }
  .tio-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .tio-form-row { grid-template-columns: 1fr; }
  .tio-smsinfo-flow { grid-template-columns: 1fr; }
  .tio-smsinfo-arrow { transform: rotate(90deg); text-align: center; }
  .tio-disclosure { padding: 24px 20px; }
  .tio-section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .tio-hero-actions { flex-direction: column; }
  .tio-hero-actions .tio-btn { width: 100%; text-align: center; }
}
