/*
 * Both Hands: one design system for the tools (index, organisation, journey, ai).
 * Palette and voice come from both-hands.com. Light only. Phone first, 16px gutters.
 */

:root {
  color-scheme: light;
  --navy: #2B3440;
  --navy-deep: #1F262E;
  --teal: #3E6B66;
  --teal-deep: #2F534F;
  --amber: #D9A441;
  --amber-soft: #E8C074;
  --amber-ink: #8A5E17;
  --cream: #F7F3EC;
  --ink: #1C232C;
  --ink-soft: #4A5560;
  --muted: #727C86;
  --line: #E2DCCE;
  --line-strong: #B8AE98;
  --amber-tint: #FBF3E2;
  --card: #FFFFFF;

  --bg: var(--cream);
  --fg: var(--ink);
  --heading: var(--navy);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- hero ---- */

.hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.hero .lede {
  font-size: 1.08rem;
}

/* Hero shares the layout's left edge on wide screens. */
@media (min-width: 60rem) {
  .hero {
    max-width: 64rem;
  }
  .hero > * {
    max-width: 44rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-ink);
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

/* ---- landing cards ---- */

.card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

@media (min-width: 48rem) {
  .card-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 60rem) {
  .card-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card-row-3 .card {
  display: flex;
  flex-direction: column;
}

.card-row-3 .card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card h2,
.card h3 {
  margin-top: 0.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--teal-deep);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-quiet:hover {
  background: rgba(62, 107, 102, 0.08);
}

.quiet-band {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

/* ---- assessment layout ---- */

.layout {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 6rem;
}

@media (min-width: 60rem) {
  .layout {
    display: grid;
    grid-template-columns: 44rem 18rem;
    gap: 2rem;
    max-width: 64rem;
    padding-bottom: 2rem;
    align-items: start;
  }
}

.pillar {
  margin-bottom: 3.5rem;
}

.pillar > h2 {
  margin-top: 0;
}

.pillar-num {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 0.2rem;
}

.why {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.q-num {
  color: var(--amber-ink);
  font-weight: 600;
}

.q-hint {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: -0.4rem 0 0.75rem;
}

fieldset.question {
  border: none;
  padding: 0;
  margin: 0 0 2.25rem;
}

fieldset.question legend {
  font-weight: 700;
  color: var(--heading);
  font-size: 1.05rem;
  padding: 0;
  margin-bottom: 0.85rem;
}

fieldset.question label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background: var(--card);
}

fieldset.question label:hover {
  border-color: var(--teal);
}

fieldset.question label:has(input:checked) {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
  background: var(--amber-tint);
}

fieldset.question input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--amber);
}

fieldset.question input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.onefile {
  margin: 2rem 0;
}

.set-apart {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.onefile .examples {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.onefile .closing {
  margin-top: 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

.result-section {
  margin: 2rem 0;
  padding: 1.5rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 14px;
  scroll-margin-top: 1rem;
}

.result-section h2 {
  margin-top: 0.25rem;
  font-size: 1.6rem;
}

.result-section h2:focus {
  outline: none;
}

.result-section > h3 {
  margin-top: 1.75rem;
}

.result-score {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--amber-ink);
  margin-bottom: 0.75rem;
}

.cap-line {
  background: var(--cream);
  border-left: 3px solid var(--amber);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

.result-bars {
  margin: 1.25rem 0 0.5rem;
}

.tips {
  display: grid;
  gap: 0.75rem;
}

.tip {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
}

.tip h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--heading);
}

.tip p {
  margin: 0;
}

.tips-list {
  padding-left: 1.4rem;
}

.tips-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.2rem;
}

/* ---- next step (routing), shared by all three tools ---- */

.next-block {
  margin-top: 2rem;
}

.next-heading {
  margin-top: 0;
}

.next-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--card);
}

.next-card .eyebrow {
  margin-bottom: 0.3rem;
}

.next-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.next-card p {
  color: var(--ink-soft);
}

.next-card p.eyebrow {
  color: var(--amber-ink);
}

.next-primary {
  background: var(--amber-tint);
  border: 1.5px solid var(--amber);
}

.next-primary p {
  color: var(--ink);
}

.next-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 40rem) {
  .next-row {
    grid-template-columns: 1fr 1fr;
  }
}

.next-row .next-card {
  display: flex;
  flex-direction: column;
}

.next-row .next-card .btn-quiet {
  margin-top: auto;
  align-self: flex-start;
}

.result-tools {
  margin-top: 1.5rem;
}

/* ---- journey: the conversation starter for the person's own agent ---- */

.agent-prompt {
  margin-top: 1.75rem;
}

.agent-prompt-pre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0 0 0.75rem;
}

/* ---- more free tools ---- */

.more-tools {
  margin: 3rem 0 1rem;
}

.more-tools > h2 {
  font-size: 1.15rem;
}

.more-tools .card-row {
  padding: 0;
}

.more-tools .card {
  padding: 1.1rem;
}

.more-tools .card h3 {
  font-size: 1.05rem;
}


/* ---- lead form, shared by all three tools ---- */

.lead-card {
  margin: 2rem 0;
  padding: 1.5rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 1rem;
}

.lead-card h2 {
  margin-top: 0;
}

.lead-wants {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.lead-wants legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.5rem;
}

.lead-want {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background: var(--card);
}

.lead-want[hidden] {
  display: none;
}

.lead-want:has(input:checked) {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
  background: var(--amber-tint);
}

.lead-want input {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--amber);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .opt {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  background: var(--card);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  scroll-margin-bottom: 6rem;
}

.field input[aria-invalid="true"] {
  border-color: #A3412E;
}

.field-msg {
  color: #8C3424;
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.lead-note {
  margin-bottom: 1rem;
}

.lead-note summary {
  cursor: pointer;
  color: var(--teal-deep);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.lead-note[open] summary {
  margin-bottom: 0.5rem;
}

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

.lead-form .btn {
  scroll-margin-bottom: 6rem;
}

.consent-line,
.lead-form .consent-line {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
}

.form-success {
  background: rgba(62, 107, 102, 0.12);
  color: var(--teal-deep);
  font-weight: 600;
}

.form-success:focus {
  outline: 2px solid var(--teal);
}

.form-error {
  background: rgba(217, 164, 65, 0.18);
  color: var(--ink);
}

.mailto-line {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---- results panel ---- */

.results-panel {
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.panel-progress {
  height: 4px;
  background: var(--line);
}

.panel-progress-fill {
  height: 100%;
  width: 0;
  background: var(--amber);
  transition: width 0.2s ease;
}

.panel-answered {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.panel-score {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.panel-tier-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.panel-jump {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}


.results-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
}

.chevron {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.results-panel.expanded .chevron {
  transform: rotate(-135deg);
}

.results-detail {
  display: none;
  padding: 0 1rem 1rem;
}

.results-panel.expanded .results-detail {
  display: block;
}

.bar-row {
  margin-bottom: 0.75rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.bar-num {
  color: var(--ink-soft);
  white-space: nowrap;
}

.bar {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--amber);
}

.reset-link {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}

.reset-link:hover {
  color: var(--ink-soft);
}

@media (max-width: 59.99rem) {
  .results-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  }
}

.panel-heading {
  display: none;
}

@media (min-width: 60rem) {
  .results-panel {
    position: sticky;
    top: 1rem;
    align-self: start;
    border-radius: 14px;
  }
  .results-toggle {
    display: none;
  }
  .panel-heading {
    display: block;
    padding: 1rem 1rem 0;
  }
  .results-detail {
    display: block;
  }
}

/* ---- footnote fold ---- */

details.fold {
  max-width: 44rem;
  margin: 1rem auto 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

details.fold summary {
  font-family: "Fraunces", Georgia, serif;
  color: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.75rem 0;
}

details.fold p,
details.fold li {
  color: var(--ink-soft);
}

details.fold ul {
  padding-left: 1.2rem;
}

details.fold li {
  margin-bottom: 0.6rem;
}

/* ---- print: the result only ---- */

@page {
  margin: 0.5in;
}

@media print {
  body {
    background: #fff;
    font-size: 10pt;
  }
  .skip-link,
  .hero .callout,
  #pillars,
  #onefile,
  #lead-slot,
  .more-tools,
  .fold,
  .results-panel,
  .result-tools,
  .next-card .btn,
  .next-card .btn-quiet {
    display: none !important;
  }
  .layout {
    display: block;
    padding: 0;
  }
  .result-section {
    border: 1px solid #ccc;
    margin: 0;
  }
  .next-card {
    break-inside: avoid;
    padding: 0.5rem 0.75rem;
  }
  .hero .eyebrow,
  .hero .lede {
    display: none !important;
  }
  .hero {
    padding: 0 0 0.5rem;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .result-section h3 {
    margin: 0.75rem 0 0.25rem;
  }
  .next-card .print-url {
    display: block;
    margin: 0;
    font-size: 9pt;
  }
  .result-section {
    padding: 0.75rem 1rem;
  }
  .result-bars {
    margin: 0.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
  .result-section h2 {
    font-size: 1.3rem;
  }
  .result-score {
    margin-bottom: 0.25rem;
  }
  .bar-row {
    margin-bottom: 0.25rem;
  }
  .bar,
  .bar-fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tips-list li,
  .tip p {
    margin-bottom: 0.25rem;
  }
  .next-row,
  .tips {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .tip {
    padding: 0.5rem 0.75rem;
  }
  .tip p,
  .next-card p {
    font-size: 9pt;
  }
  .result-section > .eyebrow {
    display: none;
  }
  .next-block {
    margin-top: 0.5rem;
  }
  .next-card p {
    margin-bottom: 0.25rem;
  }
}

.print-url {
  display: none;
}

.lead-again {
  margin-top: 0.5rem;
}


/* Headings focused by script after a step or a result appears. */
[tabindex="-1"]:focus {
  outline: none;
}

.next-row .next-card:only-child {
  grid-column: 1 / -1;
}

@media (min-width: 60rem) {
  .quiet-band {
    max-width: 64rem;
  }
  .quiet-band > * {
    max-width: 44rem;
  }
}

.callout p:last-child {
  margin-bottom: 0;
}

.results-panel .panel-heading {
  margin-top: 0;
  font-size: 1.1rem;
}

/* ---- agent layer (2026-10-23): "paste this to your AI", prefill-link notice, footer pointer ---- */

.agent-paste {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  background: var(--amber-tint);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.agent-paste-q {
  margin: 0 0 0.55rem;
  font-weight: 600;
  color: var(--navy);
}

.agent-paste-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

.agent-paste-msg {
  margin: 0;
  padding: 0.6rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.agent-paste-note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .agent-paste-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .agent-paste-copy {
    flex: none;
  }
}

.fill-note {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--amber-tint);
  border: 1px solid var(--amber-soft);
  border-radius: 0.5rem;
  font-size: 0.92rem;
}

.fill-note p {
  margin: 0 0 0.6rem;
}

.fill-note-title {
  font-weight: 600;
  color: var(--navy);
}

.fill-note > :last-child {
  margin-bottom: 0;
}

.fill-issues {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
}

.fill-issues ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

@media print {
  .agent-paste,
  .fill-note {
    display: none !important;
  }
}

/* ---- inside the site chrome: start ---- */
/* The pages sit under the site nav and inside its container: main.wrap is the home page's .wrap (the same width and gutters). */

html {
  scroll-padding-top: 5rem;
}

/* Blocks sit flush left in the container, which supplies the gutters their own padding and auto margins used to. */
main.wrap > .hero,
main.wrap > .layout,
main.wrap > .card-row,
main.wrap > .quiet-band {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Under 60rem the reading column keeps the width it had inside that padding. */
@media (max-width: 59.99rem) {
  main.wrap > .hero,
  main.wrap > .layout,
  main.wrap > .quiet-band {
    max-width: 42rem;
  }

  /* The collapsed progress panel is fixed to the bottom edge; leave the footer room above it. */
  body:has(.results-panel) {
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 60rem) {
  main.wrap > .layout {
    grid-template-columns: minmax(0, 44rem) 18rem;
  }

  /* Below the sticky nav. */
  .results-panel {
    top: 5.5rem;
  }
}

/* The privacy and agent lines that closed the old footer. */
.page-note {
  max-width: 44rem;
  margin: 2rem 0 0;
  padding-bottom: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.page-note p {
  margin: 0 0 0.6rem;
}

.page-note p:last-child {
  margin-bottom: 0;
}

.page-note a {
  color: var(--teal);
}

@media print {
  .page-note,
  body > nav,
  body > footer {
    display: none !important;
  }
}
/* ---- inside the site chrome: end ---- */
