/* Profit and Wonder — site styles. Colours, fonts and props match the channel banner. */

@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/nunito-800.woff2") format("woff2"); }

:root {
  --peach: #FCEBD2;      /* left of the banner */
  --mint: #D3EFEE;       /* right of the banner */
  --paper: #FFFDF9;
  --gold: #E39A2B;       /* "Profit" */
  --teal: #1B9AA0;       /* "Wonder" */
  --teal-deep: #11686C;  /* links and small teal text (passes contrast on paper) */
  --ink: #1E3A40;
  --muted: #4F6468;
  --gutter: clamp(18px, 5vw, 56px);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 600 18px/1.6 "Nunito", system-ui, sans-serif;
}
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 20px "Outfit", sans-serif; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: flex; gap: 22px; font-weight: 800; font-size: 16px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero: the banner, live. Title, then the three props standing on a white floor. */
.hero {
  background:
    linear-gradient(to bottom, transparent 72%, var(--paper) 100%),
    linear-gradient(90deg, var(--peach) 0 40%, var(--mint) 60% 100%);
  text-align: center; padding: 8px 0 0;
}
.wordmark { font-size: clamp(54px, 10vw, 128px); letter-spacing: -0.03em; line-height: 0.95; margin-top: clamp(24px, 6vw, 64px); }
.wordmark .p { color: var(--gold); }
.wordmark .w { color: var(--teal); }
.hero .lede { max-width: 36ch; margin: 24px auto 0; font-size: clamp(19px, 2.2vw, 22px); color: var(--ink); }
.button {
  display: inline-block; margin-top: 28px; padding: 15px 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 800; text-decoration: none;
}
.button:hover { background: var(--teal-deep); color: var(--paper); }

.stage { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 3vw, 40px); margin: clamp(32px, 6vw, 64px) auto 0; max-width: 860px; padding: 0 var(--gutter) 40px; }
.stage figure { margin: 0; position: relative; }
.stage figure::after { /* soft contact shadow on the floor */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 18px;
  background: radial-gradient(closest-side, rgba(30, 58, 64, 0.22), transparent); z-index: -1;
}
.stage img { display: block; width: 100%; height: auto; }
.stage .chart { width: 27%; }
.stage .you { width: 22%; }
.stage .factory { width: 42%; }

/* The wonder list: the questions that start every video. */
.block { padding: clamp(56px, 9vw, 104px) 0; }
.wonder h2 { max-width: 20ch; }
.wonder .intro { color: var(--muted); max-width: 52ch; margin-top: 16px; }
.questions { list-style: none; margin: 40px 0 0; padding: 0; columns: 2 380px; column-gap: 56px; }
.questions li {
  break-inside: avoid; position: relative; padding: 14px 0 14px 46px;
  font: 700 clamp(21px, 2.3vw, 26px)/1.25 "Outfit", sans-serif; letter-spacing: -0.01em;
}
.questions li::before {
  content: "?"; position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--teal);
}
.questions li:nth-child(odd)::before { background: var(--gold); }
.wonder .outro { margin-top: 36px; color: var(--muted); max-width: 52ch; }

/* How the videos work: plain prose in two columns, on the mint side of the palette. */
.how { background: var(--mint); }
.how .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; margin-top: 28px; }
.how h3 { margin-bottom: 8px; }
.how p { max-width: 46ch; }

/* App facts (needed for Google sign-in review). Quiet on purpose. */
.app h2 { font-size: clamp(26px, 3vw, 34px); }
.app .intro { max-width: 62ch; margin-top: 14px; }
.app dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 56px; margin: 28px 0 0; }
.app dt { font-weight: 800; }
.app dd { margin: 4px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 2px solid var(--peach); padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }

/* Privacy page */
.doc { padding: 24px 0 72px; }
.doc article { max-width: 70ch; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc .meta { color: var(--muted); margin-top: 10px; }
.doc .callout { background: var(--mint); border-radius: 14px; padding: 18px 22px; margin: 24px 0; }
.doc .callout p { margin: 0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
code { font-size: 0.9em; background: var(--peach); padding: 1px 6px; border-radius: 5px; }

@media (max-width: 720px) {
  .nav { gap: 16px; font-size: 15px; }
  .brand span { display: none; }
  .how .cols, .app dl { grid-template-columns: 1fr; }
}
