/* Peterson Institute of Neurocognitive Evaluation (PINE) */
:root {
  --pine-900: #12291f;
  --pine-700: #1f4634;
  --pine-500: #2f6b4f;
  --sage: #e2eadf;
  --paper: #f7f4ec;
  --card: #fffdf8;
  --ink: #1b211d;
  --muted: #5a655e;
  --brass: #a8762a;
  --brass-soft: #f1e4c8;
  --line: #ddd6c6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18, 41, 31, .06), 0 12px 32px -12px rgba(18, 41, 31, .22);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
}
img, svg { max-width: 100%; }
a { color: var(--pine-700); text-underline-offset: 3px; }
a:hover { color: var(--pine-500); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.15; color: var(--pine-900); margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 236, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--pine-900); }
.brand-mark { width: 34px; height: 34px; fill: var(--pine-700); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: .08em; }
.brand-text span { font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.brand-light { color: #fff; }
.brand-light .brand-mark { fill: #cfe0d2; }
.brand-light .brand-text span { color: #b9cabd; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-color: var(--line); }
body[data-page="curriculum"] [data-nav="curriculum"],
body[data-page="course"] [data-nav="curriculum"],
body[data-page="report-writers"] [data-nav="report-writers"],
body[data-page="pricing"] [data-nav="pricing"],
body[data-page="about"] [data-nav="about"] { border-color: var(--brass) !important; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; padding: 11px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--pine-900); border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font: 600 .98rem var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pine-700); color: #fff; }
.btn-primary:hover { background: var(--pine-900); color: #fff; }
.btn-ghost { border-color: var(--pine-700); color: var(--pine-700); background: transparent; }
.btn-ghost:hover { background: var(--sage); }
.btn-light { background: var(--paper); color: var(--pine-900); }
.btn-light:hover { background: #fff; color: var(--pine-900); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-dark { background: var(--pine-900); color: #dfe8e1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: #cfe0d2; }
.eyebrow { font: 600 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 1em; display: block; }
.section-dark .eyebrow { color: #dcb873; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.section-dark .lede { color: #b9cabd; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* Hero */
.hero { overflow: hidden; position: relative; z-index: 0; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(900px 420px at 85% 0%, var(--sage), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--pine-500); }
.page-hero { padding: clamp(48px, 6vw, 76px) 0 clamp(36px, 5vw, 56px); background: linear-gradient(180deg, var(--sage), transparent); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); max-width: 20ch; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Report mock */
.report { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 26px 26px 22px; position: relative; transform: rotate(1.2deg); }
.report::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; z-index: -1; transform: rotate(-2.4deg); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid var(--pine-900); padding-bottom: 12px; margin-bottom: 16px; }
.report-head b { font-family: var(--display); font-size: 1.08rem; font-weight: 600; color: var(--pine-900); display: block; line-height: 1.2; }
.report-head small { color: var(--muted); font-size: .76rem; }
.stamp { font: 600 .66rem var(--body); letter-spacing: .12em; color: var(--brass); border: 1.5px solid var(--brass); border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
.report h5 { font: 600 .7rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.score { display: grid; grid-template-columns: 118px 1fr 34px; align-items: center; gap: 10px; font-size: .82rem; margin-bottom: 7px; }
.score i { display: block; height: 8px; border-radius: 4px; background: var(--sage); position: relative; overflow: hidden; }
.score i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--pine-500); border-radius: 4px; }
.score.low i::after { background: var(--brass); }
.score span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.lines span { display: block; height: 7px; border-radius: 4px; background: #ece7da; margin-bottom: 7px; }
.lines span:nth-child(2) { width: 94%; } .lines span:nth-child(3) { width: 78%; } .lines span:nth-child(4) { width: 88%; } .lines span:nth-child(5) { width: 52%; }
.report-foot { font-size: .7rem; color: var(--muted); margin: 12px 0 0; font-style: italic; }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.section-alt .card { background: var(--paper); }
.card p { color: var(--muted); font-size: .98rem; }
.card > :last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--pine-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-feature { padding: 36px; border-top: 4px solid var(--pine-700); }
.card-feature.brass { border-top-color: var(--brass); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--sage); display: grid; place-items: center; margin-bottom: 18px; color: var(--pine-700); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font: 600 .7rem var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--sage); color: var(--pine-700); margin: 0 6px 12px 0; }
.tag.brass { background: var(--brass-soft); color: #7a531a; }
.tags { margin-bottom: 4px; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: .7em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.7 2.7L13 6.6' fill='none' stroke='%231f4634' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.section-dark .checks li::before { background-color: #cfe0d2; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stat b { font: 500 2.6rem/1 var(--display); color: #fff; display: block; margin-bottom: 8px; }
.stat span { color: #b9cabd; font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; }
.section-alt .steps li { background: var(--paper); }
.steps li::before { content: counter(step); font: 500 1.5rem var(--display); color: var(--brass); width: 44px; height: 44px; border: 1.5px solid var(--brass); border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Course catalog */
.track { margin-bottom: 52px; }
.track:last-child { margin-bottom: 0; }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--pine-900); padding-bottom: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.track-head h2 { font-size: 1.6rem; margin: 0; }
.track-head span { color: var(--muted); font-size: .9rem; }
.course-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.course-row .num { font: 500 1rem var(--display); color: var(--brass); padding-top: 3px; }
.course-row h3 { font-size: 1.2rem; margin-bottom: 6px; }
.course-row h3 a { color: inherit; text-decoration: none; }
.course-row h3 a:hover { text-decoration: underline; }
.course-row p { color: var(--muted); font-size: .97rem; margin: 0; max-width: 68ch; }
.course-row .tag { margin: 4px 0 0; }

/* Module list */
.modules { list-style: none; padding: 0; counter-reset: mod; }
.modules li { counter-increment: mod; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.modules li::before { content: counter(mod, decimal-leading-zero); font: 500 1rem var(--display); color: var(--brass); padding-top: 2px; }
.modules h3 { font-size: 1.1rem; margin-bottom: 4px; }
.modules p { color: var(--muted); font-size: .96rem; margin: 0; }
.sidebar { position: sticky; top: 92px; }
.sidebar dl { margin: 0 0 20px; }
.sidebar dt { font: 600 .72rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.sidebar dd { margin: 2px 0 0; }
.with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }

/* Pricing */
.price-card { position: relative; }
.price-card.featured { border: 2px solid var(--pine-700); box-shadow: var(--shadow); }
.price-card .flag { position: absolute; top: -13px; left: 24px; background: var(--pine-700); color: #fff; font: 600 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font: 500 1.5rem/1.2 var(--display); color: var(--pine-900); margin: 6px 0 4px; }
.price small { display: block; font: 400 .85rem var(--body); color: var(--muted); margin-top: 6px; }
.price-card .btn { margin-top: auto; }
.price-card ul { margin: 18px 0 24px; font-size: .96rem; }

table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--pine-900); color: #fff; font-weight: 600; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare tbody th { font-weight: 600; color: var(--pine-900); width: 26%; }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 500 1.12rem var(--display); color: var(--pine-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--body); color: var(--brass); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 68ch; }

/* Bio */
.bio { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--pine-700), var(--pine-900)); display: grid; place-items: center; color: #cfe0d2; font: 500 3.4rem var(--display); letter-spacing: .04em; }
.portrait small { display: block; font: 400 .7rem var(--body); letter-spacing: .08em; text-align: center; opacity: .7; margin-top: 6px; }

/* Notice */
.notice { border-left: 4px solid var(--brass); background: var(--brass-soft); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; }
.notice > :last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Forms */
form.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; font-size: .92rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine-500); box-shadow: 0 0 0 3px var(--sage); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list b { display: block; font: 600 .72rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--pine-900); color: #b9cabd; padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.1fr; gap: 40px; }
.site-footer h2 { font: 600 .74rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: #dcb873; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #e6efe8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { margin-top: 16px; max-width: 34ch; }
.site-footer h2 + .footer-note { margin-top: 0; }
.footer-link { font-weight: 600; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 44px; padding-top: 22px; font-size: .8rem; color: #93a798; }
.footer-legal p { margin-bottom: .6em; max-width: 100ch; }

/* WordPress */
.site-nav a[aria-current="page"]:not(.btn) { border-color: var(--brass); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { height: auto; border-radius: var(--radius); }
.entry-content blockquote { border-left: 4px solid var(--brass); margin: 1.5em 0; padding: 4px 0 4px 22px; color: var(--muted); font-family: var(--display); font-size: 1.15rem; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--card); }
.pagination .page-numbers.current { background: var(--pine-700); color: #fff; border-color: var(--pine-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 8px; font-weight: 500; margin-bottom: 20px; }
.form-status.ok { background: var(--sage); color: var(--pine-900); }
.form-status.err { background: #f8e1dc; color: #7a2314; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--pine-700); color: #fff; border-radius: 8px; font: 600 .98rem var(--body); padding: 13px 22px;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--pine-900); color: #fff; }
.woocommerce span.onsale { background: var(--brass); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--pine-700); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .with-sidebar { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .report { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  .brand-text span { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4, .steps, .stats, .field-row, .bio, .footer-grid { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr; gap: 6px; }
  .portrait { max-width: 200px; }
  .card-feature { padding: 26px; }
  .score { grid-template-columns: 96px 1fr 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
