/* ============================================================
   HADRIAN DIGITAL — Main Stylesheet
   ============================================================ */

/* ── SELF-HOSTED FONT ── */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/figtree-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: #004050; color: #fff; }

/* Visible keyboard focus (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top .15s ease;
}

.skip-link:focus-visible { top: 0; }

/* In-copy links */
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.text-link:hover { text-decoration-thickness: 2px; }

/* ── DESIGN TOKENS ── */
:root {
  --accent: #004050;
  --ink:    #15161a;
  --muted:  #65676e;
  --soft:   #6e707a;
  --line:   #e7e7ea;
  --paper:  #ffffff;
  --wash:   #f6f6f4;
  --font:   'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── ANIMATIONS ── */
@keyframes hd-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hd-pop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes hd-check {
  from { stroke-dashoffset: 32; }
  to   { stroke-dashoffset: 0; }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-wordmark .name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
}

.logo-wordmark .sub {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .4em;
  color: var(--muted);
  margin-top: 3px;
}

/* Nav (header) */
header nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

header nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 450;
  letter-spacing: -.005em;
  opacity: .74;
  transition: opacity .18s ease;
}

header nav a:hover { opacity: 1; }

header nav a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
}

/* The CTA is an <a class="btn"> — keep it at full strength, not text-link opacity */
header nav a.btn { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  padding: 11px 19px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, filter .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn--lg {
  font-size: 15px;
  padding: 15px 27px;
  border-radius: 9px;
}

.btn--xl {
  font-size: 16px;
  padding: 17px 33px;
  border-radius: 10px;
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: background .15s ease;
}

.btn--secondary:hover {
  background: var(--wash);
  filter: none;
  transform: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 96px 40px 104px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 72px;
  align-items: center;
}

.hero-content {
  animation: hd-fade .6s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: 49px;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 500px;
}

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

.hero-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 2px;
}

.hero-link-chevron {
  color: var(--ink);
  flex-shrink: 0;
  position: relative;
  top: 1px;
  transition: transform .18s ease;
}

.hero-link:hover .hero-link-chevron { transform: translateX(3px); }

.hero-trust {
  font-size: 14.5px;
  color: var(--soft);
  margin: 32px 0 0;
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  animation: hd-fade .7s .08s ease both;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.name-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 17px;
  box-shadow: 0 12px 32px -18px rgba(21, 22, 26, .45);
  pointer-events: none;
}

.name-card-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ink);
}

.name-card-title {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   SHARED SECTION PRIMITIVES
   ============================================================ */

.section-label {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--soft);
}

.section-wash {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-standard {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-header {
  max-width: 600px;
  margin-bottom: 24px;
}

.section-header .section-label { margin-bottom: 18px; }

.section-header h2 {
  font-size: 35px;
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 0 0 14px;
  text-wrap: pretty;
}

.section-header p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Open rows (What's included / Why Hadrian) */
.open-row {
  display: grid;
  grid-template-columns: 48px 1fr 1.5fr;
  gap: 24px;
  align-items: baseline;
  padding: 30px 16px;
  border-top: 1px solid var(--line);
  border-radius: 10px;
  transition: background .2s ease;
}

.open-row:hover { background: var(--wash); }

.open-row-no {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
}

.open-row-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.018em;
}

.open-row-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.rows-end { border-top: 1px solid var(--line); }

/* ============================================================
   REASSURANCE
   ============================================================ */

.reassurance {
  max-width: 1140px;
  margin: 0 auto;
  padding: 88px 40px;
}

.reassurance-text { max-width: 780px; }

.reassurance-text .section-label { margin-bottom: 22px; }

.reassurance-text h2 {
  font-size: 33px;
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 20px;
}

.reassurance-text p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

.pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 56px;
}

.pain-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 16px;
}

.pain-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.pain-body {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works h2 {
  font-size: 35px;
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 0 0 56px;
  max-width: 540px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.step-no {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.step-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin-bottom: 12px;
}

.step-body {
  font-size: 15.5px;
  line-height: 1.64;
  color: var(--muted);
}

/* ============================================================
   PAGE INTRO (subpage header)
   ============================================================ */

.page-intro {
  max-width: 1140px;
  margin: 0 auto;
  padding: 84px 40px 0;
}

.page-intro .eyebrow { margin-bottom: 26px; }

.page-intro h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 780px;
  text-wrap: pretty;
}

.page-intro-sub {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 660px;
}

/* First section after a page intro sits closer */
.section-tight { padding-top: 64px; }

/* "What you get / Why it matters" pairing (services rows) */
.ww { margin: 0 0 16px; }
.ww:last-child { margin-bottom: 0; }

.ww-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 5px;
}

/* ============================================================
   PROSE (about page body)
   ============================================================ */

.prose { max-width: 720px; }

.prose h2 {
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 46px 0 14px;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 40px 100px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 34px 30px;
  box-shadow: 0 28px 70px -46px rgba(21, 22, 26, .35);
}

.contact-form-card h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin: 0 0 6px;
}

.contact-form-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
}

.aside-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--soft);
  margin: 0 0 22px;
}

.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.next-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: baseline;
}

.next-step-no {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
}

.next-step-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
  margin: 0 0 4px;
}

.next-step-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.nap {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-style: normal;
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
}

.nap a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.nap a:hover { text-decoration-color: var(--accent); }

.nap-area {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 92px 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 44px;
}

.price-panel {
  border-radius: 20px;
  padding: 38px 36px 34px;
  display: flex;
  flex-direction: column;
}

.price-panel--featured {
  background: var(--accent);
  color: #fff;
}

.price-panel--outright {
  background: #fff;
  border: 1px solid var(--line);
}

.price-eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--soft);
}

.price-panel--featured .price-eyebrow { color: rgba(255, 255, 255, .72); }

.price-name {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin: 0 0 18px;
}

.price-figure {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 0 0 10px;
}

.price-per {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.price-panel--featured .price-per { color: rgba(255, 255, 255, .78); }
.price-panel--outright .price-per { color: var(--muted); }

.price-sub {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.price-panel--featured .price-sub { color: rgba(255, 255, 255, .82); }
.price-panel--outright .price-sub { color: var(--muted); }

.price-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.price-list li {
  position: relative;
  padding-left: 19px;
  font-size: 14.5px;
  line-height: 1.55;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.price-panel--featured .price-list li { color: rgba(255, 255, 255, .92); }
.price-panel--featured .price-list li::before { background: rgba(255, 255, 255, .75); }
.price-panel--outright .price-list li { color: var(--muted); }
.price-panel--outright .price-list li::before { background: var(--accent); }

.price-fine {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.price-panel--featured .price-fine { color: rgba(255, 255, 255, .66); }
.price-panel--outright .price-fine { color: var(--soft); }

.price-cta { margin-top: auto; }

.btn--inverse {
  background: #fff;
  color: var(--accent);
}

.btn--inverse:hover {
  background: #edf3f4;
  filter: none;
}

.pricing-notes {
  margin-top: 30px;
  max-width: 760px;
}

.pricing-note {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 12px;
  padding-left: 19px;
  position: relative;
}

.pricing-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

/* ============================================================
   FOOTER CTA
   ============================================================ */

.footer-cta {
  max-width: 1140px;
  margin: 0 auto;
  padding: 112px 40px 104px;
  text-align: center;
}

.footer-cta .section-label {
  display: block;
  margin-bottom: 22px;
}

.footer-cta h2 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 600;
  margin: 0 auto 22px;
  max-width: 740px;
}

.footer-cta p {
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0 auto 38px;
  max-width: 500px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.footer-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-logo-text {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 13px;
}

.footer-contact {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.9;
  font-style: normal;
}

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

.footer-contact a:hover { color: var(--accent); }

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  display: block;
  font-size: 13.5px;
  line-height: 1.9;
  opacity: .78;
  transition: opacity .18s ease;
}

.footer-nav a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 40px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   FORM (contact page)
   ============================================================ */

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-label { display: block; }

.form-label-text {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  font-family: var(--font);
  font-size: 14.5px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  transition: border-color .15s ease;
}

.form-input:focus { border-color: var(--accent); }

.form-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

.form-error {
  font-size: 12.5px;
  color: #b04a3a;
  margin-top: 11px;
  display: none;
}

.form-error[aria-hidden="false"] { display: block; }

/* Honeypot: positioned off-screen (not display:none) so form bots still fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  margin-top: 20px;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px;
  border-radius: 11px;
  transition: transform .15s ease, filter .18s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--soft);
  margin-top: 14px;
}

/* Success state (swaps in place of the form fields) */
.form-success { padding: 26px 10px 20px; text-align: center; }
.form-success[hidden] { display: none; }

.success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(0, 64, 80, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin-bottom: 8px;
}

.success-body {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.62;
  max-width: 320px;
  margin: 0 auto 24px;
}

.check-path {
  stroke-dasharray: 32;
  animation: hd-check .5s .1s ease both;
}
