/* CheapCannabisCard.com - single hand-written stylesheet. No framework. */

:root {
  --green-900: #0f3d2e;
  --green-700: #1b6b4c;
  --green-600: #1f8a5b;
  --green-500: #28a36a;
  --green-100: #e6f4ec;
  --ink: #14211c;
  --body: #2c3a34;
  --muted: #5b6b63;
  --line: #dce6e0;
  --bg: #ffffff;
  --bg-soft: #f5f9f7;
  --gold: #c9962a;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(16, 40, 30, .06), 0 8px 24px rgba(16, 40, 30, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 750; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: .2em 0 .35em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2em 0 .5em; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
p { margin: 0 0 1em; }

a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* ---------- Skip link / a11y ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--green-900); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--green-900); text-decoration: none; font-size: 1.15rem; }
.brand .leaf { width: 26px; height: 26px; flex: none; }
.brand b { color: var(--green-600); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--green-700); }
.header-cta { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--green-600); color: #fff; text-decoration: none;
  font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--green-700);
  transition: background .15s ease, transform .05s ease; line-height: 1.2;
}
.btn:hover { background: var(--green-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-ghost { background: #fff; color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--green-100), #fff); border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 48px 20px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-eyebrow { color: var(--green-700); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 6px; }
.hero p.lede { font-size: 1.15rem; color: var(--body); }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: .92rem; }
.trust-row b { color: var(--ink); }

/* ---------- Layout sections ---------- */
main { padding: 8px 0 40px; }
section { margin: 0; }
.lede { font-size: 1.18rem; color: var(--body); }
.byline { color: var(--muted); font-size: .92rem; margin: 0 0 1.2em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.byline strong { color: var(--ink); }

.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--green-600); border-radius: var(--radius-sm); padding: 16px 18px; margin: 1.4em 0; }
.callout.warn { border-left-color: var(--gold); background: #fdf8ec; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card a.card-link { text-decoration: none; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 1rem; }
caption { text-align: left; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--green-100); color: var(--green-900); border-bottom: 2px solid var(--green-600); }
tbody tr:nth-child(even) { background: var(--bg-soft); }
td.price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { margin: 1em 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 18px 16px; margin: 12px 0; background: #fff; }
.faq-q { font-size: 1.1rem; line-height: 1.35; color: var(--ink); margin: 16px 0 6px; }
.faq-a { margin: 0; color: var(--body); }



/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-700); }

/* ---------- How-To diagram ---------- */
.howto-figure { margin: 1.6em 0; }
.howto-figure figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.howto-svg { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- Steps list ---------- */
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps li { position: relative; padding: 4px 0 14px 52px; margin: 0; }
ol.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px; width: 34px; height: 34px;
  background: var(--green-600); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
}
ol.steps li strong { color: var(--ink); }

/* ---------- Price highlight ---------- */
.price-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin: 1.4em 0; }
.price-box .amount { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.price-box .amount small { font-size: .9rem; font-weight: 600; opacity: .85; display: block; }
.price-box p { margin: 0; opacity: .92; }
.price-box .btn { background: #fff; color: var(--green-900); border-color: #fff; }
.price-box .btn:hover { background: var(--green-100); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-100); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; margin: 36px 0; text-align: center; }
.cta-band h2 { margin-top: 0; }

/* ---------- Related links ---------- */
.related ul { columns: 2; gap: 28px; }
@media (max-width: 640px) { .related ul { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #d7e8df; margin-top: 48px; border-top: 3px solid var(--green-500); }
.site-footer .wrap { padding: 46px 20px 30px; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #ffffff; margin: 0 0 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.site-footer a { color: #e6f2ec; text-decoration: none; display: block; padding: 5px 0; font-size: .95rem; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer p { color: #c6dccf; margin: 0 0 6px; line-height: 1.65; font-size: .95rem; }
.site-footer .muted { color: #c6dccf; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 28px; padding: 20px 20px 4px; font-size: .82rem; color: #aecabd; }
.site-footer .legal p { margin: .4em 0; color: #aecabd; }
.site-footer .legal a { display: inline; color: #e6f2ec; }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.tag { display: inline-block; background: var(--green-100); color: var(--green-900); border-radius: 999px; padding: 3px 11px; font-size: .8rem; font-weight: 700; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.cols ul { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-media { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .grid-2, .grid-3, .cols { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .header-cta .btn { padding: 10px 16px; }
}
