/* NEXORA — public landing page
   Colours taken from the existing sales sheet proposals:
   navy #1A2744, terracotta #B5522A, warm paper #F4F1EA, forest #2C5A4A.
   System fonts only. No external stylesheets or CDNs. */

:root {
  --navy: #1a2744;
  --navy-soft: #2a3a5c;
  --ink: #1a2744;
  --muted: #3a4558;
  --terracotta: #b5522a;
  --terracotta-dark: #8e3e1e;
  --paper: #f4f1ea;
  --paper-deep: #e8e3d8;
  --cream: #fbf9f5;
  --forest: #2c5a4a;
  --line: rgba(26, 39, 68, 0.14);
  --line-strong: rgba(26, 39, 68, 0.22);
  --on-dark: #f4f1ea;
  --on-dark-muted: #c9c4b8;
  --shadow: 0 1px 2px rgba(26, 39, 68, 0.06), 0 8px 24px rgba(26, 39, 68, 0.06);
  --radius: 12px;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --measure: 40rem;
  --wrap: 68rem;
  --space: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.8em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--terracotta-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--terracotta);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: var(--on-dark);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--navy);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.nav a:hover {
  color: var(--terracotta-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--terracotta-dark);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn-light {
  background: var(--paper);
  color: var(--navy);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #fff;
  color: var(--navy);
}

/* Hero */

.hero {
  padding: clamp(2.75rem, 6vw, 6rem) 0 clamp(3.25rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #efeae0 0%, var(--paper) 55%);
}

.eyebrow {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.hero .subhead {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);
  max-width: 38rem;
  color: var(--muted);
  margin: 1.15rem 0 1.75rem;
}

/* Sections */

.section,
.hero,
.closing {
  scroll-margin-top: 4.75rem;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: var(--measure);
}

/* Problem */

.problem p {
  max-width: var(--measure);
}

.problem-close {
  margin-top: 1.75rem;
  max-width: var(--measure);
}

.stats {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.2rem 1.15rem;
}

.stat p {
  margin: 0;
  color: var(--ink);
}

/* How it works */

.steps {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.5rem;
  counter-reset: step;
}

.step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: var(--shadow);
}

.step h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1.2rem;
}

.step h3 span {
  flex: 1;
  min-width: 0;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  position: relative;
  top: 0.12rem;
}

/* Features */

.features-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.4rem;
}

.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
}

.feature h3 {
  font-size: 1.15rem;
}

.feature p {
  color: var(--muted);
}

/* Websites service */

.websites {
  background: var(--navy);
  color: var(--on-dark);
  border-bottom: 0;
}

.websites h2,
.websites h3 {
  color: var(--on-dark);
}

.websites .section-kicker {
  color: #e7b197;
}

.websites p {
  color: var(--on-dark-muted);
  max-width: var(--measure);
}

.websites .inner {
  display: grid;
  gap: 1.25rem;
}

.price-tbc {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px dashed rgba(244, 241, 234, 0.35);
  border-radius: 6px;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Nottingham */

.local p {
  max-width: var(--measure);
}

/* Pricing */

.pricing-block {
  background: var(--paper-deep);
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.pricing-block h2 {
  margin-bottom: 0.55em;
}

.pricing-block p {
  color: var(--muted);
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
}

.faq-list details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  padding: 1rem 2.8rem 1rem 1.15rem;
  position: relative;
  color: var(--ink);
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-list .answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Closing */

.closing {
  background: var(--navy);
  color: var(--on-dark);
  padding: clamp(3.25rem, 7vw, 6rem) 0;
}

.closing h2 {
  color: var(--on-dark);
  max-width: 16ch;
}

.closing p {
  color: var(--on-dark-muted);
  max-width: 36rem;
  margin: 1rem 0 1.75rem;
  font-size: 1.1rem;
}

/* Footer */

.site-footer {
  background: #121a2e;
  color: var(--on-dark-muted);
  padding: 1.35rem 0;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--on-dark);
}

/* Layout breakpoints */

@media (min-width: 640px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }

  .header-inner {
    min-height: 4.35rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .step {
    padding: 1.5rem 1.4rem 1.6rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wrap {
    width: min(calc(100% - 3rem), var(--wrap));
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  .feature,
  .step,
  .stat,
  .faq-list details,
  .pricing-block {
    border-color: var(--ink);
  }

  .btn {
    border-color: var(--navy);
  }
}

@media print {
  .site-header,
  .skip-link {
    position: static;
  }

  .btn {
    border: 1px solid #000;
    color: #000;
    background: transparent;
  }

  .websites,
  .closing,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .websites h2,
  .websites h3,
  .closing h2,
  .site-footer strong {
    color: #000;
  }
}
