/* crciketwireless.com - shared stylesheet
   Publication identity (sand / terracotta, Poppins) + offer page identity (body.request-portal).
   Mobile-first: base rules target 360px, wider layouts are layered on at 480 / 768 / 1024. */

:root {
  color-scheme: only light;
  --bg: #FAF6F0;
  --surface: #EFE4D4;
  --ink: #2B2118;
  --muted: #7A6A5A;
  --accent: #C2552B;
  --accent-ink: #FFFFFF;
  --accent-deep: #9F4220;
  --rule: rgba(122, 106, 90, 0.55);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad: 16px;
  --sheet-pad: 0px;
  --measure: 600px;
}

:root { --align: 16px; --align-max: 1160px; }

@media (min-width: 768px) {
  :root { --pad: 24px; --sheet-pad: 40px; --align: 65px; --align-max: 1208px; }
}
@media (min-width: 1024px) {
  :root { --sheet-pad: 56px; --align: 89px; --align-max: 1224px; }
}

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

[hidden] { display: none !important; }

html {
  background-color: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

img, video { max-width: 100%; height: auto; }

p { margin: 0 0 1.15em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
a:hover { color: var(--accent-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* ---------- masthead: solid ink band, wordmark reversed out ---------- */

.masthead {
  background-color: var(--ink);
  color: var(--bg);
}
.masthead__in {
  max-width: var(--align-max);
  margin: 0 auto;
  padding: 10px var(--align);
  display: flex;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--bg);
  text-decoration: none;
}
.brand:hover { color: var(--bg); }
.brand:focus-visible { outline-color: var(--surface); }
.brand__mark { flex: none; width: 36px; height: 36px; display: block; }
.brand__text { display: block; min-width: 0; }
.brand__name {
  display: inline-block;
  font-weight: 600;
  font-size: clamp(0.875rem, 0.7rem + 0.8vw, 1.1875rem);
  line-height: 1.15;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bg);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}
.brand__meta {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--surface);
}
.brand__dot { padding: 0 0.3em; }

/* ---------- paper sheet on tinted desk ---------- */

.desk {
  background-color: var(--surface);
  padding: 12px 0 28px;
}
.sheet {
  background-color: var(--bg);
  color: var(--ink);
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 22px 40px -28px rgba(43, 33, 24, 0.45);
}
@media (min-width: 768px) {
  .desk { padding: 40px 24px 64px; }
  .sheet {
    border: 1px solid var(--rule);
    padding-inline: var(--sheet-pad);
  }
}
@media (min-width: 1024px) {
  .desk { padding: 56px 32px 80px; }
}

/* ---------- hero: title + dek left, first loop right ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0 36px;
}
.hero__text { padding-inline: var(--pad); }
.kicker {
  margin: 0 0 14px;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1,
.doc h1 {
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-align: left;
}
.hl { color: var(--accent); }
.dek {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink);
}
.hero__media { margin: 0; min-width: 0; }

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding: 56px 0 56px;
  }
  .hero__text { padding-inline: 0; }
}
@media (min-width: 1024px) {
  .hero { gap: 64px; padding: 72px 0 72px; }
}

/* ---------- media ---------- */

.figure { margin: 0; }
.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--surface);
  overflow: hidden;
}
.figure__media img,
.figure__media video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: sepia(0.14) saturate(0.94);
}
.figure__media--tall { aspect-ratio: 4 / 3; }
.figure__media--teal img { filter: sepia(0.38) saturate(0.78) hue-rotate(-8deg); }
.figure figcaption {
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0 auto;
  padding: 10px var(--pad) 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.hero__media figcaption { padding-inline: var(--pad); margin: 0; max-width: none; }

@media (min-width: 768px) {
  .figure__media { aspect-ratio: 2.1 / 1; }
  .figure__media--tall { aspect-ratio: 5 / 4; }
  .figure figcaption { padding-inline: 0; max-width: var(--measure); }
  .hero__media figcaption { padding-inline: 0; max-width: none; }
}

/* ---------- article sections ---------- */

.col {
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.story {
  padding: 40px 0 44px;
  border-top: 1px solid var(--rule);
}
.story--lead { border-top: 0; padding-top: 8px; }
.story--tint {
  background-color: var(--surface);
  color: var(--ink);
}
.story--tint .kicker,
.story--tint .figure figcaption { color: var(--ink); }

.story h2,
.doc h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.story h3,
.doc h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
}
.story .figure { margin: 36px 0 32px; }
.story .figure:first-child { margin-top: -40px; margin-bottom: 36px; }
.story .col > p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .story { padding: 64px 0 72px; }
  .story--lead { padding-top: 8px; }
  .story--tint {
    margin-inline: calc(var(--sheet-pad) * -1);
    padding-inline: var(--sheet-pad);
  }
  .story .figure { margin: 52px 0 48px; }
  .story .figure:first-child { margin-top: -64px; margin-bottom: 48px; }
}

/* ---------- routine list (no numbered badges) ---------- */

.routine {
  list-style: none;
  margin: 30px 0 30px 6px;
  padding: 0;
  border-left: 1px solid var(--muted);
}
.routine li {
  position: relative;
  margin: 0;
  padding: 0 0 26px 28px;
}
.routine li:last-child { padding-bottom: 0; }
.routine li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 11px;
  height: 11px;
  background-color: var(--accent);
}
.routine__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- the one tinted aside ---------- */

.need {
  margin: 32px 0;
  padding: 24px 22px 20px;
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.need__title {
  margin: 0 0 14px;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}
.need ul { list-style: none; margin: 0; padding: 0; }
.need li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
  line-height: 1.6;
}
.need li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background-color: var(--accent);
}

@media (min-width: 768px) {
  .need { padding: 28px 30px 20px; }
}

/* ---------- honest picture: two columns ---------- */

.nb { white-space: nowrap; }

.tradeoffs {
  max-width: 920px;
  margin: 32px auto 8px;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.tradeoffs__col {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.tradeoffs__col h3 { margin: 0 0 14px; }
.tradeoffs__col ul { list-style: none; margin: 0; padding: 0; }
.tradeoffs__col li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  line-height: 1.65;
}
.tradeoffs__col li:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 768px) {
  .tradeoffs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding-inline: 0;
  }
  .tradeoffs__col { padding-right: 36px; }
  .tradeoffs__col + .tradeoffs__col {
    padding-right: 0;
    padding-left: 36px;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- calls to action: solid rectangle, trailing arrow ---------- */

.cta-block { margin-top: 36px; }
.cta-lead {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  background-color: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cta:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -14px rgba(43, 33, 24, 0.7);
}
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta__arrow {
  flex: none;
  width: 20px;
  height: 20px;
  display: block;
  transition: transform .2s ease;
}
.cta:hover .cta__arrow { transform: translateX(4px); }

@media (min-width: 480px) {
  .cta { display: inline-flex; width: auto; justify-content: flex-start; gap: 16px; }
}

/* ---------- footer ---------- */

.page-end {
  background-color: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding: 40px 0 56px;
}
.page-end__in {
  max-width: var(--align-max);
  margin: 0 auto;
  padding-inline: var(--align);
}
.address {
  max-width: 46rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.address p { margin: 0 0 0.6em; }
.address .more-links {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
}
.address .more-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-legal { margin: 24px 0 0; }
.nav-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}
.nav-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.end-line {
  max-width: 46rem;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink);
}

/* ---------- legal / about documents ---------- */

.doc { padding: 36px 0 52px; }
.doc .col > p,
.doc .col > ul,
.doc .col > ol { margin-bottom: 1.15em; }
.doc-meta {
  margin: 16px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.doc section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.doc section h2 { margin-bottom: 16px; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin-bottom: 0.55em; padding-left: 0.2em; }
.doc li::marker { color: var(--accent); }
.doc .intro { font-size: 1.125rem; line-height: 1.7; margin-top: 24px; }
.principles { list-style: none; padding-left: 0 !important; margin: 0 0 1.15em; }
.principles li {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--rule);
}
.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
}

@media (min-width: 768px) {
  .doc { padding: 56px 0 80px; }
}

/* ======================================================================
   OFFER PAGE IDENTITY - body.request-portal
   Dark stage, rounded paper card, pill day picker. Same fonts, own composition.
   ====================================================================== */

body.request-portal { background-color: var(--bg); color: var(--ink); }

.request-portal .rp-stage {
  background-color: var(--ink);
  color: var(--bg);
}
.request-portal .rp-hero {
  background-color: var(--ink);
  color: var(--bg);
  padding: 0 0 48px;
}
.request-portal .rp-bar {
  max-width: var(--align-max);
  margin: 0 auto;
  padding: 10px var(--align);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.request-portal .rp-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg);
}
.request-portal .rp-back:hover { color: var(--surface); }
.request-portal .rp-back:focus-visible { outline-color: var(--surface); }

.rp-grid {
  max-width: var(--align-max);
  margin: 0 auto;
  padding: 24px var(--align) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.rp-intro { color: var(--bg); }
.rp-intro .kicker { color: var(--surface); }
.rp-intro h1 {
  color: var(--bg);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.rp-intro h1 .hl { color: #F0A582; }
.rp-intro p { color: var(--bg); }
.rp-intro .dek { color: var(--bg); margin-top: 20px; }
.rp-covers {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.rp-covers li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 32px;
  border-top: 1px solid rgba(250, 246, 240, 0.28);
  color: var(--bg);
  line-height: 1.6;
}
.rp-covers li:last-child { border-bottom: 1px solid rgba(250, 246, 240, 0.28); }
.rp-covers li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #F0A582;
  border-bottom: 2px solid #F0A582;
  transform: rotate(-45deg);
}

.rp-card {
  background-color: var(--bg);
  color: var(--ink);
  border-radius: 18px;
  padding: 24px 18px 26px;
  box-shadow: 0 28px 50px -28px rgba(0, 0, 0, 0.7);
  min-width: 0;
}
.rp-card h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.rp-card .rp-sub {
  margin: 0 0 22px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.rp-form fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  min-width: 0;
}
.rp-form legend {
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pill, .win { position: relative; display: flex; }
.pill > span, .win > span { flex: 1 1 auto; }
.pill input, .win input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.pill > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 6px;
  border: 1.5px solid var(--muted);
  border-radius: 999px;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pill:hover > span { border-color: var(--accent); }
.pill input:checked + span {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pill input:focus-visible + span,
.win input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.wins { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.win > span {
  display: block;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  background-color: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.win:hover > span { border-color: var(--accent); }
.win__title { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.win__sub { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink); }
.win input:checked + span {
  background-color: var(--surface);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.field { margin: 0 0 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--muted);
  border-radius: 10px;
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:hover { border-color: var(--ink); }
.field input:focus { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--accent-deep); }
.field .hint { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--accent-deep);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.consent label { font-weight: 400; }

.rp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.rp-submit:hover { background-color: var(--accent-deep); box-shadow: 0 12px 24px -16px rgba(43, 33, 24, 0.8); }
.rp-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.rp-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.rp-success {
  margin: 0 0 22px;
  padding: 18px 20px;
  background-color: var(--surface);
  color: var(--ink);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  line-height: 1.55;
}
.rp-formerror {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.rp-after {
  background-color: var(--bg);
  color: var(--ink);
  padding: 48px 0 56px;
}
.rp-after__in {
  max-width: var(--align-max);
  margin: 0 auto;
  padding-inline: var(--align);
}
.rp-after h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 24px;
}
.rp-next {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.rp-next li {
  margin: 0;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  line-height: 1.65;
}
.rp-next strong { display: block; margin-bottom: 4px; font-weight: 600; }

@media (min-width: 480px) {
  .rp-card { padding: 32px 28px 32px; }
  .pills { gap: 10px; }
  .wins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .win > span { min-height: 92px; }
}
@media (min-width: 768px) {
  .request-portal .rp-hero { padding-bottom: 72px; }
  .rp-grid { padding-top: 36px; gap: 40px; }
  .rp-next { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .rp-after { padding: 72px 0 80px; }
}
@media (min-width: 1024px) {
  .rp-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: start;
    padding-top: 56px;
  }
  .rp-card { padding: 40px 40px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
