/* ============================================================
   Close More Customers — closemorecustomerss.com
   Shared stylesheet. No third-party fonts or CDNs: everything
   here is served from our own origin, which is also what the
   privacy policy promises.
   ============================================================ */

:root {
  --ink:        #0F1521;
  --ink-2:      #1B2433;
  --body:       #39424F;
  --muted:      #6B7480;
  --line:       #E5E2DB;
  --line-soft:  #EFEDE8;
  --paper:      #FFFFFF;
  --cream:      #F8F6F2;
  --cream-2:    #F1EEE8;
  --accent:     #FF5A1F;
  --accent-dk:  #D2440F;
  --accent-soft:#FFEFE7;
  --green:      #0E7C5A;
  --green-soft: #E6F4EF;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,21,33,.06), 0 2px 8px rgba(15,21,33,.04);
  --shadow-md: 0 2px 4px rgba(15,21,33,.05), 0 12px 32px rgba(15,21,33,.08);
  --shadow-lg: 0 4px 8px rgba(15,21,33,.06), 0 24px 60px rgba(15,21,33,.12);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.021em;
  margin: 0 0 .5em;
  font-weight: 700;
  /* Evens the line lengths and kills single-word last lines.
     Ignored by browsers that do not support it — no fallback needed. */
  text-wrap: balance;
}
.lede, .card p, .step p { text-wrap: pretty; }

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: 1.22rem; letter-spacing: -0.018em; }
h4 { font-size: 1.02rem; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

em.fancy {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

section { padding: 84px 0; }
section.tight { padding: 60px 0; }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #C3CAD4; }
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #FFFFFF; }

.eyebrow {
  display: inline-block;
  font-size: .745rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin: 0 0 14px;
}
.bg-ink .eyebrow { color: #FF8A5C; }

.lede { font-size: 1.13rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 660px; margin-bottom: 46px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .97rem;
  font-weight: 650;
  letter-spacing: -0.008em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #FFFFFF; box-shadow: 0 2px 6px rgba(210,68,15,.22), 0 10px 24px rgba(210,68,15,.18); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-lg { padding: 17px 34px; font-size: 1.03rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: #AEB7C4;
  font-size: .845rem;
  padding: 9px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #FFFFFF; font-weight: 600; }
.topbar .tb-note { color: #8B94A3; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { color: var(--ink); font-size: 1.045rem; font-weight: 700; letter-spacing: -0.026em; }
.logo-text span { color: var(--muted); font-size: .665rem; letter-spacing: .105em; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); font-weight: 550; font-size: .945rem; }
.nav a:hover { color: var(--accent-dk); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.nav-phone:hover { color: var(--accent-dk); text-decoration: none; }

@media (max-width: 900px) {
  .nav { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 86px 0 76px; background: linear-gradient(178deg, #FFFFFF 0%, var(--cream) 100%); border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 52px; align-items: center; }
/* Sized so the headline sets in four lines with no single-word last line. */
.hero h1 { margin-bottom: .38em; font-size: clamp(2.3rem, 4.6vw, 3.55rem); }
.hero .lede { font-size: 1.19rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-reassure { margin-top: 22px; font-size: .875rem; color: var(--muted); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* A grid item is min-width:auto by default, so the un-wrappable URL in the
   browser mock held the whole column open — measured 348px of layout inside
   a 320px viewport, which scrolled the page sideways. Let the column shrink
   and let the URL truncate instead. */
.hero-grid > * { min-width: 0; }

/* browser mock */
.mock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #D3CEC4; }
.mock-url { margin-left: 10px; font-family: var(--mono); font-size: .715rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 3px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- trust strip ---------- */
.strip { border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 34px; padding-bottom: 34px; }
.strip-item b { display: block; color: var(--ink); font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: 2px; }
.strip-item span { font-size: .875rem; color: var(--muted); }
@media (max-width: 820px) { .strip .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .42em; }
.card p { font-size: .955rem; color: var(--muted); }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; stroke: var(--accent-dk); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -13px; left: 0;
  background: var(--paper); padding-right: 12px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--accent-dk);
}
.bg-cream .step::before { background: var(--cream); }
.step h3 { font-size: 1.06rem; margin-bottom: .35em; }
.step p { font-size: .93rem; color: var(--muted); }

/* ---------- pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow-md); position: relative; }
.price-tag { position: absolute; top: -11px; right: 22px; background: var(--ink); color: #FFF; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 2.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 2px; }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.ticks li { position: relative; padding: 7px 0 7px 27px; font-size: .935rem; color: var(--body); border-bottom: 1px solid var(--line-soft); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 15px; height: 9px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 21px 44px 21px 0; position: relative;
  font-weight: 650; color: var(--ink); font-size: 1.03rem; letter-spacing: -0.014em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 29px;
  width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 33px; }
.faq .faq-body { padding: 0 40px 22px 0; font-size: .975rem; color: var(--muted); }

/* ============================================================
   SMS / A2P compliance components
   ============================================================ */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 560px) { .form-card { padding: 26px 20px; } }

.field { margin-bottom: 17px; }
.field label { display: block; font-size: .865rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.008em; }
.field .req { color: var(--accent-dk); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 92px; }
.field-hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* the consent block — the piece the carriers actually read */
.consent {
  border: 1.5px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  padding: 17px 18px;
  margin: 22px 0 18px;
}
.consent + .consent { margin-top: 14px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; }
.consent input[type="checkbox"] {
  flex: none;
  width: 19px; height: 19px;
  margin: 2px 0 0;
  accent-color: var(--accent-dk);
  cursor: pointer;
}
.consent label { font-size: .875rem; line-height: 1.6; color: var(--body); cursor: pointer; }
.consent label strong { color: var(--ink); font-weight: 650; }
.consent a { text-decoration: underline; }
.consent-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: .79rem;
  line-height: 1.6;
  /* Not --muted: this is compliance text on the cream consent panel and
     --muted only reaches 4.39:1 there. Darkened to clear WCAG AA. */
  color: #59626E;
}
.consent-meta b { color: var(--ink-2); font-weight: 650; }
.consent-optional {
  display: inline-block;
  font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft);
  padding: 2px 8px; border-radius: 999px; margin-bottom: 9px;
}

.form-foot { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* inline disclosure bar reused across pages */
.sms-disclosure {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--cream);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .875rem;
  line-height: 1.62;
  color: var(--body);
}
.sms-disclosure b { color: var(--ink); }

/* phone conversation mock, used in the workflow image + FAQ */
.phone-mock {
  background: var(--ink);
  border-radius: 26px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
}
.phone-screen { background: #FFFFFF; border-radius: 17px; overflow: hidden; }
.phone-top { background: var(--cream-2); padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.phone-top b { display: block; font-size: .82rem; color: var(--ink); }
.phone-top span { font-size: .7rem; color: var(--muted); }
.phone-body { padding: 15px 13px; display: flex; flex-direction: column; gap: 9px; min-height: 200px; }
.bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: .795rem;
  line-height: 1.5;
}
.bubble-in { background: #EDECE8; color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble-out { background: var(--accent); color: #FFFFFF; border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble-time { font-size: .66rem; color: var(--muted); text-align: center; margin: 2px 0; }

/* ---------- legal pages ---------- */
.legal-hero { background: var(--ink); color: #B9C1CC; padding: 62px 0 54px; }
.legal-hero h1 { color: #FFFFFF; margin-bottom: .3em; font-size: clamp(2.1rem, 4.2vw, 3rem); }
.legal-hero .updated { font-size: .875rem; color: #8B94A3; }

.legal { padding: 60px 0 88px; }
.legal-layout { display: grid; grid-template-columns: 246px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 34px; } }

.toc { position: sticky; top: 96px; border-left: 2px solid var(--line); padding-left: 18px; }
@media (max-width: 900px) { .toc { position: static; } }
.toc b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; font-size: .875rem; color: var(--body); padding: 5px 0; line-height: 1.4; }
.toc a:hover { color: var(--accent-dk); }

.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.42rem; margin-top: 46px; margin-bottom: .55em; scroll-margin-top: 96px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin-top: 28px; margin-bottom: .45em; }
.legal-body p, .legal-body li { font-size: .975rem; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 1.1em; }
.legal-body li { margin-bottom: .5em; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: .92rem; }
.legal-body th, .legal-body td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--cream); color: var(--ink); font-weight: 650; }

.callout {
  background: var(--accent-soft);
  border: 1px solid #FFD6C2;
  border-radius: 12px;
  padding: 19px 21px;
  margin: 0 0 1.4em;
}
.callout p { font-size: .945rem; margin-bottom: .7em; }
.callout p:last-child { margin-bottom: 0; }
.callout b { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #99A2B0; padding: 62px 0 30px; font-size: .9rem; }
.site-footer h4 { color: #FFFFFF; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 42px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #C3CAD4; display: block; padding: 4px 0; }
.site-footer a:hover { color: #FFFFFF; }
.footer-about p { color: #8B94A3; font-size: .89rem; max-width: 34ch; }
.footer-legal {
  border-top: 1px solid #232C3B;
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .82rem; color: #78818F;
}
.footer-legal a { display: inline; color: #99A2B0; }
.footer-sms {
  border-top: 1px solid #232C3B;
  padding: 22px 0;
  font-size: .82rem;
  line-height: 1.65;
  color: #8B94A3;
}
.footer-sms b { color: #C3CAD4; }

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #FFF; padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.anchor-offset { scroll-margin-top: 92px; }

@media print {
  .site-header, .topbar, .site-footer, .btn { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- small screens ----------
   A carrier reviewer opens /privacy and /terms on a phone. A page that
   scrolls sideways reads as unfinished, so nothing here is allowed to be
   wider than the viewport. Measured at 320 / 390 with a scrollWidth check,
   not by eye. */
@media (max-width: 760px) {
  /* The header ran out of room first: phone number + button + logo could
     not share 390px. Keep the number (it is the A2P sender identity and
     the HELP contact) and drop the button — the same CTA is one scroll
     away in the hero and again in the contact section. */
  .nav-cta .btn { display: none; }
  .logo-text span { display: none; }
  .site-header .wrap { height: 64px; gap: 12px; }
}

@media (max-width: 430px) {
  .topbar .tb-note { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 15px 20px; font-size: .98rem; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .nav-phone { font-size: .9rem; }
}

/* Long unbroken strings — section anchors in the contents list, URLs and
   the toll-free number inside legal prose — must wrap rather than push
   the page wide. */
.toc a, .legal-body { overflow-wrap: anywhere; }

/* Things that must never be split across a line break: the toll-free
   number and the support address. Verified at 390px — before this the
   HELP row read "(877) 465-" / "0007", which is the one line a carrier
   reviewer is checking. */
.nowrap { white-space: nowrap; }

/* The SMS programme table (terms §8) is a key/value list, not a data grid.
   Squeezed into two columns on a phone the value column is ~150px, which
   broke the support address mid-domain. Stack it: label above value, each
   value getting the full column width. */
@media (max-width: 620px) {
  .legal-body table.kv,
  .legal-body table.kv tbody,
  .legal-body table.kv tr,
  .legal-body table.kv th,
  .legal-body table.kv td { display: block; width: auto; }
  .legal-body table.kv tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .legal-body table.kv th,
  .legal-body table.kv td { border: 0; width: auto !important; }
  .legal-body table.kv td { border-top: 1px solid var(--line-soft); }
}
