/* ============================================================
   ConnectedYou Coupon — Site Stylesheet
   Palette: navy, ocean blue, warm sand, white (travel style)
   Body text >= 17px, touch targets >= 44px, scrollable tables
   ============================================================ */

:root {
  --navy: #0f2a43;
  --navy-dark: #0a1e31;
  --ocean: #1b6ca8;
  --ocean-bright: #2e86c1;
  --ocean-light: #eaf3fa;
  --sand: #f6efe3;
  --sand-deep: #eadfc8;
  --sand-accent: #c99a3f;
  --white: #ffffff;
  --ink: #1c2b3a;
  --ink-soft: #46586b;
  --line: #dde6ee;
  --green: #1e7d4e;
  --green-bg: #e7f5ee;
  --red: #b3372f;
  --red-bg: #fbeceb;
  --amber-bg: #fdf3df;
  --amber: #8a6116;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(15, 42, 67, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 42, 67, 0.14);
  --max-w: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ocean-bright); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  min-height: 44px;
}
.brand i { color: #f0c869; }

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.15rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  color: #dbe7f2;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:hover, .site-nav a:focus { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--ocean); color: #fff; }
.site-nav li:last-child { margin-left: 10px; }
.site-nav .nav-cta {
  background: var(--sand-accent);
  color: var(--navy-dark);
  font-weight: 700;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav .nav-cta i { font-size: 0.8em; }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus { background: #dcae55; color: var(--navy-dark); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; padding: 8px 16px; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .site-nav a { width: 100%; }
  .site-nav li:last-child { margin-left: 0; margin-top: 6px; }
  .site-nav .nav-cta { justify-content: center; border-radius: 10px; }
}

/* ---------- Breadcrumbs (inside hero) ---------- */
.page-hero .breadcrumbs {
  font-size: 0.85rem;
  color: #b9cddf;
  margin: 0 0 16px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "\203A"; color: #7f9cb8; font-size: 1rem; line-height: 1; }
.breadcrumbs a { color: #dbe7f2; text-decoration: none; border-bottom: 1px solid rgba(219, 231, 242, 0.4); padding-bottom: 1px; }
.breadcrumbs a:hover, .breadcrumbs a:focus { color: #fff; border-bottom-color: #fff; }
.breadcrumbs li[aria-current="page"] { color: #eaf3fa; font-weight: 600; }

/* ---------- Hero ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, #143c60 55%, var(--ocean) 100%);
  color: #fff;
  padding: 40px 20px 46px;
}
.page-hero .hero-inner { max-width: var(--max-w); margin: 0 auto; }

/* Hero with embedded offer card (homepage) */
.page-hero.hero-with-offer { padding-bottom: 52px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}
.hero-grid .hero-copy { min-width: 0; }
.hero-grid .hero-offer { min-width: 0; }
.page-hero .offer-card {
  margin: 0;
  width: 100%;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 44px rgba(4, 18, 32, 0.45);
}
.page-hero .offer-card .offer-card-body { padding: 18px 22px 20px; }
.page-hero .offer-card .code-box { margin-bottom: 12px; flex-wrap: nowrap; }
.page-hero .offer-card .code-chip { font-size: 1.15rem; min-height: 48px; padding: 10px 16px; min-width: 0; }
.page-hero .offer-card .copy-btn { min-height: 48px; padding: 10px 18px; font-size: 0.95rem; white-space: nowrap; }
.page-hero .offer-card .cta-note { margin: 0 0 12px; font-size: 0.8rem; line-height: 1.5; }
.page-hero .offer-card .btn-cta { min-height: 46px; padding: 11px 20px; font-size: 0.98rem; }
.offer-head-badge {
  margin-left: auto;
  flex: none;
  background: var(--amber-bg);
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.offer-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.offer-meta li { display: inline-flex; align-items: center; gap: 7px; }
.offer-meta li strong { color: var(--navy); }
.offer-meta li s { color: var(--red); }
.offer-meta .fa-circle-check { color: var(--green); }
.offer-meta .fa-circle-xmark { color: var(--red); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-hero.hero-with-offer { padding-bottom: 40px; }
  .page-hero .offer-card { max-width: 600px; }
}
@media (max-width: 430px) {
  .page-hero .offer-card .code-box { flex-wrap: wrap; }
}
.page-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.22;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.page-hero .hero-lead {
  font-size: 1.08rem;
  color: #dce9f5;
  max-width: 720px;
  margin: 0 0 8px;
}
.page-hero .hero-lead strong { color: #fff; }
.fact-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #eaf3fa;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.fact-check-chip i { color: #ffd67e; }

/* ---------- Layout ---------- */
.page-main { max-width: var(--max-w); margin: 0 auto; padding: 30px 20px 48px; }
article.article-body > h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 44px 0 14px;
  padding-top: 10px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
article.article-body > h2:first-child { margin-top: 6px; }
article.article-body h3 { font-size: 1.15rem; color: var(--navy); margin: 28px 0 10px; }
article.article-body p { margin: 0 0 16px; }
article.article-body ul, article.article-body ol { margin: 0 0 18px; padding-left: 24px; }
article.article-body li { margin-bottom: 7px; }
article.article-body li::marker { color: var(--ocean); }

/* ---------- Offer status card ---------- */
.offer-card {
  background: var(--white);
  border: 2px solid var(--ocean);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: -34px auto 34px;
  position: relative;
  z-index: 5;
}
.offer-card-head {
  background: var(--ocean);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.offer-card-head .live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #6ff2a8;
  box-shadow: 0 0 0 4px rgba(111, 242, 168, 0.25);
  flex: none;
}
.offer-card-body { padding: 20px; }

/* Copy code box */
.code-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}
.code-chip {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed var(--sand-accent);
  background: var(--amber-bg);
  color: var(--navy);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-height: 54px;
}
.copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 22px;
  min-height: 54px;
  min-width: 44px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: var(--ocean); }
.copy-btn.copied { background: var(--green); }

/* ---------- Buttons / CTA ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--ocean) 0%, var(--ocean-bright) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 28px;
  min-height: 50px;
  box-shadow: 0 4px 14px rgba(27, 108, 168, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27, 108, 168, 0.45); }
.btn-cta.btn-block { display: flex; width: 100%; }
.cta-note { font-size: 0.83rem; color: var(--ink-soft); margin-top: 8px; }

.cta-band {
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  margin: 30px 0;
}
.cta-band p.cta-title { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 0 0 12px; }

/* ---------- Disclosure ---------- */
.disclosure {
  background: var(--sand);
  border-left: 4px solid var(--sand-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 20px 0;
}
.disclosure strong { color: var(--ink); }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: 20px 0;
  font-size: 0.97rem;
}
.callout .callout-title { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.callout.info { background: var(--ocean-light); border: 1px solid #c4dcee; }
.callout.info .callout-title { color: var(--ocean); }
.callout.warn { background: var(--amber-bg); border: 1px solid #ecd9a8; }
.callout.warn .callout-title { color: var(--amber); }
.callout.success { background: var(--green-bg); border: 1px solid #bfe3d0; }
.callout.success .callout-title { color: var(--green); }
.callout.danger { background: var(--red-bg); border: 1px solid #efc7c3; }
.callout.danger .callout-title { color: var(--red); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Verdict box ---------- */
.verdict-box {
  background: linear-gradient(135deg, var(--navy) 0%, #17456d 100%);
  color: #eaf3fa;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.verdict-box .verdict-title {
  display: flex; align-items: center; gap: 10px;
  color: #ffd67e; font-weight: 800; font-size: 1.05rem;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.8px;
}
.verdict-box p { margin: 0; }
.verdict-box strong { color: #fff; }

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.95rem;
  background: #fff;
}
caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 14px 8px;
  font-size: 0.98rem;
}
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: #f7fafc; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  white-space: nowrap;
}
.badge.good { background: var(--green-bg); color: var(--green); }
.badge.bad { background: var(--red-bg); color: var(--red); }
.badge.neutral { background: var(--ocean-light); color: var(--ocean); }

/* ---------- Steps timeline ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 26px; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ocean);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 18px; top: 42px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps > li strong.step-title { display: block; color: var(--navy); margin-bottom: 3px; font-size: 1.02rem; }

/* ---------- Pros / cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pc-panel { border-radius: var(--radius-sm); padding: 18px; }
.pc-panel.pros { background: var(--green-bg); border: 1px solid #bfe3d0; }
.pc-panel.cons { background: var(--red-bg); border: 1px solid #efc7c3; }
.pc-panel h3 { margin: 0 0 10px !important; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.pc-panel.pros h3 { color: var(--green); }
.pc-panel.cons h3 { color: var(--red); }
.pc-panel ul { list-style: none; padding: 0; margin: 0; }
.pc-panel li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 0.95rem; }
.pc-panel.pros li::before { content: "\2713"; color: var(--green); font-weight: 800; position: absolute; left: 4px; }
.pc-panel.cons li::before { content: "\2715"; color: var(--red); font-weight: 800; position: absolute; left: 4px; }

/* ---------- Chips ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; padding: 0; list-style: none; }
.chip-list li {
  background: var(--ocean-light);
  color: var(--navy);
  border: 1px solid #cfe2f0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- FAQ accordion ---------- */
.faq-list { margin: 18px 0 26px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--navy);
  min-height: 44px;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ocean-light);
  color: var(--ocean);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); background: #fafcfe; }
.faq-item .faq-answer { padding: 14px 18px; font-size: 0.97rem; color: var(--ink-soft); }
.faq-item .faq-answer p { margin: 0 0 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Article figures ---------- */
.article-figure {
  margin: 26px 0;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Related links ---------- */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.related-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.12s ease;
  min-height: 44px;
  font-size: 0.96rem;
}
.related-links a:hover { border-color: var(--ocean); transform: translateY(-2px); }
.related-links a span.rel-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--ocean);
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9cadb;
  padding: 44px 20px 40px;
  font-size: 0.92rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.7px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe0ef; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer { max-width: 1080px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.84rem; color: #90a6ba; }
@media (max-width: 760px) {
  .site-footer { padding-bottom: 96px; } /* clearance for sticky mobile CTA */
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--navy);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(15, 42, 67, 0.3);
  display: none;
}
.sticky-cta .btn-cta { width: 100%; font-size: 1rem; min-height: 48px; }
@media (max-width: 760px) {
  .sticky-cta { display: block; }
}

/* ---------- Utility ---------- */
.text-muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.mt-0 { margin-top: 0 !important; }

@media (max-width: 480px) {
  .page-hero { padding: 30px 16px 40px; }
  .page-main { padding: 24px 16px 60px; }
  .offer-card-body { padding: 16px; }
  .code-chip { font-size: 1.15rem; }
}
