/* ═══════════════════════════════════════════════
   NORTHLINE STUDIO — /trades ad landing page
   Uses the tokens + utilities from styles.css
   (--ink, --brass, .btn, .field, .mono, .form-note)
   ═══════════════════════════════════════════════ */

.trades { overflow-x: hidden; }

/* ── Minimal header ─────────────────────────── */

.t-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.t-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--chalk);
}
.t-brand sup { font-size: 0.5em; color: var(--brass); }
.t-header-phone {
  color: var(--brass);
  white-space: nowrap;
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.t-header-phone:hover { background: var(--brass); color: var(--ink); }

/* ── Hero ───────────────────────────────────── */

.t-hero {
  position: relative;
  /* Tall enough to contain the compass without the sticky header clipping it */
  min-height: calc(100svh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201, 168, 106, 0.12), transparent 70%),
    radial-gradient(ellipse 75% 60% at 50% 50%, rgba(169, 189, 209, 0.07), transparent 75%);
}
.t-compass {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(400px, 82vmin, 700px);
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--ice);
  opacity: 0.3;
  pointer-events: none;
}
/* Ambient drift — the ring turns slowly for ever, under the scroll rotation */
.t-spin {
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: t-drift 240s linear infinite;
}
@keyframes t-drift { to { transform: rotate(360deg); } }
.t-cardinal {
  font-family: var(--font-display);
  font-size: 21px;
  fill: currentColor;
  opacity: 0.7;
}
.t-cardinal-n { font-size: 27px; fill: var(--brass-hi); opacity: 1; }
.t-needle-n {
  fill: var(--brass-hi);
  filter: drop-shadow(0 0 10px rgba(227, 201, 143, 0.85));
}
.t-needle-s { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.6; }
.t-hub { fill: var(--brass-hi); }

.t-hero-inner { position: relative; max-width: 46rem; margin: 0 auto; }
.t-hero .eyebrow { margin-bottom: 1.5rem; }

.t-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--chalk);
  margin-bottom: 1.5rem;
}
.t-lead {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}
.t-lead em { color: var(--brass-hi); font-style: italic; }

.t-hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.t-hero-cta .btn { font-size: 0.8125rem; padding: 1.1rem 2.75rem; }
.t-hero-note { color: var(--muted); }

/* ── Sections ───────────────────────────────── */

.t-section { padding: clamp(4rem, 10vh, 7rem) var(--gutter); }
.t-section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }

.t-section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.t-section-head .eyebrow { margin-bottom: 1rem; }
.t-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  color: var(--chalk);
}
.t-h2 em { color: var(--brass); font-style: italic; }

/* ── Pricing cards ──────────────────────────── */

.t-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 68rem;
  margin: 0 auto;
}
.t-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  padding: 2.25rem 1.75rem;
}
.t-card-feature {
  border-color: rgba(201, 168, 106, 0.5);
  background: var(--ink-3);
  box-shadow: 0 24px 70px -28px rgba(201, 168, 106, 0.25);
}
.t-flag {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brass);
  color: var(--ink);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.5625rem;
  white-space: nowrap;
}
.t-card-price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1;
  color: var(--brass-hi);
  margin-bottom: 0.6rem;
}
.t-card-price span { font-size: 0.4em; color: var(--muted); }
.t-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--chalk);
  margin-bottom: 0.9rem;
}
.t-card p { color: var(--muted); font-size: 0.975rem; line-height: 1.6; }

.t-list {
  list-style: none;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--chalk);
}
.t-list li::before {
  content: "◆ ";
  color: var(--brass);
  font-size: 0.6em;
  vertical-align: 2px;
  margin-right: 0.45rem;
}

.t-fineprint {
  text-align: center;
  color: var(--muted);
  margin-top: 2.5rem;
}

/* ── Steps ──────────────────────────────────── */

.t-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 68rem;
  margin: 0 auto;
  counter-reset: none;
}
.t-step { position: relative; padding-top: 2.5rem; }
.t-step::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.8);
}
.t-step-no {
  position: absolute;
  top: 0;
  left: 1.5rem;
  color: var(--brass);
  font-size: 0.75rem;
}
.t-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--chalk);
  margin-bottom: 0.75rem;
}
.t-step p { color: var(--muted); line-height: 1.6; }

/* ── Trust ──────────────────────────────────── */

/* Single case study — centred, sized so it reads as a deliberate feature
   rather than a lonely card. Add more <figure>s and it becomes a 2-up grid. */
.t-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}
.t-shots:has(.t-shot + .t-shot) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 54rem;
}
.t-shot { margin: 0; }

/* Live client-site embed — reuses .browser / .browser-viewport / .browser-frame
   from styles.css. The overlay link sits above the iframe so the whole frame
   is clickable (the iframe itself has pointer-events: none). */
.t-embed { position: relative; }
.t-embed-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 10px;
}
.t-embed-link:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
.t-embed:hover .browser { transform: translateY(-6px); }
.t-shot-img,
.t-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}
/* Beat the width/height HTML attributes so the aspect-ratio governs sizing
   (the attributes stay for layout stability while the image loads). */
.t-shot img { height: auto; }
.t-shot-img {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(237,232,223,0.02) 0 10px, transparent 10px 20px),
    var(--ink-3);
}
.t-shot-img span { color: var(--muted); font-size: 0.625rem; }
.t-shot figcaption { color: var(--brass); margin-top: 0.75rem; font-size: 0.5625rem; }

.t-quote {
  max-width: 42rem;
  margin: clamp(3rem, 7vh, 4.5rem) auto 0;
  border-left: 1px solid var(--brass);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}
.t-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.4;
  color: var(--chalk);
}
.t-quote figcaption { color: var(--brass); margin-top: 1.1rem; }

.t-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 68rem;
  margin: clamp(3rem, 7vh, 4.5rem) auto 0;
  text-align: center;
}
.t-trust li { color: var(--muted); font-size: 0.975rem; line-height: 1.6; }
.t-trust strong { display: block; color: var(--chalk); font-weight: 500; margin-bottom: 0.3rem; }

/* ── Lead form ──────────────────────────────── */

.t-form-wrap { max-width: 34rem; margin: 0 auto; }
.t-form-sub {
  color: var(--muted);
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.t-form { display: flex; flex-direction: column; gap: 1.5rem; }
.t-optional { color: var(--muted); }
.t-hint { color: var(--muted); font-size: 0.8125rem; margin-top: -0.15rem; }
.t-submit { margin-top: 0.5rem; font-size: 0.8125rem; padding-block: 1.1rem; }
.t-reassure { color: var(--muted); text-align: center; }
/* Notice at the point of collection — required where we take name + phone */
.t-consent {
  color: var(--muted);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-top: -0.5rem;
}
.t-consent a { color: var(--brass); border-bottom: 1px solid rgba(201, 168, 106, 0.35); }
.t-consent a:hover { color: var(--brass-hi); }

/* ── Footer ─────────────────────────────────── */

.t-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
}
.t-footer a { color: var(--muted); transition: color 0.3s ease; }
.t-footer a:hover { color: var(--brass-hi); }
.t-footer span { margin: 0 0.5rem; }

/* ── Scroll reveals ─────────────────────────── */

.t-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.t-reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────── */

@media (max-width: 900px) {
  .t-cards, .t-steps, .t-shots, .t-trust { grid-template-columns: 1fr; }
  .t-cards { gap: 2rem; }
  .t-shots { gap: 1rem; }
  .t-card-feature { order: -1; }
  .t-compass { opacity: 0.22; width: clamp(380px, 120vw, 620px); }
}

@media (max-width: 600px) {
  .t-header { padding-block: 0.8rem; }
  .t-brand { font-size: 0.9rem; letter-spacing: 0.18em; }
  .t-header-phone { padding: 0.45rem 0.8rem; font-size: 0.625rem; }
  .t-hero-cta .btn { width: 100%; }
  .t-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .t-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Step-grid variants ───────────────────────
   .t-steps is a hard 3-up sized for /trades' three steps. Other landing pages
   reuse the same step styling with a different item count, so the column count
   is overridden here. Scoped to min-width so the 900px stacking rule above
   still wins on phones regardless of source order. */
@media (min-width: 901px) {
  .t-steps-2up { grid-template-columns: repeat(2, 1fr); max-width: 54rem; }
}
/* FAQ entries carry no .t-step-no, so the space reserved for one is dead */
.t-steps-faq .t-step { padding-top: 1.75rem; }
