/* =========================================================
   TRP Studios, shared design system
   Brand blue sampled directly from the logo file: #007FFF
   ========================================================= */

:root{
  --blue: #007FFF;
  --blue-dark: #0057B8;
  --blue-text: #0A6CCB; /* brighter/lighter than --blue-dark, still 5.2:1 on white, AA-safe for regular-size text */
  --blue-wash: #EAF3FF;
  --highlight-wash: #EEFF00; /* neon chartreuse-yellow, reads brighter than pure #FFFF00 to the eye. Fixed in both themes on purpose, see .highlight below */

  --ink: #0B1220;
  --ink-soft: #37414F;
  --muted: #5B6472;
  --line: #E3E7EC;
  --surface: #FFFFFF;
  --surface-alt: #F6F8FA;

  --good: #1E8E5A;
  --good-wash: #E8F5EE;
  --badge: #B8761C;
  --badge-text: #8A5714; /* --badge itself is 3.3:1 on --badge-wash, fails AA for the small text that sits on it */
  --badge-wash: #FBF0DE;

  --panel-dark: #0B1220; /* fixed, not a theme token, the final-CTA card is always dark, in both themes */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(11,18,32,0.04), 0 8px 24px rgba(11,18,32,0.06);
  --max: 1160px;
}

@media (prefers-color-scheme: dark){
  :root{
    --ink: #EEF2F6;
    --ink-soft: #C7CFD9;
    --muted: #93A0AE;
    --line: #202A36;
    --surface: #0B1016;
    --surface-alt: #121922;
    --blue-wash: #081425; /* darker than you'd expect, the "unlock" pill's blue text was only 4.07:1 against the lighter #0E2440, fails AA */
    --good-wash: #103323;
    --badge-wash: #2E230F;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
    /* brighter/lighter than vivid --blue itself, reads ~7.7-8.4:1 against these near-black
       surfaces, well clear of AA, and the extra headroom is exactly what makes it look
       brighter/lighter rather than just "passing." */
    --blue-text: #4FB3FF;
    --badge-text: #D89A3E; /* same swap, the light-mode dark amber goes muddy on a near-black wash */
  }
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }

body{
  margin:0;
  background:var(--surface);
  color:var(--ink);
  font-family:"Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size:16.5px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:"Archivo", ui-sans-serif, sans-serif;
  font-weight:800;
  line-height:1.08;
  letter-spacing:-0.015em;
  text-wrap:balance;
  margin:0;
  color:var(--ink);
}
h1{font-size:clamp(34px,5.4vw,58px);}
h2{font-size:clamp(26px,3.6vw,38px);}
h3{font-size:clamp(19px,2.2vw,22px);}

p{margin:0;color:var(--ink-soft);}
a{color:var(--blue-text);text-decoration:none;}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  /* focus ring is a non-text indicator (WCAG 1.4.11, 3:1 minimum), vivid --blue clears that at 3.8:1 */
  outline:3px solid var(--blue);
  outline-offset:2px;
}

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

.container{max-width:var(--max);margin:0 auto;padding:0 24px;}
.section{padding:88px 0;}
.section--tight{padding:56px 0;}
.section--alt{background:var(--surface-alt);}

.lede{font-size:clamp(17px,2vw,19px);max-width:56ch;margin-top:16px;}

/* ---- nav ---- */
.nav{
  position:sticky;top:0;z-index:40;
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav .container{
  display:flex;align-items:center;justify-content:space-between;
  height:72px;
}
.nav .brand{display:flex;align-items:center;gap:10px;font-family:"Archivo",sans-serif;font-weight:800;font-size:18px;color:var(--ink);}
.nav .brand img{width:30px;height:30px;}
.nav ul{list-style:none;display:flex;align-items:center;gap:28px;margin:0;padding:0;}
.nav ul li a{color:var(--ink-soft);font-weight:600;font-size:15px;}
.nav ul li a:hover{color:var(--blue-text);}
.nav .navlinks{display:flex;align-items:center;gap:28px;}

.nav-toggle{
  display:none;
  flex-direction:column;justify-content:center;gap:5px;
  background:none;border:none;cursor:pointer;
  padding:8px;margin:-8px -4px -8px 0;
}
.nav-toggle span{
  display:block;width:22px;height:2px;border-radius:2px;
  background:var(--ink);
  transition:transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav.is-open .nav-toggle span:nth-child(2){opacity:0;}
.nav.is-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media (max-width:760px){
  .nav-toggle{display:flex;}
  .nav ul{
    display:flex;flex-direction:column;align-items:stretch;gap:2px;
    position:absolute;top:100%;left:0;right:0;
    margin:0;padding:8px 24px 20px;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    box-shadow:var(--shadow);
    max-height:0;overflow:hidden;opacity:0;
    pointer-events:none;
    transition:max-height .25s ease, opacity .2s ease;
  }
  .nav ul li a{display:block;padding:12px 2px;border-bottom:1px solid var(--line);}
  .nav ul li:last-child a{border-bottom:none;}
  .nav ul li.nav-cta{margin-top:8px;}
  .nav ul li.nav-cta a{display:inline-flex;}
  .nav.is-open ul{max-height:320px;opacity:1;pointer-events:auto;}
}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:"Work Sans",sans-serif;font-weight:700;font-size:15.5px;
  padding:14px 26px;border-radius:999px;border:none;cursor:pointer;
  /* white text needs the darker blue, #007FFF under white is only 3.8:1, fails AA */
  background:var(--blue-dark);color:#fff;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,87,184,0.32);}
.btn.btn-ghost{
  background:transparent;color:var(--ink);border:1.5px solid var(--line);
}
.btn.btn-ghost:hover{border-color:var(--blue);color:var(--blue-text);box-shadow:none;}
.btn.btn-sm{padding:10px 18px;font-size:14px;}

/* ---- hero ---- */
.hero{padding:76px 0 56px;}
.hero-grid{display:grid;grid-template-columns:1.2fr 0.8fr;gap:48px;align-items:center;}
@media (max-width:860px){ .hero-grid{grid-template-columns:1fr;} }
.hero-cta{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap;}
/* min-width:0 overrides the grid item's default min-width:auto. Without it, the photo's
   large intrinsic size (1040px) forces this column wider than its 0.8fr share, blowing
   the image out past the container entirely instead of respecting max-width below. */
.hero-photo{min-width:0;}
/* the badge needs to anchor to the image's own box, not the wider grid column .hero-photo
   spans, so centering/max-width move onto this inner wrapper and the badge lives inside it */
.hero-photo-inner{position:relative;width:100%;max-width:420px;margin:0 auto;}
.hero-photo-inner img{
  display:block;
  width:100%;height:auto;
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
}
@media (max-width:860px){
  .hero-photo{order:-1;}
  .hero-photo-inner{max-width:260px;}
}

/* ---- browser-frame site-scroll mockup (Services hero) ---- */
.browser-mock-wrap{display:flex;justify-content:center;min-width:0;position:relative;padding-top:18px;}
.browser-frame{
  display:block;
  position:relative;
  width:100%;max-width:760px;
  transition:transform .15s ease;
}
.browser-frame:hover{transform:translateY(-3px);}
/* the window chrome (bar + screen) clips to rounded corners; the badge lives outside
   this wrapper specifically so that clipping doesn't also cut the badge off */
.browser-window{
  background:var(--panel-dark); /* fixed dark chrome, same reasoning as the CTA panel: always dark, regardless of page theme */
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.browser-bar{display:flex;align-items:center;gap:7px;padding:11px 14px;}
.browser-dot{width:10px;height:10px;border-radius:50%;flex:none;}
.browser-dot.red{background:#FF5F57;}
.browser-dot.yellow{background:#FEBC2E;}
.browser-dot.green{background:#28C840;}
.browser-screen{
  width:100%;aspect-ratio:2818/1512; /* matches the real recording's own ratio, so object-fit:cover doesn't have to crop */
  background:#fff;overflow:hidden;position:relative;
}
.browser-screen video{
  display:block;width:100%;height:100%;object-fit:cover;
}
.mock-badge{
  position:absolute;bottom:-16px;right:-14px;z-index:3;
  background:var(--blue-dark);color:#fff;font-weight:700;font-size:13.5px;
  padding:10px 16px;border-radius:999px;box-shadow:var(--shadow);
  transform:rotate(6deg);white-space:nowrap;
}

/* marker-highlight sweep behind a headline's key phrase. The highlight is the span's
   own background (animated via background-size), not a separately positioned layer.
   This avoids relying on z-index/containing-block behavior for an absolutely-positioned
   pseudo-element inside an inline position:relative span, which is what silently failed
   to paint once this ran inside the CTA panel's grid layout (text sat directly on the
   panel's own matching-dark background with no visible box behind it at all).
   Scoped to h1 and h2 so both page headlines and the CTA panel's h2 can use it. */
h1 .highlight, h2 .highlight{
  white-space:nowrap;
  /* fixed dark text, not var(--ink), --ink flips light in dark mode, which would put
     light text on this bright yellow and kill the contrast the brighter color is for */
  color:#0B1220;
  padding:0.02em 0.14em;
  margin:0 -0.14em;
  border-radius:3px;
  background-image:linear-gradient(var(--highlight-wash), var(--highlight-wash));
  background-repeat:no-repeat;
  background-position:left center;
  background-size:100% 100%; /* safe default: fully shown, in case the animation below never runs */
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
@media (prefers-reduced-motion: no-preference){
  h1 .highlight, h2 .highlight{
    background-size:0% 100%;
    animation:trp-highlight-sweep .65s cubic-bezier(.22,.61,.36,1) .45s forwards;
  }
}
@keyframes trp-highlight-sweep{ to{ background-size:100% 100%; } }

/* ---- proof strip ---- */
.proof-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:36px;
}
@media (max-width:860px){ .proof-grid{grid-template-columns:1fr;} }
.proof-card{
  background:var(--surface);
  border:1.5px solid var(--line);
  border-radius:var(--radius-lg);
  padding:24px;
}
.proof-card.is-placeholder{
  border:1.5px dashed var(--line);
  background:var(--surface-alt);
}
.proof-card .trade{
  font-family:"IBM Plex Mono",monospace;font-size:11.5px;letter-spacing:0.06em;
  text-transform:uppercase;color:var(--muted);margin-bottom:10px;
}
.proof-card .result{font-family:"Archivo",sans-serif;font-weight:800;font-size:24px;margin-bottom:6px;}
.proof-card .who{font-size:14px;color:var(--muted);}
.proof-card .placeholder-flag{
  margin-top:14px;font-size:12.5px;color:var(--badge-text);
  font-family:"IBM Plex Mono",monospace;
}

/* ---- stat trio ---- */
.stat-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:40px;}
@media (max-width:760px){ .stat-trio{grid-template-columns:1fr;} }
.stat .num{font-family:"Archivo",sans-serif;font-weight:800;font-size:40px;color:var(--blue-text);}
.stat .lbl{color:var(--muted);margin-top:4px;max-width:30ch;}

/* ---- how it works ---- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:40px;}
@media (max-width:860px){ .steps{grid-template-columns:1fr;} }

/* ---- two-column section (case-study problem/fix side by side) ---- */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;}
@media (max-width:860px){ .two-col{grid-template-columns:1fr;gap:40px;} }
.step{position:relative;padding-left:0;}
.step .idx{
  font-family:"IBM Plex Mono",monospace;font-weight:700;color:var(--blue-text);
  font-size:13px;letter-spacing:0.05em;display:block;margin-bottom:10px;
}
.step h3{margin-bottom:8px;}
.step p{font-size:15px;}
.step .unlock{
  display:inline-block;margin-top:10px;font-size:13px;font-weight:600;
  background:var(--blue-wash);color:var(--blue-text);padding:4px 10px;border-radius:999px;
  border:1.5px solid var(--blue); /* same border treatment as the "Most Popular" featured price card */
}

/* ---- pricing ---- */
.price-banner{
  background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius-lg);
  padding:26px 32px;margin-top:40px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.price-banner .info{flex:1 1 320px;}
.price-banner .info h3{display:inline;}
.price-banner .amt-inline{
  font-family:"Archivo",sans-serif;font-weight:800;font-size:19px;color:var(--blue-text);margin-left:10px;
  font-variant-numeric:tabular-nums;
}
.price-banner .for{margin:6px 0 0;}
.price-banner .btn{flex:none;}

.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:28px;}
@media (max-width:960px){ .price-grid{grid-template-columns:1fr;} }
.price-card{
  background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius-lg);
  padding:28px;display:flex;flex-direction:column;gap:12px;
}
.price-card.featured{border-color:var(--blue);box-shadow:var(--shadow);}
.price-card .badge{
  align-self:flex-start;background:var(--blue-wash);color:var(--blue-text);
  font-size:13px;font-weight:600;padding:4px 10px;border-radius:999px;
  border:1.5px solid var(--blue); /* same pill, color, and font treatment as the "unlock" and case-card metric badges */
}
.price-card .amt{font-family:"Archivo",sans-serif;font-weight:800;font-size:34px;font-variant-numeric:tabular-nums;}
.price-card .amt small{font-family:"Work Sans",sans-serif;font-weight:500;font-size:14px;color:var(--muted);}
.price-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px;}
.price-card ul li{font-size:14.5px;color:var(--ink-soft);display:flex;gap:8px;}
.price-card ul li::before{content:"✓";color:var(--good);font-weight:700;flex:none;}
.price-card .btn{width:100%;margin-top:auto;}

.ads-table{
  margin-top:20px;border:1.5px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;
}
.ads-row{
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;
  padding:16px 20px;border-bottom:1px solid var(--line);align-items:center;
}
.ads-row:last-child{border-bottom:none;}
.ads-row.head{background:var(--surface-alt);font-family:"IBM Plex Mono",monospace;font-size:11.5px;text-transform:uppercase;letter-spacing:0.05em;color:var(--muted);}
.ads-row .term{font-weight:700;}
.ads-row .rate{font-family:"IBM Plex Mono",monospace;font-variant-numeric:tabular-nums;}
.ads-row .rate small{color:var(--muted);}
.ads-row .rate.bundled{color:var(--blue-text);font-weight:700;}
@media (max-width:640px){
  .ads-row{grid-template-columns:1fr;gap:4px;}
}

/* ---- case studies ---- */
.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px;}
@media (max-width:960px){ .case-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .case-grid{grid-template-columns:1fr;} }

/* two-card variant (free-resources, after dropping the "coming soon" card) */
.resources-grid{grid-template-columns:repeat(2,1fr);max-width:760px;}
@media (max-width:640px){ .resources-grid{grid-template-columns:1fr;} }
.case-card{
  border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:22px;
  display:flex;flex-direction:column;gap:8px;
}
a.case-card{color:inherit;text-decoration:none;transition:border-color .12s ease;}
a.case-card:hover{border-color:var(--blue);}
.case-card .svc{font-size:13px;color:var(--muted);}
.case-card .metric{
  font-size:13px;font-weight:600;color:var(--blue-text);
  background:var(--blue-wash);display:inline-block;padding:4px 10px;border-radius:999px;margin-top:4px;
  border:1.5px solid var(--blue); /* same pill, color, and font treatment as the "unlock" and price-card badges */
  align-self:flex-start; /* .case-card is a flex column, which stretches children full-width by default */
}

/* ---- faq ---- */
.faq{margin-top:32px;display:flex;flex-direction:column;}
.faq details{border-bottom:1px solid var(--line);padding:20px 0;}
.faq summary{
  cursor:pointer;font-weight:700;font-size:17px;color:var(--ink);
  list-style:none;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{
  content:"+";color:var(--blue-text);font-size:22px;font-weight:400;line-height:1;flex:none;
}
.faq details[open] summary::after{content:"–";}
.faq .a{margin-top:14px;color:var(--ink-soft);font-size:15.5px;line-height:1.6;}

/* ---- trust row ---- */
.trust-row{display:flex;flex-direction:column;gap:16px;margin-top:32px;}
.trust-item{position:relative;padding-left:26px;}
.trust-item::before{
  content:"✓";
  position:absolute;left:0;top:1px;
  color:var(--good);font-weight:700;
}
.trust-item b{display:block;font-size:15.5px;margin-bottom:4px;}
.trust-item span{font-size:14px;color:var(--muted);}

/* ---- final cta / form ---- */
.cta-panel{
  /* was background:var(--ink), --ink flips to a LIGHT color in dark mode (it's the page's
     text-color token), which turned this into a near-white panel with light-on-light text.
     --panel-dark is fixed on purpose: this card is always dark, regardless of page theme. */
  background:var(--panel-dark);color:#fff;border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,0.08);
  padding:56px;display:grid;grid-template-columns:1.1fr 1fr;gap:48px;
}
@media (max-width:860px){ .cta-panel{grid-template-columns:1fr;padding:36px 24px;} }
.cta-panel h2{color:#fff;}
.cta-panel p{color:#C7CFD9;}
.cta-panel .trust-row b{color:#fff;}
.cta-panel .trust-row span{color:#9AA7B4;}

form.audit-form{display:flex;flex-direction:column;gap:14px;}
form.audit-form label{font-size:13px;font-weight:600;color:#C7CFD9;}
form.audit-form input,form.audit-form textarea,form.audit-form select{
  /* border was #2A3644, 1.5:1 against this panel, fails the 3:1 non-text/UI-boundary minimum */
  width:100%;padding:12px 14px;border-radius:8px;border:1.5px solid #566480;
  background:#121922;color:#fff;font-family:"Work Sans",sans-serif;font-size:15px;
}
/* placeholder was #5B6472, 2.96:1 against the input background, fails AA */
form.audit-form input::placeholder,form.audit-form textarea::placeholder{color:#8893A1;}
.hp-field{position:absolute;left:-9999px;}

/* ---- footer ---- */
footer.site{border-top:1px solid var(--line);padding:40px 0;}
footer.site .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
/* was unstyled, falling back to the default link color (blue, not bold).
   Matches the nav logo's treatment now: bold, and var(--ink) rather than a literal
   white so it doesn't disappear against the white footer background in light mode */
footer.site .brand{font-weight:800;color:var(--ink);}
footer.site .fnav{display:flex;flex-wrap:wrap;gap:12px 22px;list-style:none;margin:0;padding:0;}
footer.site .fnav a{color:var(--muted);font-size:14px;}
footer.site .fnav a:hover{color:var(--blue-text);}
footer.site .copy{font-size:13px;color:var(--muted);}

/* ---- generic page header (interior pages) ---- */
.page-head{padding:64px 0 24px;}
/* the section right after a page-head was getting its full 88px top padding on top of
   the page-head's own 24px bottom padding, 112px of dead space before any content */
.page-head + .section{padding-top:24px;}

/* ---- scroll-reveal ---- */
.reveal{opacity:1;transform:none;} /* safe default: visible, in case JS never runs */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity:0;
    transform:translateY(18px);
    transition:opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  }
  .reveal.is-visible{opacity:1;transform:none;}
}
