* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #171a2b;
  --muted: #5c6072;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef0ff;
  --line: #e3e4ef;
  --bg: #f4f4f8;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

/* Top bar */
.topbar {
  background: #10132a;
  color: #fff;
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.brand span { color: #a5b4fc; }

.topbar nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.topbar nav a { color: #c7cdf0; text-decoration: none; }
.topbar nav a:hover { color: #fff; }

/* Hero (home page) */
.hero {
  background: linear-gradient(150deg, #10132a 0%, #26265e 60%, #3b2f8f 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 4.5rem;
  text-align: center;
}

.hero h1 { font-size: 2.1rem; letter-spacing: -0.02em; max-width: 640px; margin: 0 auto 0.6rem; }
.hero .sub { color: #c7cdf0; max-width: 540px; margin: 0 auto; }
.hero .updated { color: #a5b4fc; margin-top: 0.75rem; }

.updated { font-size: 0.88rem; color: var(--muted); }

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.reading { max-width: 720px; }

h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }

section > p { margin-bottom: 0.75rem; }

/* Coupon card */
.coupon-card {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 14px 34px rgba(49, 46, 129, 0.14);
}

.coupon-card.overlap { margin-top: -3.25rem; }

.coupon-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.coupon-code-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.coupon-code-box code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 2px dashed #b9bdfc;
  border-radius: 10px;
  padding: 0.35rem 1.1rem;
}

.copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover { background: var(--accent-dark); }
.copy-btn.copied { background: #15803d; }

.coupon-terms { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.25rem;
  margin-bottom: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol, ul { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

section a, .article a { color: var(--accent-dark); }

/* Category pills + article grid */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  box-shadow: 0 8px 22px rgba(49, 46, 129, 0.12);
  transform: translateY(-2px);
}

.article-card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; line-height: 1.35; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }

.article-card p { font-size: 0.92rem; color: var(--muted); }

.article-meta { font-size: 0.82rem; color: #8b8fa3; margin-top: auto; padding-top: 0.6rem; }

/* Simple list variant (used inside homepage sections) */
.article-list { padding-left: 1.4rem; }

/* Article pages */
.article p { margin-bottom: 1rem; }
.article h2 { margin: 2rem 0 0.75rem; }
.article ul, .article ol { margin-bottom: 1rem; }

.article-cta {
  background: var(--accent-soft);
  border: 1px solid #d4d7fa;
  border-radius: 12px;
  padding: 1.4rem;
  margin-top: 2.5rem;
}

.article-cta h2 { margin-top: 0; }
.article-cta p:last-child { margin-bottom: 0; }

/* Callout box for key facts */
.callout {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: 0 2px 8px rgba(23, 26, 43, 0.05);
}

.callout p:last-child { margin-bottom: 0; }

/* Breadcrumb nav on inner pages */
.crumbs {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  font-size: 0.88rem;
}

.crumbs a { color: var(--accent-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }

footer {
  margin-top: 3rem;
  padding: 1.25rem 1rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #8b8fa3;
  text-align: center;
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.6rem; }
  .coupon-code-box code { font-size: 1.35rem; }
}
