/* ==========================================================================
   PTO Liability Calculator — /tools/pto-liability-calculator/
   Design tokens are declared once on .ptolc-page so the whole page is scoped
   and cannot leak into the shared header/footer styles.
   ========================================================================== */

.ptolc-page {
  --ptolc-violet: #7428F5;
  --ptolc-violet-hover: #5E1FCB;
  --ptolc-deep-violet: #281752;
  --ptolc-cta-violet: #2D1E5F;
  --ptolc-orange: #ED6E44;
  --ptolc-orange-hover: #F88C84;
  --ptolc-lavender-wash: #F5F1FE;
  --ptolc-lavender-border: #D2BAFB;
  --ptolc-lavender-text: #B79BF7;
  --ptolc-lavender-link-hover: #DECEFB;

  --ptolc-text-primary: #1C222B;
  --ptolc-text-secondary: #455468;
  --ptolc-text-tertiary: #5E718D;
  --ptolc-text-muted: #8897AE;
  --ptolc-placeholder: #A9B4C4;
  --ptolc-border-soft: #E9EFF6;
  --ptolc-border-strong: #D7DFE9;
  --ptolc-panel: #F9FAFB;
  --ptolc-cream: #F8F7F6;
  --ptolc-green: #11A75C;

  --ptolc-shadow-card: 0 20px 65px -5px rgba(18, 18, 23, 0.04), 0 10px 20px -5px rgba(18, 18, 23, 0.02);
  --ptolc-shadow-flat: 0 20px 65px -5px rgba(18, 18, 23, 0.02), 0 10px 20px -5px rgba(18, 18, 23, 0.02);
  --ptolc-shadow-hover: 0 20px 65px -5px rgba(18, 18, 23, 0.06), 0 10px 20px -5px rgba(18, 18, 23, 0.04);

  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin-bottom: 0;
  background: #fff;
}

.ptolc-page *,
.ptolc-page *::before,
.ptolc-page *::after {
  box-sizing: border-box;
}

.ptolc-page h1,
.ptolc-page h2,
.ptolc-page h3,
.ptolc-page p,
.ptolc-page ul {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.ptolc-page a {
  color: var(--ptolc-violet);
  text-decoration: none;
}

.ptolc-page a:hover {
  color: var(--ptolc-violet-hover);
  text-decoration: underline;
}

.ptolc-section {
  /* style.css puts `margin-top: 100px` on every <section>. Each section here
     owns its own vertical rhythm through padding, so that margin is dropped —
     otherwise it stacks on top of the padding and leaves a dead band between
     the calculator and the section below it. */
  margin-top: 0;
  padding-left: 80px;
  padding-right: 80px;
}

.ptolc-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ==========================================================================
   1. Hero + calculator
   ========================================================================== */

.ptolc-top {
  background: #fff;
  padding-top: 64px;
  padding-bottom: 56px;
}

.ptolc-hero {
  max-width: 840px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ptolc-hero h1 {
  font-weight: 500;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -2.3px;
  color: var(--ptolc-text-primary);
}

.ptolc-hero p {
  font-weight: 400;
  font-size: 22px;
  line-height: 34px;
  letter-spacing: -0.4px;
  color: var(--ptolc-text-secondary);
  text-wrap: pretty;
}

.ptolc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 24px;
  align-items: start;
}

/* --- input card --- */

.ptolc-inputs-card {
  background: #fff;
  border: 1px solid var(--ptolc-border-soft);
  border-radius: 16px;
  box-shadow: var(--ptolc-shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ptolc-inputs-card h2 {
  font-weight: 500;
  font-size: 28px;
  line-height: 38px;
  letter-spacing: -0.6px;
  color: var(--ptolc-text-primary);
}

.ptolc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ptolc-toggle {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--ptolc-border-soft);
  border-radius: 10px;
  padding: 3px;
  background: var(--ptolc-panel);
  gap: 2px;
}

.ptolc-toggle-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ptolc-text-muted);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.3px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.ptolc-toggle-btn.is-active {
  background: #fff;
  border-color: var(--ptolc-border-soft);
  color: var(--ptolc-text-primary);
  box-shadow: 0 1px 2px rgba(18, 18, 23, 0.04);
}

.ptolc-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ptolc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ptolc-field[hidden] {
  display: none;
}

.ptolc-field label {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.3px;
  color: var(--ptolc-text-secondary);
}

.ptolc-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ptolc-pill {
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ptolc-text-muted);
  border: 1px solid var(--ptolc-border-soft);
  background: var(--ptolc-panel);
  border-radius: 9999px;
  padding: 2px 8px;
}

.ptolc-input-shell {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--ptolc-border-strong);
  border-radius: 10px;
  padding: 0 16px;
  gap: 8px;
  background: #fff;
}

.ptolc-input-shell:focus-within {
  border-color: var(--ptolc-lavender-border);
  box-shadow: 0 0 0 3px rgba(116, 40, 245, 0.08);
}

.ptolc-input-shell input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.35px;
  color: var(--ptolc-text-primary);
  background: transparent;
}

.ptolc-input-shell input::placeholder {
  color: var(--ptolc-placeholder);
}

.ptolc-input-shell input::-webkit-outer-spin-button,
.ptolc-input-shell input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ptolc-input-shell input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.ptolc-affix {
  font-weight: 400;
  font-size: 17px;
  line-height: 26px;
  color: var(--ptolc-text-muted);
  flex-shrink: 0;
}

.ptolc-divider {
  height: 1px;
  background: var(--ptolc-border-soft);
}

.ptolc-card-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--ptolc-border-soft);
}

.ptolc-reset {
  background: transparent;
  border: 1px solid var(--ptolc-border-strong);
  color: var(--ptolc-text-secondary);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.3px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

.ptolc-reset:hover {
  background: var(--ptolc-lavender-wash);
  border-color: var(--ptolc-lavender-border);
  color: var(--ptolc-violet);
}

/* --- results panel --- */

.ptolc-results-col {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ptolc-results-card {
  background: var(--ptolc-deep-violet);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ptolc-result-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ptolc-eyebrow {
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ptolc-lavender-text);
}

.ptolc-hero-number {
  font-weight: 500;
  font-size: 58px;
  line-height: 66px;
  letter-spacing: -2.1px;
  color: rgba(255, 255, 255, 0.22);
  display: block;
}

.ptolc-results-card.is-ready .ptolc-hero-number {
  color: #fff;
}

.ptolc-hero-sub {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.25px;
  color: var(--ptolc-lavender-text);
  display: block;
  margin-top: 8px;
}

.ptolc-results-card.is-ready .ptolc-hero-sub {
  color: var(--ptolc-lavender-border);
  white-space: nowrap;
}

.ptolc-results-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.ptolc-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ptolc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.ptolc-row[hidden] {
  display: none;
}

.ptolc-row-label {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.25px;
  color: var(--ptolc-lavender-border);
}

.ptolc-row-value {
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.35px;
  color: #fff;
  text-align: right;
}

.ptolc-row-value.is-quiet {
  color: var(--ptolc-lavender-border);
}

.ptolc-row-value.is-green {
  color: var(--ptolc-green);
}

/* --- chart --- */

.ptolc-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.ptolc-chart-title {
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.25px;
  color: #fff;
}

.ptolc-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 96px;
}

.ptolc-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
}

.ptolc-bar-1 { height: 25%; background: rgba(127, 0, 255, 0.4); }
.ptolc-bar-2 { height: 50%; background: rgba(127, 0, 255, 0.6); }
.ptolc-bar-3 { height: 75%; background: rgba(127, 0, 255, 0.8); }
.ptolc-bar-4 { height: 100%; background: var(--ptolc-orange); }

.ptolc-chart-values,
.ptolc-chart-labels {
  display: flex;
  gap: 10px;
}

.ptolc-chart-values span {
  flex: 1;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: var(--ptolc-lavender-text);
  text-align: center;
}

.ptolc-chart-values span.is-strong {
  font-weight: 500;
  color: #fff;
}

.ptolc-chart-labels span {
  flex: 1;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  color: var(--ptolc-lavender-text);
  text-align: center;
}

/* --- CTA block --- */

.ptolc-cta-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ptolc-cta-block[hidden] {
  display: none;
}

.ptolc-cta-note {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.2px;
  color: var(--ptolc-lavender-text);
}

.ptolc-page .ptolc-cta-primary {
  background: var(--ptolc-orange);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.3px;
  padding: 14px 22px;
  border-radius: 10px;
  text-align: center;
}

.ptolc-page .ptolc-cta-primary:hover {
  background: var(--ptolc-orange-hover);
  color: #fff;
  text-decoration: none;
}

.ptolc-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.2px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.ptolc-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ptolc-cta-secondary svg {
  flex-shrink: 0;
}

.ptolc-disclaimer {
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.1px;
  color: var(--ptolc-text-muted);
  padding: 0 4px;
}

/* ==========================================================================
   2. Methodology
   ========================================================================== */

.ptolc-method {
  background: #fff;
  padding-top: 56px;
  padding-bottom: 72px;
}

.ptolc-method .ptolc-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ptolc-method-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ptolc-method-head h2 {
  font-weight: 500;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1.2px;
  color: var(--ptolc-text-primary);
}

.ptolc-method-head p {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.3px;
  color: var(--ptolc-text-secondary);
  text-wrap: pretty;
}

.ptolc-formula {
  background: var(--ptolc-lavender-wash);
  border: 1px solid var(--ptolc-lavender-border);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ptolc-formula-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.ptolc-formula-term {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.ptolc-term {
  font-weight: 500;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -1.3px;
  color: var(--ptolc-deep-violet);
}

.ptolc-term-caption {
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.2px;
  color: var(--ptolc-text-tertiary);
}

.ptolc-formula-op {
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  color: var(--ptolc-lavender-text);
  padding-top: 2px;
}

.ptolc-formula-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--ptolc-lavender-border);
  padding-top: 26px;
  text-align: center;
}

.ptolc-formula-foot span {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.25px;
  color: var(--ptolc-text-secondary);
}

.ptolc-method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.ptolc-method-card {
  border: 1px solid var(--ptolc-border-soft);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.ptolc-example {
  background: #fff;
  box-shadow: var(--ptolc-shadow-flat);
}

.ptolc-assume {
  background: var(--ptolc-cream);
}

.ptolc-card-eyebrow {
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ptolc-text-muted);
}

.ptolc-example-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.ptolc-example-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ptolc-example-row span {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.25px;
  color: var(--ptolc-text-secondary);
}

.ptolc-example-row strong {
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.25px;
  color: var(--ptolc-text-primary);
}

.ptolc-example-total {
  align-items: baseline;
}

.ptolc-example-total span {
  font-weight: 500;
  color: var(--ptolc-text-primary);
}

.ptolc-example-total strong {
  font-weight: 600;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -0.85px;
  color: var(--ptolc-violet);
}

.ptolc-assume ul {
  flex: 1;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.ptolc-assume li {
  position: relative;
  padding-left: 18px;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.25px;
  color: var(--ptolc-text-secondary);
}

.ptolc-assume li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--ptolc-violet);
}

/* ==========================================================================
   3. FAQ
   ========================================================================== */

.ptolc-faq-section {
  background: var(--ptolc-panel);
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.ptolc-faq-title {
  text-align: center;
  font-weight: 500;
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: var(--ptolc-text-primary);
}

.ptolc-faq-list {
  max-width: 800px;
  margin: 56px auto 0;
}

.ptolc-faq-item {
  border-bottom: 1px solid var(--ptolc-border-soft);
}

.ptolc-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.ptolc-faq-q span {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: -0.3px;
  color: var(--ptolc-text-primary);
}

.ptolc-faq-q svg {
  flex-shrink: 0;
  transform: rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ptolc-faq-item.is-open .ptolc-faq-q svg {
  transform: rotate(180deg);
}

.ptolc-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ptolc-faq-item.is-open .ptolc-faq-panel {
  grid-template-rows: 1fr;
}

.ptolc-faq-panel-inner {
  overflow: hidden;
}

.ptolc-faq-panel p {
  padding: 0 48px 26px 8px;
  font-weight: 400;
  font-size: 15px;
  line-height: 25px;
  letter-spacing: -0.2px;
  color: var(--ptolc-text-secondary);
  text-wrap: pretty;
}

/* ==========================================================================
   4. More tools
   ========================================================================== */

.ptolc-tools {
  background: #fff;
  padding-top: 120px;
  padding-bottom: 120px;
}

.ptolc-tools .ptolc-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ptolc-tools-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.ptolc-tools-head h2 {
  font-weight: 500;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1.2px;
  color: var(--ptolc-text-primary);
}

.ptolc-tools-head a {
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.ptolc-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ptolc-page .ptolc-tool-card {
  border: 1px solid var(--ptolc-border-soft);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ptolc-text-primary);
  transition: box-shadow 0.25s ease;
}

.ptolc-page .ptolc-tool-card:hover {
  box-shadow: var(--ptolc-shadow-hover);
  text-decoration: none;
  color: var(--ptolc-text-primary);
}

.ptolc-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ptolc-lavender-wash);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ptolc-tool-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  letter-spacing: -0.5px;
}

.ptolc-tool-text {
  font-weight: 400;
  font-size: 17px;
  line-height: 28px;
  letter-spacing: -0.25px;
  color: var(--ptolc-text-tertiary);
}

.ptolc-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.3px;
  color: var(--ptolc-violet);
}

/* ==========================================================================
   5. Final CTA
   ========================================================================== */

.ptolc-final-cta {
  background: var(--ptolc-cta-violet);
  padding-top: 150px;
  padding-bottom: 150px;
}

.ptolc-final-head {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ptolc-final-head h2 {
  font-weight: 500;
  font-size: 48px;
  line-height: 58px;
  letter-spacing: -1.8px;
  color: #fff;
}

.ptolc-final-head p {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.3px;
  color: #fff;
  text-wrap: pretty;
}

.ptolc-final-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 50px;
}

.ptolc-page .ptolc-final-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  background: transparent;
  display: flex;
  flex-direction: column;
  color: #fff;
  transition: border-color 0.25s ease;
}

.ptolc-page .ptolc-final-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  color: #fff;
}

.ptolc-final-card h3 {
  margin: 20px 0 10px;
  font-weight: 400;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -0.4px;
  color: #fff;
}

.ptolc-final-card p {
  margin: 0 0 50px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: #fff;
}

.ptolc-final-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #fff;
}

.ptolc-final-link svg {
  flex-shrink: 0;
}

.ptolc-page .ptolc-final-card:hover .ptolc-final-link {
  color: var(--ptolc-lavender-link-hover);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .ptolc-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .ptolc-hero h1 {
    font-size: 52px;
    line-height: 62px;
    letter-spacing: -1.8px;
  }
}

/* Below 1000px the calculator stacks: inputs first, results below. */
@media (max-width: 999px) {
  .ptolc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptolc-results-col {
    position: static;
  }

  .ptolc-results-card.is-ready .ptolc-hero-sub {
    white-space: normal;
  }

  .ptolc-inputs-card {
    padding: 32px;
  }

  .ptolc-method-cards,
  .ptolc-final-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptolc-tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptolc-tools {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .ptolc-final-cta {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .ptolc-formula-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ptolc-formula-term {
    align-items: flex-start;
    text-align: left;
    gap: 4px;
  }

  .ptolc-formula-op {
    font-size: 24px;
    line-height: 24px;
    padding-top: 0;
  }

  .ptolc-formula-foot {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .ptolc-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ptolc-top {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .ptolc-hero {
    margin-bottom: 24px;
    text-align: left;
    gap: 14px;
  }

  .ptolc-hero h1 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -1.3px;
  }

  .ptolc-hero p {
    font-size: 17px;
    line-height: 28px;
    letter-spacing: -0.25px;
  }

  .ptolc-grid {
    gap: 16px;
  }

  .ptolc-inputs-card {
    padding: 24px 20px;
    gap: 22px;
  }

  .ptolc-inputs-card h2 {
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.5px;
  }

  .ptolc-card-head {
    gap: 12px;
  }

  .ptolc-toggle-btn {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.2px;
    padding: 12px 16px;
  }

  .ptolc-field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .ptolc-field label {
    font-size: 15px;
    line-height: 22px;
    letter-spacing: -0.2px;
  }

  .ptolc-input-shell {
    padding: 0 14px;
  }

  .ptolc-input-shell input {
    font-size: 17px;
    letter-spacing: -0.3px;
  }

  .ptolc-affix {
    font-size: 16px;
  }

  .ptolc-card-foot {
    justify-content: flex-start;
    padding-top: 0;
    border-top: 0;
  }

  .ptolc-reset {
    font-size: 15px;
    letter-spacing: -0.2px;
    padding: 11px 18px;
  }

  .ptolc-results-card {
    padding: 24px 20px;
    gap: 22px;
  }

  .ptolc-eyebrow {
    font-size: 13px;
    line-height: 20px;
  }

  .ptolc-hero-number {
    font-size: 44px;
    line-height: 52px;
    letter-spacing: -1.6px;
  }

  .ptolc-hero-sub {
    font-size: 15px;
    letter-spacing: -0.2px;
  }

  .ptolc-rows {
    gap: 14px;
  }

  .ptolc-row {
    gap: 12px;
  }

  .ptolc-row-label {
    font-size: 15px;
    letter-spacing: -0.2px;
  }

  .ptolc-row-value {
    font-size: 17px;
    letter-spacing: -0.3px;
  }

  .ptolc-chart {
    padding: 16px;
    gap: 12px;
  }

  .ptolc-chart-bars {
    height: 76px;
    gap: 8px;
  }

  .ptolc-chart-values,
  .ptolc-chart-labels {
    gap: 8px;
  }

  .ptolc-chart-values span {
    font-size: 11px;
    line-height: 16px;
  }

  .ptolc-cta-block {
    gap: 12px;
  }

  .ptolc-page .ptolc-cta-primary {
    padding: 15px 20px;
  }

  .ptolc-cta-secondary {
    padding: 14px;
  }

  .ptolc-disclaimer {
    padding: 0;
  }

  .ptolc-method {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .ptolc-method .ptolc-container {
    gap: 24px;
  }

  .ptolc-method-head h2,
  .ptolc-tools-head h2 {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.9px;
  }

  .ptolc-method-head p {
    font-size: 17px;
    line-height: 28px;
    letter-spacing: -0.25px;
  }

  .ptolc-formula {
    padding: 28px 24px;
    gap: 20px;
  }

  .ptolc-term {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.85px;
  }

  .ptolc-formula-foot {
    padding-top: 18px;
  }

  .ptolc-formula-foot span {
    font-size: 15px;
  }

  .ptolc-method-card {
    padding: 24px 20px;
    gap: 16px;
  }

  .ptolc-example-row span,
  .ptolc-example-row strong,
  .ptolc-assume li {
    font-size: 15px;
    line-height: 24px;
    letter-spacing: -0.2px;
  }

  .ptolc-assume li::before {
    top: 9px;
  }

  .ptolc-example-total strong {
    font-size: 26px;
    line-height: 34px;
    letter-spacing: -0.7px;
  }

  .ptolc-faq-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .ptolc-faq-list {
    margin-top: 32px;
  }

  .ptolc-faq-q {
    gap: 16px;
    padding: 20px 0;
  }

  .ptolc-faq-q span {
    font-size: 17px;
    line-height: 26px;
  }

  .ptolc-faq-panel p {
    padding: 0 0 20px;
  }

  .ptolc-tools {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .ptolc-tools .ptolc-container {
    gap: 20px;
  }

  .ptolc-tools-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ptolc-page .ptolc-tool-card {
    padding: 24px 20px;
    gap: 12px;
  }

  .ptolc-tool-icon {
    width: 40px;
    height: 40px;
  }

  .ptolc-tool-title {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.4px;
  }

  .ptolc-tool-text,
  .ptolc-tool-cta {
    font-size: 15px;
    line-height: 24px;
    letter-spacing: -0.2px;
  }

  .ptolc-final-cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .ptolc-final-head h2 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1.1px;
  }

  .ptolc-final-head p {
    font-size: 17px;
    line-height: 28px;
    letter-spacing: -0.25px;
  }

  .ptolc-final-cards {
    gap: 16px;
    margin-top: 32px;
  }

  .ptolc-page .ptolc-final-card {
    padding: 24px 20px;
  }

  .ptolc-final-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 30px;
  }

  .ptolc-final-card p {
    margin: 0 0 28px;
  }
}
