/* ─────────────────────────────────────────────────
   CLOUDDEALS.COM  —  Global Stylesheet
   Light blue-white editorial theme
   Fonts: Changa One (display) + DM Sans (body)
───────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:        #f0f5ff;
  --bg2:       #e8effe;
  --white:     #ffffff;
  --blue:      #2563eb;
  --blue2:     #1d4ed8;
  --blue-lt:   #eff6ff;
  --blue-mid:  #bfdbfe;
  --navy:      #0f172a;
  --slate:     #475569;
  --muted:     #94a3b8;
  --border:    rgba(37,99,235,.12);
  --border2:   rgba(37,99,235,.2);
  --green:     #059669;
  --green-lt:  #ecfdf5;
  --orange:    #ea6c2a;
  --orange-lt: #fff7ed;
  --red:       #dc2626;
  --shadow-sm: 0 2px 8px rgba(37,99,235,.08);
  --shadow-md: 0 8px 24px rgba(37,99,235,.12);
  --shadow-lg: 0 20px 60px rgba(37,99,235,.16);
  --ff-head:   'Changa One', Georgia, serif;
  --ff-body:   'DM Sans', system-ui, sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { font-family:var(--ff-body); background:var(--bg); color:var(--navy); overflow-x:hidden; }
img  { display:block; max-width:100%; }
a    { text-decoration:none; color:inherit; }

/* ─── UTILITY ─────────────────────────────────── */
.container { max-width:1140px; margin:0 auto; padding:0 24px; }
.section   { padding:80px 0; }
.section-sm{ padding:48px 0; }

.tag {
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--ff-body); font-size:11px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
  padding:4px 10px; border-radius:100px;
}
.tag-blue   { background:var(--blue-lt);  color:var(--blue); }
.tag-green  { background:var(--green-lt); color:var(--green); }
.tag-orange { background:var(--orange-lt);color:var(--orange); }

.btn {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--ff-body); font-weight:600; font-size:15px;
  padding:13px 28px; border-radius:100px;
  border:none; cursor:pointer;
  transition:transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform:translateY(-2px); }
.btn-primary {
  background:var(--blue); color:#fff;
  box-shadow:0 4px 16px rgba(37,99,235,.3);
}
.btn-primary:hover { background:var(--blue2); box-shadow:0 8px 24px rgba(37,99,235,.4); }
.btn-outline {
  background:transparent; color:var(--blue);
  border:1.5px solid var(--border2);
}
.btn-outline:hover { background:var(--blue-lt); border-color:var(--blue); }
.btn-sm { padding:9px 20px; font-size:13px; }

/* ─── NAV ─────────────────────────────────────── */
.nav {
  position:sticky; top:0; z-index:200;
  background:rgba(240,245,255,.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.nav-inner {
  display:flex; align-items:center;
  justify-content:space-between;
  height:64px;
}
.nav-logo {
  display:flex; align-items:center; gap:10px;
  font-family:var(--ff-head); font-size:20px;
  color:var(--navy); letter-spacing:.02em;
}
.nav-logo-icon {
  width:32px; height:32px;
  background:linear-gradient(135deg, var(--blue), #60a5fa);
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; color:#fff; font-weight:700;
  flex-shrink:0;
}
.nav-links {
  display:flex; align-items:center; gap:4px;
  list-style:none;
}
.nav-links a {
  font-size:14px; font-weight:500; color:var(--slate);
  padding:8px 14px; border-radius:8px;
  transition:color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active {
  color:var(--blue); background:var(--blue-lt);
}
.nav-cta { margin-left:8px; }

/* ─── AFFILIATE BANNER ────────────────────────── */
.affiliate-bar {
  background:var(--blue); color:#fff;
  font-size:12px; font-weight:500;
  text-align:center; padding:7px 24px;
  letter-spacing:.02em;
}
.affiliate-bar a { color:#bfdbfe; text-decoration:underline; }

/* ─── HERO ────────────────────────────────────── */
.hero {
  padding:80px 0 60px;
  background:linear-gradient(160deg, #f0f5ff 0%, #e8effe 50%, #f0f5ff 100%);
  position:relative; overflow:hidden;
}
.hero::before {
  content:'';
  position:absolute; top:-200px; right:-200px;
  width:600px; height:600px;
  background:radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  pointer-events:none;
}
.hero-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:64px; align-items:center;
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--blue); margin-bottom:20px;
}
.hero-eyebrow::before {
  content:''; width:24px; height:2px; background:var(--blue);
}
.hero h1 {
  font-family:var(--ff-head); font-size:clamp(40px,5vw,68px);
  line-height:1.0; letter-spacing:-.01em;
  color:var(--navy); margin-bottom:20px;
}
.hero h1 em { font-style:italic; color:var(--blue); }
.hero-sub {
  font-size:17px; line-height:1.65;
  color:var(--slate); font-weight:300;
  max-width:480px; margin-bottom:36px;
}
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.hero-stats {
  display:flex; gap:32px; margin-top:40px;
  padding-top:32px;
  border-top:1px solid var(--border);
}
.hero-stat-num {
  font-family:var(--ff-head); font-size:28px;
  color:var(--blue); line-height:1;
}
.hero-stat-label {
  font-size:12px; color:var(--muted);
  margin-top:4px;
}

/* Hero right: deal preview */
.hero-deal-preview {
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
  border:1px solid var(--border);
}
.preview-header {
  background:var(--blue); color:#fff;
  padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; font-weight:600; letter-spacing:.04em;
}
.preview-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); }
.preview-dots { display:flex; gap:6px; }
.preview-item {
  display:flex; align-items:center; gap:16px;
  padding:16px 20px;
  border-bottom:1px solid var(--border);
  transition:background .15s;
}
.preview-item:last-child { border-bottom:none; }
.preview-item:hover { background:var(--blue-lt); }
.preview-img {
  width:52px; height:52px; border-radius:8px;
  background:var(--bg2);
  object-fit:contain; padding:4px;
  flex-shrink:0;
}
.preview-name {
  font-size:13px; font-weight:500; color:var(--navy);
  line-height:1.3; flex:1;
}
.preview-price {
  font-family:var(--ff-head); font-size:16px;
  color:var(--blue); white-space:nowrap;
}
.preview-tag {
  font-size:10px; color:var(--green);
  font-weight:600; white-space:nowrap;
}

/* ─── DEAL CARD ───────────────────────────────── */
.deal-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:20px;
}
.deal-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .25s, box-shadow .25s, border-color .25s;
  text-decoration:none; color:inherit;
  box-shadow:var(--shadow-sm);
}
.deal-card:hover {
  transform:translateY(-5px);
  box-shadow:var(--shadow-lg);
  border-color:var(--border2);
}
.deal-card-img {
  width:100%; height:200px;
  background:var(--bg2);
  object-fit:contain; padding:20px;
  transition:transform .3s;
}
.deal-card:hover .deal-card-img { transform:scale(1.03); }
.deal-card-body { padding:20px; flex:1; display:flex; flex-direction:column; }
.deal-card-tag { margin-bottom:10px; }
.deal-card-name {
  font-size:15px; font-weight:500;
  color:var(--navy); line-height:1.4;
  flex:1; margin-bottom:12px;
}
.deal-card-retailer {
  font-size:12px; color:var(--muted);
  margin-bottom:16px;
  display:flex; align-items:center; gap:6px;
}
.deal-card-retailer::before {
  content:''; width:12px; height:2px;
  background:var(--blue); opacity:.5;
}
.deal-card-footer {
  display:flex; align-items:center;
  justify-content:space-between;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.deal-price {
  font-family:var(--ff-head); font-size:24px; color:var(--blue);
}
.deal-was {
  font-size:12px; color:var(--muted);
  text-decoration:line-through; margin-left:6px;
}
.deal-btn {
  font-size:13px; font-weight:600;
  background:var(--blue); color:#fff;
  padding:9px 18px; border-radius:100px;
  transition:background .15s, transform .15s;
  white-space:nowrap;
}
.deal-card:hover .deal-btn { background:var(--blue2); transform:scale(1.03); }

/* ─── SECTION HEADER ──────────────────────────── */
.section-header { margin-bottom:48px; }
.section-eyebrow {
  font-size:11px; font-weight:600;
  letter-spacing:.15em; text-transform:uppercase;
  color:var(--blue); margin-bottom:10px;
}
.section-title {
  font-family:var(--ff-head);
  font-size:clamp(28px,3.5vw,44px);
  color:var(--navy); line-height:1.05;
}
.section-sub {
  font-size:16px; color:var(--slate);
  font-weight:300; margin-top:12px;
  max-width:560px;
}

/* ─── HOW IT WORKS ────────────────────────────── */
.hiw-steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}
.hiw-step {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:36px 28px;
  box-shadow:var(--shadow-sm);
  position:relative;
  transition:transform .25s, box-shadow .25s;
}
.hiw-step:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.hiw-num {
  font-family:var(--ff-head); font-size:64px;
  color:var(--border2); line-height:1;
  margin-bottom:16px;
}
.hiw-icon { font-size:32px; margin-bottom:16px; }
.hiw-step h3 {
  font-family:var(--ff-head); font-size:20px;
  color:var(--navy); margin-bottom:10px;
}
.hiw-step p { font-size:14px; line-height:1.7; color:var(--slate); font-weight:300; }

/* ─── ARTICLE CARD ────────────────────────────── */
.article-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(320px,1fr));
  gap:24px;
}
.article-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform .25s, box-shadow .25s;
  text-decoration:none; color:inherit;
}
.article-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.article-card-body { padding:24px; }
.article-card-tag { margin-bottom:12px; }
.article-card-title {
  font-family:var(--ff-head); font-size:20px;
  color:var(--navy); line-height:1.2;
  margin-bottom:10px;
}
.article-card-excerpt {
  font-size:14px; line-height:1.65;
  color:var(--slate); font-weight:300;
  margin-bottom:16px;
}
.article-card-meta {
  font-size:12px; color:var(--muted);
  display:flex; align-items:center; gap:12px;
}
.article-card-meta span { display:flex; align-items:center; gap:4px; }

/* ─── EMAIL SIGNUP ────────────────────────────── */
.signup-box {
  background:linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  border-radius:var(--radius-lg);
  padding:56px 48px;
  color:#fff;
  display:grid; grid-template-columns:1fr 1fr;
  gap:48px; align-items:center;
  position:relative; overflow:hidden;
}
.signup-box::before {
  content:'';
  position:absolute; right:-80px; top:-80px;
  width:320px; height:320px;
  border-radius:50%;
  background:rgba(255,255,255,.06);
  pointer-events:none;
}
.signup-box h2 {
  font-family:var(--ff-head); font-size:clamp(28px,3vw,40px);
  line-height:1.1; margin-bottom:12px;
}
.signup-box p { font-size:15px; opacity:.85; font-weight:300; line-height:1.6; }
.signup-form { display:flex; flex-direction:column; gap:10px; }
.signup-input {
  background:rgba(255,255,255,.15);
  border:1.5px solid rgba(255,255,255,.3);
  border-radius:100px;
  padding:14px 22px;
  font-family:var(--ff-body); font-size:15px;
  color:#fff; outline:none;
  transition:border-color .2s, background .2s;
}
.signup-input::placeholder { color:rgba(255,255,255,.6); }
.signup-input:focus { border-color:rgba(255,255,255,.7); background:rgba(255,255,255,.2); }
.signup-submit {
  background:#fff; color:var(--blue);
  border:none; border-radius:100px;
  padding:14px 28px;
  font-family:var(--ff-body); font-size:15px; font-weight:600;
  cursor:pointer;
  transition:transform .15s, box-shadow .15s;
}
.signup-submit:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.2); }
.signup-success {
  display:none; color:#fff;
  font-size:15px; font-weight:500;
  padding:14px 0;
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background:var(--navy);
  color:rgba(255,255,255,.7);
  padding:56px 0 32px;
}
.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:48px;
}
.footer-logo {
  display:flex; align-items:center; gap:10px;
  font-family:var(--ff-head); font-size:20px;
  color:#fff; margin-bottom:16px;
}
.footer-desc {
  font-size:13px; line-height:1.7;
  color:rgba(255,255,255,.5);
  max-width:260px;
}
.footer-heading {
  font-size:12px; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase;
  color:#fff; margin-bottom:16px;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a {
  font-size:13px; color:rgba(255,255,255,.5);
  transition:color .15s;
}
.footer-links a:hover { color:#fff; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:24px;
  display:flex; align-items:center;
  justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:12px; color:rgba(255,255,255,.35);
}
.footer-disclosure {
  font-size:11px; color:rgba(255,255,255,.3);
  line-height:1.6; margin-top:16px;
}

/* ─── APP DOWNLOAD BANNER ─────────────────────── */
.app-banner {
  background:var(--blue-lt);
  border:1px solid var(--border2);
  border-radius:var(--radius-lg);
  padding:32px 40px;
  display:flex; align-items:center; gap:24px;
  margin:48px 0;
}
.app-banner-icon { font-size:48px; flex-shrink:0; }
.app-banner-text h3 {
  font-family:var(--ff-head); font-size:22px;
  color:var(--navy); margin-bottom:6px;
}
.app-banner-text p { font-size:14px; color:var(--slate); font-weight:300; }
.app-banner .btn { margin-left:auto; flex-shrink:0; }

/* ─── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
  background:linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  padding:60px 0 48px;
  border-bottom:1px solid var(--border);
}
.page-hero h1 {
  font-family:var(--ff-head);
  font-size:clamp(32px,4vw,52px);
  color:var(--navy); line-height:1.05;
  margin-bottom:12px;
}
.page-hero p {
  font-size:16px; color:var(--slate);
  font-weight:300; max-width:560px;
}
.breadcrumb {
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--muted);
  margin-bottom:16px;
}
.breadcrumb a { color:var(--blue); }
.breadcrumb span { opacity:.4; }

/* ─── ARTICLE PAGE ────────────────────────────── */
.article-layout {
  display:grid;
  grid-template-columns:1fr 320px;
  gap:48px; align-items:start;
}
.article-body h2 {
  font-family:var(--ff-head); font-size:28px;
  color:var(--navy); margin:40px 0 16px;
  line-height:1.1;
}
.article-body h3 {
  font-family:var(--ff-head); font-size:22px;
  color:var(--navy); margin:32px 0 12px;
}
.article-body p {
  font-size:16px; line-height:1.75;
  color:var(--slate); font-weight:300;
  margin-bottom:20px;
}
.article-body ul, .article-body ol {
  padding-left:24px; margin-bottom:20px;
}
.article-body li {
  font-size:16px; line-height:1.7;
  color:var(--slate); font-weight:300;
  margin-bottom:8px;
}
.article-body strong { color:var(--navy); font-weight:600; }
.article-callout {
  background:var(--blue-lt);
  border-left:4px solid var(--blue);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:20px 24px; margin:32px 0;
  font-size:15px; color:var(--navy);
  font-weight:400; line-height:1.6;
}
.sidebar { position:sticky; top:88px; }
.sidebar-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow-sm);
  margin-bottom:20px;
}
.sidebar-card h4 {
  font-family:var(--ff-head); font-size:16px;
  color:var(--navy); margin-bottom:16px;
}

/* ─── PRODUCT TABLE ───────────────────────────── */
.product-table {
  width:100%; border-collapse:collapse;
  margin:32px 0; font-size:14px;
}
.product-table th {
  background:var(--blue); color:#fff;
  padding:12px 16px; text-align:left;
  font-weight:600; font-size:12px;
  letter-spacing:.06em; text-transform:uppercase;
}
.product-table td {
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  color:var(--slate); vertical-align:middle;
}
.product-table tr:nth-child(even) td { background:var(--bg2); }
.product-table tr:hover td { background:var(--blue-lt); }
.product-table .price-col {
  font-family:var(--ff-head); font-size:18px;
  color:var(--blue); font-weight:700;
}
.product-table .buy-link {
  display:inline-block;
  background:var(--blue); color:#fff;
  padding:7px 16px; border-radius:100px;
  font-size:12px; font-weight:600;
  transition:background .15s;
}
.product-table .buy-link:hover { background:var(--blue2); }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width:1024px) {
  .hero-grid { grid-template-columns:1fr; gap:40px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .hiw-steps { grid-template-columns:1fr; }
  .article-layout { grid-template-columns:1fr; }
  .sidebar { position:static; }
}
@media (max-width:768px) {
  .section { padding:56px 0; }
  .nav-links { display:none; }
  .signup-box { grid-template-columns:1fr; padding:36px 28px; }
  .hero-stats { flex-wrap:wrap; gap:20px; }
  .app-banner { flex-direction:column; text-align:center; }
  .app-banner .btn { margin-left:0; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; text-align:center; }
}
@media (max-width:480px) {
  .hero { padding:60px 0 40px; }
  .deal-grid { grid-template-columns:1fr; }
  .article-grid { grid-template-columns:1fr; }
}
