/* Paper v2. The navigation, lockup, highlighter mask and footer come from styles.css. */
:root {
  --paper: #f3f1ec; --sheet: #fffefb; --ink-3: #67645d;
  --shade: 22 22 21; --key-edge: #000; --shadow-strength: 1;
  --rest: 0 1px 2px -2px rgb(var(--shade) / calc(.07 * var(--shadow-strength))),
          0 1px 2px rgb(var(--shade) / calc(.04 * var(--shadow-strength)));
  --key-time: 240ms;
}
:root[data-theme="dark"] {
  --paper: #151514; --sheet: #1f1e1c; --ink-3: #8e8a82;
  --shade: 0 0 0; --key-edge: #8e8a82; --shadow-strength: 2.8;
}
body { background: var(--paper); font-variant-numeric: tabular-nums; }
.site-header .btn-primary {
  border-radius: 10px; box-shadow: 0 2px 0 var(--key-edge), var(--rest);
  transition: transform var(--key-time) cubic-bezier(.2,.7,.2,1), background-color 110ms, box-shadow var(--key-time);
}
.site-header .btn-primary:active { transform: translateY(2px) scale(.988); box-shadow: none; }
.price-page { padding-top: 64px; }
.skip-pricing { position: fixed; top: -5rem; left: 12px; z-index: 60; padding: 10px 16px; background: var(--sheet); }
.skip-pricing:focus { top: 8px; }
.price-intro { text-align: center; padding: clamp(48px,6.5vw,100px) 0 clamp(46px,5vw,76px); }
.price-intro h1 {
  font: 600 clamp(2.4rem,4.65vw,4.65rem)/1.05 var(--sans);
  letter-spacing: -.03em;
}
.price-intro h1 em {
  font: italic 400 1.25em/1.05 var(--serif);
  letter-spacing: -.02em;
}
.price-intro p { max-width: 58ch; margin: 1.55rem auto 0; font-size: clamp(1rem,1.3vw,1.15rem); color: var(--ink-2); text-wrap: pretty; }
.ruled {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  border-bottom: 1px solid var(--rule-ink); padding-bottom: 9px;
}
.ruled h2 { font: 600 1rem/1.4 var(--sans); letter-spacing: -.01em; }
.ruled p, .tier-note, .tier-price span, .filter, .pickers label { font-size: .875rem; color: var(--ink-3); }
.tiers { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,1.2vw,16px); margin-top: 18px; }
.tier {
  min-width: 0; padding: clamp(16px,1.8vw,26px);
  display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--rest);
}
.tier.featured { border-color: var(--ink); }
.tier-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.tier-head h3 { font: 600 1.125rem/1.35 var(--sans); letter-spacing: -.015em; }
.tier-note { font-size: .82rem; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 1.2rem; }
.tier-price strong { font-size: clamp(2rem,3vw,2.85rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; }
.tier-fit { margin: .8rem 0 1.15rem; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.tier-facts { margin-top: auto; padding: .9rem 0; list-style: none; border-top: 1px solid var(--rule); font-size: .96rem; line-height: 1.7; }
.compare-link { align-self: flex-start; padding: .3rem 0; font-weight: 550; font-size: .9rem; }
.compare-link, .pricing-faq details a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.compare-link:hover, .pricing-faq details a:hover { text-decoration-color: currentColor; }
.compare-section, .pricing-faq { margin-top: clamp(46px,5.3vw,86px); scroll-margin-top: 82px; }
.compare-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.35fr); column-gap: clamp(30px,7.5vw,112px); padding-top: 22px; }
.pickers { gap: 16px; }
.pickers label { display: block; flex: 1; max-width: 145px; }
.select-wrap { display: block; position: relative; margin-top: 4px; }
.select-wrap::after { content: ''; width: 6px; height: 6px; position: absolute; right: 15px; top: 43%; transform: rotate(45deg); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); pointer-events: none; }
.pickers select { appearance: none; width: 100%; min-height: 44px; padding: 6px 30px 6px 12px; font: 550 1rem var(--sans); background: var(--sheet); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 10px; cursor: pointer; }
.compare-story h3 { font-size: clamp(1.5rem,2.4vw,2.45rem); line-height: 1.09; letter-spacing: -.03em; max-width: 16ch; margin: 1.35rem 0 .7rem; }
.compare-story p { color: var(--ink-2); max-width: 40ch; }
.compare-values { min-width: 0; }
.enhancements, .compare-link, .theme-toggle { display: none; }
.pricing-ready .pickers, .pricing-ready .filter { display: flex; }
.pricing-ready .compare-link { display: inline-block; }
.pricing-ready .theme-toggle { display: inline-grid; }
.filter { justify-content: end; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 6px; cursor: pointer; }
.filter input { width: 17px; height: 17px; accent-color: var(--ink); }
.compare-values table { width: 100%; border-collapse: collapse; text-align: left; font-size: .97rem; table-layout: fixed; }
.compare-values :is(th,td) { border-bottom: 1px solid var(--rule-2); padding: .7rem .45rem; line-height: 1.4; overflow-wrap: break-word; }
.compare-values th:first-child { width: 48%; padding-left: 0; }
.compare-values thead th { color: var(--ink); font-weight: 600; }
.compare-values tbody th { color: var(--ink-2); font-weight: 400; }
.compare-values .fine { margin-top: .8rem; }
.pricing-faq { margin-bottom: clamp(48px,6vw,84px); }
.pricing-faq details { border-bottom: 1px solid var(--rule-2); }
.pricing-faq summary { padding: 1rem 1.4rem 1rem 0; font-size: 1.08rem; font-weight: 550; cursor: pointer; position: relative; list-style: none; }
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::after { content: ''; width: 8px; height: 8px; border: solid var(--ink-2); border-width: 0 1.5px 1.5px 0; position: absolute; right: 4px; top: 44%; transform: rotate(45deg); }
.pricing-faq details[open] summary::after { transform: rotate(225deg); }
.pricing-faq details p { max-width: 65ch; margin-bottom: 1rem; color: var(--ink-2); }
@supports (corner-shape: squircle) { .tier { corner-shape: squircle; border-radius: 29px; } }
@media(max-width: 900px) { .tiers { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 680px) {
  .compare-grid { grid-template-columns: 1fr; row-gap: 1.3rem; }
  .compare-story h3 { max-width: none; }
  .pricing-ready .filter { justify-content: start; }
  .price-intro h1 { font-size: clamp(1.85rem,7.7vw,3.15rem); }
  .price-intro p { max-width: 36ch; }
}
@media(max-width: 490px) {
  .tiers { gap: 10px; }
  .tier { padding: 14px; }
  .tier-head { flex-direction: column; align-items: start; gap: 0; min-height: 41px; }
  .tier-facts { font-size: .89rem; }
  .tier-fit { font-size: .94rem; }
  .tier-price { margin-top: 9px; gap: 3px; }
  .tier-price span { font-size: .82rem; }
  .tier-price strong { font-size: 2rem; }
}
@media(max-width: 350px) { .tiers { grid-template-columns: 1fr; } .tier-head { flex-direction: row; min-height: 0; } }
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header .btn-primary, .site-header .btn-primary:active { transform: none; transition: none; }
}

/* One worksheet for the student's choices, one raised sheet for Pro. */
.finder { margin-top: clamp(46px,5.3vw,86px); scroll-margin-top: 82px; }
.finder-jump { display: inline-block; margin-top: .9rem; font-weight: 550; text-decoration: underline; text-underline-offset: 4px; }
.finder-layout {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  align-items: start; gap: clamp(24px,5vw,76px); margin-top: 22px;
}
.finder-controls, .finder-match { display: none; }
.pricing-ready .finder-controls { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.finder-controls legend { padding: 0; margin: 0 0 18px; font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.finder-fields { display: grid; gap: 12px; }
.finder-fields label { font-size: .9rem; color: var(--ink-2); }
.finder-fields select {
  appearance: none; width: 100%; min-height: 44px; padding: 8px 34px 8px 12px;
  font: 500 1rem var(--sans); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule-2); border-radius: 10px; cursor: pointer;
}
.finder-sync {
  display: flex; align-items: flex-start; gap: .65rem; padding: .8rem 0 .4rem;
  font-size: .94rem; line-height: 1.42; cursor: pointer;
}
.finder-sync input { flex: none; accent-color: var(--ink); width: 1rem; height: 1rem; margin: .18rem 0 0; }
.finder-example {
  min-height: 40px; padding: 6px 0; background: transparent; border: 0;
  font: 550 .9rem var(--sans); color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--rule-2); text-underline-offset: 4px; cursor: pointer;
}
.finder-example:hover { text-decoration-color: currentColor; }
.pricing-ready .finder-match { display: block; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule-2); }
.finder-label, .pro-heading p, .pro-note { font-size: .875rem; color: var(--ink-3); }
.finder-match h3 { margin: .25rem 0; font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
#fit-price { margin-left: .2rem; font: 500 .96rem var(--sans); color: var(--ink-2); letter-spacing: 0; }
#fit-reason { color: var(--ink-2); font-size: .96rem; margin-top: .3rem; text-wrap: pretty; }

.pro-sheet {
  min-width: 0; padding: clamp(22px,2.8vw,38px); border-radius: 18px;
  border: 1px solid var(--rule-ink); box-shadow: var(--rest); background: var(--sheet);
}
.pro-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; flex-wrap: wrap; }
.pro-heading h3 { font: 600 clamp(1.6rem,2.35vw,2.4rem)/1.12 var(--sans); letter-spacing: -.035em; }
.pro-heading p { white-space: nowrap; }
.pro-heading strong { color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.pro-intro { margin-top: .7rem; font-size: 1rem; color: var(--ink-2); text-wrap: pretty; }
.pro-specs {
  display: grid; grid-template-columns: 1fr 1fr; margin: 1.3rem 0 1.1rem;
  padding: 1.05rem 0; border-block: 1px solid var(--rule-2);
}
.pro-specs > div { display: flex; flex-direction: column-reverse; gap: .15rem; }
.pro-specs > div + div { padding-left: clamp(12px,2vw,26px); border-left: 1px solid var(--rule-2); }
.pro-specs dt { color: var(--ink-2); font-size: .9rem; }
.pro-specs dd { font: 600 clamp(1.75rem,3vw,2.75rem)/1.12 var(--sans); letter-spacing: -.045em; }
.pro-specs dd small { font: 500 .96rem var(--sans); color: var(--ink-2); letter-spacing: 0; }
.pro-delta h4 { font: 600 1.08rem/1.35 var(--sans); letter-spacing: -.015em; margin: 0 0 .4rem; }
.pro-delta p { color: var(--ink-2); font-size: .97rem; text-wrap: pretty; }
.pro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.2rem; }
.pro-actions .compare-link { align-self: center; }
.pro-actions [hidden] { display: none; }
.pro-note { margin-top: .7rem; }
@supports (corner-shape: squircle) { .pro-sheet { corner-shape: squircle; border-radius: 29px; } }
@media(max-width: 700px) {
  .finder-layout { grid-template-columns: 1fr; gap: 22px; }
  .finder-fields select { font-size: 1rem; }
  .pro-actions a { min-height: 44px; align-content: center; }
}
