/* ============================================================
   COSTMEHOURS  /  BASE / DESIGN SYSTEM
   Shares the CostMeHours design system with the marketing site.
   Colours come from the shared token file (design-tokens.css, loaded
   before this file); this file owns type, layout and components only.
   Colour balance: about 65% ivory/white, 20% deep slate, 10% slate
   teal, 3% soft teal, 2% brushed gold. Serif italic display, mono labels.
   ============================================================ */

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

:root{
  /* Colours: see styles/design-tokens.css (shared with the website). */

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", "Courier New", monospace;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw:   1180px;
  --radius: 8px;
  --shadow: 0 8px 32px rgba(28,31,38,0.09);
  --shadow-lg: 0 22px 64px rgba(28,31,38,0.16);
}

html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px;}

/* ---------- type helpers ---------- */
.eyebrow{
  font-family:var(--mono);font-size:11px;letter-spacing:0.28em;
  text-transform:uppercase;color:var(--gold);display:inline-block;
}
.display{font-family:var(--serif);font-weight:400;font-style:italic;line-height:1.12;letter-spacing:-0.01em;}
h1,h2,h3{font-weight:400;}
.lede{font-size:18px;color:var(--muted);max-width:60ch;line-height:1.7;}
.rule{display:block;width:40px;height:2px;background:var(--gold);margin:16px 0 0;border-radius:2px;}

/* ---------- buttons ---------- */
.btn{
  font-family:var(--sans);font-size:13.5px;font-weight:600;letter-spacing:0.04em;
  display:inline-flex;align-items:center;gap:9px;justify-content:center;
  padding:14px 34px;border-radius:var(--radius);border:1px solid transparent;cursor:pointer;
  transition:transform .15s ease,box-shadow .25s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
.btn .arw{transition:transform .2s ease;}
.btn:hover .arw{transform:translateX(4px);}
.btn-gold{background:var(--gold);color:var(--navy);border-color:var(--gold);}
.btn-gold:hover{background:var(--gold-lt);border-color:var(--gold-lt);box-shadow:0 10px 26px rgba(212,160,23,.28);transform:translateY(-1px);}
.btn-navy{background:var(--navy);color:#fff;}
.btn-navy:hover{background:var(--navy-mid);box-shadow:0 10px 26px rgba(10,22,40,.28);transform:translateY(-1px);}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,.30);color:#fff;}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold);}
.btn-outline{background:transparent;border-color:var(--line);color:var(--heading);}
.btn-outline:hover{border-color:var(--blue);color:var(--blue);}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none;}

/* ============================================================
   NAV
   ============================================================ */
.nav{position:sticky;top:0;z-index:60;background:var(--nav-bg);
  backdrop-filter:saturate(160%) blur(16px);-webkit-backdrop-filter:saturate(160%) blur(16px);
  border-bottom:1px solid var(--line);}
.nav-inner{max-width:var(--maxw);margin:0 auto;padding:0 28px;height:74px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;}
.nav-logo{display:inline-flex;align-items:center;gap:11px;}
.nav-logo img{height:34px;width:34px;border-radius:8px;}
.nav-logo .wordmark{font-family:var(--serif);font-style:italic;font-size:20px;color:var(--heading);}
.nav-logo .wordmark b{font-style:normal;font-weight:600;}
.nav-right{display:flex;align-items:center;gap:12px;}

/* theme toggle (same behaviour as the main site) */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:32px;
  border:1.5px solid var(--line);border-radius:5px;background:transparent;color:var(--heading);
  cursor:pointer;padding:0;transition:background .18s ease,border-color .18s ease;}
.theme-toggle:hover{background:var(--wash);border-color:var(--gold);}
.theme-toggle .ti{width:16px;height:16px;stroke:currentColor;display:none;}
html[data-theme="light"] .theme-toggle .ti-light{display:block;}
html[data-theme="dark"] .theme-toggle .ti-dark{display:block;}
html:not([data-theme]) .theme-toggle .ti-system{display:block;}

/* ============================================================
   HERO
   ============================================================ */
.hero{position:relative;overflow:hidden;color:#fff;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(0,183,232,.12), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(15,94,156,.10), transparent 55%),
    linear-gradient(150deg,var(--navy) 0%,#152038 55%,#0a1e38 100%);}
.hero::before{content:"";position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:54px 54px;
  mask-image:radial-gradient(120% 100% at 60% 0%,#000 35%,transparent 78%);
  -webkit-mask-image:radial-gradient(120% 100% at 60% 0%,#000 35%,transparent 78%);pointer-events:none;}
.hero-inner{max-width:var(--maxw);margin:0 auto;padding:88px 28px 96px;position:relative;z-index:2;
  display:grid;grid-template-columns:1.1fr .9fr;gap:54px;align-items:center;}
.hero-eyebrow{color:var(--gold);}
.hero h1{font-family:var(--serif);font-style:italic;font-size:clamp(38px,6vw,64px);
  line-height:1.05;letter-spacing:-0.015em;margin:20px 0 0;}
.hero h1 .accent{color:var(--cyan);}
.hero-sub{margin-top:24px;font-size:18px;line-height:1.7;color:rgba(255,255,255,.82);max-width:48ch;}
.hero-cta{margin-top:32px;display:flex;gap:14px;flex-wrap:wrap;}
@media(max-width:880px){.hero-inner{grid-template-columns:1fr;gap:36px;padding:64px 28px 72px;}}

/* ============================================================
   SECTIONS
   ============================================================ */
section.band{padding:80px 0;}
section.band.wash{background:var(--wash);}
section.band.tight{padding:56px 0;}
.section-head{max-width:760px;margin-bottom:40px;}
.section-head h2{font-family:var(--serif);font-style:italic;font-size:clamp(26px,3.4vw,38px);
  color:var(--heading);line-height:1.14;margin-top:14px;}
.section-head p{margin-top:16px;}
.center{text-align:center;margin-left:auto;margin-right:auto;}

/* ---------- feature trio ---------- */
.trio{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.aud{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:30px 28px;
  transition:transform .2s ease,box-shadow .25s ease,border-color .2s ease;}
.aud:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#cdd4e0;}
.aud .tag{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted-lt);}
.aud h3{font-family:var(--serif);font-style:italic;font-size:22px;color:var(--heading);margin:12px 0 10px;}
.aud p{font-size:14.5px;color:var(--muted);line-height:1.65;}
@media(max-width:820px){.trio{grid-template-columns:1fr;}}

/* ---------- wedge (quote block) ---------- */
.wedge{background:var(--navy);color:#fff;border-radius:14px;padding:44px 48px;position:relative;
  overflow:hidden;border-left:4px solid var(--gold);}
.wedge::after{content:"";position:absolute;top:-80px;right:-60px;width:340px;height:340px;
  background:radial-gradient(circle,rgba(0,183,232,.18),transparent 68%);}
.wedge .eyebrow{color:var(--gold);}
.wedge p.lead{font-family:var(--serif);font-style:italic;font-size:clamp(22px,2.6vw,30px);
  line-height:1.4;margin-top:14px;max-width:34ch;position:relative;z-index:1;}
.wedge p.tag{margin-top:20px;font-size:14.5px;color:rgba(255,255,255,.74);max-width:62ch;line-height:1.7;position:relative;z-index:1;}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{background:var(--navy);color:rgba(255,255,255,.7);padding:56px 0 28px;}
.footer-inner{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;align-items:flex-start;}
.footer-brand{display:flex;align-items:center;gap:12px;}
.footer-brand img{height:40px;width:40px;border-radius:9px;}
.footer-brand .wordmark{font-family:var(--serif);font-style:italic;font-size:20px;color:#fff;}
.footer-brand .wordmark b{font-style:normal;font-weight:600;}
.footer-brand-col{max-width:42ch;}
.footer p.note{font-size:13px;line-height:1.7;color:rgba(255,255,255,.6);max-width:40ch;margin-top:14px;}
.footer .lic{margin-top:12px;font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.4);}
.footer-links{display:flex;gap:40px;flex-wrap:wrap;}
.footer-links h5{font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.44);margin-bottom:14px;}
.footer-links ul{list-style:none;}
.footer-links li{margin-bottom:10px;font-size:13.5px;}
.footer-links li.addr{color:rgba(255,255,255,.5);line-height:1.7;}
.footer-links a{color:rgba(255,255,255,.68);transition:color .2s;}
.footer-links a:hover{color:var(--gold);}
.footer-links a .arw{font-style:normal;}
.footer-bottom{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;color:rgba(255,255,255,.44);}
.footer-bottom .sep{color:var(--gold);margin:0 8px;}
.footer-bottom .app-version{font-family:var(--mono);letter-spacing:.04em;opacity:.85;}

/* ---------- reveal ---------- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease;}
.reveal.in{opacity:1;transform:none;}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none;}html{scroll-behavior:auto;}}

/* ============================================================
   THEME: LIGHT / DARK / SYSTEM
   ============================================================ */
body,.nav,.footer,section.band{transition:background-color .25s ease,color .25s ease,border-color .25s ease;}

/* Dark-theme colour values live in the shared token file (design-tokens.css).
   These rules only add structural separators that colour tokens cannot express. */
:root[data-theme="dark"] .hero,:root[data-theme="dark"] .footer{
  border-top:1px solid rgba(255,255,255,.10);border-bottom:1px solid rgba(255,255,255,.10);}
:root[data-theme="dark"] .wedge{border:1px solid rgba(255,255,255,.14);border-left:4px solid var(--gold);}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]):not([data-theme="dark"]) .hero,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .footer{
    border-top:1px solid rgba(255,255,255,.10);border-bottom:1px solid rgba(255,255,255,.10);}
}
