/* Placeholder styles. Swap in your Framer fonts and colours so the app matches danacannamdesign.com. */
:root {
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e3e3;
  --accent: #2f5bea;
  --bg: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px; }

.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 40px; }

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

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card a {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.card a:hover, .card a:focus-visible { border-color: var(--accent); }
.card h3 { margin: 4px 0; }
.card p { margin: 0; color: var(--muted); }
.step { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.placeholder { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; }

footer { margin-top: 48px; color: var(--muted); font-size: 0.9rem; }

/* Forms */
.notice { background: #f4f6fb; border-radius: 10px; padding: 12px 16px; font-size: 0.95rem; }
.form { display: grid; gap: 20px; margin: 24px 0; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form label.inline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.form label.inline input { margin-top: 5px; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #c9c9c9; border-radius: 8px; width: 100%;
}
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 16px; margin: 0; }
.form legend { font-weight: 600; padding: 0 6px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hint { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
button { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); }
.status { min-height: 1.5em; color: var(--muted); }

/* Generated document */
.document { margin-top: 24px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; }
.document h1 { font-size: 1.6rem; }
.document h2 { font-size: 1.2rem; margin-top: 28px; }

@media print {
  .no-print { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .document { border: none; padding: 0; margin: 0; }
  body { font-size: 11.5pt; }
}

/* Country picker */
.country { margin-bottom: 40px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.country h2 { margin-top: 0; font-size: 1.2rem; }
.framework-note { margin-top: 16px; font-size: 0.95rem; }
.framework-note p { margin: 6px 0 0; color: var(--muted); }

/* Self-rating rows */
.form label.rating { display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; font-weight: 400; margin: 10px 0; }
.form label.rating[hidden] { display: none; }
.document h3 { font-size: 1.05rem; margin-top: 24px; }
.document blockquote { margin: 0; padding: 8px 16px; border-left: 3px solid var(--accent); color: var(--muted); }

/* Practice sandbox */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tabs button { font-size: 0.95rem; }
.exercise h2 { margin-top: 0; }
.field { display: grid; gap: 6px; font-weight: 600; margin: 12px 0; }
.field select, #prompt-text { font: inherit; padding: 10px 12px; border: 1px solid #c9c9c9; border-radius: 8px; width: 100%; }
.notes { background: #f6f6f4; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.notes-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.notes p:last-child { margin-bottom: 0; }
.feedback { margin: 16px 0; }
.feedback.warn { border-left: 4px solid #c0392b; padding-left: 14px; }
.feedback.ok { border-left: 4px solid #1e8e3e; padding-left: 14px; }
.feedback .summary { font-weight: 600; }
.feedback code { background: #fdecea; padding: 1px 4px; border-radius: 4px; }
.parts { list-style: none; padding: 0; }
.parts li { margin: 6px 0; }
.parts li.present .mark { color: #1e8e3e; }
.parts li.missing { color: var(--muted); }
.parts li.missing strong { color: var(--ink); }
.handoff { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.handoff h3 { margin-top: 0; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.sentences { display: grid; gap: 8px; margin: 12px 0; }
.sentence { text-align: left; font-weight: 400; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.sentence[aria-pressed=true] { border-color: #c0392b; background: #fdecea; }
.compare { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 12px 0; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.option { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.option h3 { margin: 0 0 8px; }
.option pre { white-space: pre-wrap; font: inherit; background: #f6f6f4; padding: 10px; border-radius: 8px; }
.prompt-text { font-family: ui-monospace, Menlo, monospace; font-size: 0.9rem; }

/* Previous / next step links */
.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-nav a { display: grid; gap: 2px; grid-row: 1; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.step-nav a:hover, .step-nav a:focus-visible { border-color: var(--accent); }
.step-nav a span { font-size: 0.85rem; color: var(--muted); }
.step-nav a.step-next { grid-column: 2; text-align: right; }
.step-nav a strong { color: var(--accent); }

/* Two paths on the home page */
.paths { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 16px 0 40px; }
@media (max-width: 640px) { .paths { grid-template-columns: 1fr; } }
.path { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.path h3 { margin-top: 0; }
.path p { color: var(--muted); margin-top: 0; }
.path-steps { padding-left: 20px; margin: 0 0 20px; flex: 1; }
.path-steps li { margin: 4px 0; }
a.button { display: inline-block; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; text-align: center; }
a.button.secondary { background: transparent; color: var(--accent); }

/* Learning plan progress */
.progress-panel { border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 24px 0; }
.progress-panel h2 { margin-top: 0; }
.progress-panel progress { width: 100%; height: 14px; accent-color: var(--accent); }
.bar-text { margin: 6px 0 16px; color: var(--muted); }
.up-next { background: #f4f6fb; border-radius: 10px; padding: 16px; }
.up-next h3 { margin: 0 0 8px; }
.finished { background: #eaf6ec; border-radius: 10px; padding: 16px; }
.finished h3 { margin-top: 0; }
.progress-panel details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.progress-panel summary, .setup summary { font-weight: 600; cursor: pointer; }
.session-list { padding-left: 0; list-style: none; }
.session-list label.inline { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.session-list input { margin-top: 5px; }
#checkin-ratings label.rating { display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; margin: 10px 0; }
#checkin-ratings label.rating[hidden] { display: none; }
#checkin-ratings select, #rem-day, #rem-time, #record-name { font: inherit; padding: 8px 10px; border: 1px solid #c9c9c9; border-radius: 8px; width: 100%; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.compare-table th, .compare-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.setup { margin: 16px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; }
.record h1 { margin-top: 4px; }

@media print {
  body.print-record main > *:not(#record) { display: none !important; }
}

/* "Why?" disclosures and the folded full plan */
.why { margin: -24px 0 32px; font-size: 0.95rem; color: var(--muted); }
.why summary { cursor: pointer; color: var(--accent); font-weight: 600; width: max-content; }
.why p { margin: 6px 0 0; }
.full-plan { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; }
.full-plan > summary { font-weight: 600; cursor: pointer; }
.full-plan .actions { margin-top: 16px; }
@media print {
  .full-plan { border: none; padding: 0; margin: 0; }
}

/* 90-day results entry */
.results-grid { display: grid; grid-template-columns: 1fr 80px 80px; gap: 8px 10px; align-items: center; margin: 8px 0 16px; }
.results-grid input { font: inherit; padding: 8px; border: 1px solid #c9c9c9; border-radius: 8px; width: 100%; }
.results-grid strong { font-size: 0.85rem; color: var(--muted); }
#results-form .row, #results-form > label { margin-top: 12px; }

/* Larger organizations */
.larger { margin: 8px 0 40px; padding: 20px; border-radius: 12px; background: #f4f6fb; }
.larger h2 { margin-top: 0; font-size: 1.2rem; }

/* Larger tap targets for checkboxes and radio buttons (WCAG 2.2, 2.5.8) */
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.form label.inline input, .session-list input { margin-top: 1px; }

/* Backup and feedback */
.file-button { cursor: pointer; }
.feedback-link { margin-top: 32px; text-align: center; font-size: 0.95rem; }

/* Tables in documents: a visible grid, so values never look like they're floating */
.document table, .compare-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.document th, .document td, .compare-table th, .compare-table td { border: 1px solid #cfd3da; padding: 8px 10px; text-align: left; vertical-align: top; }
.document th, .compare-table th { background: #f4f6fb; font-weight: 600; }
.document tbody tr:nth-child(even) td { background: #fafbfc; }
@media print {
  .document th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Measure page: Now / At 90 days tabs */
.mode-tabs { display: flex; gap: 8px; margin: 8px 0 16px; }
.field-hint { font-weight: 400; font-size: 0.9rem; color: #b3261e; }
.field-hint.ok { color: var(--muted); }
@media (max-width: 560px) {
  .document { padding: 20px 16px; }
  .document th, .document td { padding: 6px 8px; }
}
