:root {
  --ink: #2b251e;
  --muted: #6f6961;
  --label: #817b72;
  --paper: #f2eee6;
  --surface: #fffdfa;
  --line: #ded7cc;
  --accent: #eadfcd;
  --logo-gold: #c7ae89;
  --interest-gold: #b99761;
  --invested-blue: #6f8ba7;
  --button: #2c261f;
  --button-hover: #17130f;
  --white: #ffffff;
  --shadow: 0 18px 34px rgba(43, 37, 30, 0.08);
  --serif: "Bodoni 72 Display", "Bodoni 72", Didot, "Bodoni 72 Smallcaps", Georgia, serif;
  --sans: "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
  background:
    linear-gradient(rgba(242, 238, 230, 0.57), rgba(242, 238, 230, 0.62)),
    linear-gradient(180deg, rgba(242, 238, 230, 0.66) 0%, rgba(242, 238, 230, 0.37) 45%, rgba(242, 238, 230, 0.74) 100%),
    url("assets/background.jpg") center / cover no-repeat var(--paper);
  background-attachment: fixed;
}

body {
  position: relative;
  margin: 0;
  overscroll-behavior: none;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -20vh -20vw;
  background:
    linear-gradient(rgba(242, 238, 230, 0.57), rgba(242, 238, 230, 0.62)),
    linear-gradient(180deg, rgba(242, 238, 230, 0.66) 0%, rgba(242, 238, 230, 0.37) 45%, rgba(242, 238, 230, 0.74) 100%),
    url("assets/background.jpg") center / cover no-repeat;
  pointer-events: none;
  transform: translateZ(0);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(100%, 1480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 52px 96px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  row-gap: 24px;
  column-gap: 0;
}

.page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 38px;
  left: 50%;
  width: min(1200px, calc(100% - 48px));
  height: 640px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 253, 250, 0.32) 0%, rgba(255, 253, 250, 0.18) 42%, rgba(255, 253, 250, 0) 78%);
  filter: blur(28px);
  pointer-events: none;
}

.intro,
.welcome,
.appointments,
.page-note,
.main-nav {
  position: relative;
  z-index: 1;
}

.intro {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
}

.brand-logo {
  width: 150px;
  height: auto;
  margin-bottom: 4px;
}

.title-block {
  width: max-content;
  display: grid;
  gap: 24px;
  transform: scaleX(1.12);
  transform-origin: center;
}

.eyebrow {
  margin: 0;
  color: #5f5850;
  font-family: var(--sans);
  font-size: 1.78rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: scaleX(0.92);
  transform-origin: center;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  font-family: "Bodoni 72 Display", "Bodoni 72", Didot, Georgia, serif;
  font-size: 7.35rem;
  font-weight: 400;
  line-height: 0.88;
}

.lead {
  max-width: 1280px;
  margin: 0;
  font-family: var(--sans);
  font-size: 2.35rem;
  font-weight: 450;
  line-height: 1.35;
}

.lead-mobile {
  display: none;
}

.lead-primary {
  display: block;
  color: var(--ink);
}

.lead-secondary {
  color: #625c55;
}

.welcome {
  align-self: end;
  display: grid;
  justify-items: center;
  margin-top: 58px;
  margin-bottom: 46px;
  text-align: center;
}

.top-details {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}

.contact-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(43, 37, 30, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.94), rgba(255, 253, 250, 0.82));
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 16px 32px rgba(43, 37, 30, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.contact-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(234, 223, 205, 0), rgba(177, 151, 112, 0.26), rgba(234, 223, 205, 0));
  opacity: 0.35;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--button);
  background: var(--button);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(43, 37, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

.top-details a[href^="mailto:"] {
  font-size: 1.12em;
}

.main-nav {
  position: absolute;
  top: clamp(14px, 2.2svh, 24px);
  left: 50%;
  z-index: 3;
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(43, 37, 30, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.74), rgba(255, 253, 250, 0.5));
  box-shadow: 0 18px 34px rgba(43, 37, 30, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.08);
  font-family: var(--sans);
  font-size: clamp(0.82rem, 0.92vw, 0.96rem);
  font-weight: 500;
  transform: translateX(-50%);
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: rgba(43, 37, 30, 0.12);
  background: linear-gradient(180deg, #332d25 0%, var(--button) 56%, #211c17 100%);
  color: var(--white);
  box-shadow: 0 12px 22px rgba(43, 37, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.main-nav a[aria-current="page"] {
  view-transition-name: main-nav-active;
}

.appointment-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 12px);
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #332d25 0%, var(--button) 54%, #211c17 100%);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  white-space: nowrap;
  box-shadow: 0 16px 28px rgba(43, 37, 30, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.appointment-link::before {
  content: "";
  position: absolute;
  inset: 1px 12px auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.appointment-link:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #40382e 0%, var(--button-hover) 58%, #15110e 100%);
  box-shadow: 0 22px 36px rgba(43, 37, 30, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.appointment-link svg {
  flex: 0 0 1em;
  min-width: 1em;
  transition: transform 220ms ease;
}

.appointment-link:hover svg {
  transform: translateX(3px);
}

.appointments {
  width: min(100%, 1120px);
  align-self: start;
  justify-self: center;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 96px;
  text-align: center;
}

h2 {
  font-size: 3rem;
  line-height: 0.98;
  transform: scaleX(1.1);
  transform-origin: center;
}

.appointment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 26px;
}

.appointment {
  position: relative;
  overflow: hidden;
  min-height: 365px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 30px;
  border: 1px solid rgba(43, 37, 30, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 8%, rgba(196, 159, 102, 0.13), rgba(196, 159, 102, 0) 34%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.88), rgba(248, 244, 237, 0.66));
  box-shadow: 0 24px 58px rgba(43, 37, 30, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.12);
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.appointment::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.appointment:hover {
  border-color: rgba(43, 37, 30, 0.22);
  background:
    radial-gradient(circle at 96% 8%, rgba(196, 159, 102, 0.2), rgba(196, 159, 102, 0) 36%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(248, 244, 237, 0.76));
  box-shadow: 0 34px 76px rgba(43, 37, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-6px) scale(1.012);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--logo-gold);
  border: 1px solid rgba(185, 148, 85, 0.32);
  color: var(--ink);
  font-size: 1.18rem;
  box-shadow: 0 12px 22px rgba(43, 37, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.appointment-kicker {
  margin-top: 4px;
  color: rgba(43, 37, 30, 0.54);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

h3 {
  max-width: 100%;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  font-weight: 400;
  line-height: 0.96;
  transform: scaleX(1.06);
  transform-origin: left center;
}

.appointment-title-long {
  max-width: 94%;
  font-size: clamp(1.56rem, 1.96vw, 2.08rem);
  white-space: nowrap;
}

.duration {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 450;
}

.appointment-copy {
  flex: 1 1 auto;
  min-height: 96px;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 450;
  line-height: 1.42;
}

.appointment-link {
  width: min(100%, 270px);
  min-height: 54px;
  margin: auto auto 0;
  padding: 0 24px;
  font-size: 0.9rem;
  font-weight: 520;
}

.page-note {
  display: grid;
  justify-items: center;
  margin-top: 24px;
  color: #918a81;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 450;
  text-align: center;
}

.page-note p {
  margin: 0;
}

.simulator-page {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(100%, 1480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(82px, 9svh, 108px) clamp(18px, 4vw, 64px) clamp(36px, 5svh, 72px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 4svh, 44px);
}

.simulator-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 40px));
  height: 520px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 253, 250, 0.32) 0%, rgba(255, 253, 250, 0.16) 44%, rgba(255, 253, 250, 0) 78%);
  filter: blur(28px);
  pointer-events: none;
}

.simulator-header,
.simulator-workspace {
  position: relative;
  z-index: 1;
}

.simulator-header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.simulator-logo {
  width: 150px;
  height: auto;
}

.simulator-title-block {
  display: grid;
  gap: 12px;
}

.simulator-title-block h1 {
  font-size: clamp(3.8rem, min(6vw, 8svh), 5.6rem);
  line-height: 0.9;
  transform: scaleX(1.08);
  transform-origin: center;
}

.simulator-intro {
  max-width: 780px;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  font-weight: 450;
  line-height: 1.34;
}

.simulator-workspace {
  width: min(100%, 1180px);
  justify-self: center;
  display: grid;
  gap: 16px;
}

.simulator-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  width: min(100%, 1120px);
  margin: clamp(8px, 2svh, 20px) auto 0;
  align-items: stretch;
}

.simulator-choice {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.25vw, 30px);
  border: 1px solid rgba(43, 37, 30, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 8%, rgba(196, 159, 102, 0.14), rgba(196, 159, 102, 0) 34%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.88), rgba(248, 244, 237, 0.66));
  box-shadow: 0 24px 58px rgba(43, 37, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.12);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.simulator-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.simulator-choice[href]:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(43, 37, 30, 0.22);
  background:
    radial-gradient(circle at 96% 8%, rgba(196, 159, 102, 0.2), rgba(196, 159, 102, 0) 36%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(248, 244, 237, 0.76));
  box-shadow: 0 34px 76px rgba(43, 37, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.simulator-choice-kicker {
  color: rgba(43, 37, 30, 0.54);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.simulator-choice h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  font-weight: 400;
  line-height: 0.96;
  transform: scaleX(1.06);
  transform-origin: left center;
}

.simulator-choice p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 450;
  line-height: 1.42;
}

.simulator-choice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.simulator-choice-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(43, 37, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.5);
  color: rgba(43, 37, 30, 0.58);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 560;
}

.simulator-choice-action {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #332d25 0%, var(--button) 54%, #211c17 100%);
  color: #fffaf3;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 520;
  box-shadow: 0 14px 26px rgba(43, 37, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.simulator-choice-action::before {
  content: "";
  position: absolute;
  inset: 1px 12px auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.simulator-choice-action span {
  transition: transform 220ms ease;
}

.simulator-choice-action:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #40382e 0%, var(--button-hover) 58%, #15110e 100%);
  box-shadow: 0 22px 36px rgba(43, 37, 30, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.simulator-choice-action:hover span {
  transform: translateX(3px);
}

.simulator-choice-soon {
  cursor: default;
}

.simulator-choice-soon h2,
.simulator-choice-soon p {
  opacity: 0.78;
}

.simulator-choice-soon .simulator-choice-action {
  margin-top: auto;
  background: rgba(255, 253, 250, 0.72);
  color: rgba(43, 37, 30, 0.56);
  box-shadow: inset 0 0 0 1px rgba(43, 37, 30, 0.1);
}

.simulator-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.simulator-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(43, 37, 30, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.88), rgba(255, 253, 250, 0.66));
  color: var(--muted);
  font: 500 0.96rem var(--sans);
  box-shadow: 0 12px 24px rgba(43, 37, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.08);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.simulator-tab:hover,
.simulator-tab.is-active {
  transform: translateY(-2px);
  border-color: rgba(43, 37, 30, 0.24);
  background: linear-gradient(180deg, #332d25 0%, var(--button) 54%, #211c17 100%);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(43, 37, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.simulator-shell {
  overflow: hidden;
  min-height: min(68svh, 720px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(43, 37, 30, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(255, 253, 250, 0.82));
  box-shadow: 0 28px 62px rgba(43, 37, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(1.12);
}

.simulator-panel-header {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
  align-items: end;
  gap: 24px;
  padding: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid rgba(43, 37, 30, 0.1);
}

.simulator-kicker {
  margin: 0 0 6px;
  color: var(--label);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simulator-panel-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  transform: scaleX(1.06);
  transform-origin: left center;
}

.simulator-panel-header p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 1.3vw, 1.16rem);
  line-height: 1.42;
}

.simulator-frame-wrap {
  position: relative;
  min-height: 480px;
  background: rgba(255, 253, 250, 0.58);
}

.simulator-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  background: var(--surface);
}

.simulator-frame-wrap iframe[hidden],
.simulator-empty[hidden] {
  display: none;
}

.simulator-empty {
  min-height: 480px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
}

.simulator-empty p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  transform: scaleX(1.06);
}

.simulator-empty span {
  max-width: 520px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}

.tool-body {
  min-height: 100svh;
  background: transparent;
}

.tool-body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -20vh -20vw;
  background:
    linear-gradient(rgba(242, 238, 230, 0.57), rgba(242, 238, 230, 0.62)),
    linear-gradient(180deg, rgba(242, 238, 230, 0.66) 0%, rgba(242, 238, 230, 0.37) 45%, rgba(242, 238, 230, 0.74) 100%),
    url("assets/background.jpg") center / cover no-repeat;
  pointer-events: none;
  transform: translateZ(0);
}

.tool-page {
  position: relative;
  min-height: 100svh;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(98px, 10.5svh, 124px) clamp(18px, 3vw, 42px) clamp(38px, 5vw, 72px);
  color: var(--ink);
  font-family: var(--sans);
}

.tool-nav {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 4svh, 44px);
  text-align: center;
}

.tool-nav h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.92;
  text-align: center;
  transform: scaleX(1.08);
  transform-origin: center;
  text-shadow: 0 16px 42px rgba(43, 37, 30, 0.12);
}

.tool-export-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #332d25 0%, var(--button) 54%, #211c17 100%);
  color: var(--white);
  font: 500 0.88rem var(--sans);
  box-shadow: 0 14px 26px rgba(43, 37, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.tool-export-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(43, 37, 30, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.tool-export-pdf svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.print-header,
.print-footer {
  display: none;
}

.tool-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.58fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.tool-kicker {
  margin: 0 0 8px;
  color: var(--label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-header h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  line-height: 0.92;
  transform: scaleX(1.08);
  transform-origin: left center;
}

.tool-header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.45;
}

.client-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(43, 37, 30, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.88), rgba(255, 253, 250, 0.68));
  box-shadow: 0 18px 42px rgba(43, 37, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.client-panel label,
.tool-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.client-panel input,
.tool-input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(43, 37, 30, 0.12);
  border-radius: 13px;
  background: rgba(255, 253, 250, 0.78);
  color: var(--ink);
  caret-color: var(--button);
  outline: none;
  font: 500 0.95rem var(--sans);
}

.client-panel input {
  padding: 0 12px;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tool-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(43, 37, 30, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.9), rgba(255, 253, 250, 0.68));
  color: var(--muted);
  font: 500 0.94rem var(--sans);
  box-shadow: 0 12px 24px rgba(43, 37, 30, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.tool-tab:hover,
.tool-tab.is-active {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #332d25 0%, var(--button) 54%, #211c17 100%);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(43, 37, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tool-layout {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  width: min(100%, 1120px);
  margin: 0 auto;
}

.tool-overview {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  width: 100%;
  gap: clamp(10px, 1.15vw, 16px);
  align-items: stretch;
  min-width: 0;
  padding: clamp(10px, 1.15vw, 16px);
  border: 1px solid rgba(255, 253, 250, 0.42);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.66), rgba(242, 238, 230, 0.36)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  box-shadow: 0 34px 86px rgba(43, 37, 30, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.06);
}

.tool-detail {
  display: grid;
  gap: 16px;
  width: 100%;
}

.tool-detail-panels {
  display: grid;
  padding: clamp(10px, 1.15vw, 16px);
  border: 1px solid rgba(255, 253, 250, 0.42);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.66), rgba(242, 238, 230, 0.36)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  box-shadow: 0 34px 86px rgba(43, 37, 30, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.06);
}

.tool-summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}

.tool-result-card,
.tool-chart-card,
.tool-table-card,
.tool-pie-card,
.tool-params {
  border: 1px solid rgba(43, 37, 30, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.88), rgba(255, 253, 250, 0.66)),
    radial-gradient(circle at 20% 0%, rgba(199, 174, 137, 0.18), transparent 34%);
  box-shadow: 0 24px 58px rgba(43, 37, 30, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(1.08);
}

.tool-chart-card,
.tool-table-card,
.tool-pie-card {
  display: grid;
  gap: 18px;
  padding: 34px clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px);
}

.tool-chart-card[hidden],
.tool-table-card[hidden],
.tool-pie-card[hidden] {
  display: none;
}

.tool-result-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px);
  animation: toolFadeUp 260ms ease both;
}

.tool-result-main,
.tool-result-editorial {
  min-height: 0;
  padding-block: clamp(18px, 2vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.92), rgba(247, 242, 233, 0.7)),
    radial-gradient(circle at 100% 0%, rgba(199, 174, 137, 0.24), transparent 36%);
}

.tool-result-editorial {
  align-content: space-between;
  gap: clamp(14px, 1.65vw, 20px);
  padding-top: 34px;
}

.tool-result-multiple {
  align-content: start;
  gap: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.88), rgba(242, 238, 230, 0.58)),
    linear-gradient(90deg, rgba(199, 174, 137, 0.22), transparent 32%);
}

.tool-result-multiple p {
  max-width: none;
  text-align: left;
}

.tool-card-title span {
  padding: 5px 12px;
  border: 1px solid rgba(43, 37, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.5);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tool-result-card > span,
.capital-heading span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.38rem, 2vw, 1.78rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
  transform: scaleX(1.06);
  transform-origin: left center;
}

.tool-result-card strong {
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.36rem);
  font-weight: 550;
  line-height: 1.12;
}

.tool-result-card > strong {
  font-size: clamp(2.2rem, 3.7vw, 3.45rem);
}

.capital-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(18px, 2.4vw, 32px);
}

.capital-heading > div {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
}

.capital-heading > div:first-child strong {
  color: rgba(43, 37, 30, 0.94);
}

.capital-amount {
  position: relative;
  display: inline-flex;
  width: max-content;
  align-items: baseline;
  gap: 0.42em;
  padding-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(2.18rem, 3.5vw, 3.22rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  transform: scaleX(1.05);
  transform-origin: left center;
}

.capital-amount::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 151, 97, 0.72), rgba(185, 151, 97, 0));
}

.capital-currency {
  color: rgba(43, 37, 30, 0.94);
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  transform: none;
}

.capital-multiple {
  justify-items: end;
  min-width: 150px;
}

.capital-multiple span {
  transform-origin: right center;
}

.capital-multiple strong {
  color: var(--ink);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 550;
  line-height: 1.05;
}

.tool-result-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  line-height: 1.44;
}

.tool-result-sentence {
  align-content: center;
  min-height: 0;
  padding-block: clamp(16px, 1.6vw, 20px);
  border-style: solid;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.76), rgba(255, 253, 250, 0.54));
}

.tool-result-sentence p {
  color: rgba(43, 37, 30, 0.74);
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  font-weight: 450;
  line-height: 1.58;
  text-align: center;
}

.capital-gauge {
  display: grid;
  gap: 8px;
  padding: 2px 0 4px;
}

.capital-breakdown {
  overflow: hidden;
  display: flex;
  height: 11px;
  border-radius: 999px;
  background: rgba(43, 37, 30, 0.055);
  box-shadow:
    inset 0 1px 1px rgba(43, 37, 30, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.58),
    0 10px 24px rgba(43, 37, 30, 0.055);
}

.capital-breakdown div:first-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #6f8ba7, #9eb2c4);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.capital-breakdown div:last-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #b99761, #dfcba8);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.capital-breakdown-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.capital-breakdown-labels .capital-metric-invested {
  color: var(--invested-blue);
}

.capital-breakdown-labels .capital-metric-interest {
  color: var(--interest-gold);
}

.capital-breakdown-labels span:last-child {
  text-align: right;
}

.capital-legend,
.capital-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.capital-legend span,
.capital-metrics span,
.capital-shares span {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(43, 37, 30, 0.075);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.58);
}

.capital-legend small,
.capital-metrics small,
.capital-shares small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.capital-legend strong,
.capital-metrics strong,
.capital-shares strong {
  color: var(--ink);
  font-size: clamp(1.18rem, 1.65vw, 1.56rem);
  font-weight: 600;
}

.capital-legend span:first-child strong,
.capital-metric-invested strong {
  color: var(--invested-blue);
}

.capital-legend span:last-child strong,
.capital-metric-interest strong {
  color: var(--interest-gold);
}

.capital-narrative {
  align-self: end;
  margin-top: auto;
  max-width: 620px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 37, 30, 0.075);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.42);
  color: rgba(43, 37, 30, 0.72);
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  font-weight: 450;
  line-height: 1.58;
  text-align: left;
}

.capital-shares {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: calc(12px - clamp(14px, 1.65vw, 20px));
}

.capital-shares span {
  padding-block: 10px;
  background: rgba(255, 253, 250, 0.34);
}

.capital-shares small {
  font-size: 0.74rem;
}

.capital-shares strong {
  color: var(--interest-gold);
  font-size: clamp(0.98rem, 1.2vw, 1.14rem);
  font-weight: 560;
}

.value-update {
  animation: valueUpdate 260ms ease both;
}

.capital-insight {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(185, 151, 97, 0.78);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(199, 174, 137, 0.16), rgba(255, 253, 250, 0.24));
  color: rgba(43, 37, 30, 0.76);
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.35;
}

.capital-insight p {
  margin: 0;
  color: rgba(43, 37, 30, 0.76);
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.42;
}

.capital-visual {
  overflow: hidden;
  display: flex;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(43, 37, 30, 0.06);
}

.capital-visual span:first-child {
  background: linear-gradient(90deg, rgba(111, 139, 167, 0.84), rgba(158, 178, 196, 0.72));
}

.capital-visual span:last-child {
  background: linear-gradient(90deg, rgba(185, 151, 97, 0.88), rgba(223, 203, 168, 0.78));
}

.tool-view-toggle {
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(43, 37, 30, 0.1);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.88), rgba(242, 238, 230, 0.66));
  box-shadow: 0 16px 34px rgba(43, 37, 30, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.tool-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tool-view-toggle button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.tool-view-toggle button.is-active {
  background: linear-gradient(180deg, #332d25 0%, var(--button) 54%, #211c17 100%);
  color: var(--white);
  box-shadow: 0 10px 18px rgba(43, 37, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  view-transition-name: tool-view-active;
}

.tool-card-title,
.tool-params-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
}

.tool-params-title {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

.tool-card-title h2,
.tool-params-title h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.38rem, 2vw, 1.78rem);
  font-weight: 400;
  line-height: 0.96;
  transform: scaleX(1.06);
  transform-origin: left center;
}

.tool-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font: 500 0.74rem var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms ease;
}

.tool-reset svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.tool-reset:hover {
  color: var(--ink);
}

.line-chart {
  display: grid;
  gap: 18px;
  animation: toolFadeUp 300ms ease both;
}

.chart-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chart-totals span {
  padding: 9px 14px;
  border: 1px solid rgba(43, 37, 30, 0.075);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.58);
  color: var(--muted);
  font-size: 0.86rem;
}

.chart-totals .capital-metric-interest strong {
  color: var(--interest-gold);
}

.chart-totals .capital-metric-invested strong {
  color: var(--invested-blue);
}

.chart-totals strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.35vw, 1.2rem);
  font-weight: 550;
}

.chart-totals span:first-child strong {
  font-family: var(--serif);
  font-size: clamp(1.14rem, 1.6vw, 1.42rem);
  font-weight: 400;
}

.chart-canvas {
  position: relative;
  aspect-ratio: 960 / 380;
  min-height: 230px;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.4), rgba(255, 253, 250, 0.14)),
    radial-gradient(circle at 50% 0%, rgba(199, 174, 137, 0.14), transparent 42%);
  cursor: crosshair;
}

.chart-grid line {
  stroke: rgba(43, 37, 30, 0.08);
  stroke-width: 1;
}

.chart-grid text,
.chart-axis text {
  fill: var(--muted);
  stroke: none;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  text-anchor: end;
}

.chart-axis text {
  text-anchor: middle;
}

.chart-area {
  stroke: none;
}

.chart-area-invested {
  fill: url(#chartAreaInvested);
}

.chart-area-gains {
  fill: url(#chartAreaGains);
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.chart-line-capital {
  stroke: var(--ink);
}

.chart-line-invested {
  stroke: var(--invested-blue);
  stroke-width: 1.5;
  opacity: 0.75;
}

.chart-hover-line {
  stroke: rgba(43, 37, 30, 0.3);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-hover-dot {
  stroke: #fffdfa;
  stroke-width: 2;
}

.chart-hover-dot-capital {
  fill: var(--ink);
}

.chart-hover-dot-invested {
  fill: var(--invested-blue);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-capital {
  background: var(--ink);
}

.legend-gains {
  background: var(--interest-gold);
}

.legend-invested {
  background: var(--invested-blue);
}

.pie-chart {
  display: grid;
  animation: toolFadeUp 300ms ease both;
}

.pie-layout {
  display: grid;
  grid-template-columns: auto minmax(240px, 320px);
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
}

.pie-canvas {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
}

.pie-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.pie-track {
  fill: none;
  stroke: rgba(43, 37, 30, 0.06);
}

.pie-segment {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dasharray 400ms ease, stroke-dashoffset 400ms ease;
}

.pie-segment-invested {
  stroke: url(#pieInvested);
}

.pie-segment-gains {
  stroke: url(#pieGains);
}

.pie-center {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.pie-center > span {
  position: relative;
  padding-bottom: 11px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pie-center > span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--interest-gold);
  transform: translateX(-50%);
}

.pie-center strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 450;
  line-height: 1;
}

.pie-center strong small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 500;
}

.pie-legend {
  display: grid;
  gap: 14px;
}

.pie-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 37, 30, 0.075);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.58);
}

.pie-legend-row i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.pie-legend-invested i {
  background: var(--invested-blue);
}

.pie-legend-gains i {
  background: var(--interest-gold);
}

.pie-legend-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pie-legend-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pie-legend-copy strong {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  font-weight: 600;
}

.pie-legend-invested strong {
  color: var(--invested-blue);
}

.pie-legend-gains strong {
  color: var(--interest-gold);
}

.pie-legend-row small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 152px;
  padding: 10px 13px;
  border: 1px solid rgba(43, 37, 30, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 18px 34px rgba(43, 37, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px) saturate(1.08);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.chart-tooltip-year {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0;
  font-size: 0.82rem;
}

.chart-tooltip-row small {
  color: var(--muted);
}

.chart-tooltip-row strong {
  font-weight: 600;
}

.chart-tooltip-capital strong {
  color: var(--ink);
}

.chart-tooltip-gains strong {
  color: var(--interest-gold);
}

.chart-tooltip-invested strong {
  color: var(--invested-blue);
}

.tool-table-wrap {
  max-height: 633px;
  overflow: auto;
}

.tool-table-wrap table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tool-table-wrap th,
.tool-table-wrap td {
  width: 23%;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(43, 37, 30, 0.065);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-table-wrap th:first-child,
.tool-table-wrap td:first-child {
  width: 8%;
  text-align: left;
}

.tool-table-wrap th:nth-child(2),
.tool-table-wrap td:nth-child(2) {
  color: var(--invested-blue);
}

.tool-table-wrap th:nth-child(3),
.tool-table-wrap td:nth-child(3),
.tool-table-wrap th:nth-child(4),
.tool-table-wrap td:nth-child(4) {
  color: var(--interest-gold);
}

.tool-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 253, 250, 0.94);
  color: var(--muted);
  font-weight: 600;
}

.tool-params {
  display: grid;
  gap: 18px;
  padding: 34px clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.84), rgba(246, 241, 232, 0.58)),
    radial-gradient(circle at 0% 0%, rgba(199, 174, 137, 0.16), transparent 42%);
}

.tool-fields {
  display: grid;
  gap: 0;
}

.tool-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 20px;
  padding: 14px 2px 17px;
  border: 0;
  border-bottom: 1px solid rgba(43, 37, 30, 0.065);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tool-field:last-child {
  border-bottom: 0;
}

.tool-field > span {
  color: rgba(43, 37, 30, 0.62);
  font-size: 0.9rem;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.tool-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tool-input-wrap:focus-within {
  background: transparent;
  box-shadow: none;
}

.tool-input-wrap input {
  width: clamp(74px, 7vw, 104px);
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: textfield;
  color: var(--ink);
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  text-align: right;
}

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

.tool-input-wrap small {
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 520;
}

.tool-range {
  grid-column: 1 / -1;
  width: 100%;
  height: 16px;
  margin: 3px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  --range-progress: 0%;
}

.tool-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(185, 151, 97, 0.88) 0 var(--range-progress), rgba(111, 139, 167, 0.28) var(--range-progress) 100%);
}

.tool-range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 1px solid rgba(43, 37, 30, 0.18);
  border-radius: 50%;
  appearance: none;
  background: linear-gradient(180deg, #fffdfa, #eadfcd);
  box-shadow: 0 8px 18px rgba(43, 37, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tool-range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(185, 151, 97, 0.88) 0 var(--range-progress), rgba(111, 139, 167, 0.28) var(--range-progress) 100%);
}

.tool-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(43, 37, 30, 0.18);
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdfa, #eadfcd);
  box-shadow: 0 8px 18px rgba(43, 37, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tool-fee-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(43, 37, 30, 0.065);
}

.tool-fee-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 10px 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tool-fee-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  color: rgba(43, 37, 30, 0.62);
  font-size: 0.9rem;
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 1.22;
  white-space: nowrap;
}

.tool-fee-toggle input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--button);
}

.tool-fee-rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 10px;
  min-width: 0;
  animation: toolFadeUp 240ms ease both;
}

.tool-fee-rate > span {
  color: rgba(43, 37, 30, 0.5);
  font-size: 0.72rem;
  font-weight: 520;
}

.tool-fee-rate .tool-input-wrap input {
  width: 44px;
  min-height: 22px;
  font-size: 0.86rem;
}

.tool-fee-rate .tool-input-wrap small {
  padding-left: 5px;
  font-size: 0.66rem;
}

.tool-range-mini {
  height: 12px;
  margin-top: 0;
}

.tool-range-mini::-webkit-slider-runnable-track {
  height: 2px;
}

.tool-range-mini::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
}

.tool-range-mini::-moz-range-track {
  height: 2px;
}

.tool-range-mini::-moz-range-thumb {
  width: 11px;
  height: 11px;
}

.tool-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.tool-switch-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--button);
}

@keyframes toolFadeUp {
  from {
    opacity: 0.72;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes valueUpdate {
  from {
    opacity: 0.62;
    filter: brightness(1.08);
  }

  to {
    opacity: 1;
    filter: brightness(1);
  }
}

@media (max-width: 980px) {
  .simulator-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 760px);
  }

  .simulator-choice {
    min-height: 230px;
  }

  .tool-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-overview {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tool-summary {
    grid-template-columns: 1fr;
  }

  .tool-result-main {
    grid-row: auto;
    grid-column: auto;
  }

  .capital-heading,
  .capital-metrics,
  .capital-shares {
    grid-template-columns: 1fr;
  }

  .capital-multiple {
    justify-items: start;
  }

  .capital-multiple span {
    transform-origin: left center;
  }
}

@media (max-width: 660px) {
  .tool-fee-group {
    grid-template-columns: 1fr;
  }

  .simulator-choice-grid {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }

  .simulator-choice {
    min-height: 0;
    padding: 22px;
  }

  .tool-page {
    padding: 68px 14px 34px;
  }

  .tool-nav {
    margin-bottom: 20px;
  }

  .tool-nav h1 {
    font-size: 2.25rem;
  }

  .client-panel {
    grid-template-columns: 1fr;
  }

  .tool-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tool-tab {
    width: 100%;
  }

  .tool-summary,
  .chart-totals,
  .pie-layout {
    grid-template-columns: 1fr;
  }

  .capital-heading,
  .capital-metrics,
  .capital-shares {
    grid-template-columns: 1fr;
  }

  .capital-multiple {
    justify-items: start;
  }

  .capital-multiple span {
    transform-origin: left center;
  }

  .tool-result-main {
    grid-column: auto;
  }

  .tool-result-multiple {
    align-items: start;
  }

  .tool-result-multiple p {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .tool-view-toggle {
    width: 100%;
    justify-content: center;
  }

  .tool-card-title,
  .tool-params-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-canvas {
    min-height: 270px;
  }

  .tool-table-wrap {
    max-height: 240px;
  }

  .tool-table-wrap table {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .appointment,
  .appointment-link,
  .tool-result-card,
  .line-chart {
    animation: none;
    transition: none;
  }

  .appointment:hover,
  .appointment-link:hover {
    transform: none;
  }
}

@media (min-width: 901px) and (min-height: 760px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (min-width: 901px) and (max-height: 880px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    padding: 76px 44px 52px;
    grid-template-rows: auto auto 1fr auto;
    row-gap: 9px;
  }

  .page::before {
    top: 0;
    width: min(980px, calc(100% - 32px));
    height: 430px;
  }

  .intro {
    gap: 8px;
  }

  .eyebrow {
    font-size: 1.14rem;
    letter-spacing: 0.14em;
    transform: scaleX(0.94);
  }

  h1 {
    font-size: 4.25rem;
  }

  .lead {
    max-width: 820px;
    font-size: 1.32rem;
    line-height: 1.28;
  }

  .welcome {
    margin-top: 34px;
    margin-bottom: 38px;
  }

  .top-details {
    font-size: 0.88rem;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  h2 {
    font-size: 1.95rem;
  }

  .appointment-grid {
    gap: 20px;
  }

  .appointment {
    min-height: 265px;
    gap: 7px;
    padding: 18px 22px;
    border-radius: 18px;
  }

  .card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  h3 {
    font-size: clamp(1.7rem, 2.1vw, 2.2rem);
    transform: scaleX(1.06);
  }

  .appointment-title-long {
    font-size: clamp(1.46rem, 1.82vw, 1.9rem);
  }

  .duration {
    font-size: 0.9rem;
  }

  .appointment-link {
    min-width: 218px;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .page-note {
    margin-top: 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1100px) {
  .page {
    padding: 42px 28px 48px;
    gap: 24px;
  }

  .eyebrow {
    font-size: 1.22rem;
    letter-spacing: 0.13em;
    transform: scaleX(0.94);
  }

  h1 {
    font-size: 4.6rem;
  }

  .lead {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  }

  .appointment-title-long {
    font-size: clamp(1.56rem, 1.96vw, 2.08rem);
  }

  .appointment {
    padding: 24px;
  }

  .appointment-copy {
    min-height: 96px;
  }

  .appointment-link {
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 901px) {
  .page {
    padding: clamp(82px, 9svh, 108px) clamp(32px, 3vw, 52px) clamp(44px, 5svh, 70px);
    row-gap: clamp(8px, 1.2svh, 16px);
  }

  .page::before {
    top: 0;
    width: min(1100px, calc(100% - 40px));
    height: clamp(390px, 48svh, 520px);
  }

  .intro {
    gap: clamp(8px, 1.2svh, 14px);
  }

  .brand-logo {
    width: clamp(76px, 7.5svh, 104px);
    margin-bottom: 0;
  }

  .simulator-logo {
    width: clamp(76px, 7.5svh, 104px);
  }

  .title-block {
    gap: clamp(16px, 2svh, 24px);
  }

  h1 {
    font-size: clamp(4rem, min(4.7vw, 7.8svh), 4.85rem);
  }

  .eyebrow {
    font-size: clamp(1.06rem, min(1.25vw, 2svh), 1.28rem);
    letter-spacing: 0.13em;
    transform: scaleX(0.94);
  }

  .top-details {
    margin-top: clamp(14px, 2.2svh, 26px);
    font-size: clamp(0.9rem, 1vw, 1.06rem);
  }

  .contact-link {
    min-height: clamp(40px, 4.8svh, 46px);
    padding: 0 clamp(13px, 1.3vw, 17px);
  }

  .lead {
    max-width: min(980px, 78vw);
    font-size: clamp(1.28rem, min(1.65vw, 2.6svh), 1.62rem);
    line-height: 1.28;
  }

  .welcome {
    margin-top: clamp(14px, 2.2svh, 26px);
    margin-bottom: clamp(28px, 4svh, 40px);
  }

  .appointments {
    width: min(100%, clamp(900px, 78vw, 1120px));
  }

  .section-heading {
    margin-bottom: clamp(28px, 4.8svh, 52px);
  }

  h2 {
    font-size: clamp(1.9rem, min(2.45vw, 3.8svh), 2.5rem);
  }

  .appointment-grid {
    gap: clamp(18px, 1.8vw, 26px);
  }

  .appointment {
    min-height: clamp(335px, 39svh, 385px);
    gap: clamp(7px, 1svh, 12px);
    padding: clamp(18px, 2vw, 28px);
  }

  .card-icon {
    width: clamp(36px, 3.2vw, 44px);
    height: clamp(36px, 3.2vw, 44px);
    margin-bottom: clamp(8px, 1.8svh, 18px);
    font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  }

  h3 {
    font-size: clamp(1.9rem, 2.5vw, 2.6rem);
    transform: scaleX(1.06);
  }

  .appointment-title-long {
    font-size: clamp(1.56rem, 1.96vw, 2.08rem);
  }

  .duration {
    font-size: clamp(0.86rem, 0.94vw, 0.98rem);
  }

  .appointment-copy {
    min-height: clamp(84px, 10svh, 112px);
    font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  }

  .appointment-link {
    width: min(100%, max(210px, 82%));
    min-width: 0;
    margin-inline: auto;
    min-height: clamp(44px, 4.8svh, 52px);
    margin-top: clamp(18px, 2.4svh, 24px);
    padding: 0 clamp(14px, 1.6vw, 24px);
    font-size: 0.9rem;
  }

  .page-note {
    margin-top: clamp(14px, 2.2svh, 22px);
    font-size: clamp(0.84rem, 0.88vw, 0.96rem);
  }
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto auto auto auto;
    justify-items: center;
    padding: 72px 20px 44px;
    overflow-x: clip;
  }

  .page::before {
    top: 0;
    width: min(100vw, 100%);
    height: 390px;
  }

  .intro {
    margin-bottom: 28px;
  }

  .top-details {
    margin-top: 34px;
  }

  .welcome {
    margin-top: 30px;
    margin-bottom: 34px;
  }

  .appointments {
    width: min(100%, 560px);
    justify-self: center;
  }

  .section-heading {
    text-align: center;
    margin-bottom: 26px;
  }

  .appointment-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  .appointment {
    width: min(100%, 560px);
    min-height: 0;
    padding: 20px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    font-size: 1rem;
  }

  h3 {
    font-size: 1.68rem;
    line-height: 1;
    transform: scaleX(1.05);
  }

  .duration {
    font-size: 1rem;
  }

  .appointment-copy {
    min-height: 0;
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.36;
  }

  .appointment-link {
    min-height: 50px;
    margin-top: 12px;
  }

  .page-note {
    margin-top: 28px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .simulator-page {
    padding: 72px 18px 42px;
    gap: 24px;
  }

  .simulator-title-block h1 {
    font-size: 3.8rem;
  }

  .simulator-workspace {
    gap: 12px;
  }

  .simulator-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .simulator-tab {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .simulator-panel-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .simulator-shell {
    min-height: 620px;
    border-radius: 20px;
  }

  .simulator-frame-wrap,
  .simulator-frame-wrap iframe,
  .simulator-empty {
    min-height: 500px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 68px 14px 38px;
  }

  .page::before {
    width: min(100vw, 100%);
    height: 340px;
  }

  .intro {
    gap: 14px;
    margin-bottom: 24px;
  }

  .brand-logo {
    width: 96px;
    margin-bottom: 0;
  }

  .welcome {
    margin-top: 24px;
    margin-bottom: 30px;
  }

  .eyebrow {
    font-size: 0.84rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 2.72rem;
  }

  .title-block {
    max-width: 100%;
    gap: 22px;
    transform: scaleX(1.04);
  }

  .lead {
    font-size: 1.1rem;
    line-height: 1.28;
  }

  .lead-desktop {
    display: none;
  }

  .lead-mobile {
    display: block;
  }

  .top-details {
    width: fit-content;
    max-width: 100%;
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    justify-content: center;
    white-space: normal;
  }

  .contact-link {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0 16px;
  }

  .section-heading {
    display: none;
  }

  h2 {
    font-size: 1.62rem;
    transform: scaleX(1.04);
  }

  .appointment {
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
    font-size: 0.92rem;
  }

  h3 {
    font-size: 1.4rem;
    transform: scaleX(1.04);
  }

  .appointment-title-long {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    white-space: normal;
  }

  .duration,
  .appointment-copy {
    font-size: 0.92rem;
  }

  .appointment-copy {
    min-height: 0;
  }

  .appointment-link {
    min-height: 48px;
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .main-nav {
    top: 12px;
    width: min(calc(100% - 28px), 320px);
    font-size: 0.82rem;
  }

  .main-nav a {
    flex: 1;
    min-height: 32px;
    padding: 0 10px;
  }

  .simulator-page {
    padding: 68px 12px 34px;
  }

  .simulator-logo {
    width: 96px;
  }

  .simulator-title-block {
    gap: 10px;
  }

  .simulator-title-block .eyebrow {
    font-size: 0.78rem;
  }

  .simulator-title-block h1 {
    font-size: 3rem;
    transform: scaleX(1.04);
  }

  .simulator-intro {
    font-size: 1rem;
  }

  .simulator-tabs {
    grid-template-columns: 1fr;
  }

  .simulator-tab {
    width: 100%;
  }

  .simulator-panel-header {
    padding: 18px;
  }

  .simulator-panel-header h2 {
    font-size: 2rem;
  }

  .simulator-shell {
    min-height: 560px;
    border-radius: 18px;
  }

  .simulator-frame-wrap,
  .simulator-frame-wrap iframe,
  .simulator-empty {
    min-height: 420px;
  }

  .simulator-empty {
    padding: 24px 18px;
  }

  .simulator-empty p {
    font-size: 2rem;
  }
}

@media print {
  @page {
    margin: 14mm 12mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    animation: none !important;
    transition: none !important;
  }

  html,
  body {
    background: var(--paper) !important;
  }

  html {
    background-image: none !important;
  }

  body::before {
    display: none !important;
  }

  .main-nav,
  .tool-export-pdf,
  .tool-reset,
  .tool-view-toggle,
  .tool-range,
  .chart-hover,
  .chart-tooltip {
    display: none !important;
  }

  .print-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(185, 151, 97, 0.5);
  }

  .print-header img {
    width: 44px;
    height: auto;
  }

  .print-header-identity {
    display: grid;
    gap: 2px;
  }

  .print-header-identity strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.24rem;
    font-weight: 400;
  }

  .print-header-identity span {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .print-header-meta {
    margin-left: auto;
    display: grid;
    gap: 2px;
    text-align: right;
  }

  .print-header-meta strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
  }

  .print-header-meta span {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .print-footer {
    display: block;
    margin: 24px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(43, 37, 30, 0.16);
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
  }

  .tool-page {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .tool-page::before {
    display: none !important;
  }

  .tool-nav {
    display: none !important;
  }

  .tool-layout {
    width: 100%;
    gap: 16px;
  }

  .tool-overview {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tool-overview,
  .tool-params,
  .tool-result-card,
  .tool-chart-card,
  .tool-pie-card,
  .tool-table-card {
    border: 1px solid rgba(43, 37, 30, 0.18);
    box-shadow: none !important;
    backdrop-filter: none !important;
    break-inside: avoid;
  }

  .tool-chart-card[hidden],
  .tool-pie-card[hidden],
  .tool-table-card[hidden] {
    display: grid !important;
  }

  .tool-detail-panels {
    gap: 16px;
  }

  .tool-input-wrap input {
    border: 0 !important;
    background: transparent !important;
  }

  .tool-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .tool-table-wrap th {
    position: static;
  }
}
