/* The Product Studio — landing page */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  /* Colour */
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #1A1A1F;
  --ink-2: #3D3B45;
  --muted: #5C5A66;
  --faint: #A09DA8;
  --rule: #E6E3DC;
  --field: #CFCBC2;
  --placeholder: #ECEAE4;
  --indigo: #2E2259;
  --indigo-tint: #F3F1F8;
  --coral: #F07059;
  --danger: #B3261E;
  --danger-ink: #8A1F14;
  --danger-bg: #FCEEEC;
  --danger-rule: #F0C6BF;

  /* Type */
  --sans: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: Newsreader, Georgia, serif;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 28px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  --gutter: 20px;
  --max: 992px;
  --body-max: 640px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

a { color: var(--indigo); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

.skip {
  position: absolute; left: var(--s-4); top: -100px;
  padding: var(--s-2) var(--s-4); background: var(--indigo); color: #fff; border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: var(--s-4); }

/* Layout */
.wrap { padding: 0 var(--gutter); }
.container { max-width: var(--max); margin: 0 auto; }

.row {
  padding: var(--s-16) 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-12);
}
.row > h2 { flex: 1 1 200px; }
.body { flex: 999 1 560px; min-width: 0; max-width: var(--body-max); margin: 0; }
.stack { display: flex; flex-direction: column; gap: var(--s-5); }

h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.01em;
}

p, li { text-wrap: pretty; }

/* Header */
.site-header {
  padding: var(--s-5) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; flex-shrink: 0; }
.brand span { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--indigo); border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: #241a47; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Hero */
.hero { padding: var(--s-6) 0 var(--s-12); }
.eyebrow { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--indigo); }
h1 {
  margin: var(--s-5) 0 var(--s-6);
  max-width: 13em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}
.mark {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}
.lede { margin: 0; max-width: 34em; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.lede strong { font-weight: 600; color: var(--ink); }
.facts {
  margin: var(--s-8) 0 0; max-width: 640px;
  padding: 14px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-3); row-gap: var(--s-1);
  font-size: 15px; color: var(--ink-2);
}
/* Separator dot hangs off the end of each item, so a wrapped line never starts with one. */
.facts span:not(:last-child)::after { content: "·" / ""; margin-left: var(--s-3); color: var(--faint); }
.hero-cta { margin-top: var(--s-8); display: flex; }

/* Ruled lists */
.ruled { margin: 0; padding: 0; list-style: none; }
.ruled > li { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.ruled > li:first-child { padding-top: 0; }
.ruled > li:last-child { padding-bottom: 0; border-bottom: 0; }

.weeks > li { padding: 18px 0; display: flex; flex-wrap: wrap; gap: 2px var(--s-6); }
.weeks .when { flex: 0 0 132px; display: flex; flex-direction: column; }
.weeks .when strong { font-size: 15px; font-weight: 600; }
.weeks .when span { font-size: 14px; color: var(--muted); }
.weeks p { flex: 1 1 300px; margin: 0; }
.note { margin: var(--s-7) 0 0; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { margin: 0; }
.faq > div { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.faq > div:first-child { padding-top: 0; }
.faq dt { font-weight: 600; }
.faq dd { margin: var(--s-1) 0 0; color: var(--ink-2); }
.faq-more { margin: var(--s-6) 0 0; }

/* Instructor */
.instructor { gap: var(--s-7) var(--s-12); }
.portrait { flex: 1 1 200px; max-width: 240px; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--placeholder); border-radius: 4px;
}
.instructor .body p { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-size: 15px; }
/* Company logos: one muted colour, via mask, so brand colours don't compete with the page. */
.logos {
  margin: var(--s-1) 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-8);
}
.logo {
  display: block; height: var(--h, 22px); aspect-ratio: var(--ratio);
  background-color: var(--muted);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.logo-named { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.logo-named .logo { height: 20px; }

/* Peers */
.peers-grid {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: var(--s-6) var(--s-5);
}
.peer { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }
a.peer:hover .peer-name { text-decoration: underline; text-underline-offset: 3px; }
.peer-photo {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: var(--placeholder); object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-family: var(--serif); color: var(--muted);
}
.peer-text { display: flex; flex-direction: column; min-width: 0; }
.peer-name { font-size: 15px; font-weight: 500; }
.peer-role { font-size: 14px; color: var(--muted); }

.forming {
  padding: var(--s-8) var(--s-7);
  border: 1px dashed var(--field); border-radius: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.forming p { margin: 0; color: var(--ink-2); }
.forming .forming-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--ink); }
.text-link {
  margin-top: 10px; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500;
}

/* Price card */
#apply { scroll-margin-top: var(--s-6); }
.card {
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: var(--s-8) var(--s-7);
  font-size: 16px; line-height: 1.55;
}
.price-head { display: flex; flex-direction: column; gap: 6px; }
.eyebrow-rule { display: flex; align-items: center; gap: 10px; }
.eyebrow-rule::before { content: ""; display: block; width: 20px; height: 2px; background: var(--coral); }
.price { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1.1; letter-spacing: -0.01em; }
.dates {
  margin: var(--s-6) 0 0; padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-4) var(--s-6);
}
.dates dt { font-size: 13px; color: var(--muted); }
.dates dd { margin: 2px 0 0; }
#open-form { margin-top: var(--s-7); }

/* Form */
.form {
  margin-top: var(--s-7); padding-top: var(--s-7);
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-6);
}
.form[hidden] { display: none; }
.form h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.form h3:focus { outline: none; }
.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.close {
  flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius); background: none;
  color: var(--muted); font: inherit; font-size: 28px; line-height: 1; cursor: pointer;
}
.close:hover { color: var(--ink); background: var(--indigo-tint); }
.close:focus-visible { outline: 2px solid var(--indigo); outline-offset: 0; }
.req { color: var(--danger); font-weight: 500; }
.req-note { margin: calc(-1 * var(--s-3)) 0 0; font-size: 14px; color: var(--muted); }

.field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); }
fieldset.field { gap: 10px; }
.field > label, .field > legend { font-size: 15px; font-weight: 500; }
.field > legend { padding: 0; margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.err { margin: 0; font-size: 14px; color: var(--danger); }

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--field); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font: inherit;
}
.form input[type="text"], .form input[type="email"] { height: 48px; }
.form textarea { padding: var(--s-3) 14px; line-height: 1.5; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--indigo); outline-offset: 0; border-color: var(--indigo); }
.form [aria-invalid="true"] { border-color: var(--danger); }

.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px; cursor: pointer;
}
.choice input { margin: 0; width: 16px; height: 16px; accent-color: var(--indigo); }
.choice:has(input:checked) { border-color: var(--indigo); background: var(--indigo-tint); }
.choice:has(input:focus-visible) { outline: 2px solid var(--indigo); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.field.invalid .choice:not(:has(input:checked)) { border-color: var(--danger); }

.pair { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); }
.pair > :first-child { flex: 1 1 240px; }
.pair > :last-child { flex: 1 1 200px; }

.alert {
  margin: 0; padding: var(--s-3) var(--s-4);
  background: var(--danger-bg); border: 1px solid var(--danger-rule); border-radius: var(--radius);
  font-size: 15px; color: var(--danger-ink);
}
.alert[hidden] { display: none; }

.actions { display: flex; }
.actions .btn { padding: 0 var(--s-8); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success {
  margin-top: var(--s-7); padding-top: var(--s-7);
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.success[hidden] { display: none; }
.success:focus { outline: none; }
.success p { margin: 0; color: var(--ink-2); }
.success .success-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); }

/* Footer */
.site-footer {
  padding: var(--s-6) 0 var(--s-10);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-5);
  font-size: 14px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: var(--s-2); }
.footer-brand img { width: 20px; height: 20px; }

/* Small screens */
@media (max-width: 480px) {
  .hero { padding: var(--s-5) 0 var(--s-8); }
  .lede { font-size: 18px; }
  .row { padding: 48px 0; }
  .card { padding: var(--s-6) var(--s-5); }
  .logos { display: grid; grid-template-columns: repeat(2, max-content); align-items: center; gap: var(--s-5) var(--s-10); }
}
