.hero-actions {
  display: flex;
  flex-wrap: wrap;
}

.hero,.intro,.premises,.principles {
  position: relative;
}

.cost-calculator label {
  line-height: 1.5;
  color: var(--muted);
}

.number-field {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}

.number-field input {
  width: 100%;
  min-width: 0;
  padding: 0 0 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  line-height: 1.2;
  outline-offset: 0;
}

.number-field span {
  font-size: 15px;
}

.number-field input:focus-visible {
  outline: none;
}

.number-field:focus-within {
  border-bottom-color: var(--accent);
}

.volume-slider {
  display: block;
  appearance: none;
  width: 100%;
  background: var(--line);
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  background: var(--accent);
  border: 0;
  border-radius: 0;
}

.volume-slider::-moz-range-thumb {
  background: var(--accent);
  border: 0;
  border-radius: 0;
}

.estimate-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.estimate-value output {
  line-height: 1.1;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.estimate-value>span {
  color: var(--muted);
}

.calculator-note {
  color: var(--muted);
  max-width: 48ch;
}

.cost-assumptions {
  line-height: 1.6;
  color: var(--muted);
}

.cost-assumptions p {
  margin-top: 12px;
  max-width: 70ch;
}

.cost-assumptions a {
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
}

.calculator-error {
  font-size: 13px;
  margin-top: 12px;
}

.volume-number {
  line-height: .9;
  font-weight: 500;
  white-space: nowrap;
}

.premise-list p {
  color: var(--muted);
}

.principle-icon {
  color: var(--accent);
  flex: none;
}

@media (max-width:700px) {
  .statement {
    font-size: 17px;
  }

  .hero-actions {
    gap: 8px;
  }

  .premise-list h3 {
    font-size: 19px;
  }

  .premise-list p {
    font-size: 14px;
  }

  .solution-list h3 {
    font-size: 20px;
  }

}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: 64px;
  padding: 64px 0;
}

.intro h1 {
  font-size: 46px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1.8px;
  max-width: 16ch;
}

.intro h1 span {
  color: #9564b9;
  display: block;
}

.statement {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 20px;
  letter-spacing: -.2px;
}

.hero-actions {
  margin-top: 28px;
  gap: 12px;
  padding-bottom: 90px;
}

.hero-docs {
  position: relative;
  display: inline-flex;
}

.hero-docs [data-copy-agent-docs] {
  /* Reserve the full label width when copy feedback changes to “Copied”. */
  min-width: calc(15ch + 34px);
}

@media (max-width:1050px) {
  .hero-docs [data-copy-agent-docs] { min-width: calc(15ch + 26px); }
}

.docs-doodle {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 150px;
  height: 90px;
  transform: translateX(-25%);
  color: var(--accent);
  pointer-events: none;
}

.calculator-wrap {
  position: relative;
  background: #f5f0fa;
  border: 1px solid #9479ab;
  padding: 28px;
  box-shadow: 5px 5px 0 #e3d7ec;
}

.cost-calculator {
  padding: 0;
  background: transparent;
  border: 0;
}

.cost-calculator h2 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  background: #faf8fc;
  width: fit-content;
  margin: -42px 0 24px -7px;
  padding: 0 7px;
}

.cost-calculator label {
  font-size: 12px;
}

.number-field {
  border-color: #bba9cc;
}

.number-field input {
  font-size: 28px;
  padding-bottom: 8px;
}

.number-field>span {
  font-size: 13px;
}

.volume-slider {
  height: 1px;
  margin: 22px 0;
}

.volume-slider::-webkit-slider-thumb {
  width: 10px;
  height: 16px;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 16px;
}

.estimate-value output {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1px;
  color: #754c95;
}

.estimate-value>span {
  font-size: 11px;
}

.calculator-note {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 14px;
}

.cost-assumptions {
  border-top: 1px dashed var(--line);
  margin-top: 18px;
  padding-top: 12px;
  font-size: 11px;
}

.volume-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 32px;
}

.volume-heading h2 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
}

.volume-number {
  font-size: 112px;
  color: #9764b8;
  letter-spacing: -8px;
}

.volume-number span {
  color: #c87ba9;
}

.premises {
  border-top: 1px solid var(--line);
  padding-bottom: 48px;
}

.premise-list {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 28px;
}

.premise-list li {
  border-top: 1px dashed #b7a1c9;
  padding-top: 20px;
}

.premise-list h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: -.3px;
}

.premise-list p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
}

.security-billing {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.security-billing>h2 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.security-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.dedicated-compute {
  background: #f0e9f7;
  border: 1px solid #b7a1c9;
  padding: 28px;
}

.security-label {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dedicated-compute h3 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.7px;
}

.dedicated-compute p,.security-facts dd {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 0;
}

.compute-billing-details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #b7a1c9;
}

.compute-billing-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.pricing-link {
  display: inline-block;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
}

.pricing-link,.calculator-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-dialog {
  width: min(800px,calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 28px;
  border: 1px solid #9479ab;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 6px 6px 0 #d3c6df;
}

.pricing-dialog::backdrop { background: rgb(35 20 48 / 50%); }
body:has(.pricing-dialog[open]) { overflow: hidden; }
.pricing-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pricing-dialog-header h2 { font-size: 26px; font-weight: 650; letter-spacing: -1px; }
.pricing-close { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; font-size: 26px; line-height: 1; }
.pricing-intro { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.pricing-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.pricing-plan { padding: 18px; border: 1px solid #b7a1c9; background: #f0e9f7; }
.pricing-plan.pricing-enterprise { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.pricing-enterprise a { color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.pricing-plan h3,.pricing-storage h3,.pricing-example h3 { font-size: 14px; font-weight: 650; }
.pricing-plan .pricing-amount { margin: 12px 0; color: var(--accent); font-size: 28px; font-weight: 650; letter-spacing: -1px; }
.pricing-amount span { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pricing-plan>p:last-child { font-size: 11px; line-height: 1.7; }
.pricing-throughput { margin-bottom: 6px; font-size: 12px; line-height: 1.7; }
.pricing-storage p { font-size: 13px; line-height: 1.7; margin-top: 6px; }
.pricing-example { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.pricing-example h3 { color: var(--muted); font-size: 11px; font-weight: 400; }
.pricing-example-details p { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.pricing-example-details .pricing-example-breakdown { margin-top: 4px; color: var(--muted); font-size: 11px; }
.pricing-example-total { display: flex; flex-direction: column; gap: 4px; }
.pricing-example-total>span { color: var(--muted); font-size: 11px; }
.pricing-example-total strong { color: var(--accent); font-size: 28px; font-weight: 650; letter-spacing: -1px; white-space: nowrap; }
.pricing-example-total strong span { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }

@media (max-width:560px) {
  .pricing-dialog { padding: 20px; }
  .pricing-dialog-header h2 { font-size: 22px; }
  .pricing-plans { grid-template-columns: 1fr; gap: 8px; }
  .pricing-plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 14px; }
  .pricing-plan .pricing-amount { grid-column: 2; grid-row: 1 / 4; margin: 0; text-align: right; font-size: 24px; }
  .pricing-throughput { margin-bottom: 0; }
}

.security-facts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}

.security-facts>div {
  padding: 20px 0;
  border-top: 1px dashed #b7a1c9;
}

.security-facts>div:first-child {
  padding-top: 0;
  border-top: 0;
}

.security-facts>div:last-child {
  padding-bottom: 0;
}

.security-facts dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 14px;
  font-weight: 650;
}

.security-status {
  padding: 2px 6px;
  background: #f0e9f7;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
}

.security-status-pending {
  background: #f6eaf3;
  color: #833a58;
}

@media (max-width:700px) {
  .security-billing { padding: 32px 0 40px; }
  .security-billing>h2 { font-size: 24px; margin-bottom: 24px; }
  .security-billing-grid { grid-template-columns: 1fr; gap: 28px; }
  .dedicated-compute { padding: 20px; }
}

.principles {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.principles>h2 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-left: 1px solid #b7a1c9;
  border-top: 1px solid #b7a1c9;
}

.solution-list li {
  min-height: 164px;
  border-right: 1px solid #b7a1c9;
  border-bottom: 1px solid #b7a1c9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.solution-list li:first-child {
  grid-column: span 2;
  background: #f0e9f7;
}

.solution-list li:nth-child(4) {
  background: #f6eaf3;
}

.solution-list h3 {
  max-width: 40ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.3px;
}

.principle-icon {
  width: 38px;
  height: 34px;
}

@media (max-width:1050px) {
  .hero {
    gap: 40px;
  }

  .intro h1 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .hero-actions {
    gap: 10px;
  }

  .calculator-wrap {
    padding: 24px;
  }

  .cost-calculator h2 {
    margin-top: -38px;
  }

  .premise-list {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .premise-list h3 {
    font-size: 16px;
  }

  .premise-list p {
    font-size: 13px;
  }

}

@media (max-width:700px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0;
  }

  .intro h1 {
    font-size: 40px;
    line-height: 1.2;
    max-width: 16ch;
    letter-spacing: -1.7px;
  }

  .statement {
    font-size: 13px;
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }

  .calculator-wrap {
    margin-right: 5px;
    padding: 24px;
  }

  .volume-heading {
    gap: 16px;
    padding-block: 32px;
  }

  .volume-heading h2 {
    font-size: 22px;
    max-width: 7ch;
  }

  .volume-number {
    font-size: 80px;
    letter-spacing: -6px;
  }

  .premise-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .premises {
    padding-bottom: 40px;
  }

  .premise-list h3 {
    font-size: 15px;
  }

  .premise-list p {
    font-size: 13px;
  }

  .principles {
    padding: 32px 0 40px;
  }

  .principles>h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .solution-list {
    grid-template-columns: 1fr;
  }

  .solution-list li:first-child {
    grid-column: auto;
  }

  .solution-list li {
    min-height: 132px;
    padding: 20px;
    gap: 20px;
  }

  .solution-list h3 {
    font-size: 15px;
  }

}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sign-in-link {
  font-size: 12px;
}

.sign-in-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-feedback:has(.auth-message:not([hidden])) {
  margin-top: 24px;
  border: 1px solid #d5a7ba;
  background: #fff0f6;
  padding: 16px 20px;
  color: #833a58;
  font-size: 12px;
  line-height: 1.7;
}

.auth-feedback .button-secondary {
  margin-top: 12px;
}

.auth-message+.auth-message:not([hidden]) {
  margin-top: 8px;
}

@media (max-width:700px) {
  .auth-actions {
    gap: 14px;
  }

}

[data-auth][aria-disabled="true"] {
  opacity: .55;
  cursor: wait;
  pointer-events: none;
}

/* Present before scripts load; the landing page stays hidden until signed out. */
.session-loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.session-loading svg {
  width: 64px;
  height: 64px;
  overflow: visible;
}

.session-loading .wing-left,
.session-loading .wing-right {
  transform-box: view-box;
  animation: session-wingbeat 720ms ease-in-out infinite;
}

.session-loading .wing-left { transform-origin: 44.444% 50%; }
.session-loading .wing-right { transform-origin: 55.556% 50%; }

@keyframes session-wingbeat {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(.35); }
}

.no-script-message { padding: 40px; text-align: center; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 20px; }
.site-footer a { color: inherit; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }

@media (max-width:700px) {
  .site-footer-origin { order: 1; flex-basis: 100%; }
}
