:root {
  --tt-navy: #123f82;
  --tt-blue: #2467d1;
  --tt-pale-blue: #eef5ff;
  --tt-green: #24964a;
  --tt-gold: #b56a00;
  --tt-red: #b42318;
  --tt-ink: #172033;
  --tt-muted: #5e6a7d;
  --tt-line: #dce3ee;
  --tt-bg: #f4f7fb;
  --tt-card: #ffffff;
  --tt-shadow: 0 8px 30px rgba(20, 49, 92, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tt-ink);
  background: var(--tt-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a { color: var(--tt-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--tt-navy); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .7rem 1rem;
  background: #fff;
  color: #000;
}
.skip-link:focus { left: .75rem; top: .75rem; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--tt-line);
}
.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .72rem;
  color: var(--tt-ink);
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,.13);
}
.brand-title { display: block; font-size: 1.22rem; font-weight: 750; line-height: 1.05; }
.brand-subtitle { display: block; color: var(--tt-muted); font-size: .78rem; margin-top: .18rem; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .3rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--tt-navy);
  text-decoration: none;
  font-size: .9rem;
  padding: .42rem .62rem;
  border-radius: 7px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--tt-pale-blue); }
.site-nav .sign-in { border: 1px solid #b8cae6; }

main {
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}
.hero {
  background: linear-gradient(135deg, #123f82 0%, #245fbd 100%);
  color: #fff;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: 18px;
  box-shadow: var(--tt-shadow);
}
.hero h1 { margin: 0 0 .55rem; font-size: clamp(1.7rem, 5vw, 2.55rem); line-height: 1.15; }
.hero p { margin: 0; max-width: 760px; color: #edf4ff; }
.hero .eyebrow { color: #cfe1ff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; margin-bottom: .5rem; }

.card {
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 14px;
  padding: clamp(1.1rem, 3vw, 1.65rem);
  margin-top: 1.15rem;
  box-shadow: var(--tt-shadow);
}
.card h2 { margin: 0 0 .7rem; color: var(--tt-navy); font-size: 1.35rem; }
.card h3 { margin: 1.35rem 0 .45rem; color: var(--tt-navy); font-size: 1.05rem; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.notice {
  border-left: 5px solid var(--tt-blue);
  background: var(--tt-pale-blue);
  padding: 1rem 1rem 1rem 1.05rem;
  border-radius: 9px;
  margin-top: 1rem;
}
.notice strong { color: var(--tt-navy); }
.notice.warning { border-left-color: var(--tt-gold); background: #fff7e8; }
.notice.danger { border-left-color: var(--tt-red); background: #fff0ef; }

.steps { counter-reset: ttstep; list-style: none; padding: 0; margin: .85rem 0 0; }
.steps li {
  counter-increment: ttstep;
  position: relative;
  padding: .08rem 0 .95rem 2.65rem;
}
.steps li::before {
  content: counter(ttstep);
  position: absolute;
  left: 0;
  top: -.05rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tt-blue);
  font-weight: 750;
}

.mockup {
  border: 1px solid #cbd7e7;
  border-radius: 11px;
  padding: 1rem;
  background: #fff;
  max-width: 720px;
}
.mockup-title { font-size: 1.2rem; font-weight: 750; margin-bottom: .25rem; }
.mockup-help { color: var(--tt-muted); font-size: .86rem; margin-bottom: .9rem; }
.mockup label { display: block; font-size: .86rem; margin-bottom: .25rem; }
.fake-input {
  border: 1px solid #c8d0db;
  border-radius: 4px;
  padding: .52rem .65rem;
  background: #f8fafc;
  width: 100%;
  max-width: 390px;
  margin-bottom: .85rem;
}
.check-row {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: .5rem;
  align-items: start;
  margin: .6rem 0;
}
.check-row input { width: 1rem; height: 1rem; margin-top: .25rem; }
.check-row label { margin: 0; font-size: .9rem; }
.fake-button {
  display: inline-block;
  margin-top: .65rem;
  padding: .5rem .75rem;
  border-radius: 5px;
  color: #fff;
  background: var(--tt-green);
  font-size: .88rem;
  font-weight: 700;
}
.screenshot-caption { color: var(--tt-muted); font-size: .82rem; margin-top: .7rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: .7rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--tt-line); padding: .72rem .55rem; }
th { color: var(--tt-navy); font-size: .88rem; }

.toc { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
.toc li { margin-bottom: .35rem; break-inside: avoid; }

.policy-section { scroll-margin-top: 1rem; }
.policy-section h2 { border-bottom: 1px solid var(--tt-line); padding-bottom: .35rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }

.badge {
  display: inline-block;
  border: 1px solid #bfd2ed;
  background: var(--tt-pale-blue);
  color: var(--tt-navy);
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}

footer {
  background: #fff;
  border-top: 1px solid var(--tt-line);
  color: var(--tt-muted);
}
.footer-inner {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .83rem;
}
.footer-links { display: flex; gap: .8rem; flex-wrap: wrap; }

@media (max-width: 700px) {
  .header-inner { align-items: flex-start; }
  .site-nav { display: none; }
  .brand-subtitle { display: none; }
  main { width: min(100% - 1rem, 920px); margin-top: .75rem; }
  .hero { border-radius: 12px; }
  .card { border-radius: 10px; }
  .toc { columns: 1; }
}

@media print {
  body { background: #fff; }
  .site-header, footer, .skip-link { display: none; }
  main { width: 100%; margin: 0; }
  .hero { background: #fff; color: #000; border: 1px solid #bbb; box-shadow: none; }
  .hero p, .hero .eyebrow { color: #333; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* Patch 280: public Twilio verification pages */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.25rem;
}
.hero-button,
.text-link-button {
  display: inline-block;
  border-radius: 8px;
  padding: .65rem .9rem;
  font-weight: 750;
  text-decoration: none;
}
.hero-button { background: #fff; color: var(--tt-navy); }
.hero-button:hover { background: #edf4ff; color: var(--tt-navy); }
.hero-button.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.75); }
.hero-button.secondary:hover { background: rgba(255,255,255,.12); color: #fff; }
.text-link-button { background: var(--tt-pale-blue); border: 1px solid #bfd2ed; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.info-grid > div {
  border: 1px solid var(--tt-line);
  border-radius: 9px;
  background: #fbfcfe;
  padding: .8rem;
}
.info-label {
  display: block;
  color: var(--tt-muted);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .18rem;
}
.mockup-links { font-size: .86rem; margin-top: .7rem; }
.message-sample {
  border: 1px solid #cbd7e7;
  border-left: 5px solid var(--tt-green);
  border-radius: 9px;
  background: #f7fbf8;
  padding: .9rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
}
@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-button { text-align: center; }
}
