/* Hypotenuse calculator */
.hyp-page { overflow: hidden; color: var(--ink); background: #fff; }
.hyp-hero { position: relative; padding: 28px max(24px, calc((100% - 1180px) / 2)) 72px; background: linear-gradient(135deg, #fbf8ff 0%, #f2e8fa 58%, #fff 100%); isolation: isolate; }
.hyp-hero::before, .hyp-hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border: 1px solid rgba(123,47,190,.09); border-radius: 50%; }
.hyp-hero::before { width: 590px; height: 590px; right: -160px; top: 95px; box-shadow: 0 0 0 36px rgba(123,47,190,.035), 0 0 0 72px rgba(123,47,190,.025); }
.hyp-hero::after { width: 300px; height: 300px; left: -125px; bottom: -130px; background: rgba(255,255,255,.2); }
.hyp-breadcrumbs { max-width: 1180px; margin: 0 auto; }
.hyp-eyebrow { display: flex; justify-content: center; align-items: center; gap: 11px; margin: 28px auto 0; color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hyp-eyebrow-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: 0 10px 22px rgba(79,29,106,.12); }
.hyp-eyebrow-icon img { width: 70px; height: 70px; display: block; object-fit: contain; }
.hyp-hero h1 { max-width: 980px; margin: 23px auto 0; color: #30103f; font-family: var(--display), Georgia, serif; font-size: clamp(48px, 7vw, 90px); font-weight: 500; line-height: .98; letter-spacing: -.065em; text-align: center; }
.hyp-hero-subtitle { max-width: 730px; margin: 22px auto 0; color: #786b80; font-size: 18px; line-height: 1.6; text-align: center; }
.hyp-calculator { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr); max-width: 1180px; min-height: 585px; margin: 38px auto 0; overflow: hidden; border: 1px solid #dfd2e5; border-radius: 30px; background: #fff; box-shadow: 0 30px 70px rgba(71,29,94,.15); }
.hyp-form-side { padding: 32px; background: rgba(255,255,255,.95); }
.hyp-panel-topline, .hyp-result-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #856c8f; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.hyp-live, .hyp-result-status { display: inline-flex; align-items: center; gap: 7px; color: var(--purple); white-space: nowrap; }
.hyp-live i, .hyp-result-status i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #8f3bd1; box-shadow: 0 0 0 5px #f0e2f8; }
.hyp-panel-heading { display: flex; align-items: center; gap: 17px; margin-top: 27px; }
.hyp-panel-icon { width: 88px; height: 88px; flex: 0 0 88px; display: grid; place-items: center; border-radius: 25px; background: linear-gradient(145deg,#f2e5f9,#fff); }
.hyp-panel-icon img { width: 118px; height: 118px; display: block; object-fit: contain; }
.hyp-kicker { display: block; color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hyp-panel-heading h2 { margin: 7px 0 0; color: #23132d; font-size: clamp(27px, 3vw, 38px); font-weight: 500; line-height: 1.04; letter-spacing: -.05em; }
.hyp-panel-lead { max-width: 520px; margin: 19px 0 0; color: #796e81; font-size: 16px; line-height: 1.55; }
.hyp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }
.hyp-field, .hyp-unit-field { display: block; min-width: 0; }
.hyp-field > span, .hyp-unit-field > span { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #4b3854; font-size: 14px; font-weight: 800; }
.hyp-field > span i, .hyp-unit-field > span i { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 8px; background: #f0e3f7; color: var(--purple); font-size: 12px; font-style: normal; font-weight: 900; }
.hyp-field > div { position: relative; }
.hyp-field input, .hyp-unit-field select { width: 100%; height: 58px; border: 1px solid #ddd0e4; border-radius: 16px; outline: 0; background: #fff; color: #25132e; font: inherit; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.hyp-field input { padding: 0 54px 0 17px; font-size: 21px; font-weight: 800; }
.hyp-field input::placeholder { color: #b9abbf; font-size: 17px; font-weight: 500; }
.hyp-field input:focus, .hyp-unit-field select:focus { border-color: #9b51ce; box-shadow: 0 0 0 4px rgba(143,59,209,.12); background: #fffdff; }
.hyp-field em { position: absolute; top: 50%; right: 16px; color: #967fa0; font-size: 11px; font-style: normal; font-weight: 900; transform: translateY(-50%); }
.hyp-unit-field { margin-top: 16px; }
.hyp-unit-field select { padding: 0 17px; color: #3b2745; font-size: 16px; font-weight: 700; }
.hyp-hint { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 15px; background: #f7effb; color: #77667e; }
.hyp-hint > span, .hyp-formula-note > span { width: 21px; height: 21px; flex: 0 0 21px; display: grid; place-items: center; border-radius: 50%; background: #e9d7f3; color: var(--purple); font-size: 12px; font-weight: 900; }
.hyp-hint p, .hyp-formula-note p { margin: 0; font-size: 14px; line-height: 1.45; }
.hyp-actions { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 10px; margin-top: 20px; }
.hyp-submit, .hyp-reset { min-height: 51px; border: 0; border-radius: 15px; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.hyp-submit { background: linear-gradient(120deg,#7624ba,#983bd0); color: #fff; box-shadow: 0 13px 24px rgba(123,47,190,.24); }
.hyp-submit span { margin-left: 8px; font-size: 18px; }
.hyp-submit:hover { box-shadow: 0 17px 30px rgba(123,47,190,.3); transform: translateY(-2px); }
.hyp-reset { border: 1px solid #dfd0e5; background: #fbf8fc; color: #765d80; }
.hyp-reset:hover { background: #f3e9f7; }
.hyp-result-side { position: relative; display: flex; flex-direction: column; padding: 32px; overflow: hidden; background: linear-gradient(145deg,#fffaff 0%,#f6eafa 58%,#eee0f7 100%); }
.hyp-result-side::before, .hyp-result-side::after { content: ''; position: absolute; border: 1px solid rgba(123,47,190,.12); border-radius: 50%; pointer-events: none; }
.hyp-result-side::before { width: 520px; height: 520px; right: -260px; top: 95px; box-shadow: 0 0 0 30px rgba(123,47,190,.04), 0 0 0 60px rgba(123,47,190,.025); }
.hyp-result-side::after { width: 180px; height: 180px; left: -100px; bottom: -45px; }
.hyp-result-content { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 480px; }
.hyp-empty-state, .hyp-error-state { max-width: 350px; margin: auto; text-align: center; }
.hyp-empty-icon { width: 104px; height: 104px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid #e2d2e9; border-radius: 30px; background: rgba(255,255,255,.78); box-shadow: 0 18px 35px rgba(84,35,107,.1); }
.hyp-empty-icon img { width: 136px; height: 136px; display: block; object-fit: contain; }
.hyp-empty-state h2, .hyp-error-state h2 { margin: 0; color: #351444; font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.hyp-empty-state p, .hyp-error-state p { margin: 12px 0 0; color: #806f87; font-size: 16px; line-height: 1.55; }
.hyp-error-state > span { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 21px; background: #f6dce9; color: #ac356a; font-size: 30px; font-weight: 900; }
.hyp-triangle-visual { position: relative; width: 280px; height: 170px; margin: 0 auto 4px; }
.hyp-triangle-shape { position: absolute; left: 31px; bottom: 24px; width: 190px; height: 132px; clip-path: polygon(0 100%, 0 0, 100% 100%); background: linear-gradient(145deg,#c991e8,#6e22ad); filter: drop-shadow(8px 12px 8px rgba(85,27,115,.2)); }
.hyp-triangle-shape::after { content: ''; position: absolute; left: 4px; top: 4px; width: 178px; height: 124px; clip-path: polygon(0 100%, 0 0, 100% 100%); background: linear-gradient(145deg,#f3d67d,#b27b1d); transform: translate(0,0); opacity: .95; }
.hyp-triangle-shape::before { content: ''; position: absolute; left: 6px; top: 6px; width: 171px; height: 115px; clip-path: polygon(0 100%, 0 0, 100% 100%); background: linear-gradient(145deg,#d79bf0,#873dc0); z-index: 1; }
.hyp-triangle-a, .hyp-triangle-b, .hyp-triangle-c { position: absolute; z-index: 2; color: #6a2a93; font-size: 12px; font-weight: 900; }
.hyp-triangle-a { left: 12px; top: 70px; }
.hyp-triangle-b { left: 110px; bottom: 2px; }
.hyp-triangle-c { right: 0; top: 45px; color: #9b6d13; transform: rotate(39deg); }
.hyp-main-result { text-align: center; }
.hyp-main-result small { display: block; color: #8d6c98; font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hyp-main-result strong { display: block; margin-top: 5px; color: #431054; font-size: clamp(52px, 6vw, 78px); font-weight: 800; line-height: .94; letter-spacing: -.07em; animation: hyp-result-pop .45s ease both; }
.hyp-main-result span { display: block; margin-top: 9px; color: #7c6885; font-size: 16px; font-weight: 800; }
@keyframes hyp-result-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hyp-formula-result { max-width: 380px; margin: 26px auto 0; padding: 17px 19px; border: 1px solid #e1d1e8; border-radius: 19px; background: rgba(255,255,255,.74); box-shadow: 0 12px 24px rgba(91,37,115,.07); }
.hyp-formula-result > span, .hyp-formula-card > .hyp-card-label, .hyp-example-card > .hyp-card-label { color: #8a6a95; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hyp-formula-result strong { display: block; margin-top: 9px; color: #54226c; font-size: 20px; }
.hyp-formula-result p { margin: 7px 0 0; color: #725f7c; font-size: 15px; line-height: 1.45; }
.hyp-formula-result p b { color: #7424b5; }
.hyp-content-section { padding: 87px max(24px, calc((100% - 1100px) / 2)); background: #fff; }
.hyp-tinted { background: #f7f0fa; }
.hyp-section-heading { display: flex; align-items: flex-start; gap: 17px; }
.hyp-section-heading > span { width: 49px; height: 49px; flex: 0 0 49px; display: grid; place-items: center; border: 1px solid #dfd0e6; border-radius: 16px; background: #fff; color: var(--purple); font-size: 12px; font-weight: 900; box-shadow: 0 12px 23px rgba(85,31,109,.08); }
.hyp-section-heading p { margin: 0; color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hyp-section-heading h2 { margin: 8px 0 0; color: #24142f; font-size: clamp(34px, 5vw, 61px); font-weight: 500; line-height: 1.02; letter-spacing: -.065em; }
.hyp-lead { max-width: 760px; margin: 21px 0 0 66px; color: #766b7d; font-size: 18px; line-height: 1.65; }
.hyp-step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-top: 42px; }
.hyp-step-grid article { min-height: 280px; padding: 22px; border: 1px solid #e1d4e6; border-radius: 23px; background: #fff; box-shadow: 0 17px 35px rgba(75,30,94,.07); }
.hyp-step-icon { position: relative; width: 85px; height: 85px; display: grid; place-items: center; margin-bottom: 30px; border: 1px solid #e3d5e9; border-radius: 25px; background: linear-gradient(145deg,#fbf5fd,#fff); box-shadow: 0 12px 22px rgba(71,27,94,.1); }
.hyp-step-icon img { width: 112px; height: 112px; display: block; object-fit: contain; }
.hyp-step-icon b { position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 10px; background: #8b32c6; color: #fff; font-size: 10px; }
.hyp-step-symbol { color: #7926b3; font-size: 36px; }
.hyp-step-symbol i { font-style: normal; }
.hyp-step-grid h3 { margin: 0; color: #2d1838; font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.hyp-step-grid p { margin: 10px 0 0; color: #7a6c82; font-size: 16px; line-height: 1.55; }
.hyp-example-layout { display: grid; grid-template-columns: .93fr 1.07fr; gap: 15px; margin-top: 42px; }
.hyp-example-card, .hyp-formula-card { min-height: 310px; padding: 29px; border: 1px solid #dfd3e5; border-radius: 25px; }
.hyp-example-card { background: linear-gradient(145deg,#fffaff,#f5ecf9); }
.hyp-example-card h3 { margin: 13px 0 0; color: #2d1739; font-size: 29px; font-weight: 500; letter-spacing: -.05em; }
.hyp-example-flow { display: flex; align-items: center; gap: 10px; margin-top: 25px; }
.hyp-example-flow strong { min-width: 58px; padding: 13px 12px; border: 1px solid #e2d3e8; border-radius: 14px; background: #fff; color: #7626b4; font-size: 25px; text-align: center; }
.hyp-example-flow i { color: #906aa0; font-size: 13px; font-style: normal; }
.hyp-example-flow b { color: #7c2ab5; font-size: 24px; font-weight: 400; }
.hyp-example-flow small { margin-left: -4px; color: #836c8c; font-size: 12px; font-weight: 800; }
.hyp-example-card p, .hyp-formula-card p, .hyp-definition-copy p, .hyp-theorem-copy p { color: #75687d; font-size: 16px; line-height: 1.65; }
.hyp-example-card p { margin: 24px 0 0; }
.hyp-formula-card { background: #432052; color: #fff; box-shadow: 0 18px 36px rgba(62,24,79,.16); }
.hyp-formula-card > .hyp-card-label { color: #d9acef; }
.hyp-big-formula { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 95px; margin-top: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 19px; background: rgba(255,255,255,.08); color: #fff; font-size: 30px; }
.hyp-big-formula span { color: #e7c769; font-size: 48px; font-weight: 300; }
.hyp-big-formula i { color: #dbbff0; font-style: normal; }
.hyp-formula-card p { margin: 21px 0 0; color: #e0cfe7; }
.hyp-formula-card p strong { color: #fff; }
.hyp-formula-note { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 11px 12px; border-radius: 13px; background: rgba(255,255,255,.1); color: #eadbf0; }
.hyp-formula-note > span { background: #735083; color: #fff; }
.hyp-definition-layout { display: grid; grid-template-columns: 400px 1fr; align-items: center; gap: 48px; margin-top: 42px; }
.hyp-definition-visual { position: relative; min-height: 315px; display: grid; place-items: center; border: 1px solid #e2d3e8; border-radius: 28px; background: linear-gradient(145deg,#fff,#f2e7f8); box-shadow: 0 19px 38px rgba(75,29,94,.08); }
.hyp-definition-visual img { width: 260px; height: 260px; object-fit: contain; }
.hyp-definition-visual > span { position: absolute; right: 45px; top: 43px; color: #a87619; font-family: Georgia,serif; font-size: 42px; font-style: italic; font-weight: 700; }
.hyp-definition-copy p { margin: 0 0 16px; }
.hyp-definition-copy p strong { color: #4c1b63; }
.hyp-theorem-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 28px; margin-top: 42px; }
.hyp-theorem-statement { padding: 29px; border: 1px solid #dfd0e8; border-radius: 26px; background: linear-gradient(145deg,#f8effb,#fff); }
.hyp-theorem-statement p { margin: 0; color: #503d59; font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.hyp-theorem-formula { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 28px 0 17px; color: #7927b3; font-family: Georgia,serif; font-size: 38px; }
.hyp-theorem-formula i { color: #b587c6; font-style: normal; }
.hyp-theorem-statement > span { color: #82658f; font-size: 13px; }
.hyp-theorem-statement > span strong { color: #5e1d80; }
.hyp-theorem-copy { padding-top: 6px; }
.hyp-theorem-copy p { margin: 0 0 17px; }
.hyp-bottom-note { display: flex; align-items: center; gap: 12px; margin-top: 38px; padding: 14px 16px; border: 1px solid #e4d6e9; border-radius: 16px; background: #fbf7fd; }
.hyp-bottom-note > span { color: #862fc2; font-size: 22px; }
.hyp-bottom-note p { margin: 0; color: #816f87; font-size: 15px; line-height: 1.45; }
.hyp-bottom-note a { margin-left: auto; color: #7020ad; font-size: 15px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.hyp-bottom-note a span { margin-left: 5px; font-size: 17px; }
@media (max-width: 900px) { .hyp-hero { padding-right: 18px; padding-left: 18px; } .hyp-calculator { grid-template-columns: 1fr; } .hyp-result-side { min-height: 480px; } .hyp-definition-layout { grid-template-columns: 1fr; gap: 25px; } .hyp-definition-visual { min-height: 260px; } }
@media (max-width: 700px) { .hyp-hero { padding-top: 18px; padding-bottom: 48px; } .hyp-eyebrow { margin-top: 21px; font-size: 10px; } .hyp-eyebrow-icon { width: 42px; height: 42px; border-radius: 13px; } .hyp-eyebrow-icon img { width: 59px; height: 59px; } .hyp-hero h1 { margin-top: 20px; font-size: clamp(42px, 13vw, 68px); } .hyp-hero-subtitle { margin-top: 17px; font-size: 16px; } .hyp-calculator { margin-top: 28px; border-radius: 22px; } .hyp-form-side, .hyp-result-side { padding: 22px 18px; } .hyp-panel-heading { gap: 12px; margin-top: 22px; } .hyp-panel-icon { width: 67px; height: 67px; flex-basis: 67px; border-radius: 20px; } .hyp-panel-icon img { width: 92px; height: 92px; } .hyp-panel-heading h2 { font-size: 29px; } .hyp-fields { grid-template-columns: 1fr; gap: 13px; } .hyp-actions { grid-template-columns: 1fr; } .hyp-reset { min-height: 45px; } .hyp-result-content { min-height: 400px; } .hyp-content-section { padding: 58px 18px; } .hyp-section-heading { gap: 12px; } .hyp-section-heading > span { width: 41px; height: 41px; flex-basis: 41px; border-radius: 13px; } .hyp-section-heading h2 { font-size: clamp(32px, 10vw, 48px); } .hyp-lead { margin-left: 0; font-size: 16px; } .hyp-step-grid, .hyp-example-layout, .hyp-theorem-layout { grid-template-columns: 1fr; gap: 13px; margin-top: 28px; } .hyp-step-grid article { min-height: auto; padding: 19px; } .hyp-step-icon { margin-bottom: 23px; } .hyp-example-card, .hyp-formula-card, .hyp-theorem-statement { min-height: auto; padding: 21px; } .hyp-example-flow { flex-wrap: wrap; } .hyp-big-formula { gap: 9px; font-size: 25px; } .hyp-definition-layout { margin-top: 28px; } .hyp-definition-visual img { width: 220px; height: 220px; } .hyp-bottom-note { align-items: flex-start; flex-wrap: wrap; } .hyp-bottom-note a { width: 100%; margin-left: 34px; } }
.tool-mark-subsidy { background: linear-gradient(145deg, #1d6671, #6bb5aa) !important; }
.category-subsidy-image, .directory-tool-mark .category-subsidy-image { width: 88px; height: 88px; object-fit: contain; }
.category-tool-icon .category-subsidy-image { width: 91px; height: 91px; }
.tool-mark-powers { display: grid; place-items: center; overflow: visible; background: transparent !important; color: #f7e8ff; box-shadow: none; }
.category-powers-image, .directory-tool-mark .category-powers-image { width: 88px; height: 88px; object-fit: contain; display: block; filter: drop-shadow(0 7px 10px rgba(65, 29, 85, .16)); }
.category-tool-icon .category-powers-image { width: 91px; height: 91px; }
@media (max-width: 600px) { .home-finance-feature-card { grid-template-columns: 58px minmax(0, 1fr) 31px; gap: 11px; padding: 11px; border-radius: 17px; } .home-finance-feature-icon { width: 58px; height: 58px; border-radius: 17px; } .home-finance-feature-icon img { width: 82px; height: 82px; } .home-finance-feature-copy strong { font-size: 16px; } .home-finance-feature-copy > span { font-size: 12px; } .home-finance-feature-card > b { width: 31px; height: 31px; border-radius: 10px; font-size: 16px; } }
