/* NickMarquet.com - V1 design system
   Premium but approachable, modern, trustworthy, mobile-first. */

:root {
  /* Colour */
  --ink: #0f1b2d;
  --ink-soft: #33424f;
  --muted: #5a6b78;
  --line: #e6ebef;
  --bg: #ffffff;
  --bg-soft: #f5f8f8;
  --bg-deep: #0f1b2d;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-soft: #e6f3f1;
  --gold: #c08a3e;
  --white: #ffffff;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h1: clamp(2.1rem, 5vw, 3.4rem);
  --h2: clamp(1.6rem, 3.4vw, 2.4rem);
  --h3: clamp(1.2rem, 2.2vw, 1.45rem);
  --lead: clamp(1.05rem, 1.8vw, 1.3rem);

  /* Space */
  --maxw: 1140px;
  --maxw-narrow: 760px;
  --pad: 1.25rem;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.12);
  --t: 0.2s ease;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); color: #dfe7ec; }
.section-deep h1, .section-deep h2, .section-deep h3 { color: #fff; }

.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.lead { font-size: var(--lead); color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; font-size: 1rem; padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: var(--t); text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-strong); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--t); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-media { aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--accent-soft), #dfeeec 55%, #eef4f3); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; color: var(--accent-strong); position: relative; overflow: hidden; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; display: block; }
.hero-media img { object-fit: cover; object-position: center 25%; border-radius: inherit; }
.book-cover img { max-width: 100%; }
@media (min-width: 941px) {
  .book-cover img { max-width: 320px; }
}
.img-ph { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; height: 100%; color: var(--accent-strong); background: linear-gradient(150deg, var(--accent-soft), #e7f1f0); border: 1px dashed rgba(15, 118, 110, 0.3); border-radius: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 1rem; }

/* Neutral asset card — replaces dashed (placeholder) blocks for shippable launch */
.asset-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.8rem; text-align: center; background: linear-gradient(150deg, var(--accent-soft), #e7f1f0 60%, #dfeeec); border-radius: inherit; color: var(--accent-strong); }
.asset-card .asset-mark { width: 64px; height: 64px; border-radius: 14px; background: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 0.04em; color: var(--accent-strong); font-size: 1.1rem; }
.asset-card .asset-title { font-weight: 700; color: var(--ink); margin: 0; font-size: 1rem; }
.asset-card .asset-meta { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

/* Founder portrait variants (square card, round avatar, footer-trust block) */
.founder-square { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(150deg, var(--accent-soft), #e7f1f0); box-shadow: var(--shadow); }
.founder-square img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.founder-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); flex: 0 0 auto; box-shadow: var(--shadow); }
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.founder-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.founder-card .founder-square { aspect-ratio: 1 / 1.05; }
.founder-card p { color: var(--ink-soft); margin: 0 0 0.6rem; }
.founder-card .meta { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 0; }
.founder-card .meta a { color: var(--accent-strong); font-weight: 600; }
.footer-trust { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; padding: 0.9rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); }
.footer-trust .founder-avatar { width: 52px; height: 52px; }
.footer-trust p { margin: 0; color: #aab8c2; font-size: 0.9rem; line-height: 1.45; }
.footer-trust strong { color: #fff; }
@media (max-width: 640px) {
  .founder-card { grid-template-columns: 1fr; text-align: left; }
  .founder-card .founder-square { max-width: 220px; }
}

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 1.1rem 0; }
.trust p { margin: 0; text-align: center; color: var(--ink-soft); font-weight: 500; }

/* Grid + cards */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: var(--t); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 600; color: var(--accent-strong); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 1rem; font-size: 1.1rem; }

/* Value list / features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; }
.feature { display: flex; gap: 0.9rem; }
.feature .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; margin-top: 2px; }
.feature h4 { margin: 0 0 0.25em; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.9rem; }
.step h4 { font-size: 1.1rem; margin-bottom: 0.3em; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.price-card .tag { position: absolute; top: -12px; left: 1.8rem; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; }
.price-card h3 { margin-bottom: 0.2em; }
.price-card .price { font-size: 1.7rem; font-weight: 800; color: var(--accent-strong); margin: 0.2em 0 0.1em; }
.price-card .price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .who { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.price-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.price-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; color: var(--ink-soft); font-size: 0.96rem; }
.price-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.pricing-note { margin-top: 1.6rem; text-align: center; color: var(--muted); }

/* FAQ */
.faq { max-width: var(--maxw-narrow); margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.8rem; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem; font-size: 1.03rem; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .chev { transition: var(--t); color: var(--accent); font-weight: 800; flex: 0 0 auto; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq-a p { padding-bottom: 1.1rem; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--bg-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d2da; max-width: 540px; margin: 0 auto 1.6rem; }

/* Quote */
.quote { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.8rem; max-width: var(--maxw-narrow); margin: 0 auto; }
.quote blockquote { margin: 0; font-size: 1.2rem; color: var(--ink); font-style: italic; }
.quote cite { display: block; margin-top: 0.8rem; color: var(--muted); font-style: normal; font-size: 0.92rem; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }

/* Article */
.article { max-width: var(--maxw-narrow); margin: 0 auto; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }
.article h2 { margin-top: 1.8em; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: 0.5rem; }
.answer-box { background: var(--accent-soft); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.8rem; }
.answer-box p:last-child { margin-bottom: 0; }

/* Tag */
.tag-line { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem; }

/* Case example */
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; margin-bottom: 1.6rem; box-shadow: var(--shadow); }
.case h3 { margin-bottom: 0.3em; }
.case .case-part { margin-bottom: 1rem; }
.case .case-part strong { color: var(--accent-strong); display: block; margin-bottom: 0.15rem; }

/* Inline email capture */
.capture { display: flex; gap: 0.7rem; flex-wrap: wrap; max-width: 480px; }
.capture input { flex: 1 1 220px; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.capture input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Section heading helper */
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Footer */
.site-footer { background: var(--bg-deep); color: #aab8c2; padding: 3.2rem 0 1.6rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #8da0ac; margin-top: 0.7rem; font-size: 0.95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: #aab8c2; font-size: 0.94rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: #7d909c; }
.footer-bottom a { color: #7d909c; }

.spacer-sm { height: 1.2rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; max-height: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 0; box-shadow: var(--shadow); }
  .site-header.open .nav-links li { width: 100%; }
  .site-header.open .nav-links a { display: block; padding: 0.85rem var(--pad); width: 100%; }
  .grid-2, .grid-3, .grid-4, .features, .steps, .pricing { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .nav-cta .btn { padding: 0.6rem 1rem; font-size: 0.92rem; }
}

/* Accessibility & polish (added for launch readiness) */

/* Skip link for keyboard and screen-reader users */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; text-decoration: none; }

/* Visible keyboard focus on interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 90px; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card:hover, .btn:hover { transform: none; }
}
