/* Jill Proud brand, applied from the brand skill (v1.7) and web skill (v1.0).
   Gloock: titles. Montserrat: body, captions, buttons, form text. Brandon: the all-caps line only. Just Lovely: one script accent. */
@font-face { font-family: "Gloock"; src: url(fonts/Gloock-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/Montserrat-Regular-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/Montserrat-SemiBold-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Brandon Grotesque"; src: url(fonts/BrandonGrotesque-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Just Lovely"; src: url(fonts/JustLovely.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --white: #FFFFFF;
  --stone: #E5DFDA;
  --t2: #1A5069;   /* main text, bands */
  --t1: #11656E;   /* supporting text */
  --b1: #0F7899;   /* buttons, links, all-caps line on white */
  --t4: #053242;   /* text on tan */
  --tan: #E0A65A;
  --tan-hover: #D18E42;
  --dark-orange: #96401E;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Just Lovely", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--t2);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: .02em;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 36px 20px 8px; }

/* ---------- Colour bands ---------- */
.band { background: var(--t2); color: var(--white); }
.band-inner { max-width: 680px; margin: 0 auto; padding: 24px 20px; display: flex; align-items: center; gap: 18px; }
.band-inner.stack { display: block; padding: 36px 20px 32px; }
.title-band .eyebrow { color: var(--stone); margin-bottom: 4px; }
.band-title { font-size: 32px; line-height: 1.15; letter-spacing: .01em; margin: 0; color: var(--white); }
.title-band.large .band-inner { padding: 40px 20px 36px; }
.title-band.large .band-title { font-size: 42px; }
@media (min-width: 700px) {
  .band-title { font-size: 36px; }
  .title-band.large .band-title { font-size: 62px; }
}
.headshot { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tan); flex-shrink: 0; }
.title-band.large .headshot { width: 104px; height: 104px; }
@media (min-width: 700px) { .title-band.large .headshot { width: 128px; height: 128px; } }

.footer-band { margin-top: 32px; }
.footer-band .eyebrow { color: var(--stone); }
.footer-line { font-size: 22px; line-height: 1.4; color: var(--white); margin: 0 0 16px; }
.footer-cred { font-size: 16px; color: var(--white); margin: 20px 0 0; }

/* ---------- Screens ---------- */
.screen { display: none; animation: fade .35s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 400; margin: 0 0 16px; letter-spacing: .01em; }
h2 { font-size: 32px; line-height: 1.15; color: var(--t2); }
h3 { font-size: 24px; line-height: 1.3; color: var(--t1); }
@media (min-width: 700px) { h2 { font-size: 41px; } h3 { font-size: 28px; } }
p { margin: 0 0 18px; }
.eyebrow { font-size: 17px; letter-spacing: .2em; text-transform: uppercase; color: var(--b1); margin-bottom: 12px; }
.caption { font-size: 16px; color: var(--t1); }
.credibility { font-size: 17px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--t1); margin: 28px 0 18px; }
.privacy { margin-top: 22px; }
.divider { width: 88px; height: 3px; border-radius: 3px; background: var(--tan); margin: 4px 0 28px; }
.error { color: var(--dark-orange); font-size: 17px; min-height: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Video placeholder ---------- */
.video {
  aspect-ratio: 16 / 9; border-radius: 22px; background: var(--stone);
  display: flex; align-items: center; justify-content: center; text-align: center;
  margin-bottom: 28px; overflow: hidden;
}
.video p { margin: 0; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; width: 100%; padding: 17px 30px; margin: 8px 0;
  border: 2px solid var(--b1); border-radius: 999px;
  background: var(--b1); color: var(--white);
  font-family: var(--sans); font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn:hover:not(:disabled) { background: var(--t2); border-color: var(--t2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--b1); }
.btn.outline:hover { background: var(--b1); color: var(--white); border-color: var(--b1); }
.btn.tan { background: var(--tan); border-color: var(--tan); color: var(--t4); }
.btn.tan:hover { background: var(--tan-hover); border-color: var(--tan-hover); color: var(--t4); }
@media (min-width: 700px) { .btn { width: auto; min-width: 260px; } }
.link-btn { display: block; background: none; border: 0; padding: 14px 0; color: var(--b1); text-decoration: underline; font-family: var(--sans); font-size: 17px; letter-spacing: .02em; cursor: pointer; }

/* ---------- Pattern choices ---------- */
.patterns { display: grid; gap: 14px; margin: 22px 0 18px; }
.pattern {
  text-align: left; width: 100%; padding: 18px 20px; border-radius: 16px;
  border: 2px solid var(--stone); background: var(--white); color: var(--t2);
  font-family: var(--sans); font-size: 19px; line-height: 1.4; letter-spacing: .02em; cursor: pointer; transition: border-color .2s, background .2s;
}
.pattern strong { display: block; font-weight: 400; font-size: 23px; margin-bottom: 6px; letter-spacing: .01em; }
.pattern span { font-size: 17px; color: var(--t1); }
.pattern:hover { border-color: var(--tan); }
.pattern[aria-pressed="true"] { border-color: var(--b1); background: var(--stone); }

/* ---------- Inputs ---------- */
textarea {
  width: 100%; padding: 15px 17px; border-radius: 16px; border: 2px solid #CFC6BF;
  font-family: var(--sans); font-size: 19px; line-height: 1.5; letter-spacing: .02em; color: var(--t2); resize: vertical; background: var(--white);
}
textarea::placeholder { color: var(--t1); opacity: 1; }
textarea:focus { outline: none; border-color: var(--b1); }
label.q { display: block; font-size: 22px; color: var(--t2); margin: 24px 0 10px; line-height: 1.35; }

/* ---------- Panels and coaching reply ---------- */
.question { font-size: 26px; line-height: 1.35; color: var(--t2); margin-bottom: 26px; }
.panel { background: var(--stone); border-radius: 16px; padding: 22px; margin: 18px 0; }
.panel h3 { margin-bottom: 8px; }
.label { font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--t1); margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }
.panel.note { border-left: 4px solid var(--tan); }
.quote { border-left: 3px solid var(--tan); padding-left: 16px; margin: 8px 0 0; }
mark { background: transparent; color: var(--dark-orange); font-weight: 700; }
.panel mark { color: #7E3518; } /* darker orange on stone keeps contrast above 4.5:1 */
.rewrite { font-size: 23px; line-height: 1.4; }

/* Rebuild example */
.example .ex-before { color: var(--t2); margin-bottom: 14px; }
.example .ex-q { font-size: 16px; color: var(--t1); margin-bottom: 10px; }
.example .ex-q span { display: block; color: var(--t2); font-size: 19px; }
.example .ex-after { font-size: 22px; line-height: 1.4; border-left: 3px solid var(--tan); padding-left: 16px; margin-top: 16px; }
.your-sentence { margin: 26px 0 8px; }
.your-sentence .quote { font-size: 22px; line-height: 1.4; }

/* Redirect card */
.panel.redirect { border-left: 4px solid var(--tan); }

/* Close */
.script-accent { font-family: var(--script); font-size: 42px; line-height: 1.3; letter-spacing: 0; color: var(--b1); margin: 8px 0 18px; }
@media (min-width: 700px) { .script-accent { font-size: 50px; } }

/* Loading */
.loading { text-align: center; padding: 64px 0; }
.loading .dot { width: 14px; height: 14px; margin: 0 auto 16px; border-radius: 50%; background: var(--tan); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* Logo */
.logo-row { display: flex; justify-content: flex-end; padding-top: 32px; }
.logo { height: 38px; width: auto; }

/* ---------- Terms overlay ---------- */
.terms-overlay { position: fixed; inset: 0; background: rgba(5, 50, 66, .72); display: flex; align-items: flex-start; justify-content: center; padding: 20px 12px; overflow-y: auto; z-index: 10; }
.terms-overlay[hidden] { display: none; }
.terms-card { background: var(--white); border-radius: 16px; max-width: 600px; width: 100%; padding: 28px 22px; border-top: 6px solid var(--tan); }
.headshot.small { width: 64px; height: 64px; margin-bottom: 14px; }
.terms-list { padding-left: 20px; margin: 0 0 20px; }
.terms-list li { margin-bottom: 12px; }
.agree { display: flex; align-items: center; gap: 12px; font-size: 19px; margin: 8px 0 12px; cursor: pointer; }
.agree input { width: 24px; height: 24px; accent-color: var(--b1); }

/* Fixes */
[hidden] { display: none !important; }
@media (max-width: 699px) { .title-band:not(.large) .band-title { font-size: 26px; } }
body[data-screen="welcome"] .footer-cred { display: none; }

/* ---------- Keep your results ---------- */
.panel.keep .btn.outline { background: var(--white); }
.panel.keep .btn.outline:hover { background: var(--b1); }

/* ---------- Feedback (testing) ---------- */
.test-strip { background: var(--stone); color: var(--t2); display: flex; justify-content: center; align-items: center; gap: 14px; padding: 8px 16px; font-size: 16px; }
.test-strip[hidden] { display: none !important; }
.test-btn { background: var(--white); color: var(--b1); border: 2px solid var(--b1); border-radius: 999px; padding: 6px 16px; font-family: var(--sans); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.test-btn:hover { background: var(--b1); color: var(--white); }
.agree.small { font-size: 17px; align-items: flex-start; }
.agree.small input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; }

/* ---------- Print ---------- */
.print-report { display: none; }
@media print {
  @page { margin: 18mm; }
  body > *:not(.print-report) { display: none !important; }
  .print-report { display: block !important; color: #1A5069; font-size: 12pt; line-height: 1.5; }
  .print-report .pr-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #E0A65A; padding-bottom: 12px; margin-bottom: 18px; }
  .print-report .pr-head img { width: 60px; height: 60px; border-radius: 50%; }
  .print-report h1 { font-size: 24pt; margin: 0; font-weight: 400; }
  .print-report .pr-sub { font-size: 10pt; letter-spacing: .2em; text-transform: uppercase; color: #11656E; margin: 0; }
  .print-report h2 { font-size: 10pt; letter-spacing: .2em; text-transform: uppercase; color: #11656E; margin: 16px 0 4px; font-weight: 400; }
  .print-report p { margin: 0 0 8px; }
  .print-report .pr-big { font-size: 15pt; }
  .print-report .pr-foot { margin-top: 24px; font-size: 9.5pt; color: #11656E; border-top: 1px solid #E5DFDA; padding-top: 10px; }
  .print-report h2, .print-report .pr-big { break-after: avoid; }
}

/* ---------- Sept 30 updates (Jill's feedback) ---------- */
/* Welcome title on one line on wider screens, a little larger */
.title-band.large .band-inner { max-width: 1040px; }
@media (min-width: 900px) {
  .title-band.large .band-title { font-size: 68px; white-space: nowrap; }
}
.lead { font-size: 23px; line-height: 1.45; }
.br-wide { display: none; }
@media (min-width: 700px) { .br-wide { display: inline; } }

/* Pattern cards: example line */
.pattern .pattern-ex { display: block; font-style: normal; font-size: 17px; color: var(--t2); margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--tan); }

/* Rebuild: bold label, numbered and clearer questions, answers in white boxes */
.label.strong { font-weight: 700; color: var(--t2); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tan); color: var(--t4); font-size: 17px; margin-right: 10px; flex-shrink: 0; letter-spacing: 0; }
.example .ex-q { font-size: 19px; color: var(--t1); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; }
.example .ex-q .ans { flex-basis: 100%; display: block; margin-top: 8px; background: var(--white); color: var(--t2); border-radius: 10px; padding: 10px 14px; font-size: 19px; }
label.q { display: flex; align-items: flex-start; }
label.q .num { margin-top: 1px; }
.num { line-height: 1; }
.example .ex-q { flex-wrap: wrap; align-items: flex-start; }
.example .ex-q .num { margin-top: 0; }
.qt { flex: 1; min-width: 0; }
.title-band.large .band-inner { justify-content: center; }
.example .ex-q .num { display: inline-flex; font-size: 17px; color: var(--t4); }
.example .ex-q .qt { display: inline; font-size: 19px; color: var(--t1); }

/* Email options */
.email-options { margin-top: 12px; }
.email-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 4px; }
.btn.small { padding: 12px 10px; margin: 0; min-width: 0; width: 100%; font-size: 16px; }


/* ================= Brand v1.7 typography (overrides earlier rules) ================= */
:root {
  --serif: "Gloock", Georgia, serif;
  --body: "Montserrat", Arial, sans-serif;
  --caps: "Brandon Grotesque", Arial, sans-serif;
  --sans: var(--body);
}
body { font-family: var(--body); letter-spacing: 0; line-height: 1.65; }
strong, b { font-weight: 600; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4, .eyebrow, .label, .caption, .credibility, .btn, .quote, .question { text-wrap: balance; }

/* Titles: Gloock */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; line-height: 1.1; overflow-wrap: break-word; }
h2 { font-size: clamp(26px, 8.5vw, 32px); }
h3 { font-size: 24px; color: var(--t1); }
@media (min-width: 768px) { h2 { font-size: 41px; } h3 { font-size: 28px; } }

/* Title band: Gloock, ALL CAPS */
.band-title { font-family: var(--serif); text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; overflow-wrap: break-word; text-wrap: balance; }
.band-title, .title-band:not(.large) .band-title { font-size: clamp(22px, 6.5vw, 26px); }
.title-band.large .band-title { font-size: clamp(24px, 7.5vw, 28px); }
@media (min-width: 768px) {
  .band-title, .title-band:not(.large) .band-title { font-size: 30px; }
  .title-band.large .band-title { font-size: 46px; white-space: normal; }
}
@media (min-width: 1100px) {
  .title-band.large .band-inner { max-width: 1120px; }
  .title-band.large .band-title { font-size: 62px; white-space: nowrap; }
}

/* The all-caps line: Brandon only */
.eyebrow, .label, .credibility { font-family: var(--caps); }
.eyebrow { font-size: 15px; }
@media (min-width: 768px) { .eyebrow { font-size: 17px; } }
.label.strong { font-weight: 400; color: var(--t2); letter-spacing: .24em; }

/* Body-family elements */
.caption, .footer-line, .footer-cred, .lead, .rewrite, .pattern, .pattern span, .pattern-ex, textarea, label.q, .agree, .link-btn, .test-strip, .num, .example .ex-q, .example .ex-q .qt, .ans { font-family: var(--body); letter-spacing: 0; }
.lead { font-size: 21px; line-height: 1.55; }
.footer-line { font-size: 21px; }
.rewrite { font-size: 21px; }
.example .ex-after, .your-sentence .quote { font-size: 20px; }

/* Key lines that deserve the serif: the coach's question and pattern names */
.question { font-family: var(--serif); font-size: 26px; line-height: 1.3; letter-spacing: .01em; }
.pattern strong { font-family: var(--serif); font-size: 24px; letter-spacing: .01em; line-height: 1.2; }
.pattern span { font-size: 17px; }
.pattern .pattern-ex { font-size: 17px; }
label.q { font-size: 20px; }

/* Buttons: Montserrat ALL CAPS, 0.1em */
.btn { font-family: var(--body); font-size: 17px; letter-spacing: .1em; padding: 14px 34px; min-height: 52px; line-height: 1.4; }
.btn.small { padding: 12px 10px; font-size: 16px; }
.test-btn { font-family: var(--body); letter-spacing: .1em; font-size: 14px; min-height: 44px; }
.link-btn { text-underline-offset: 3px; min-height: 44px; }

/* Form fields per web skill */
textarea { border-color: #CFC6BF; padding: 14px 18px; min-height: 52px; }

/* Wider screens: keep paragraphs about 70 characters */
.wrap { max-width: 720px; padding-left: 20px; padding-right: 20px; }
.band-inner { max-width: 720px; }

@media print {
  .print-report { font-family: "Montserrat", Arial, sans-serif !important; letter-spacing: 0; }
  .print-report h1 { font-family: "Gloock", Georgia, serif !important; text-transform: uppercase; letter-spacing: .02em; font-size: 22pt; }
  .print-report h2, .print-report .pr-sub { font-family: "Brandon Grotesque", Arial, sans-serif !important; }
  .print-report .pr-big { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; }
}
mark { font-weight: 600; }

/* ================= Start page (welcome and sign in) ================= */
.field-label { display: block; font-family: var(--body); font-size: 17px; color: var(--t2); margin: 8px 0 8px; }
input[type="email"] {
  width: 100%; min-height: 52px; padding: 14px 18px; border-radius: 16px; border: 2px solid #CFC6BF;
  font-family: var(--body); font-size: 19px; letter-spacing: 0; color: var(--t2); background: var(--white);
}
input[type="email"]:focus { outline: none; border-color: var(--b1); }
.text-link { color: var(--b1); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--t2); }
.access-panel .access-email { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin-bottom: 6px; overflow-wrap: anywhere; }
.start-page .panel.note h3 { margin-bottom: 8px; }
.start-page .screen .btn + .btn { margin-top: 4px; }
