.tool-site {
  background: #fbfbfd;
  color: #475569;
}
.tool-site h1,
.tool-site h2,
.tool-site h3 {
  color: #18213a;
}
.tool-site :focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 5px;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 1000;
  background: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.tool-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin: 12px auto -92px;
  max-width: 1280px;
  border: 1px solid #ffffff30;
  background: #ffffffed;
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px #10152b0a;
}
.tool-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  max-width: none;
}
.tool-nav nav {
  display: flex;
  gap: 24px;
  font-size: 0.83rem;
  font-weight: 600;
}
.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #64748b;
  border-left: 1px solid #d9dce7;
  padding-left: 12px;
  margin-left: 3px;
}
.tool-nav .btn {
  font-size: 0.8rem;
  padding: 12px 16px;
}
.tool-hero {
  background:
    radial-gradient(ellipse at 80% 40%, #383271 0, transparent 53%), #101327;
  color: #c6c8dc;
  min-height: min(900px, 100svh);
  display: flex;
  align-items: center;
  padding: 170px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-kicker,
.overline {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #5b50cb;
  margin-bottom: 18px;
}
.hero-kicker {
  color: #b1aaff;
}
.tool-hero h1 {
  font-size: clamp(2.8rem, 4.7vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  color: #fff;
  margin-bottom: 26px;
}
.tool-hero h1 span {
  color: #b3abff;
}
.tool-hero p {
  max-width: 470px;
  font-size: 1.04rem;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  font-size: 0.9rem;
}
.hero-link {
  font-size: 0.83rem;
  color: #eeedff;
  font-weight: 600;
}
.hero-trust {
  font-size: 0.73rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #b5b7d0;
  margin-top: 30px;
}
.desk {
  position: relative;
  height: 460px;
  isolation: isolate;
}
.desk-glow {
  position: absolute;
  inset: 40px -30px;
  background: #7d71ff35;
  filter: blur(65px);
  border-radius: 50%;
  z-index: -1;
}
.quote-note {
  position: absolute;
  width: 300px;
  right: 8px;
  top: 78px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  color: #59627a;
  box-shadow: 0 30px 80px #0005;
  transform: rotate(5deg);
}
.note-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: #777c92;
}
.mini-logo {
  background: #6366f1;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}
.quote-note h2 {
  margin: 27px 0 12px;
  font-size: 1.8rem;
}
.quote-note p {
  font-size: 0.8rem;
  line-height: 1.8;
}
.note-line {
  height: 6px;
  background: #eef0f5;
  border-radius: 4px;
  margin-top: 24px;
  width: 95%;
}
.note-line.short {
  width: 65%;
  margin-top: 9px;
}
.note-status {
  margin-top: 34px;
  border-top: 1px solid #eee;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  color: #5547cc;
}
.calc-note {
  position: absolute;
  top: 24px;
  left: 0;
  width: 242px;
  z-index: 2;
  padding: 23px;
  border: 1px solid #fff7;
  border-radius: 16px;
  background: #efedff;
  transform: rotate(-7deg);
  box-shadow: 0 20px 45px #0003;
  color: #414256;
}
.calc-note > span {
  font-size: 0.63rem;
  color: #74718e;
}
.calc-note strong {
  display: block;
  font-size: 1.75rem;
  color: #28213c;
  margin: 13px 0;
}
.calc-note strong span {
  font-size: 0.7rem;
  font-weight: 500;
}
.calc-note hr {
  border: 0;
  border-top: 1px solid #dad5ec;
  margin-bottom: 12px;
}
.calc-note > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.desk-caption {
  position: absolute;
  bottom: 0;
  right: 15px;
  font-size: 0.64rem;
  color: #c1bce8;
  letter-spacing: 0.04em;
}
.tool-section {
  padding-top: 88px;
  padding-bottom: 88px;
  scroll-margin-top: 120px;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.section-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 590px;
  line-height: 1.2;
}
.section-intro p {
  max-width: 220px;
  font-size: 0.85rem;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  background: #fff;
  border: 1px solid #e9e9f1;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px #2426420c;
  border-color: #cac5f5;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}
.tool-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: #f0eeff;
  color: #5b4dd7;
  font-size: 1.4rem;
  font-weight: 600;
}
.card-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #6d6d85;
}
.tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.tool-card p {
  font-size: 0.8rem;
  line-height: 1.85;
  flex: 1;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5245c5;
}
.tool-card.featured {
  background: #eeecfc;
  border-color: #dfdaf7;
}
.template-section {
  padding: 80px 0;
  background: #f1f0f7;
}
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.template-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid #e6e5ed;
  border-radius: 15px;
  padding: 23px;
}
.template-card > span:last-child {
  margin-left: auto;
  color: #675bd7;
}
.template-number {
  align-self: flex-start;
  color: #b5afcc;
  font-size: 0.75rem;
  margin-top: 7px;
}
.template-card h3 {
  font-size: 1rem;
  margin: 5px 0 8px;
}
.template-card p {
  font-size: 0.76rem;
  line-height: 1.6;
  max-width: 330px;
}
.template-card:hover {
  border-color: #b5ace8;
}
.text-link {
  color: #5848c3;
  font-size: 0.8rem;
  font-weight: 700;
}
.fineprint {
  font-size: 0.71rem;
  color: #697086;
  line-height: 1.8;
  margin-top: 20px;
}
.connected {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}
.connected h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.connected p {
  max-width: 520px;
  margin: 25px auto 30px;
  font-size: 0.9rem;
}
.tool-footer {
  background: #15182a;
  padding: 60px 0 25px;
  color: #bdc2d4;
}
.tool-footer .brand {
  color: #fff;
  display: inline-flex;
}
.tool-footer .brand-sub {
  color: #bbc1da;
  border-color: #55566c;
}
.tool-footer p {
  font-size: 0.8rem;
  margin: 18px 0 26px;
}
.tool-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.75rem;
  color: #c5c7d9;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #ffffff1a;
  font-size: 0.68rem;
}
.maker {
  color: #c1baff;
  text-shadow: 0 0 15px #8073f5;
}
.tool-heading {
  padding-top: 146px;
  padding-bottom: 45px;
}
.breadcrumb {
  display: block;
  font-size: 0.73rem;
  color: #74778b;
  margin-bottom: 35px;
}
.tool-heading h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  max-width: 820px;
}
.tool-heading p {
  margin-top: 22px;
  max-width: 650px;
  font-size: 0.95rem;
}
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.tool-form,
.result-panel {
  padding: 34px;
  border-radius: 22px;
  border: 1px solid #e5e5ef;
  background: #fff;
}
.result-panel {
  background: #f1efff;
  border-color: #e1dcfc;
  position: sticky;
  top: 112px;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}
.panel-heading h2 {
  font-size: 1.05rem;
}
.step-label {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #f4f3f9;
  color: #756d9b;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
}
.fields {
  display: grid;
  gap: 21px;
}
.fields-two {
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374157;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  color: #18213a;
  border: 1px solid #d9dae7;
  border-radius: 10px;
  background: #fff;
  padding: 13px 14px;
  width: 100%;
  min-height: 48px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #7b6be2;
  outline-offset: 2px;
}
.field small {
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.6;
  color: #677185;
}
.local-note {
  font-size: 0.66rem;
  color: #717689;
  margin-top: 25px;
}
.result-label {
  font-size: 0.8rem;
  color: #655c89;
  margin-top: 40px;
}
.result-amount {
  display: block;
  color: #31255e;
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.result-details {
  margin-top: 27px;
  border-top: 1px solid #dcd6f0;
  padding-top: 12px;
}
.result-details > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  font-size: 0.78rem;
}
.result-details dd {
  font-weight: 700;
  color: #40365f;
  white-space: nowrap;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}
.result-actions .btn {
  font-size: 0.8rem;
  white-space: normal;
}
.btn-light {
  background: #fff;
  color: #5041ba;
  border-color: #dcd7f4;
}
.action-status {
  font-size: 0.72rem;
  color: #5041a2;
  margin-top: 14px;
}
.action-status:empty {
  display: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#tool-error {
  color: #9e2738;
  background: #fff2f4;
  padding: 16px;
  border-radius: 12px;
  font-size: 0.82rem;
}
#mail-result {
  font-size: 0.8rem;
  line-height: 1.7;
  min-height: 340px;
  resize: vertical;
}
body[data-tool="offertemail-maken"] #result {
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.tool-explainer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  padding-top: 80px;
  padding-bottom: 70px;
}
.tool-explainer h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.tool-explainer p {
  font-size: 0.86rem;
  line-height: 1.9;
  margin-bottom: 20px;
}
.example-note {
  padding: 28px;
  background: #f2f1f7;
  border-radius: 18px;
  align-self: start;
}
.example-note p {
  margin-bottom: 20px;
}
.more-tools {
  padding-bottom: 90px;
}
.more-tools h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}
.template-library {
  padding-bottom: 100px;
}
.template-detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 100px;
  align-items: start;
}
.template-document {
  background: #fff;
  border: 1px solid #e8e6ef;
  border-radius: 18px;
  padding: 36px;
}
.document-label {
  display: flex;
  justify-content: space-between;
  color: #8c87a3;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  margin-bottom: 28px;
}
.template-document h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}
.template-document ol {
  list-style: none;
}
.template-document li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid #efedf4;
  font-size: 0.85rem;
}
.template-document li small {
  font-size: 0.68rem;
  color: #888195;
}
.template-document h3 {
  font-size: 1rem;
  margin: 30px 0 15px;
}
.scope-text {
  white-space: pre-line;
  font-size: 0.78rem;
  line-height: 1.9;
}
.template-start {
  background: #eeeafc;
  border-radius: 18px;
  padding: 35px;
  position: sticky;
  top: 112px;
}
.template-start h2 {
  font-size: 2rem;
  line-height: 1.2;
}
.template-start ul {
  margin: 26px 0;
  padding-left: 19px;
  font-size: 0.82rem;
  line-height: 2.2;
}
.template-start .btn {
  font-size: 0.83rem;
  width: 100%;
  white-space: normal;
}
@media (min-width: 1500px) {
  .hero-grid {
    gap: 90px;
  }
  .desk {
    height: 490px;
  }
  .quote-note {
    width: 320px;
  }
  .calc-note {
    width: 260px;
  }
}
@media (max-width: 1000px) {
  .tool-header {
    margin-left: 16px;
    margin-right: 16px;
  }
  .tool-nav nav {
    gap: 15px;
  }
  .hero-grid {
    gap: 20px;
  }
  .tool-hero h1 {
    font-size: 3rem;
  }
  .quote-note {
    width: 260px;
    right: 0;
  }
  .calc-note {
    width: 210px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fields-two {
    grid-template-columns: 1fr;
  }
  .tool-explainer {
    gap: 30px;
  }
  .tool-nav .brand-sub {
    display: none;
  }
}
@media (max-width: 720px) {
  .tool-header {
    top: 8px;
    margin-top: 8px;
    margin-bottom: -76px;
    border-radius: 15px;
  }
  .tool-nav {
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
  }
  .tool-nav .brand {
    font-size: 1.1rem;
  }
  .tool-nav .brand-mark {
    width: 32px;
    height: 32px;
  }
  .tool-nav nav {
    display: none;
  }
  .tool-nav .btn {
    padding: 10px 12px;
    font-size: 0.7rem;
    min-height: 40px;
  }
  .tool-hero {
    padding: 130px 0 55px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .tool-hero h1 {
    font-size: clamp(2.35rem, 8vw, 3.4rem);
  }
  .tool-hero p {
    font-size: 0.9rem;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .btn {
    font-size: 0.8rem;
    padding: 13px 19px;
  }
  .hero-link {
    font-size: 0.73rem;
  }
  .desk {
    height: 375px;
    max-width: 390px;
    width: 100%;
    margin: 30px auto 0;
  }
  .quote-note {
    top: 55px;
    right: 5px;
    width: 245px;
    padding: 24px;
  }
  .quote-note h2 {
    font-size: 1.5rem;
    margin-top: 23px;
  }
  .quote-note p {
    font-size: 0.73rem;
  }
  .note-status {
    margin-top: 24px;
  }
  .calc-note {
    width: 198px;
    left: 4px;
    top: 10px;
    padding: 19px;
  }
  .calc-note strong {
    font-size: 1.5rem;
  }
  .desk-caption {
    bottom: 0;
    right: 0;
  }
  .section-intro {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .section-intro p {
    max-width: none;
  }
  .tool-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 25px;
  }
  .card-top {
    margin-bottom: 24px;
  }
  .tool-card p {
    font-size: 0.84rem;
  }
  .template-section {
    padding: 55px 0;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-card {
    padding: 20px;
    gap: 15px;
  }
  .connected {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .tool-heading {
    padding-top: 110px;
    padding-bottom: 32px;
  }
  .tool-heading h1 {
    font-size: 2.1rem;
  }
  .tool-heading p {
    font-size: 0.88rem;
  }
  .calculator-layout,
  .tool-explainer,
  .template-detail {
    grid-template-columns: 1fr;
  }
  .tool-form,
  .result-panel {
    padding: 25px;
  }
  .result-panel,
  .template-start {
    position: static;
  }
  .result-label {
    margin-top: 24px;
  }
  .tool-explainer {
    padding-top: 50px;
    padding-bottom: 35px;
  }
  .more-tools {
    padding-bottom: 55px;
  }
  .more-tools h2 {
    line-height: 1.3;
  }
  .template-document,
  .template-start {
    padding: 25px;
  }
  .tool-footer {
    padding-top: 40px;
  }
  .tool-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .footer-line {
    gap: 15px;
  }
  .result-amount {
    font-size: 2.7rem;
  }
  .tool-nav .brand-sub {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.filled-examples {
  display: grid;
  gap: .7rem;
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
}
.template-library + .template-library { padding-top: 0; }
.template-library > p { margin: .6rem 0 1.2rem; }

/* Make the three parts of a project estimate legible on narrow screens. */
#project-form > p:first-of-type { margin:0 0 1.25rem; }
#project-form details { margin-top:1.25rem; border-top:1px solid #e5e5ef; padding-top:1rem; }
#project-form summary { cursor:pointer; font-weight:650; }
#project-form details[open] summary { margin-bottom:1rem; }
#project-result { margin:1rem 0; }
#project-result .result-amount { font-size:clamp(1.4rem,3.2vw,2.5rem); overflow-wrap:anywhere; }
#project-form[hidden], #project-use[hidden] { display:none; }
#project-use:disabled { opacity:.6; cursor:not-allowed; }
