/* ============================================================
   StudioHub website — shared design system.

   Every page in projects/website/pages/ links this file. Change a
   colour, a heading size or the card treatment here and all pages
   follow. Anything only one page needs stays in that page's <style>.

   The values are measured from the live studiohub.ai homepage
   (computed styles + full-page screenshots, 2026-08-29), not from
   memory: blue #4fbdff with a texture image, quote cards white with
   a 1px black border / 20px radius / soft drop shadow, wave-curved
   bottoms on the blue bands (the same SVG path GHL uses), black
   rounded footer panel.
   ============================================================ */

:root {
  --bg-light:  #f5f2ff;   /* hero area */
  --blue:      #4fbdff;
  --blue-ink:  #188bf6;
  --black:     #000000;
  --white:     #ffffff;
  --ink:       #111318;
  --body:      #405561;
  --grey:      #7a8b95;
  --line:      #e7e7ee;
  --radius:    20px;
  --card-shadow: 0 20px 30px rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--body);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
p, li, a, td { overflow-wrap: break-word; }
section { padding: 44px 0; }
p { margin: 0 0 18px; }
a { color: var(--blue-ink); }

/* ---- type scale ------------------------------------------------ */

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 20px; }
h1 { font-size: 60px; font-weight: 800; }
h2 { font-size: 40px; font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }

.sub-lead { font-size: 17px; color: var(--ink); }

/* ---- nav bar ------------------------------------------------------ */

.nav { padding: 22px 0 6px; }
.nav .wrap { display: flex; align-items: center; gap: 28px; max-width: 1160px; }
.nav .logo { width: 156px; height: auto; display: block; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav-links a:hover { color: var(--blue-ink); }
.nav-links a.login { color: var(--blue); font-weight: 700; }
@media (max-width: 860px) {
  .nav-links li { display: none; }
  .nav-links li.nav-cta { display: block; }
}

/* ---- buttons ----------------------------------------------------- */
/* Two variants, as on the live site: black in the page body, white
   with a black border in the nav. Both carry the external-link icon. */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--black); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 10px;
  border: 2px solid var(--black);
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.btn-outline { background: var(--white); color: var(--black); box-shadow: 3px 4px 0 rgba(0,0,0,0.55); padding: 11px 20px; font-size: 15px; }

/* ---- hero -------------------------------------------------------- */
/* The hero area (nav included) sits on the light lavender; the rest
   of the page is white. */

.hero-area { background: var(--bg-light); }
.hero { text-align: center; padding: 44px 0 36px; }
.hero h1 { max-width: 980px; margin: 0 auto 22px; }
.hero .disciplines { font-weight: 700; color: var(--ink); font-size: 16px; margin: 26px 0 30px; }
.hero .disciplines span { color: var(--grey); font-weight: 400; padding: 0 10px; }

/* ---- quote cards --------------------------------------------------- */
/* Full-width white cards, stacked: quote text, a thin divider, then a
   round photo with the name and place. Measured off the live page:
   1px black border, 20px radius, soft drop shadow. */

.quotes { display: grid; gap: 26px; margin: 0; padding: 0; }
.quotes.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.quote {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 32px 22px;
  margin: 0;
}
.quote p { font-size: 17px; color: var(--ink); margin: 0 0 18px; }
.quote .who-said {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.quote .who-said img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.quote .who-said strong { display: block; color: var(--ink); font-size: 16px; }
.quote .who-said span { color: var(--grey); font-size: 14px; }

/* ---- blue bands ------------------------------------------------- */
/* Solid blue with the live site's texture image over it, straight top,
   wave-curved bottom (same SVG path the live site uses). Content that
   should hang over the bottom edge (the video card) gets .overhang. */

.band {
  position: relative;
  /* The live site layers a paper texture over the blue; the texture file
     is opaque (site/blue-texture.webp on R2 if ever wanted), so flat blue
     is used here — visually identical at any normal zoom. */
  background: var(--blue);
  padding: 64px 0 90px;
  margin: 30px 0 0;
}
.band h2, .band h3 { color: var(--white); }
.band p { color: rgba(255,255,255,0.97); }
.band .wave {
  position: absolute; left: 0; bottom: -1px; width: 100%;
  overflow: hidden; line-height: 0; transform: rotate(180deg);
}
.band .wave svg { position: relative; display: block; width: calc(282% + 1.3px); height: 90px; }
.band .wave path { fill: var(--white); }
.band .wrap { position: relative; z-index: 2; }

/* ---- browser-style video frame ----------------------------------- */

.browser-frame {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 12px 14px 14px;
  text-align: left;
}
.browser-frame .dots { display: flex; gap: 5px; padding: 4px 2px 10px; }
.browser-frame .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--black); }
.browser-frame video { display: block; width: 100%; height: auto; border-radius: 8px; background: #0d1017; }
.overhang { margin-bottom: -150px; }
.after-overhang { padding-top: 190px; }

/* ---- mini cards (the numbered "3 things" rows in a band) ---------- */

.mini-cards { display: grid; gap: 16px; margin: 0 0 26px; }
.mini-card {
  background: var(--white); border-radius: 10px; padding: 20px 24px;
  text-align: left; font-size: 16px; color: var(--ink);
}
.mini-card p { color: var(--ink); margin: 0; }

/* ---- success-story video carousel --------------------------------- */

.stories-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.stories-head h2 { margin: 0; max-width: 760px; }
.stories-nav { margin-left: auto; white-space: nowrap; display: flex; gap: 18px; align-items: center; }
.stories-nav button {
  background: none; border: none; font: inherit; font-weight: 700;
  color: var(--ink); cursor: pointer; padding: 4px 2px;
}
.stories-nav button.prev { color: var(--grey); }
.stories-track {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 30px; scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }
.story-card {
  flex: 0 0 460px; max-width: 86vw; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--black);
  border-radius: 12px; box-shadow: var(--card-shadow);
  padding: 18px 20px; margin: 0;
}
.story-card .frame { position: relative; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #0d1017; }
.story-card .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-card figcaption { padding-top: 14px; }
.story-card strong { display: block; color: var(--ink); font-size: 18px; }
.story-card span { color: var(--grey); font-size: 15px; }
.story-card em { color: var(--blue); font-style: italic; }

/* ---- two-column feature (photo + text) ---------------------------- */

.feature { display: grid; grid-template-columns: 440px 1fr; gap: 50px; align-items: center; }
.feature .photo { width: 100%; height: auto; border-radius: 20px; display: block; }
.feature h2 { margin-bottom: 22px; }
.feature .fact-line { color: var(--ink); font-weight: 700; margin: 0 0 6px; font-size: 16.5px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .photo { max-width: 480px; margin: 0 auto; } }

/* ---- callout card -------------------------------------------------- */

.box {
  background: var(--white); border: 1px solid var(--black);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
  padding: 30px 36px; text-align: left;
}
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box ul li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.box ul li:last-child { border-bottom: none; }

/* ---- legal pages ---------------------------------------------------- */
/* Policy sidebar + article. Legal text needs a quieter type scale than
   the marketing pages. */

.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 20px; }
.side-nav h4 { margin-bottom: 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0 0 2px; }
.side-nav a {
  display: block; padding: 7px 12px; border-radius: 8px;
  color: var(--body); text-decoration: none; font-size: 15px;
}
.side-nav a:hover { color: var(--blue-ink); }
.side-nav li.current a { background: var(--bg-light); color: var(--ink); font-weight: 700; }
.legal article h1 { font-size: 38px; margin-bottom: 26px; }
.legal article h2 { font-size: 24px; margin: 34px 0 14px; }
.legal article h3 { font-size: 19px; margin: 26px 0 12px; }
.legal article p, .legal article li { font-size: 16px; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .side-nav { position: static; }
}

/* ---- footer ------------------------------------------------------------ */

footer.site {
  background: var(--black);
  color: rgba(255,255,255,0.72);
  border-radius: 15px;
  margin: 40px 20px 20px;
  padding: 56px 28px 28px;
  text-align: center;
  font-size: 13.5px;
}
footer.site .logo { width: 160px; height: auto; display: block; margin: 0 auto 28px; }
footer.site p { margin: 0 auto 14px; max-width: 780px; }
footer.site a { color: rgba(255,255,255,0.9); }
footer.site .foot-row {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 34px; padding-top: 18px; font-size: 12.5px;
}

/* ---- phones -------------------------------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 21px; }
  section { padding: 32px 0; }
  .hero { padding: 30px 0 26px; }
  .quote { padding: 22px 20px 18px; }
  .band { padding: 44px 0 70px; }
  .overhang { margin-bottom: -90px; }
  .after-overhang { padding-top: 120px; }
  .box { padding: 22px 20px; }
  .stories-head { flex-wrap: wrap; }
  footer.site { margin: 32px 12px 12px; padding: 44px 18px 20px; }
  footer.site .foot-row { flex-direction: column; align-items: center; }
}
