/* ==========================================================================
   Collin McCartney Portfolio
   Palette: royal blue + slate grey
   ========================================================================== */

:root {
  /* Brand */
  --royal-900: #16276b;
  --royal-800: #1e357f;
  --royal-700: #2645a3;
  --royal-600: #2f56c8;   /* primary */
  --royal-500: #4470e0;
  --royal-100: #e3eaff;

  /* Neutrals (slate grey) */
  --grey-900: #14181f;
  --grey-800: #1f2530;
  --grey-700: #333b49;
  --grey-500: #6b7484;
  --grey-300: #c3c9d4;
  --grey-200: #e2e6ed;
  --grey-100: #f2f4f8;
  --white: #ffffff;

  /* Roles */
  --bg: var(--white);
  --text: var(--grey-800);
  --text-muted: var(--grey-500);
  --border: var(--grey-200);
  --accent: var(--royal-600);

  /* Layout */
  --header-h: 76px;
  --container: 1140px;
  --radius: 10px;
  --transition: 180ms ease;

  --shadow-sm: 0 1px 2px rgba(20, 24, 31, .06);
  --shadow-md: 0 8px 24px rgba(20, 24, 31, .10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* Accessibility ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--royal-600);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--royal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, .96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* Brand ------------------------------------------------------------------ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--royal-600), var(--royal-800));
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.brand:hover .brand-mark { transform: translateY(-1px) rotate(-3deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--grey-900);
  letter-spacing: -.01em;
}

.brand-role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav -------------------------------------------------------------------- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-700);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--royal-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--royal-700);
  background: var(--grey-100);
}

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-link.is-active { color: var(--royal-700); font-weight: 600; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--royal-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(47, 86, 200, .28);
}

.btn-primary:hover {
  background: var(--royal-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(47, 86, 200, .32);
}

.btn-primary:active { transform: translateY(0); }

/* Hamburger -------------------------------------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--grey-800);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px 24px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav-link {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--grey-100);
    border-radius: 0;
  }

  .nav-link::after { display: none; }

  .nav-cta { margin-top: 12px; width: 100%; }
}

@media (max-width: 420px) {
  .brand-role { display: none; }
  .brand-name { font-size: 16px; }
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: 56px 76px;
  overflow: hidden;
}

/* Soft blue wash + dot grid, kept very low contrast */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 78% 18%, rgba(47, 86, 200, .13), transparent 70%),
    radial-gradient(45% 45% at 12% 88%, rgba(47, 86, 200, .08), transparent 70%),
    radial-gradient(circle at center, var(--grey-300) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%);
  opacity: .85;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 64px;
}

/* Copy ------------------------------------------------------------------- */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--royal-100);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--royal-700);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--grey-900);
  text-wrap: balance;
}

/* Hand-drawn underline under the key phrase */
.hero-title-accent {
  position: relative;
  color: var(--royal-600);
  white-space: nowrap;
}

.hero-title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .12em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal-500), var(--royal-100));
  opacity: .55;
}

.hero-lede {
  max-width: 54ch;
  margin: 0 0 28px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-lg { padding: 15px 30px; font-size: 16px; }

.btn-ghost {
  background: var(--white);
  color: var(--grey-800);
  border-color: var(--grey-300);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--royal-600);
  color: var(--royal-700);
  transform: translateY(-1px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.hero-tags li {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-700);
}

/* Portrait --------------------------------------------------------------- */

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
}

.portrait-disc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 4px solid var(--royal-600);
  border-radius: 50%;
  /* White so the headshot's original background blends in seamlessly. */
  background: var(--white);
  box-shadow: 0 20px 48px rgba(20, 24, 31, .16);
}

.portrait-disc img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 102%;
  height: auto;
  transform: translateX(-53%);
  display: block;
}

/* Scroll cue ------------------------------------------------------------- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  display: grid;
  place-items: start center;
  width: 26px;
  height: 42px;
  padding-top: 8px;
  border: 1.5px solid var(--grey-300);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: border-color var(--transition);
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--royal-600);
  animation: cue 1.8s ease-in-out infinite;
}

.scroll-cue:hover { border-color: var(--royal-600); }

@keyframes cue {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  50%      { transform: translateY(12px); opacity: .2; }
}

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

@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding-block: 56px 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: -1; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
  .portrait { width: min(72%, 300px); }
  .scroll-cue { display: none; }
}

@media (max-width: 520px) {
  .hero { padding-block: 36px 60px; }

  /* Keep the portrait small enough that the headline and lede stay above
     the fold on a phone. */
  .hero-inner { gap: 30px; }
  .portrait { width: min(56%, 200px); }

  .hero-title { font-size: clamp(29px, 8.2vw, 38px); }

  /* The accent wraps at this width, which breaks the underline box. */
  .hero-title-accent { white-space: normal; }
  .hero-title-accent::after { display: none; }

  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   Section primitives (shared by every section below the hero)
   ========================================================================== */

.section {
  padding-block: clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--border);
}

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

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 4.5vw, 56px); }

.section-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--royal-600);
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--grey-900);
  text-wrap: balance;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
}

.about-copy p {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--grey-700);
  text-wrap: pretty;
}

.about-copy a {
  font-weight: 600;
  color: var(--royal-700);
  text-decoration: underline;
  text-decoration-color: var(--royal-100);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.about-copy a:hover { text-decoration-color: var(--royal-600); }

/* Approach list ---------------------------------------------------------- */

.about-points {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.about-points li {
  position: relative;
  padding-left: 34px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.about-points strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-900);
}

/* Check mark drawn in CSS, so there is no icon font or SVG request */
.about-points li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--royal-100);
}

.about-points li::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6.5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--royal-700);
  border-bottom: 2px solid var(--royal-700);
  transform: rotate(-45deg);
}

/* Video card ------------------------------------------------------------- */

.about-aside { position: sticky; top: calc(var(--header-h) + 28px); }

.video-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background: var(--grey-900);
}

/* The facade button and the iframe that replaces it share this box. */
.video-frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  display: block;
  padding: 0;
  background: none;
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease, filter var(--transition);
}

.video-facade:hover img { transform: scale(1.03); filter: brightness(.92); }

/* Play button */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 20px rgba(20, 24, 31, .35);
  transform: translate(-50%, -50%);
  transition: transform var(--transition), background var(--transition);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-left: 19px solid var(--royal-600);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: translate(-50%, -50%);
}

.video-facade:hover .video-play {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-meta { padding: 14px 6px 4px; }

.video-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--grey-900);
}

.video-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.video-channel a {
  font-weight: 600;
  color: var(--royal-700);
}

.video-channel a:hover { text-decoration: underline; }

.video-subs {
  padding-left: 8px;
  border-left: 1px solid var(--grey-300);
}

/* About responsive ------------------------------------------------------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }

  .about-aside { position: static; }

  /* Keep the vertical video from dominating a stacked layout. */
  .video-card { max-width: 320px; margin-inline: auto; }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.section-lede {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(36px, 4.5vw, 64px);
}

/* Screenshot in a browser frame ------------------------------------------ */

.project-preview {
  display: block;
  overflow: hidden;
  border: 1px solid var(--grey-300);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(20, 24, 31, .16);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(20, 24, 31, .22);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--grey-100);
}

.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }

.browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grey-300);
}

.browser-url {
  overflow: hidden;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-preview img { display: block; width: 100%; height: auto; }

/* Details ---------------------------------------------------------------- */

.project-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.project-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--grey-900);
}

.badge {
  padding: 5px 11px;
  border: 1px solid var(--royal-100);
  border-radius: 999px;
  background: var(--royal-100);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--royal-700);
}

.project-role {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-muted);
}

.project-desc {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-700);
  text-wrap: pretty;
}

.project-features {
  display: grid;
  gap: 9px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.project-features li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--grey-700);
}

.project-features li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--royal-600);
}

/* Measured stats --------------------------------------------------------- */

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-block: 1px solid var(--border);
  list-style: none;
}

.project-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}

.project-stats strong {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--royal-600);
}

.project-stats span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--grey-100);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-700);
}

.project-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-arrow {
  margin-left: 7px;
  font-size: 15px;
  transition: transform var(--transition);
}

.btn-primary:hover .btn-arrow { transform: translate(2px, -2px); }

/* Portfolio responsive --------------------------------------------------- */

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 420px) {
  .project-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-stats li { flex-direction: row; align-items: baseline; gap: 8px; }
}

/* ==========================================================================
   Services / pricing
   ========================================================================== */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(20px, 2.6vw, 32px);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* The build is the offer; the care plan supports it. */
.plan-featured {
  border-color: var(--royal-600);
  box-shadow: 0 14px 40px rgba(47, 86, 200, .14);
}

.plan-step {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan-featured .plan-step { color: var(--royal-600); }

.plan-name {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.1vw, 25px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--grey-900);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.plan-amount {
  font-size: clamp(38px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--grey-900);
}

.plan-featured .plan-amount { color: var(--royal-600); }

.plan-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--grey-700);
  text-wrap: pretty;
}

.plan-features {
  flex: 1 1 auto;      /* pushes the button to the bottom of both cards */
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 29px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey-700);
}

/* Tick drawn with borders, so there is no icon font or extra request */
.plan-features li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--royal-100);
}

.plan-features li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--royal-700);
  border-bottom: 2px solid var(--royal-700);
  transform: rotate(-45deg);
}

.plan-actions { margin-top: auto; }

.btn-block { width: 100%; }

.plan-note {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}

.pricing-footnote {
  max-width: 62ch;
  margin: clamp(28px, 3.5vw, 40px) auto 0;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-muted);
  text-wrap: pretty;
}

.pricing-footnote a {
  font-weight: 600;
  color: var(--royal-700);
  text-decoration: underline;
  text-decoration-color: var(--royal-100);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.pricing-footnote a:hover { text-decoration-color: var(--royal-600); }

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

@media (max-width: 820px) {
  .pricing { grid-template-columns: 1fr; }
  .plan { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(36px, 4.5vw, 68px);
}

/* Details column --------------------------------------------------------- */

.contact-details { margin: 0 0 28px; }

.contact-details > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-details > div:first-child { padding-top: 0; }

.contact-details dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-details dd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 16px;
  color: var(--grey-800);
}

.contact-details a {
  font-weight: 600;
  color: var(--royal-700);
  text-decoration: underline;
  text-decoration-color: var(--royal-100);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.contact-details a:hover { text-decoration-color: var(--royal-600); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.contact-links a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-700);
  transition: border-color var(--transition), color var(--transition);
}

.contact-links a:hover {
  border-color: var(--royal-600);
  color: var(--royal-700);
}

.contact-aside {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Form ------------------------------------------------------------------- */

.contact-form {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.field { margin: 0 0 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-800);
}

.field label span { color: var(--royal-600); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: 9px;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--grey-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.field input::placeholder,
.field textarea::placeholder { color: var(--grey-300); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--royal-600);
  box-shadow: 0 0 0 3px rgba(47, 86, 200, .16);
}

/* Native arrow removed so the control matches the text inputs */
.field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--grey-500) 50%),
    linear-gradient(135deg, var(--grey-500) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* Error state ------------------------------------------------------------ */

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d92d20;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .15);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #b42318;
}

/* Bots fill this in; nobody else ever sees it. */
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.form-status:empty { display: none; }

.form-status.is-success {
  padding: 12px 14px;
  border-radius: 9px;
  background: #ecfdf3;
  color: #05603a;
  font-weight: 500;
}

.form-status.is-error {
  padding: 12px 14px;
  border-radius: 9px;
  background: #fef3f2;
  color: #b42318;
  font-weight: 500;
}

.form-smallprint {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}

/* Contact responsive ----------------------------------------------------- */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 34px;
  background: var(--grey-900);
  color: var(--grey-300);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 13px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.footer-nav a {
  font-size: 14px;
  color: var(--grey-300);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-note { margin: 0; font-size: 13px; color: var(--grey-500); }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* Temporary section placeholders (remove as real sections are built) ------ */

.placeholder {
  min-height: 70vh;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}
.placeholder:nth-of-type(even) { background: var(--grey-100); }
.placeholder h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--grey-300);
  letter-spacing: -.02em;
}

.video-title a { color: inherit; }
.video-title a:hover { color: var(--royal-700); text-decoration: underline; }
