/* EarningPerks — educational cashback & rewards site */
:root {
  --brand: #1f9d72;
  --brand-dk: #157a58;
  --brand-lt: #d7f2e7;
  --accent: #e8913a;
  --ink: #14211c;
  --body: #39453f;
  --muted: #6b7a72;
  --line: #e3ece7;
  --bg: #ffffff;
  --panel: #f3f8f5;
  --band: #10231b;
  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,35,27,.04), 0 10px 30px rgba(16,35,27,.07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; color: var(--ink); line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.05rem); margin: 0 0 .5em; }
h3 { font-size: 1.18rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--brand-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.c { text-align: center; }
.muted { color: var(--muted); }
.big { font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.logo { display: block; height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--body); font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 9px; }
.nav a:hover { background: var(--panel); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-dk); background: var(--brand-lt); }
.navtog, .burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 600;
  padding: 13px 24px; border-radius: 11px; font-size: 1rem; border: 1px solid var(--brand);
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(31,157,114,.22);
}
.btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); text-decoration: none; transform: translateY(-1px); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-dk); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--panel); color: var(--brand-dk); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--panel) 0%, #fff 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 20px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand-dk); margin: 0 0 .4em; }
.lead { font-size: 1.18rem; color: var(--body); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.4em 0 1em; }
.hero-sub { font-size: .92rem; color: var(--muted); margin: 0; }
.hero-art { position: relative; }
.hero-art .ill { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(16,35,27,.12)); }
.chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); width: 86px; height: 86px; display: grid; place-items: center; }
.chip .ic { width: 58px; height: 58px; }
.chip-a { top: -6px; right: 8%; animation: float 6s ease-in-out infinite; }
.chip-b { bottom: 4%; left: -8px; animation: float 6s ease-in-out infinite 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } html { scroll-behavior: auto; } }

/* ---------- page hero ---------- */
.pagehero { background: linear-gradient(180deg, var(--panel), #fff); border-bottom: 1px solid var(--line); padding: 46px 0 40px; }
.pagehero .lead { max-width: 720px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand-dk); }
.crumb .sep { opacity: .5; }
.crumb span[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.sec-head .sub { color: var(--muted); font-size: 1.08rem; margin: 0; }
.band { background: var(--band); color: #cfe6dc; }
.band h2 { color: #fff; }
.band .big { color: #fff; }
.band .muted { color: #9db8ac; }

/* ---------- cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-lt); }
.card .ic { width: 56px; height: 56px; margin-bottom: 14px; }
.card h3 { color: var(--ink); }
.card p { color: var(--body); font-size: .96rem; flex: 1; }
.card .more { color: var(--brand-dk); font-weight: 600; font-size: .92rem; margin-top: 8px; }
.card .more::after { content: " \2192"; }

/* ---------- list rows ---------- */
.list2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row { display: flex; gap: 18px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .15s ease, border-color .15s ease; }
.row:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--brand-lt); }
.row.big { padding: 28px; }
.rico { flex: 0 0 auto; width: 64px; height: 64px; background: var(--panel); border-radius: 14px; display: grid; place-items: center; }
.rico .ic { width: 44px; height: 44px; }
.row h3 { color: var(--ink); }
.row p { margin: 0; color: var(--body); font-size: .96rem; }
.row .more { color: var(--brand-dk); font-weight: 600; font-size: .9rem; display: inline-block; margin-top: 8px; }

/* ---------- type grid ---------- */
.typegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.type .ic { width: 54px; height: 54px; margin-bottom: 10px; }
.type h2 { font-size: 1.3rem; }
.type p { font-size: .97rem; }
.type .tag { font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 0; }

/* ---------- article ---------- */
.article h2 { margin-top: 1.6em; }
.article h2:first-child { margin-top: 0; }
.article ul { padding: 0; margin: 0 0 1.3em; list-style: none; }
.ticks li, .crosses li { position: relative; padding: 6px 0 6px 34px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 11px; height: 6px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.crosses li::before { content: "\00d7"; position: absolute; left: 3px; top: 5px; color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.nextrow { margin-top: 2em; display: flex; gap: 12px; flex-wrap: wrap; }

/* callout */
.callout { display: flex; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 1.6em 0; }
.callout .ill { flex: 0 0 160px; width: 160px; }
.callout .ic { flex: 0 0 90px; width: 90px; height: 90px; }
.callout h3 { margin-top: 0; }
.callout p { margin: 0; font-size: .97rem; }

/* disclaimer box */
.disc { background: #fff8ef; border: 1px solid #f0d8b6; border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 20px; font-size: .93rem; color: #5e4b2e; margin: 2em 0 0; }
.disc strong { color: #8a5a16; }

/* glossary */
.glossary { margin: 0; }
.term { padding: 18px 0; border-bottom: 1px solid var(--line); }
.term dt { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.term dd { margin: 0; color: var(--body); font-size: .98rem; }

/* faq */
.faq { margin: 0 0 1em; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--bg); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 16px; }
.faq details > div p { margin: 0; color: var(--body); font-size: .97rem; }

/* ---------- footer ---------- */
.foot { background: var(--band); color: #9db8ac; padding: 48px 0 40px; margin-top: 10px; }
.foot .logo text { fill: #fff; }
.foot-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 22px; }
.foot-note { margin: 0; font-size: .95rem; max-width: 560px; }
.foot-links { display: flex; gap: 10px 18px; flex-wrap: wrap; margin: 0 0 16px; }
.foot-links a { color: #cfe6dc; font-size: .93rem; }
.foot-links a:hover { color: #fff; }
.foot-copy { font-size: .82rem; color: #7f998d; margin: 0; max-width: 820px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .typegrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .list2 { grid-template-columns: 1fr; }
  .callout { flex-direction: column; text-align: center; }
  .callout .ill, .callout .ic { flex-basis: auto; }
  /* mobile nav */
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; transition: .2s; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; transform: translateY(-120%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .nav a { padding: 13px 12px; border-radius: 10px; font-size: 1rem; }
  .navtog:checked ~ .nav { transform: translateY(0); }
  .navtog:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtog:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .navtog:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .typegrid { grid-template-columns: 1fr; }
  .sec { padding: 48px 0; }
}
