/* ==========================================================================
   DigiLinkUp — design system
   Tokens are taken verbatim from docs/01-website-foundation.md §3.
   Do not invent new colour or spacing values; extend the scales instead.
   ========================================================================== */

/* --- Fonts: self-hosted, latin + latin-ext only ------------------------- */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.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;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.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;
}
@font-face {
  /* The rupee sign U+20B9 lives here — it is why prices need this subset. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Colour — every value contrast-verified in foundation doc §3.3 */
  --ink-900: #0b1220;
  --ink-700: #23304a;
  --slate-600: #566076;
  --slate-400: #8792a8;
  --slate-300: #cbd5e1;
  --surface: #f6f8fb;
  --white: #ffffff;

  --primary: #3b2fe0;
  --primary-dark: #2d22b8;
  --primary-light: #a9a3f7;
  --primary-tint: #eeedfe;
  --accent: #f5a524;
  --success: #0e7c66;
  --error: #c62828;

  /* Spacing — 8px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-card: 8px;
  --r-btn: 10px;
  --r-panel: 12px;
  --r-pill: 999px;

  /* Elevation — nothing heavier than these two */
  --shadow-rest: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-raised: 0 8px 24px rgba(11, 18, 32, 0.1);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 250ms;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;

  /* Type */
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    sans-serif;

  /* Section rhythm */
  --section-y: var(--s-9);
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
    --section-y: var(--s-10);
  }
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored headings clear of the sticky header */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --- Type scale (foundation §3.4) --------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 768px) {
  h1 {
    font-size: 60px;
  }
  h2 {
    font-size: 42px;
  }
  h3 {
    font-size: 30px;
  }
  h4 {
    font-size: 22px;
  }
}

p {
  margin: 0 0 var(--s-4);
  /* Foundation §3.4: max line length 65–75 characters */
  max-width: 68ch;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--slate-600);
}

@media (min-width: 768px) {
  .lead {
    font-size: 19px;
  }
}

small,
.small {
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--primary-dark);
}

strong,
b {
  font-weight: 600;
}

ul,
ol {
  padding-left: 1.25em;
  margin: 0 0 var(--s-4);
}

li {
  margin-bottom: var(--s-2);
  max-width: 66ch;
}

hr {
  border: 0;
  border-top: 1px solid var(--slate-300);
  margin: var(--s-7) 0;
}

/* --- Focus ring: non-negotiable (foundation §3.5) ----------------------- */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--primary-light);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 200;
  padding: var(--s-3) var(--s-5);
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--r-btn);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

/* --- Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 780px;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: var(--s-8);
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  background: var(--ink-900);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark a {
  color: var(--primary-light);
}

.section--dark .lead,
.section--dark .muted {
  color: #c9d2e4; /* 12.4:1 on ink-900 */
}

.muted {
  color: var(--slate-600);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--s-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}

.section--dark .eyebrow {
  color: var(--primary-light);
}

.grid {
  display: grid;
  gap: var(--s-5);
}

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

@media (min-width: 1024px) {
  .grid {
    gap: var(--s-6);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid--split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--s-8);
  }
}

.stack > * + * {
  margin-top: var(--s-4);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}

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

.btn--primary {
  background: var(--primary);
  color: var(--white); /* 7.87:1 — AAA */
  box-shadow: var(--shadow-rest);
}

.btn--primary:hover {
  background: var(--primary-dark); /* 10.33:1 — AAA */
  color: var(--white);
  box-shadow: var(--shadow-raised);
}

.btn--ghost {
  background: transparent;
  border-color: var(--slate-400);
  color: var(--ink-900);
}

.btn--ghost:hover {
  border-color: var(--ink-900);
  background: var(--white);
  color: var(--ink-900);
}

.section--dark .btn--ghost,
.site-footer .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.section--dark .btn--ghost:hover,
.site-footer .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Hard rule, foundation §3.3: amber takes dark text (9.17:1), never white. */
.btn--accent {
  background: var(--accent);
  color: var(--ink-900);
  box-shadow: var(--shadow-rest);
}

.btn--accent:hover {
  background: #e0940f;
  color: var(--ink-900);
  box-shadow: var(--shadow-raised);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.btn-row--center {
  justify-content: center;
}

/* Text link with a moving arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.link-arrow:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled='true'] {
  border-bottom-color: var(--slate-300);
  box-shadow: var(--shadow-rest);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink-900);
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand__name .is-link {
  color: var(--primary);
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--white);
}

.site-footer .brand__name .is-link {
  color: var(--primary-light);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-btn);
  color: var(--ink-700);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.nav__link:hover {
  background: var(--surface);
  color: var(--ink-900);
}

.nav__link[aria-current='page'] {
  color: var(--primary);
  font-weight: 600;
}

.header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav,
  .header__cta {
    display: block;
  }
}

/* Mobile nav */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  background: transparent;
  border: 0;
  border-radius: var(--r-btn);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: background-color var(--dur-fast) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}

.nav-toggle__bars::before {
  top: -7px;
}
.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: block;
  border-top: 1px solid var(--slate-300);
  background: var(--white);
  overflow: hidden;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--s-4) 0 var(--s-6);
}

.mobile-nav__list li {
  margin: 0;
}

.mobile-nav__list a {
  display: block;
  padding: var(--s-3) 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--surface);
}

.mobile-nav__list a[aria-current='page'] {
  color: var(--primary);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: var(--s-5);
}

@media (min-width: 1024px) {
  .mobile-nav,
  .nav-toggle {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-8) var(--s-9);
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--white) 62%);
}

@media (min-width: 1024px) {
  .hero {
    padding-block: var(--s-9) var(--s-10);
  }
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      42rem 28rem at 82% 8%,
      rgba(59, 47, 224, 0.16),
      transparent 70%
    ),
    radial-gradient(
      30rem 22rem at 4% 0%,
      rgba(245, 165, 36, 0.14),
      transparent 68%
    );
}

.hero__inner {
  position: relative;
}

/* The headline is the page's whole job — give it more room than the art. */
@media (min-width: 1024px) {
  .hero .grid--split {
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--s-7);
  }
}

.hero__copy h1 {
  margin-bottom: var(--s-5);
}

.hero__copy .lead {
  max-width: 34ch;
}

@media (min-width: 768px) {
  .hero__copy .lead {
    max-width: 52ch;
  }
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  color: var(--slate-600);
  font-size: 14px;
}

.hero__trust svg {
  flex-shrink: 0;
  color: var(--success);
}

.hero__art {
  display: none;
}

@media (min-width: 1024px) {
  .hero__art {
    display: block;
  }
}

/* Page hero for interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-8) var(--s-7);
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--surface);
}

@media (min-width: 768px) {
  .page-hero {
    padding-block: var(--s-9) var(--s-8);
  }
}

.page-hero__inner {
  position: relative;
  max-width: 780px;
}

/* --- Cards -------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-rest);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card h3,
.card h4 {
  margin-bottom: var(--s-3);
}

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

.card--link:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-raised);
}

/* Whole-card click target without nesting interactive elements */
.card__stretch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-5);
  background: var(--primary-tint);
  border-radius: var(--r-btn);
  color: var(--primary);
}

.card__meta {
  margin-top: auto;
  padding-top: var(--s-5);
  font-size: 14px;
  color: var(--slate-600);
}

/* --- Pills / chips ------------------------------------------------------ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px var(--s-3);
  background: var(--primary-tint);
  border-radius: var(--r-pill);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.pill--accent {
  background: rgba(245, 165, 36, 0.18);
  color: #7a4d00; /* 7.4:1 on the tint — AAA */
}

.pill--dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

/* --- Proof strip -------------------------------------------------------- */

.proof-strip {
  padding-block: var(--s-6);
  background: var(--surface);
  border-block: 1px solid var(--slate-300);
}

.proof-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  font-size: 15px;
  color: var(--slate-600);
}

.proof-strip__label {
  font-weight: 500;
}

.proof-strip__client {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-900);
}

.proof-strip a {
  margin-left: auto;
  font-size: 15px;
}

/* --- Numbered process --------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
  }
}

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

.steps li {
  position: relative;
  margin: 0;
  max-width: none;
  padding-top: var(--s-5);
  border-top: 2px solid var(--slate-300);
  transition: border-color var(--dur) var(--ease);
}

.steps li:hover {
  border-top-color: var(--primary);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.steps h3 {
  font-size: 20px;
  margin-bottom: var(--s-2);
}

.steps p {
  margin-bottom: 0;
  color: var(--slate-600);
  font-size: 16px;
}

/* --- Pricing ------------------------------------------------------------ */

.price-grid {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-rest);
}

.price-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-raised);
}

.price-card__flag {
  position: absolute;
  top: 0;
  left: var(--s-6);
  transform: translateY(-50%);
  padding: 5px var(--s-3);
  background: var(--primary);
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}

.price-card__period {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
}

.price-card__for {
  color: var(--slate-600);
  font-size: 15px;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--surface);
}

.price-card__list {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  font-size: 15px;
}

.price-card__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--s-3);
  max-width: none;
}

.price-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.price-note {
  margin-top: var(--s-6);
  font-size: 15px;
  color: var(--slate-600);
}

/* --- Stats -------------------------------------------------------------- */

.stat-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--r-card);
}

.section--dark .stat {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-1);
}

.stat__label {
  font-size: 14px;
  color: var(--slate-600);
}

.section--dark .stat__label {
  color: #c9d2e4;
}

/* --- Callout ------------------------------------------------------------ */

.callout {
  padding: var(--s-6);
  border-radius: var(--r-panel);
  border-left: 4px solid var(--accent);
  background: rgba(245, 165, 36, 0.1);
}

.callout h3 {
  margin-bottom: var(--s-3);
}

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

.callout--primary {
  border-left-color: var(--primary);
  background: var(--primary-tint);
}

.section--dark .callout {
  background: rgba(245, 165, 36, 0.12);
}

/* --- Photo frames (real photography drops straight in) ------------------ */

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--ink-900);
  box-shadow: var(--shadow-raised);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame--4x5 {
  aspect-ratio: 4 / 5;
}
.photo-frame--3x2 {
  aspect-ratio: 3 / 2;
}
.photo-frame--16x9 {
  aspect-ratio: 16 / 9;
}

/* Placeholder state, shown only while no <img> is present. Deliberately
   designed rather than broken — see site/README.md for how to replace. */
.photo-frame--empty {
  display: grid;
  place-items: center;
  padding: var(--s-6);
  text-align: center;
  background: linear-gradient(140deg, var(--ink-900) 0%, #1a1f45 55%, #2d22b8 130%);
}

.photo-frame--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.16) 1px,
    transparent 0
  );
  background-size: 22px 22px;
  opacity: 0.6;
}

.photo-frame__note {
  position: relative;
  max-width: 26ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.photo-frame__note strong {
  display: block;
  margin-bottom: var(--s-1);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

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

.faq {
  max-width: 820px;
  border-top: 1px solid var(--slate-300);
}

.faq__item {
  border-bottom: 1px solid var(--slate-300);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
  transition: color var(--dur-fast) var(--ease);
}

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

.faq__item summary:hover {
  color: var(--primary);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__answer {
  padding-bottom: var(--s-5);
}

.faq__answer p {
  margin-bottom: 0;
  color: var(--slate-600);
}

@media (min-width: 768px) {
  .faq__item summary {
    font-size: 20px;
  }
}

/* --- Tables ------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--s-5);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--slate-300);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-700);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* --- Forms -------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--s-5);
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.field__hint {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-600);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--slate-400); /* 3.13:1 — meets UI component minimum */
  border-radius: var(--r-btn);
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--slate-600);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.field[data-invalid='true'] input,
.field[data-invalid='true'] textarea {
  border-color: var(--error);
}

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--error);
}

.field[data-invalid='true'] .field__error {
  display: flex;
}

/* Spam honeypot — hidden from sight and from assistive tech */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form__status {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 500;
}

.form__status[hidden] {
  display: none;
}

.form__status[data-state='success'] {
  background: rgba(14, 124, 102, 0.1);
  border-left: 4px solid var(--success);
  color: #0a5a4a; /* 7.2:1 on the tint */
}

.form__status[data-state='error'] {
  background: rgba(198, 40, 40, 0.08);
  border-left: 4px solid var(--error);
  color: #9b1c1c;
}

.form__status[data-state='working'] {
  background: var(--primary-tint);
  border-left: 4px solid var(--primary);
  color: var(--primary-dark);
}

/* --- Contact aside ------------------------------------------------------ */

.contact-block {
  padding: var(--s-6);
  background: var(--surface);
  border-radius: var(--r-panel);
}

.contact-block + .contact-block {
  margin-top: var(--s-5);
}

.contact-block h3 {
  font-size: 18px;
  margin-bottom: var(--s-3);
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-block a {
  font-weight: 600;
}

/* --- Blog --------------------------------------------------------------- */

.post-list {
  display: grid;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.post-list li {
  margin: 0;
  max-width: none;
}

.post-card__title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: var(--s-3);
}

.post-card__title a {
  color: var(--ink-900);
  text-decoration: none;
}

.post-card:hover .post-card__title a {
  color: var(--primary);
}

.post-card__excerpt {
  color: var(--slate-600);
  font-size: 15px;
}

/* Long-form article */
.article {
  max-width: 720px;
}

.article > * {
  max-width: none;
}

.article h2 {
  font-size: 26px;
  margin-top: var(--s-8);
}

.article h3 {
  font-size: 21px;
  margin-top: var(--s-7);
}

@media (min-width: 768px) {
  .article h2 {
    font-size: 32px;
  }
  .article h3 {
    font-size: 24px;
  }
}

.article p,
.article li {
  font-size: 17px;
  line-height: 1.7;
  max-width: none;
}

@media (min-width: 768px) {
  .article p,
  .article li {
    font-size: 18px;
  }
}

.article blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 3px solid var(--primary);
  color: var(--ink-700);
  font-size: 19px;
  font-style: normal;
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  font-size: 14px;
  color: var(--slate-600);
}

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

.site-footer {
  padding-block: var(--s-8) var(--s-6);
  background: var(--ink-900);
  color: #c9d2e4;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.footer__grid {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--s-6);
  }
}

.footer__tagline {
  margin: var(--s-4) 0 var(--s-2);
  color: #c9d2e4;
  font-size: 15px;
  max-width: 34ch;
}

.footer__local {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.footer__local span {
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--slate-400);
}

.footer__heading {
  margin-bottom: var(--s-4);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.footer__list li {
  margin-bottom: var(--s-3);
}

.footer__list a {
  color: #c9d2e4;
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-left: auto;
}

.footer__bottom a {
  color: #c9d2e4;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* --- Utilities ---------------------------------------------------------- */

.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;
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-6 {
  margin-top: var(--s-6);
}

.mt-7 {
  margin-top: var(--s-7);
}

/* --- Entrance animation ------------------------------------------------- */

/* Only ever hide content when JS is confirmed present (the inline snippet in
   <head> sets .js). Without JS — or if main.js fails to load — everything
   stays visible rather than disappearing. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Reduced motion (foundation §3.5) ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn-row,
  .hero__glow {
    display: none !important;
  }
  body {
    font-size: 12pt;
  }
}
