/* TechTrade Retirement Planning Calculator - v1.0.0 */

.ttret-wrap {
	--ttret-accent: #0b5fff;
	--ttret-existing: var(--ttret-accent);
	--ttret-new: #c9d6ff;
	--ttret-bg: #ffffff;
	--ttret-soft: #f4f6fb;
	--ttret-border: #e4e8f0;
	--ttret-text: #1b2330;
	--ttret-muted: #6b7482;
	--ttret-max: 1140px;
	max-width: var(--ttret-max);
	width: 100%;
	margin: 0 auto;
	color: var(--ttret-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.ttret-wrap *, .ttret-wrap *::before, .ttret-wrap *::after { box-sizing: border-box; }

.ttret-card { background: var(--ttret-bg); border: 1px solid var(--ttret-border); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(20, 30, 60, 0.07); }
.ttret-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; }

.ttret-controls { display: flex; flex-direction: column; justify-content: center; }
.ttret-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ttret-field { display: flex; flex-direction: column; gap: 6px; }
.ttret-field label { font-size: 13px; font-weight: 600; color: var(--ttret-text); }

.ttret-box { display: flex; align-items: center; padding: 0 12px; height: 46px; background: var(--ttret-soft); border: 1px solid var(--ttret-border); border-radius: 9px; }
.ttret-prefix { color: var(--ttret-accent); font-weight: 700; font-size: 15px; }
.ttret-suffix { color: var(--ttret-accent); font-weight: 600; font-size: 14px; margin-left: 4px; }
.ttret-box input { width: 100%; border: 0; background: transparent; font-size: 16px; font-weight: 700; color: var(--ttret-text); padding: 0 6px; -moz-appearance: textfield; }
.ttret-box input:focus { outline: none; }
.ttret-box:focus-within { border-color: var(--ttret-accent); background: #fff; }
.ttret-box input::-webkit-outer-spin-button, .ttret-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Result */
.ttret-result { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ttret-soft); border-radius: 16px; padding: 30px 26px; }
.ttret-headline { text-align: center; margin-bottom: 18px; }
.ttret-headline-label { display: block; font-size: 14px; color: var(--ttret-muted); }
.ttret-headline-value { display: block; font-size: 32px; font-weight: 800; color: var(--ttret-accent); margin-top: 4px; }

.ttret-chart { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 18px; }
.ttret-donut { width: 160px; height: 160px; }
.ttret-donut-track { stroke: var(--ttret-new); }
.ttret-donut-value { stroke: var(--ttret-existing); transition: stroke-dasharray 0.4s ease; }
.ttret-legend { display: flex; gap: 18px; font-size: 13px; color: var(--ttret-muted); flex-wrap: wrap; justify-content: center; }
.ttret-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.ttret-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.ttret-dot-existing { background: var(--ttret-existing); }
.ttret-dot-new { background: var(--ttret-new); }

.ttret-figures { width: 100%; max-width: 360px; }
.ttret-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 15px; color: var(--ttret-muted); border-bottom: 1px dashed var(--ttret-border); }
.ttret-row strong { font-size: 16px; color: var(--ttret-text); }
.ttret-row:last-of-type { border-bottom: 0; }

.ttret-cta { display: block; width: 100%; margin-top: 18px; padding: 15px 18px; text-align: center; background: var(--ttret-accent); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 12px; transition: filter 0.15s ease; }
.ttret-cta:hover { filter: brightness(0.93); color: #fff; }
.ttret-disclaimer-note { margin: 12px 0 0; font-size: 11px; line-height: 1.5; color: var(--ttret-muted); text-align: center; }

/* About */
.ttret-about { margin-top: 40px; padding: 8px 4px; font-size: 16px; line-height: 1.75; color: #333c4a; }
.ttret-about h2 { font-size: 28px; font-weight: 800; color: var(--ttret-text); margin: 0 0 16px; }
.ttret-about h3 { font-size: 20px; font-weight: 700; color: var(--ttret-text); margin: 30px 0 12px; }
.ttret-about p { margin: 0 0 14px; }
.ttret-example { background: rgba(11,95,255,0.06); border-left: 3px solid var(--ttret-accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 6px 0 14px; }
.ttret-steps { margin: 0 0 14px; padding-left: 22px; }
.ttret-steps li { margin-bottom: 8px; }

.ttret-faqs details { border: 1px solid var(--ttret-border); border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.ttret-faqs summary { cursor: pointer; padding: 15px 18px; font-size: 16px; font-weight: 600; color: var(--ttret-text); list-style: none; position: relative; padding-right: 44px; }
.ttret-faqs summary::-webkit-details-marker { display: none; }
.ttret-faqs summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ttret-accent); line-height: 1; }
.ttret-faqs details[open] summary::after { content: "\2212"; }
.ttret-faqs details[open] summary { border-bottom: 1px solid var(--ttret-border); }
.ttret-faqs .ttret-faq-a p { margin: 0; padding: 14px 18px; font-size: 15px; color: #4a5260; }

.ttret-page-disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ttret-border); font-size: 12px; line-height: 1.6; color: var(--ttret-muted); }
.ttret-page-disclaimer p { margin: 0 0 8px; }
.ttret-page-disclaimer a { color: var(--ttret-accent); text-decoration: underline; }

@media (max-width: 860px) {
	.ttret-body { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
	.ttret-about h2 { font-size: 24px; }
}
@media (max-width: 420px) {
	.ttret-grid2 { grid-template-columns: 1fr; }
}
