/* NookSmart landing — cozy tech palette */
:root {
  --bg-deep: #0a1421;
  --bg-card: #111c2e;
  --bg-elevated: #162236;
  --text: #f4f6f9;
  --text-muted: #a8b4c8;
  --accent-gold: #e8b339;
  --accent-gold-hover: #f0c44d;
  --accent-blue: #3db8e8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --max: 1080px;
  --header-h: 72px;
  /* Matches Banner Logo.png canvas */
  --header-bg: #0b1121;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 179, 57, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(61, 184, 232, 0.06), transparent);
  padding-bottom: env(safe-area-inset-bottom);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: var(--accent-blue);
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — background aligned with Banner Logo.png */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 640px) {
  .site-header .logo img {
    height: 44px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--bg-deep);
  background: var(--accent-gold);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-gold-hover);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.btn--large {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

@media (max-width: 639px) {
  main .btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.btn--ghost {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn--ghost:hover {
  background: rgba(232, 179, 57, 0.12);
  color: var(--accent-gold-hover);
}

/* Hero */
.hero {
  padding: 2.5rem 1.25rem 3rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--accent-gold);
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-savings {
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 38rem;
}

.hero-savings__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-savings__intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.hero-savings__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-savings__list li {
  margin-bottom: 0.4rem;
}

.hero-savings__list li:last-child {
  margin-bottom: 0;
}

.hero-savings__code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(232, 179, 57, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hero__visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero__visual img {
  width: 100%;
}

/* Chips strip */
.chips {
  padding: 0 1.25rem 2.5rem;
}

.chips__row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .chips__row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chip__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 1.1rem;
}

.chip strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.chip span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Sections */
section {
  padding: 2.5rem 1.25rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 55ch;
}

/* Features grid */
.features {
  background: linear-gradient(180deg, transparent, rgba(17, 28, 46, 0.5));
}

.features__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge-usa {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(232, 179, 57, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(232, 179, 57, 0.25);
}

/* Steps */
.steps {
  padding-bottom: 3rem;
}

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}

.steps__list li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.98rem;
}

.steps__list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--bg-deep);
  background: var(--accent-gold);
  border-radius: 50%;
}

.steps__diagram {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.steps__diagram img {
  width: 100%;
}

.steps__diagram figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #444;
  background: #f5f5f5;
}

.setup-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Compatibility */
.compat {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.compat__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.compat__meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.compat__help {
  margin: 0;
  font-size: 0.95rem;
}

/* Split: included + adapter */
.split-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.included-list {
  margin: 0;
  padding-left: 1.25rem;
}

.included-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.included-list li strong {
  color: var(--text);
}

.adapter-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.adapter-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.adapter-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.adapter-card__img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e8eaee;
}

/* Gallery */
.gallery {
  padding-bottom: 2rem;
}

@media (min-width: 900px) {
  .gallery .wrap {
    width: min(100% - 2rem, 1400px);
  }
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery__grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery__grid img {
  width: 100%;
  max-width: none;
  height: auto;
}

.gallery__grid a img {
  width: 100% !important;
  height: auto !important;
}

.gallery__grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery__grid a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* FAQ */
.faq details {
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq summary {
  padding: 1rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-gold);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details div {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.faq details div p {
  margin: 0 0 0.75rem;
}

.faq details div p:last-child {
  margin-bottom: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(135deg, rgba(232, 179, 57, 0.15) 0%, rgba(61, 184, 232, 0.08) 100%);
  border-block: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 1.25rem;
}

/* Bulk discounts */
.bulk {
  padding-bottom: 2rem;
}

.bulk__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .bulk__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bulk__card {
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.bulk__label {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bulk__percent {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.bulk__code {
  margin: 0;
}

.bulk__code code {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px dashed rgba(232, 179, 57, 0.45);
  border-radius: 8px;
}

.bulk__note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Footer */
.site-footer {
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
