/* Practice Standard — practicestandard.ca */
:root {
  --ink: #1c2b33;
  --teal: #1d4655;
  --teal-deep: #12303c;
  --gold: #b98a2f;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #e4ded3;
  --muted: #5c6b72;
  --ok: #2e6b4f;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, .brand { font-family: 'Source Serif 4', Georgia, serif; }
a { color: var(--teal); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */
body::before { content: ""; display: block; height: 3px; background: var(--teal-deep); }
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--teal-deep); text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--gold); }
nav.main a {
  margin-left: 22px; text-decoration: none; color: var(--ink);
  font-size: .95rem; font-weight: 500;
}
nav.main a.cta {
  background: var(--teal); color: #fff; padding: 9px 18px; border-radius: 4px;
}
nav.main a.cta:hover { background: var(--teal-deep); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .kicker {
  display: inline-block; color: #8a6a23;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid #d8cdb4; padding-bottom: 6px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; color: var(--teal-deep); max-width: 17ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 22px 0 30px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: 6px; padding: 14px 28px; font-size: 1.05rem;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-deep); }
.btn.ghost { border: 1.5px solid var(--teal); color: var(--teal); margin-left: 12px; }
.hero .assure { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: #f2efe8; }
.sec-kicker { color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
section h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--teal-deep); margin: 8px 0 18px; }
section p.intro { color: var(--muted); max-width: 62ch; margin-bottom: 34px; }

/* Deadline band */
.band {
  background: var(--teal-deep); color: #eef4f6; padding: 40px 0;
}
.band .wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.band .date { font-family: 'Source Serif 4', serif; font-size: 2rem; color: #f5d9a0; white-space: nowrap; }
.band p { max-width: 60ch; font-size: 1rem; }
.band a { color: #f5d9a0; }

/* Cards / modules */
.grid { display: grid; gap: 20px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px;
}
.card h3 { color: var(--teal); font-size: 1.1rem; margin-bottom: 10px; }
.card ul { list-style: none; }
.card li { padding: 5px 0 5px 24px; position: relative; font-size: .95rem; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.card .mod { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* Proof / citation sample */
.proofbox {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 22px 26px; font-size: .95rem; max-width: 720px;
}
.proofbox .clause { font-style: italic; color: var(--ink); }
.proofbox .cite { display: block; margin-top: 10px; color: var(--muted); font-size: .85rem; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; color: var(--teal-deep); margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--muted); }

/* Pricing */
.price-card {
  background: var(--card); border: 2px solid var(--teal); border-radius: 10px;
  max-width: 520px; margin: 0 auto; padding: 40px; text-align: center;
}
.price-card .amount { font-family: 'Source Serif 4', serif; font-size: 3.2rem; color: var(--teal-deep); }
.price-card .amount small { font-size: 1.1rem; color: var(--muted); font-family: 'Public Sans', sans-serif; }
.price-card ul { list-style: none; text-align: left; margin: 26px 0; }
.price-card li { padding: 7px 0 7px 28px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-card .fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* Founder */
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; max-width: 800px; }
.founder .avatar {
  width: 120px; height: 120px; border-radius: 50%; background: var(--paper);
  color: var(--teal-deep); display: flex; align-items: center; justify-content: center;
  font-family: 'Source Serif 4', serif; font-size: 2.2rem;
  border: 2px solid var(--teal-deep); outline: 1px solid var(--line); outline-offset: 4px;
}
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 600; color: var(--teal-deep); }
details p { margin-top: 12px; color: var(--muted); font-size: .96rem; }

/* Article */
article.post { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
article.post h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--teal-deep); line-height: 1.2; }
article.post .meta { color: var(--muted); font-size: .9rem; margin: 14px 0 30px; }
article.post h2 { font-size: 1.45rem; color: var(--teal-deep); margin: 38px 0 14px; }
article.post p, article.post li { margin-bottom: 16px; }
article.post ul { padding-left: 22px; }
.answerbox {
  background: #eef4f2; border-left: 4px solid var(--ok); border-radius: 8px;
  padding: 20px 24px; margin: 26px 0; font-size: 1.02rem;
}
.authorbox {
  display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 22px; margin-top: 44px; font-size: .92rem; color: var(--muted);
}

/* Legal pages */
main.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
main.legal h1 { color: var(--teal-deep); margin-bottom: 8px; }
main.legal h2 { color: var(--teal-deep); font-size: 1.25rem; margin: 32px 0 10px; }
main.legal p, main.legal li { margin-bottom: 14px; font-size: .97rem; }
main.legal ul { padding-left: 22px; }

/* Disclaimer + footer */
.disclaimer {
  background: #efe9dc; border-top: 1px solid var(--line);
  padding: 26px 0; font-size: .85rem; color: #5a5342;
}
footer.site { background: var(--teal-deep); color: #c8d6db; padding: 40px 0; font-size: .88rem; }
footer.site a { color: #eef4f6; }
footer.site .cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
footer.site .small { margin-top: 22px; font-size: .78rem; color: #9db3bb; }

/* Professions dropdown */
.dd { position: relative; display: inline-block; }
.dd > a { cursor: pointer; }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(28,43,51,.12); padding: 10px; min-width: 260px; z-index: 60;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
  font-size: .92rem; margin: 0;
}
.dd-menu a:hover { background: #f2efe8; }
.dd-menu .tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.tag.live { background: #e5efe9; color: var(--ok); }
.tag.soon { background: #f3ead8; color: #7a5b1d; }

/* Obligations checker */
.checker {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 32px; max-width: 860px;
}
.checker .row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.checker label { font-size: .8rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.checker select {
  font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); min-width: 230px;
}
.checker button {
  font: inherit; font-weight: 600; background: var(--teal); color: #fff; border: 0;
  border-radius: 6px; padding: 12px 24px; cursor: pointer;
}
.checker button:hover { background: var(--teal-deep); }
.obl-list { margin-top: 26px; display: none; }
.obl-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0;
  border-top: 1px solid var(--line); font-size: .95rem;
}
.obl-item:first-child { border-top: 0; }
.obl-item .status { flex-shrink: 0; margin-top: 2px; }
.obl-item strong { color: var(--teal-deep); }
.obl-item .src { color: var(--muted); font-size: .84rem; display: block; margin-top: 2px; }
.obl-cta {
  margin-top: 22px; background: #f2efe8; border-radius: 8px; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.obl-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* Options comparison */
.compare-wrap { overflow-x: auto; }
table.compare {
  border-collapse: collapse; width: 100%; min-width: 860px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  font-size: .92rem;
}
table.compare th, table.compare td {
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.compare thead th {
  background: var(--teal-deep); color: #eef4f6; font-weight: 600; font-size: .82rem;
  letter-spacing: .03em;
}
table.compare tbody th { font-weight: 600; color: var(--teal-deep); white-space: nowrap; }
table.compare tr.ours { background: #f6f2e9; }
table.compare tr.ours th { color: var(--gold); }
table.compare td.na { color: #a89f8d; }
.compare-note {
  margin-top: 22px; max-width: 70ch; color: var(--muted); font-size: .95rem;
  border-left: 3px solid var(--gold); padding-left: 18px;
}


/* Brand seal */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { flex-shrink: 0; }

/* Document sample */
.docsample { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 36px; align-items: center; margin-top: 40px; }
.docsample img {
  width: 100%; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 18px 40px rgba(18,48,60,.14);
}
.docsample .caption { font-size: .95rem; color: var(--muted); }
.docsample .caption strong { color: var(--teal-deep); }
@media (max-width: 760px) { .docsample { grid-template-columns: 1fr; } }

/* Focused v4 */
.hero .sub {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 1.45rem;
  color: var(--teal); max-width: 30ch; line-height: 1.35; margin-top: 10px;
}
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.req { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.req h3 { font-size: 1rem; color: var(--teal-deep); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.req p { font-size: .9rem; color: var(--muted); }
.req .src { display: block; margin-top: 8px; font-size: .8rem; color: #8b8574; }
.layers { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.layer { display: grid; grid-template-columns: 240px 1fr; border-top: 1px solid var(--line); }
.layer:first-child { border-top: 0; }
.layer .name { background: #f2efe8; padding: 24px; font-family: 'Source Serif 4', serif; font-weight: 600; color: var(--teal-deep); }
.layer .name small { display: block; font-family: 'Public Sans', sans-serif; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.layer .what { padding: 24px; font-size: .95rem; }
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; } }
.launchline { text-align: center; font-size: .9rem; color: var(--muted); padding: 34px 24px 10px; }
.noendorse { font-size: .8rem; color: #8b8574; margin-top: 20px; max-width: 78ch; }

/* What is changing */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 34px 0; }
.milestone { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; border-top: 3px solid var(--teal-deep); }
.milestone.done { border-top-color: #8a9aa2; }
.milestone.now { border-top-color: var(--gold); }
.milestone .when { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 1.25rem; color: var(--teal-deep); }
.milestone .status { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.milestone .status.past { background: #e8e6e0; color: #6b6558; }
.milestone .status.current { background: #f3ead8; color: #7a5b1d; }
.milestone .status.ahead { background: #e5efe9; color: var(--ok); }
.milestone p { font-size: .92rem; color: var(--muted); margin-top: 10px; }
.countdown { font-size: 1.02rem; color: var(--teal-deep); font-weight: 600; margin: 6px 0 0; }
.sources {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal-deep);
  border-radius: 8px; padding: 24px 28px; max-width: 820px;
}
.sources h3 { color: var(--teal-deep); font-size: 1.05rem; margin-bottom: 10px; }
.sources ul { list-style: none; }
.sources li { padding: 7px 0; font-size: .95rem; border-top: 1px solid var(--line); }
.sources li:first-child { border-top: 0; }
.sources li span { color: var(--muted); font-size: .85rem; display: block; }
.getahead {
  margin-top: 34px; background: var(--teal-deep); color: #eef4f6; border-radius: 10px;
  padding: 30px 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.getahead .msg { max-width: 58ch; }
.getahead .msg strong { color: #f5d9a0; }
.getahead .btn.primary { background: #f5d9a0; color: #12303c; }
.getahead .btn.primary:hover { background: #eccb82; }
