/* Meikero: home "Time saved" section (dark band). */

#time-saved { --bad: #f87171; --good: #4ade80; }
#time-saved .section__head p { max-width: 62ch; }

.ts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.ts__panel {
	padding: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg, 8px);
	background: rgba(255, 255, 255, .04);
}

/* Presets */
.ts__presets { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; }
.ts__preset { padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; color: rgba(255, 255, 255, .65); font: inherit; font-size: .88rem; cursor: pointer; transition: background .25s, color .25s; }
.ts__preset:hover { color: #fff; }
.ts__preset.is-on { background: #fff; color: #0a0a0a; }
.ts__preset:focus-visible, .ts__step button:focus-visible { outline: 2px solid var(--good); outline-offset: 2px; }

/* Task rows */
.ts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ts__row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(255, 255, 255, .025); transition: border-color .3s, background .3s; }
.ts__row:hover { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .05); }
.ts__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.ts__ico svg { width: 20px; height: 20px; }
.ts__name strong { display: block; font-size: .98rem; color: #fff; }
.ts__name small { display: block; margin-top: 2px; font-size: .78rem; color: rgba(255, 255, 255, .5); }
.ts__name small b { color: var(--good); font-weight: 600; }

.ts__step { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; overflow: hidden; }
.ts__step button { width: 34px; height: 34px; border: 0; background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.ts__step button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.ts__step button:disabled { opacity: .3; cursor: default; }
.ts__step output { min-width: 34px; text-align: center; font-family: var(--font-mono, monospace); font-size: .95rem; color: #fff; }
.ts__hint { margin: 14px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .45); }

/* Result panel */
.ts__panel--result { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.ts__bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; }
.ts__lab { font-size: .85rem; color: rgba(255, 255, 255, .65); }
.ts__bar b { font-family: var(--font-mono, monospace); font-weight: 500; font-size: .95rem; color: #fff; }
.ts__track { grid-column: 1 / -1; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ts__track i { display: block; height: 100%; width: 100%; border-radius: 7px; transform-origin: 0 50%; will-change: transform; }
.ts__bar--before .ts__track i { background: repeating-linear-gradient(135deg, var(--bad) 0 6px, rgba(248, 113, 113, .65) 6px 12px); }
.ts__bar--after .ts__track i { background: var(--good); }

.ts__big { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ts__num { font-family: var(--font-display, inherit); font-weight: 700; letter-spacing: -.05em; line-height: .9; font-size: clamp(3.2rem, 7vw, 5rem); color: var(--good); }
.ts__num em { font-style: normal; font-size: .4em; margin-left: 4px; color: #fff; letter-spacing: 0; }
.ts__cap { font-size: 1rem; color: #fff; line-height: 1.4; }
.ts__cap small { color: rgba(255, 255, 255, .55); font-size: .85rem; }
.ts__panel--result .button { align-self: flex-start; }

/* Before / after process */
.ts__flow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.ts__col { padding: 24px; border-radius: var(--radius-lg, 8px); border: 1px solid rgba(255, 255, 255, .12); }
.ts__col h3 { margin: 0 0 14px; font-size: 1.1rem; }
.ts__col ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.ts__col li { counter-increment: s; position: relative; padding-left: 36px; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.ts__col li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-family: var(--font-mono, monospace); }
.ts__col--before { background: rgba(248, 113, 113, .05); }
.ts__col--before li::before { background: rgba(248, 113, 113, .18); color: var(--bad); }
.ts__col--after { background: rgba(74, 222, 128, .06); border-color: rgba(74, 222, 128, .3); }
.ts__col--after li::before { background: rgba(74, 222, 128, .2); color: var(--good); }

/* AI cards */
.ts__ai { margin-top: 20px; }
.ts__card { padding: 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg, 8px); background: rgba(255, 255, 255, .03); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.ts__card:hover { transform: translateY(-4px); border-color: rgba(74, 222, 128, .5); }
.ts__card svg { width: 24px; height: 24px; color: var(--good); }
.ts__card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.ts__card p { margin: 0; color: rgba(255, 255, 255, .65); font-size: .93rem; }

/* Honest note + assumptions */
.ts__note { margin-top: 24px; font-size: .86rem; color: rgba(255, 255, 255, .55); max-width: 90ch; }
.ts__note p { margin: 0 0 10px; }
.ts__note strong { color: #fff; }
.ts__note summary { cursor: pointer; color: #fff; }
.ts__note table { margin-top: 12px; border-collapse: collapse; width: 100%; max-width: 640px; }
.ts__note th, .ts__note td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .1); }

@media (max-width: 900px) {
	.ts, .ts__flow { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.ts__panel, .ts__col { padding: 18px; }
	.ts__row { grid-template-columns: 36px 1fr; }
	.ts__step { grid-column: 1 / -1; justify-self: end; }
	.ts__big { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.ts__row, .ts__card, .ts__preset { transition: none; }
	.ts__card:hover { transform: none; }
}
