/* Graphite plan cards with deep purple controls and paper illustration panels. */
body[data-page="plans"] {
  --accent: #4A1A6E;
  --accent-hover: #5B2382;
  --accent-text: #F1F0F2;
  --muted: #C0BEC4;
  --subtle: #A5A2AA;
  --line: #3A393F;
}

.pricing-page {
  --sheet-purple: #4A1A6E;
  --sheet-purple-hover: #5B2382;
  --sheet-edge: #57555D;
  --sheet-line: #3A393F;
  --sheet-panel: #19191D;
  --sheet-text: #F6F5F7;
  --sheet-muted: #C0BEC4;
  color: var(--sheet-text);
}
.pricing-notebook { padding: clamp(36px, 4vw, 56px) 0 clamp(48px, 6vw, 82px); }
.pricing-masthead { margin-bottom: clamp(24px, 2.5vw, 35px); }
.pricing-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 13px;
  color: var(--sheet-muted);
  font: 600 .75rem/1.3 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.pricing-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sheet-edge);
}
.pricing-masthead h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.45vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 640;
}
.pricing-deck { margin: 13px 0 0; max-width: 80ch; color: var(--sheet-muted); }
.plan-sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2.1vw, 28px); }
.plan-sheet {
  --fold: 22px;
  --sheet-gutter: clamp(15px, 1.64vw, 24px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 var(--sheet-gutter) 21px;
  background: var(--sheet-panel);
  border: 1px solid var(--sheet-edge);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}
.plan-sheet--featured {
  --sheet-panel: #1B1820;
  --sheet-edge: #64328C;
  --sheet-line: #403747;
  box-shadow: inset 0 0 0 1px #64328C;
}
.plan-fold {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: var(--fold);
  height: var(--fold);
  border: solid var(--sheet-edge);
  border-width: 0 0 1px 1px;
  background: linear-gradient(45deg, #29282D calc(50% - .7px), var(--sheet-edge) calc(50% - .7px), var(--sheet-edge) calc(50% + .7px), transparent calc(50% + .7px));
  pointer-events: none;
}
.plan-sheet--featured .plan-fold {
  background: linear-gradient(45deg, var(--sheet-purple) 50%, transparent 50%);
}
.plan-art {
  --art-paper: #F1EEE8;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: clamp(133px, 13.35vw, 189px);
  padding: 6px 11px 6px 19px;
  margin: 16px 0 14px;
  background: var(--art-paper);
}
.plan-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.plan-art::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50% !important;
  color: #655A69;
  background: var(--art-paper);
  box-shadow: 0 0 0 1px currentColor,
    0 13px var(--art-paper), 0 13px 0 1px currentColor,
    0 26px var(--art-paper), 0 26px 0 1px currentColor;
}
.plan-sheet--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: var(--fold);
  height: 4px;
  background: var(--sheet-purple);
}
.plan-sheet h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.plan-terms {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 59px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sheet-line);
  font-size: .86rem;
  line-height: 1.4;
  color: var(--sheet-muted);
}
.plan-terms strong { color: var(--sheet-text); font-size: .94rem; }
.plan-sheet--featured .plan-terms > span { color: var(--sheet-text); font-weight: 600; }
.plan-scope {
  min-height: 1.3em;
  margin: 0 0 6px;
  font-size: .79rem;
  font-weight: 650;
  color: var(--sheet-muted);
}
.plan-features { padding: 0; margin: 0 0 18px; list-style: none; }
.plan-features li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 0;
  font-size: .92rem;
  line-height: 1.4;
}
.plan-features li + li { border-top: 1px solid var(--sheet-line); }
.plan-check { width: 17px; height: 17px; margin-top: 2px; color: #EBE9ED; }
.plan-footer { margin-top: auto; }
.plan-footer p { margin: 0 0 8px; color: var(--sheet-muted); font-size: .82rem; }
.pricing-page .plan-action {
  justify-content: center;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: #FFF;
  border-color: var(--sheet-purple);
  background: var(--sheet-purple);
  text-align: center;
  font-weight: 650;
}
.pricing-page .plan-action:hover { background: var(--sheet-purple-hover); border-color: var(--sheet-purple-hover); }
.pricing-page .plan-action.button-secondary { background: transparent; border-color: var(--sheet-edge); }
.pricing-page .plan-action.button-secondary:hover { background: #28272D; border-color: var(--sheet-muted); }
.pricing-page :focus-visible { outline: 2px solid #F6F5F7; outline-offset: 3px; }
.pricing-shared {
  max-width: 84ch;
  margin: 20px auto 0;
  color: var(--sheet-muted);
  font-size: .86rem;
  line-height: 1.55;
  text-align: center;
}
.pricing-industry { margin: clamp(40px, 5vw, 65px) 0 0; padding-top: 18px; border-top: 1px solid var(--sheet-edge); }
.pricing-industry dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.pricing-industry dl > div {
  display: grid;
  align-content: start;
  padding-inline: clamp(10px, 2vw, 24px);
  gap: 6px;
}
.pricing-industry dl > div:first-child { padding-inline-start: 0; }
.pricing-industry dl > div + div { border-inline-start: 1px solid var(--sheet-line); }
.pricing-industry dd:first-of-type {
  grid-row: 1;
  color: var(--sheet-text);
  font-size: clamp(1.4rem, 2.75vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -.042em;
  line-height: 1.15;
  margin: 0;
}
.pricing-industry dt { color: var(--sheet-muted); font-size: .85rem; line-height: 1.45; }
.pricing-industry figcaption { color: var(--sheet-muted); font-size: .75rem; text-align: right; margin-top: 12px; }
.pricing-section { padding: clamp(44px, 6vw, 78px) 0; background: #17171B; border-top: 1px solid var(--sheet-line); }
.pricing-faq-layout { display: grid; grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); gap: 24px 54px; }
.pricing-faq-intro > p { margin: 14px 0 20px; }
.pricing-security { padding: 18px; background: #202025; border: 1px solid var(--sheet-line); border-inline-start: 2px solid var(--sheet-purple); }
.pricing-security h3 { margin: 5px 0; font-size: 1.1rem; font-weight: 650; }
.pricing-security p { margin: 0 0 10px; font-size: .875rem; }
.pricing-page .price-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.pricing-inline-link { display: inline-flex; align-items: center; gap: 6px; color: var(--sheet-text); font-weight: 550; }
.pricing-inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pricing-faq { border-top: 1px solid var(--sheet-line); min-width: 0; }
.pricing-faq details { border-bottom: 1px solid var(--sheet-line); }
.pricing-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  color: var(--sheet-text);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.pricing-faq summary svg { color: var(--sheet-muted); }
.pricing-faq details[open] summary svg { transform: rotate(45deg); }
.pricing-faq details > div { padding: 0 22px 16px 0; }
.pricing-faq details p { margin: 0 0 9px; font-size: .94rem; }
.pricing-faq details p:last-child { margin-bottom: 0; }
.pricing-close { padding: clamp(34px, 5vw, 64px) 0; border-top: 1px solid var(--sheet-line); }
.pricing-close > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px 38px; }
.pricing-close p { margin: 10px 0 0; }
@media (max-width: 860px) {
  .plan-sheets { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 23px; }
  .plan-sheet { --sheet-gutter: 22px; }
  .plan-art { height: clamp(142px, 44vw, 190px); }
  .plan-terms { min-height: 0; }
  .plan-features li { font-size: .96rem; }
  .pricing-faq-layout, .pricing-close > div { grid-template-columns: 1fr; }
  .pricing-close .button { justify-self: start; }
}
@media (max-width: 620px) {
  .pricing-industry dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .pricing-industry dl > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media print {
  .pricing-page, .plan-sheet, .plan-art, .pricing-section, .pricing-security { background: white; color: black; }
  .pricing-page p, .plan-sheet h2, .plan-terms strong, .plan-check, .pricing-industry dd, .pricing-industry dt, .pricing-faq summary, .pricing-inline-link { color: black; }
  .plan-art img { mix-blend-mode: normal; }
}
