:root {
	--bg: #0b0f14;
	--surface: #121821;
	--surface-2: #0f141b;
	--text: #e6edf3;
	--muted: #8aa1b2;
	--brand: #66d9e8;
	--accent: #a78bfa;
	--ok: #10b981;
	--warn: #f59e0b;
	--bad: #ef4444;
	--ring: rgba(102, 217, 232, .35);
	--card: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
	--shadow: 0 10px 30px rgba(0, 0, 0, .35)
}

.light {
	--bg: #f7fafc;
	--surface: #ffffff;
	--surface-2: #f4f7fb;
	--text: #0b1220;
	--muted: #4b5563;
	--brand: #0ea5e9;
	--accent: #7c3aed;
	--ok: #059669;
	--warn: #d97706;
	--bad: #dc2626;
	--ring: rgba(14, 165, 233, .25);
	--card: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .02));
	--shadow: 0 10px 30px rgba(3, 7, 18, .1)
}

html,
body {
	height: 100%
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
	line-height: 1.6
}

a {
	color: var(--brand);
	text-decoration: none
}


.container {
	width: min(1100px, 92%);
	margin: 0 auto
}

header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(10px);
	background: color-mix(in oklab, var(--bg) 80%, transparent);
	border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	width: 100%
}

header .container {
	width: 100%;
	max-width: 100%;
	padding-inline: min(4vw, 24px)
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 14px 0
}

.brand {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-weight: 800;
	letter-spacing: .2px
}

.brand .logo {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-weight: 800;
	background: transparent;
	overflow: hidden;
	box-shadow: var(--shadow)
}

.brand .logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block
}

.controls {
	display: flex;
	align-items: center;
	gap: .6rem
}




.btn {
	background: var(--surface);
	color: var(--text);
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	padding: .6rem .9rem;
	border-radius: 14px;
	cursor: pointer;
	font-weight: 600;
	transition: transform .15s ease, background .2s ease, border-color .2s ease
}

.btn-top{
	background: var(--surface);
	color: var(--text);
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	padding: .6rem .9rem;
	border-radius: 14px;
	cursor: pointer;
	font-weight: 600;
	height: 48px;
	transition: transform .15s ease, background .2s ease, border-color .2s ease
}




.btn:hover {
	transform: translateY(-1px)
}

.btn-outline {
	background: transparent
}

.hero {
	height: 80vh;
	justify-content: center;
	align-items: center;
	display: flex;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: clamp(22px, 3vw, 46px);
	align-items: center
}

@media (max-width:900px) {
	.hero-grid {
		grid-template-columns: 1fr
	}
}

.h1 {
	font-size: clamp(28px, 5vw, 52px);
	line-height: 1.05;
	letter-spacing: .2px;
	font-weight: 800;
	/* margin: 0 0 10px; */
	margin-top: 20px;
}

.subtitle {
	font-size: clamp(15px, 1.8vw, 18px);
	color: var(--muted);
	margin: 0;
}

.card {
	background: var(--card);
	border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
	border-radius: 20px;
	box-shadow: var(--shadow)
}

.hero-cta {
	display: flex;
	gap: .7rem;
	flex-wrap: wrap
}

.pill {
	display: inline-flex;
	gap: .5rem;
	align-items: center;
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	padding: .4rem .7rem;
	border-radius: 999px;
	font-size: 12px;
	color: var(--muted)
}

.glass {
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
	border-radius: 18px;
	padding: 14px
}

.stats {
	display: grid;
	width: 293px;
	padding-bottom: 15px;
}

@media (max-width:600px) {
	.stats {
	width: 100%;
	}
}

section {
	padding: clamp(32px, 7vw, 90px) 0;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 18px;
	flex-wrap: wrap;
	align-items: flex-start
}

.title {
	font-size: clamp(22px, 3.4vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	margin: 0
}

.eyebrow {
	color: var(--muted);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: 11px
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px
}

@media (max-width:1000px) {
	.grid {
		grid-template-columns: 1fr
	}
}

.panel {
	padding: 18px;
	border-radius: 18px;
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	background: var(--surface)
}

.panel h3 {
	margin: 0;
	font-size: 18px
}

.chart-wrap {
	height: 400px;
	display: grid;
	place-items: center;
	margin-top: 10px
}

.chart-wrap canvas {
	width: 100% !important;
	height: auto !important;
	max-height: 400px
}

@media (max-width:768px) {
	.chart-wrap {
		height: 300px
	}

	.chart-wrap canvas {
		max-height: 300px
	}
}

@media (max-width:480px) {
	.chart-wrap {
		height: 220px
	}

	.chart-wrap canvas {
		max-height: 220px
	}
}

@media (max-width:360px) {
	.chart-wrap {
		height: 180px
	}

	.chart-wrap canvas {
		max-height: 180px
	}
}

.tool-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 18px
}

@media (max-width:1000px) {
	.tool-grid {
		grid-template-columns: 1fr
	}
}

.form-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.field {
	flex: 1;
	/* min-width: 120px; */
	display: flex;
	flex-direction: column;
	gap: 6px
}

label {
	font-weight: 600
}

input[type="number"],
input[type="time"],
select {
	background: var(--surface-2);
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	color: var(--text);
	padding: .6rem .7rem;
	border-radius: 12px;
	outline: none;
	box-shadow: 0 0 0 0px var(--ring);
	transition: box-shadow .15s ease, border-color .15s ease
}

input[type="number"]:focus,
input[type="time"]:focus,
select:focus {
	box-shadow: 0 0 0 6px var(--ring)
}

.switch {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap
}

.switch input {
	accent-color: var(--brand)
}

.result {
	display: grid;
	gap: 10px;
	align-items: center
}

@media (max-width:700px) {
	.result {
		grid-template-columns: 1fr
	}
}

.badge {
	display: inline-flex;
	gap: .4rem;
	align-items: center;
	padding: .35rem .6rem;
	border-radius: 999px;
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	color: var(--muted);
	font-size: 12px;
	/* width: 100%; */
	text-wrap: auto;
}


.note {
	color: var(--muted);
	font-size: 13px
}

footer {
	border-top: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
	padding: 30px 0;
	color: var(--muted)
}

/* Calorie slider */
.range-wrap {
	position: relative;
	padding: 16px 4px 28px;
	margin-top: 32px;
}

.range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 14px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--text) 10%, transparent);
	outline: none;
	margin: 0;
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 12%, transparent)
}

.range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: radial-gradient(120% 120% at 30% 30%, #fff, #fff0 60%), linear-gradient(180deg, var(--brand), color-mix(in oklab, var(--brand) 50%, var(--accent)));
	border: 1px solid color-mix(in oklab, var(--text) 25%, transparent);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
	cursor: pointer
}

.range::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border: 1px solid color-mix(in oklab, var(--text) 25%, transparent);
	border-radius: 50%;
	background: linear-gradient(180deg, var(--brand), color-mix(in oklab, var(--brand) 50%, var(--accent)));
	box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
	cursor: pointer
}

.range::-webkit-slider-runnable-track {
	height: 14px;
	border-radius: 999px;
	background: transparent
}

.range::-moz-range-track {
	height: 14px;
	border-radius: 999px;
	background: transparent
}

.ticks {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--muted)
}

.ticks span {
	position: relative;
	display: inline-block;
	transform: translateX(-50%)
}

.ticks span::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: 8px;
	background: color-mix(in oklab, var(--text) 20%, transparent)
}

.bubble {
	position: absolute;
	top: -20px;
	left: 0;
	translate: -34% 0;
	padding: .3rem .6rem;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	box-shadow: var(--shadow);
	font-size: 12px;
	white-space: nowrap;
	pointer-events: none
}

.bubble::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 10px;
	height: 10px;
	background: var(--surface-2);
	border-left: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	transform-origin: center;
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 2px 2px 6px rgba(0, 0, 0, .15)
}

.logo-text{
  font-size:24px;
}
.wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  min-width: 300px;
  min-height: 60px;
  display: inline-flex;
  /* font-family: 'Nunito', sans-serif; */
  font-size: 22px;
  align-items: center;
  justify-content: center;
  /* text-transform: uppercase; */
  text-align: center;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #313133;
  background: #4FD1C5;
  background: linear-gradient(90deg, rgba(129,230,217,1) 0%, rgba(79,209,197,1) 100%);
  border: none;
  border-radius: 1000px;
  box-shadow: 12px 12px 24px rgba(79,209,197,.64);
  transition: all 0.3s ease-in-out 0s;
  cursor: pointer;
  outline: none;
  position: relative;
  padding: 10px;
  }

.button::before {
content: '';
  border-radius: 1000px;
  min-width: calc(300px + 12px);
  min-height: calc(60px + 12px);
  border: 6px solid #00FFCB;
  box-shadow: 0 0 60px rgba(0,255,203,.64);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all .3s ease-in-out 0s;
}

.button:hover, 
.button:focus {
  color: #313133;
  transform: translateY(-6px);
}

.button:hover::before, 
.button:focus::before {
  opacity: 1;
}

.containerb{
      --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.note-slider{
  font-size:18px;
  background: #ffffff;
  width:fit-content;
  color:#313133;
  border-radius:10px;
  padding-left:10px;
  padding-right:10px;
}

.font-large{
  font-size:18px;
  color:#ffffff;
}


.button::after {
  content: '';
  width: 30px; height: 30px;
  border-radius: 100%;
  border: 6px solid #00FFCB;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring 1.5s infinite;
}

.button:hover::after, 
.button:focus::after {
  animation: none;
  display: none;
}

@keyframes ring {
  0% {
    width: 30px;
    height: 30px;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

#savePngBtn{
  width:300px;
  height:75px;
}

.pace-badges {
	display: flex;
	gap: .4rem;
	align-items: center;
	margin-top: 8px
}

.pace-badges .pill {
	border-color: transparent;
	background: var(--surface-2)
}

.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important
}

/* ===== Flow animation ===== */
#flow {
	padding: clamp(28px, 6vw, 70px) 0
}

.flow-wrap {
	position: relative
}

.flow-track {
	position: relative;
	height: 6px;
	background: color-mix(in oklab, var(--text) 10%, transparent);
	border-radius: 999px;
	margin: 38px 10px
}

.flow-progress {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0%;
	background: linear-gradient(90deg, var(--brand), var(--accent));
	border-radius: 999px;
	transition: width .6s ease
}

.flow-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	align-items: start
}

@media (max-width:800px) {
	.flow-steps {
		grid-template-columns: 1fr 1fr
	}
}

@media (max-width:480px) {
	.flow-steps {
		grid-template-columns: 1fr
	}
}

.flow-step {
	display: flex;
	gap: 12px;
	align-items: center
}


    /* ===== Bootstrap modal theming (light/dark match) ===== */
    .modal-content{background:var(--surface);color:var(--text);border:1px solid color-mix(in oklab,var(--text) 12%,transparent)}
    .modal-header,.modal-footer{border-color:color-mix(in oklab,var(--text) 12%,transparent)}
    .btn-close{filter:invert(0.9)}



.flow-dot {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-weight: 800;
	background: var(--surface);
	border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
	color: var(--text);
	box-shadow: var(--shadow)
}

.flow-step.active .flow-dot {
	background: linear-gradient(180deg, var(--brand), color-mix(in oklab, var(--brand) 50%, var(--accent)));
	color: #000;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .35)
}

.flow-label {
	font-weight: 700
}

.flow-hint {
	color: var(--muted);
	font-size: 12px
}

@keyframes b2f-pulse {

	0%,
	100% {
		transform: scale(1)
	}

	50% {
		transform: scale(1.08)
	}
}

.flow-step.active .flow-dot {
	animation: b2f-pulse 1s ease-in-out infinite
}