/* ============================================================
   nfc-cards.co.uk — design tokens
   Ink navy + brass (echoes the star rating) + a working teal
   for action. Slab-serif display (Fraunces) for a tactile,
   physical-product feel; grotesk (Work Sans) for body/UI.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #1C2333;
  --ink-soft: #4A5266;
  --stone: #EFEAE1;
  --stone-deep: #E2DACB;
  --paper: #FBF9F5;
  --brass: #C89B3C;
  --brass-deep: #A87F2C;
  --teal: #2E6E62;
  --teal-deep: #24544A;
  --line: #D9D2C2;
  --danger: #A8442F;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

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

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--brass-deep);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--teal-deep); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(200,155,60,0.16) 0%, rgba(200,155,60,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.92rem;
  color: var(--teal-deep);
  font-weight: 500;
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 15ch;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* Card illustration */

.card-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1;
}

.card-scene svg,
.card-scene img {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  filter: drop-shadow(0 28px 44px rgba(28,35,51,0.22)) drop-shadow(0 6px 14px rgba(28,35,51,0.14));
}

.card-scene img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 54px rgba(28,35,51,0.28), 0 8px 18px rgba(28,35,51,0.18);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--stone);
}

.section-head {
  max-width: 56ch;
  margin: 0 0 44px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* Steps (genuine sequence — numbering justified) */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 32px 28px 32px 0;
  border-right: 1px solid var(--line);
}

.step:last-child { border-right: none; padding-right: 0; }

.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--teal-deep);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--brass-deep);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.step h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* Two-column feature rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse .split-media { order: 2; }

.feature-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.feature-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink-soft);
}

.feature-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* Recovery-flow diagram */

.flow-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.flow-row + .flow-row {
  border-top: 1px dashed var(--line);
}

.flow-tag {
  flex: none;
  width: 88px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.flow-tag.warn { color: var(--danger); }

.flow-text {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.flow-text strong { color: var(--ink); }

/* ---------- Buy page ---------- */

.price-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px;
  margin-bottom: 16px;
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.price-tile.featured {
  border-color: var(--brass-deep);
  box-shadow: 0 10px 24px rgba(28,35,51,0.08);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--brass-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.price-tile .price-row {
  margin-bottom: 2px;
}

.price-tile .price {
  font-size: 1.9rem;
}

.price-tile .price-per-unit {
  font-size: 0.88rem;
  color: var(--teal-deep);
  font-weight: 500;
  margin: 2px 0 4px;
}

.buy-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.buy-panel {
  background: var(--stone);
  border-radius: 4px;
  padding: 40px;
  position: sticky;
  top: 28px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 4px;
}

.price {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
}

.price-unit {
  color: var(--ink-soft);
  font-size: 1rem;
}

.price-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.qty-label {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 12px;
  display: block;
}

.qty-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.qty-btn {
  padding: 12px 4px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qty-btn:hover { border-color: var(--brass-deep); }

.qty-btn.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.qty-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.qty-custom label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.qty-custom input {
  width: 76px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 22px;
}

.total-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.total-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.buy-panel .btn-primary {
  width: 100%;
}

.reassure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.buy-details h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.buy-details p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}

.spec-table tr {
  border-top: 1px solid var(--line);
}

.spec-table tr:last-child { border-bottom: 1px solid var(--line); }

.spec-table td {
  padding: 13px 0;
  font-size: 0.95rem;
}

.spec-table td:first-child {
  color: var(--ink-soft);
  width: 40%;
}

.spec-table td:last-child {
  font-weight: 500;
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 74ch;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 22px;
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--brass-deep);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 62ch;
}

.updated-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--stone);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid, .split, .buy-layout {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .step:last-child { border-bottom: none; }
  .buy-panel { position: static; }
  .qty-options { grid-template-columns: repeat(4, 1fr); }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
