/* RobynNews — shared styles. Plus Jakarta Sans is the show's wordmark face (SIL Open Font Licence). */
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  /* Violet from the microphone sleeve (#6D41A1, his pick 2026-09-22) and his browser;
     light blue and lavender from the English intro's title card. */
  --bg: #F7F6FB;
  --surface: #FFFFFF;
  --ink: #18131F;
  --ink-2: #4A4458;
  --ink-3: #78728A;
  --line: #E6E2EE;
  --line-2: #D2CBE0;
  --brand: #6D41A1;
  --deep: #3A2268;
  --deep-2: #4B2E85;
  --soft: #F0EAF8;
  --accent-ink: #6D41A1;
  --sky: #EAF3FF;
  --sky-line: #CFE2FA;
  --green: #12804F;
  --green-soft: #E6F5EC;
  --green-line: #BCE3CB;
  --red: #C0392F;
  --red-soft: #FCEDEB;
  --red-line: #F1C8C2;
  --wait: #5D5770;
  --wait-soft: #EFEDF4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(24, 19, 31, .04), 0 4px 14px rgba(24, 19, 31, .05);
  --shadow-lift: 0 2px 4px rgba(24, 19, 31, .06), 0 14px 34px rgba(58, 34, 104, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Jakarta", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-weight: 700; font-size: 20px; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- preview banner ---------- */
.preview-bar {
  background: var(--deep); color: #E3DAF2; font-size: 13.5px; text-align: center; padding: 7px 16px;
}
.preview-bar strong { color: #fff; font-weight: 700; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark { font-weight: 800; letter-spacing: -0.02em; color: var(--deep); font-size: 22px; line-height: 1; }
.wordmark i { font-style: normal; color: var(--brand); }
.tagline { font-size: 13px; font-weight: 600; color: var(--ink-3); border-left: 1.5px solid var(--line-2); padding-left: 12px; line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15.5px;
  padding: 8px 14px; border-radius: 999px;
}
.ico { width: 18px; height: 18px; flex: none; }
.nav a .ico { color: var(--ink-3); }
.nav a[aria-current="page"] .ico, .nav a:hover .ico { color: var(--brand); }
.nav a:hover { color: var(--ink); background: var(--wait-soft); }
.nav a[aria-current="page"] { color: var(--deep); background: var(--soft); }

/* sign-in */
.account { position: relative; }
.btn-google {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px 8px 12px;
  font-weight: 600; font-size: 15px; transition: box-shadow .2s, border-color .2s;
}
.btn-google:hover { box-shadow: var(--shadow); border-color: var(--ink-3); }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.me-btn {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px 4px 4px; cursor: pointer; font-weight: 600; font-size: 15px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 0 0 2px #fff;
}
.avatar.sm { width: 24px; height: 24px; font-size: 11.5px; }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lift); padding: 14px; width: 260px; font-size: 14.5px;
}
.me-menu p { margin: 0 0 10px; color: var(--ink-2); }
.me-menu button { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--deep-2); color: #fff; box-shadow: var(--shadow-lift); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-quiet { background: var(--wait-soft); color: var(--ink); padding: 9px 16px; font-size: 15px; }
.btn-quiet:hover { background: #E2E9EA; color: var(--ink); }

/* ---------- page head ---------- */
.page-head { padding-top: 64px; padding-bottom: 36px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head p.lead { font-size: 20px; color: var(--ink-2); max-width: 760px; margin: 18px 0 0; line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow.has-ico { font-size: 13.5px; }
.eyebrow.has-ico .ico { width: 20px; height: 20px; }
.eyebrow.has-ico::before { display: none; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--soft); }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px; background: var(--wait-soft); color: var(--ink-2); white-space: nowrap;
}
.chip.brand { background: var(--soft); color: var(--deep); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.dark { background: var(--deep); color: #fff; }

/* ---------- toast / dialog ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--deep); color: #fff; padding: 13px 20px; border-radius: 14px; box-shadow: var(--shadow-lift);
  font-weight: 500; font-size: 15px; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog.signin {
  border: 0; border-radius: 22px; padding: 30px; max-width: 420px; width: calc(100% - 32px);
  box-shadow: var(--shadow-lift); color: var(--ink);
}
dialog.signin::backdrop { background: rgba(58, 34, 104, .35); backdrop-filter: blur(3px); }
dialog.signin h3 { font-size: 22px; margin-bottom: 10px; }
dialog.signin p { color: var(--ink-2); font-size: 15.5px; }
dialog.signin .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: #fff; padding: 40px 0 56px; font-size: 15px; color: var(--ink-2); }
.site-footer .wrap { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: auto; flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 6px; }
  .tagline { display: none; }
  .account { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; gap: 0; }
  .nav a { padding: 7px 9px; font-size: 14.5px; white-space: nowrap; gap: 6px; }
  .nav a .ico { width: 16px; height: 16px; }
  .btn-google { padding: 7px 13px 7px 10px; font-size: 14px; }
  .me-btn .me-name { display: none; }
  .me-btn { padding: 3px; }
  .page-head { padding-top: 36px; padding-bottom: 24px; }
  .preview-bar .more-text { display: none; }
  .page-head p.lead { font-size: 18px; }
  body { font-size: 16px; }
}

@media (max-width: 430px) { .nav a .ico { display: none; } .nav a { padding: 7px 8px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* page headings with a picture (or the funnel) on the right */
.page-head.with-robyn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.head-robyn { width: 210px; height: auto; margin-bottom: -36px; pointer-events: none; user-select: none; }
@media (max-width: 860px) {
  .page-head.with-robyn { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: start; }
  .head-robyn { width: 96px; margin: 0; }
  .page-head.with-robyn:has(.funnel-viz) { grid-template-columns: 1fr; }
  .page-head .funnel-viz { width: 100%; max-width: 340px; justify-self: center; }
}
