/* ===================================================================
   TRAiDESMEN — Marketing site
   Style: Minimalism & Swiss — grid-based, generous whitespace, clean
   =================================================================== */

:root {
  /* Color system */
  --sky:        #0EA5E9;
  --sky-2:      #38BDF8;
  --cta:        #F97316;
  --cta-hover:  #EA640C;
  --bg:         #F0F9FF;
  --ink:        #0C4A6E;
  --navy:       #0C2340;
  --white:      #FFFFFF;
  --line:       #DCEBF5;
  --muted:      #5A7C93;

  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gap: 28px;
  --radius: 16px;
  --header-h: 68px;

  /* Z-index scale */
  --z-header: 50;
}

/* ─── Reset / base ──────────────────────────────────────────────── */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ─── Wordmark / glowing "i" ────────────────────────────────────── */
.wordmark {
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.i-glow {
  color: var(--sky);
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.55), 0 0 18px rgba(14, 165, 233, 0.35);
}
.site-footer .wordmark { color: #fff; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; font-size: 0.98rem;
  border: none; border-radius: 12px; cursor: pointer;
  padding: 13px 22px; line-height: 1.2; text-align: center;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-cta {
  background: var(--cta); color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
}
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }

.btn-lg { padding: 17px 32px; font-size: 1.06rem; border-radius: 14px; }

/* ─── Sticky header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(240, 249, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 14px rgba(12, 35, 64, 0.05);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.header-cta { padding: 10px 18px; font-size: 0.92rem; }

/* ─── Eyebrow / tags / section titles ───────────────────────────── */
.eyebrow, .tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 16px;
}
.tag.on-color { color: rgba(255,255,255,0.9); }
.tag.on-dark  { color: var(--sky-2); }
.tag.center { display: block; }

.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--ink); }
.section-title.on-color { color: #fff; }
.section-sub {
  margin: 16px auto 0; max-width: 640px; font-size: 1.1rem; color: var(--muted);
}

.section { padding: 88px 0; }

/* ─── Section 1 — Hero ──────────────────────────────────────────── */
.hero { background: var(--bg); padding: 64px 0 84px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); color: var(--ink); margin-bottom: 20px; }
.hero-copy .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted);
  max-width: 30ch; margin-bottom: 32px;
}
.hero-copy .btn { box-shadow: 0 10px 26px rgba(249, 115, 22, 0.30); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 330px; max-width: 100%;
  background: #0a1c30; border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 70px rgba(12, 35, 64, 0.28), 0 8px 20px rgba(12, 35, 64, 0.18);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #0a1c30; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
  border-radius: 28px; padding: 40px 18px 20px; overflow: hidden;
}
.call-head { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.call-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.call-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--sky); margin-top: 6px; font-size: 1.02rem;
}
.call-number { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sky);
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}
.call-thread { display: flex; flex-direction: column; gap: 9px; }
.bubble {
  font-size: 0.8rem; line-height: 1.4; padding: 9px 12px; border-radius: 14px; max-width: 85%;
}
.bubble.ai { background: #E0F2FE; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.caller { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.call-booked {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0;
  padding: 10px 12px; border-radius: 12px; font-size: 0.82rem; font-weight: 600;
}
.call-booked .ic { color: #059669; flex-shrink: 0; }

/* ─── Section 2 — Problem ───────────────────────────────────────── */
.problem { background: var(--white); }
.pain-grid {
  margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 48px;
}
.pain { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pain p { position: relative; padding-left: 28px; font-size: 1.08rem; color: var(--ink); }
.pain p::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 16px; height: 3px; background: var(--cta); border-radius: 2px;
}

/* ─── Section 3 — How it works ──────────────────────────────────── */
.how { background: var(--bg); }
.card-row {
  margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04);
}
.step-num {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.step-card h3 { font-size: 1.3rem; color: var(--ink); margin: 18px 0 12px; }
.step-card p { color: var(--muted); font-size: 1rem; }

/* Icon chip */
.icon-chip {
  width: 54px; height: 54px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #E0F2FE; color: var(--sky); flex-shrink: 0;
}

/* ─── Section 4 — Team ──────────────────────────────────────────── */
.team { background: var(--white); }
.team-grid {
  margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--gap); justify-content: center;
}
.team-card {
  grid-column: span 2;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(12, 35, 64, 0.12);
  border-color: var(--sky-2);
}
.team-card h3 { font-size: 1.18rem; color: var(--navy); margin: 18px 0 10px; }
.team-card p { color: var(--muted); font-size: 0.98rem; }
/* Bottom row: 2 cards centered (each spans 2 of 6 cols → offset by 1) */
.team-card:nth-child(4) { grid-column: 2 / span 2; }
.team-card:nth-child(5) { grid-column: 4 / span 2; }

/* ─── Section 5 — 30 day trial ──────────────────────────────────── */
.trial { background: var(--sky); color: #fff; }
.trial-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.trial-body p { font-size: 1.12rem; color: rgba(255,255,255,0.94); margin-bottom: 20px; }
.trial-body p:last-child { margin-bottom: 0; }
.trial-body strong { color: #fff; }

/* ─── Section 6 — Guarantee ─────────────────────────────────────── */
.guarantee { background: var(--navy); color: #fff; }
.guarantee-body {
  font-size: 1.15rem; color: rgba(255,255,255,0.82); margin: 8px auto 36px;
  max-width: 720px; line-height: 1.7;
}
.guarantee-statement {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 36px; color: #fff;
}
.guarantee-statement .accent { color: var(--cta); }

/* ─── Section 7 — Pricing ───────────────────────────────────────── */
.pricing { background: var(--bg); }
.framing {
  margin: 22px 0 8px; max-width: 760px; font-size: 1.05rem; color: var(--ink);
  border-left: 4px solid var(--sky); padding: 6px 0 6px 20px;
}
.price-grid {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap); align-items: stretch;
}
.price-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.05);
}
.price-card.featured {
  border: 2px solid var(--sky); padding: 42px 32px;
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.18);
}
.plan-tag {
  position: absolute; top: -13px; left: 28px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; color: #fff;
}
.plan-tag.best { background: var(--cta); }
.plan-tag.default { background: var(--sky); left: 32px; }
.plan-name { font-size: 1.4rem; color: var(--navy); }
.plan-price { margin: 10px 0 18px; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.plan-price .per { color: var(--muted); font-size: 1rem; font-weight: 600; }
.plan-body { color: var(--muted); font-size: 1rem; }

.pricing-cta { margin-top: 48px; }
.fineprint { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.fineprint.on-dark { color: rgba(255,255,255,0.7); }

/* ─── Section 8 — Final CTA ─────────────────────────────────────── */
.final-cta { background: var(--navy); color: #fff; }
.final-headline { font-size: clamp(1.7rem, 4vw, 2.7rem); color: #fff; margin-bottom: 28px; }
.final-body { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.final-emphasis { font-size: 1.2rem; font-weight: 700; color: var(--sky-2); margin-bottom: 36px; }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.78); padding: 44px 0; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 16px;
}
.footer-tagline { text-align: center; font-size: 0.96rem; }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-copy { text-align: right; font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  font-size: 0.88rem; color: rgba(255,255,255,0.72); transition: color .2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-links a:focus-visible { outline: 2px solid var(--sky-2); outline-offset: 3px; border-radius: 4px; }

/* ─── Announcement bar ──────────────────────────────────────────── */
.announce {
  background: var(--sky); color: #fff; text-align: center;
  font-size: 0.92rem; font-weight: 600; line-height: 1.4;
  padding: 10px 16px;
}

/* ─── Waitlist form ─────────────────────────────────────────────── */
.waitlist-form { width: 100%; max-width: 540px; }
.waitlist-fields { display: flex; gap: 10px; align-items: stretch; }
.waitlist-input {
  flex: 1 1 auto; min-width: 0;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid var(--sky); border-radius: 12px;
  padding: 14px 16px; transition: box-shadow .2s ease, border-color .2s ease;
}
.waitlist-input::placeholder { color: var(--muted); }
.waitlist-input:hover { border-color: var(--sky-2); }
.waitlist-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.28); }
.waitlist-input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.28); }
.waitlist-submit { flex: 0 0 auto; white-space: nowrap; }
.waitlist-msg { margin-top: 14px; font-size: 1rem; font-weight: 600; }
.waitlist-success { color: var(--ink); }
.waitlist-error { color: #B91C1C; font-weight: 500; }
/* Centered contexts (guarantee / pricing / final CTA) center the form block. */
.center .waitlist-form, .pricing-cta .waitlist-form { margin-left: auto; margin-right: auto; }
/* On the dark navy sections, make the confirmation/error legible. */
.guarantee .waitlist-success, .final-cta .waitlist-success { color: #fff; }
.guarantee .waitlist-error, .final-cta .waitlist-error { color: #FCA5A5; }

/* ─── Scroll reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */

/* Tablet */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-copy .lede { max-width: 100%; }
  .trial-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-row { grid-template-columns: 1fr; }

  /* Team: 2 per row, drop the 6-col offsets */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card,
  .team-card:nth-child(4),
  .team-card:nth-child(5) { grid-column: auto; }

  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.featured { padding: 32px 28px; }
}

/* Mobile — single column stacking everywhere (375px target) */
@media (max-width: 640px) {
  :root { --gap: 18px; }
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }

  .header-cta { padding: 9px 14px; font-size: 0.86rem; }

  /* Full-width CTAs on mobile */
  .btn-cta:not(.header-cta) { display: flex; width: 100%; }

  /* Waitlist form: stack input above button, both full width, centered. */
  .waitlist-form { margin-left: auto; margin-right: auto; }
  .waitlist-fields { flex-direction: column; }

  .pain-grid { grid-template-columns: 1fr; gap: 0; }
  .team-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-tagline, .footer-copy { text-align: center; }
  .footer-legal { align-items: center; }
  .footer-links { justify-content: center; }

  .phone { width: 290px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
