/* Pomodoro Timer page: setup + three ways to play (Luneia session first), then helpers below. */
.ttool-hero { padding-block: clamp(1.6rem, 1rem + 3vw, 3.5rem) var(--s-6); }
.ttool-hero .eyebrow { margin: 0; }
.ttool-hero h1 { font-size: var(--fs-3xl); max-width: 18ch; margin: var(--hero-eyebrow) 0 var(--head-sub); }
.fgroup__help { font-size: var(--fs-xs); color: var(--text-3); border-bottom: 1px solid var(--line-2); transition: color var(--t-base); }
.fgroup__help:hover { color: var(--moon); }
.about-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Tool shell */
.ttool { display: grid; gap: var(--s-4); padding-bottom: var(--s-8); scroll-margin-top: 90px; }
@media (min-width: 1000px) { .ttool { grid-template-columns: minmax(300px, .8fr) 1.6fr; align-items: start; } }
.tsetup, .tplay { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); padding: clamp(1rem, .7rem + 1.2vw, 1.6rem); min-width: 0; }
.tsetup { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .tsetup { position: sticky; top: 96px; } }
.tgroup { display: grid; gap: var(--s-3); }
.tgroup__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.tgroup .chips { gap: 6px; }
.tsummary { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tsummary b, .ttimer__sum b { color: var(--text); font-weight: 500; }
.tsummary .dot, .ttimer__sum .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); display: inline-block; margin-left: 4px; }

/* Custom rhythm */
.tcustom { display: grid; gap: var(--s-2); }
.stepper { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.stepper > span:first-child { width: 3.6em; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); font-size: 1.1rem; line-height: 1; }
.stepper button:hover { border-color: var(--moon); color: var(--moon); }
.stepper input { width: 3.4em; height: 34px; text-align: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 var(--fs-md)/1 var(--font-mono); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Mode tabs — good / better / best: the Luneia session is the obvious pick */
.ttabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-4); }
.ttab { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: .8em .9em; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--text-2); text-align: left; transition: border-color var(--t-base), background var(--t-base), color var(--t-base), transform var(--t-fast); }
.ttab__top { display: flex; align-items: center; gap: .7em; }
.ttab b { display: block; font-weight: 500; font-size: var(--fs-sm); color: inherit; }
.ttab small { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.ttab:hover { border-color: var(--line-2); color: var(--text); }
.ttab[aria-selected="true"] { border-color: var(--line-2); background: var(--hover); color: var(--text); }
.ttab__ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-2); font-size: .8rem; }
.ttab__ico svg { width: 16px; height: 16px; }
.ttab__ico--sp { color: #1ed760; }
.ttab__pros { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-xs); line-height: 1.35; }
.ttab__pros li { display: flex; gap: 6px; }
.ttab__pros li::before { flex: none; width: 1em; text-align: center; }
.ttab__pros .y::before { content: "✓"; color: var(--moon); }
.ttab__pros .n { color: var(--text-3); }
.ttab__pros .n::before { content: "–"; color: var(--text-3); }

.ttab--main { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--moon) 55%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--moon) 12%, var(--surface)) 0%, var(--surface) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--moon) 18%, transparent), 0 18px 40px -24px color-mix(in srgb, var(--moon) 55%, transparent); color: var(--text); }
.ttab--main:hover { transform: translateY(-1px); border-color: var(--moon); }
.ttab--main[aria-selected="true"] { border-color: var(--moon); background: linear-gradient(160deg, color-mix(in srgb, var(--moon) 16%, var(--surface-2)) 0%, var(--surface-2) 70%); }
.ttab--main .ttab__ico { width: 38px; height: 38px; background: var(--moon); color: var(--on-moon); font-size: .95rem; }
.ttab--main b { font-size: var(--fs-md); }
.ttab--main .ttab__pros { font-size: var(--fs-sm); color: var(--text-2); }
.ttab__badge { position: absolute; top: -9px; right: 12px; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-moon); background: var(--moon); padding: 5px 9px; border-radius: var(--r-pill); }
.ttab:not(.ttab--main) .ttab__pros { display: none; }
@media (min-width: 640px) {
  .ttabs { grid-template-columns: 1.5fr 1fr 1fr; align-items: stretch; }
  .ttab--main { grid-column: auto; }
  .ttab:not(.ttab--main) .ttab__pros { display: grid; }
}

/* Sound tip + upsell inside the simple timer */
.tgroup__tip { margin: 0; font-size: var(--fs-xs); color: var(--text-3); }
.tgroup__tip > span { color: var(--moon); margin-right: 2px; }
.tgroup__tip button { color: var(--moon); border-bottom: 1px solid var(--line-2); }
.tupsell { width: 100%; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); border-radius: var(--r-lg); text-align: left;
  border: 1px solid color-mix(in srgb, var(--moon) 50%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--moon) 10%, var(--surface-2)), var(--surface-2)); transition: border-color var(--t-base); }
.tupsell:hover { border-color: var(--moon); }
.tupsell b { display: block; font-weight: 500; color: var(--text); }
.tupsell small { display: block; font-size: var(--fs-xs); color: var(--text-2); line-height: 1.45; }
.tupsell__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--moon); color: var(--on-moon); font-size: .85rem; }
.tupsell__go { margin-left: auto; flex: none; font-size: var(--fs-xs); font-weight: 500; color: var(--on-moon); background: var(--moon); padding: 7px 12px; border-radius: var(--r-pill); }
@media (max-width: 520px) { .tupsell { flex-wrap: wrap; } .tupsell__go { margin-left: calc(34px + var(--s-3)); } }

.tpanel__hint { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--text-3); }
.tpanel__hint kbd { font: 11px var(--font-mono); padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; }

/* 1 · Session stage */
.tstage__frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.tstage__play { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.tstage__play img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out), filter var(--t-base); }
.tstage__play:hover img, .tstage__play:focus-visible img { transform: scale(1.03); filter: brightness(.85); }
.tstage__play .play-badge { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.tstage__play:hover .play-badge { transform: scale(1.08); background: var(--moon); }
.tstage__play:hover .play-badge::after { border-left-color: var(--on-moon); }
.tstage__meta { padding-top: var(--s-3); }
.tstage__title { margin: 0; font-weight: 500; }
.tstage__why { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--text-3); }
.tstage__note { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.tstage__more { margin-top: var(--s-3); font-size: var(--fs-sm); }
.tstage__empty { display: grid; gap: var(--s-3); place-items: center; text-align: center; aspect-ratio: 16/9; border-radius: var(--r-lg); background: var(--surface-2); color: var(--text-2); padding: var(--s-5); }

/* 2 · Spotify */
.tspotify { border-radius: var(--r-lg); overflow: hidden; min-height: 452px; background: var(--surface-2); }
.tspotify iframe { display: block; width: 100%; height: 452px; border: 0; }
.tspotify__pick { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tspotify__pick b { color: var(--text); font-weight: 500; }
.tspotify__pick .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.tspotify__pick button { color: var(--moon); border-bottom: 1px solid var(--line-2); }

/* 3 · Simple timer */
.ttimer { position: relative; display: grid; place-items: center; width: min(100%, 360px); aspect-ratio: 1; margin: var(--s-2) auto var(--s-5); }
.tring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ring-c, var(--moon)) calc(var(--p, 0) * 360deg), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  transition: background var(--t-base); }
.ttimer[data-phase="break"] { --ring-c: var(--c-ocean); }
.ttimer__face { text-align: center; display: grid; gap: var(--s-2); }
.ttimer__phase { margin: 0; font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3); }
.ttimer__clock { margin: 0; font-size: clamp(3.4rem, 2.4rem + 4vw, 5rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.ttimer__sum { margin: 0; font-size: var(--fs-xs); color: var(--text-3); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.tcontrols { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2); }
.tcontrols__main { min-width: 8.5em; justify-content: center; }
.tdone { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--moon); background: var(--surface-2); display: grid; gap: var(--s-3); justify-items: start; }
.tdone p { margin: 0; color: var(--text-2); }
.tdone b { color: var(--text); font-weight: 500; }
.tgate-wrap { position: relative; }
.tgate { position: absolute; inset: -12px; z-index: 5; display: grid; place-items: center; padding: var(--s-3); border-radius: var(--r-lg); background: rgba(11, 10, 8, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tgate[hidden] { display: none; }
.tgate.is-guard { position: fixed; inset: 0; z-index: 120; overflow: auto; padding: var(--s-4); background: rgba(11, 10, 8, .7); }
.tgate.is-guard .tgate__card { margin: auto; width: min(100%, 420px); }
.tgate.is-guard .field__note { display: none; }
.tgate__card { width: min(100%, 340px); display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.tgate__t { margin: 0; color: var(--text); font-weight: 500; font-size: var(--fs-md); }
.tgate__s { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.tgate__guard { border-radius: var(--r-md, 12px); overflow: hidden; background: #fff; }
.tgate__guard iframe { display: block; width: 100%; border: 0; }
.tgate .field__note { margin: 0; }
.tgate__skip { justify-self: start; background: none; border: 0; padding: 0; color: var(--text-3); font-size: var(--fs-sm); cursor: pointer; }
.tgate__skip:hover { color: var(--text-2); }

/* Below the tool */
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .tsteps { grid-template-columns: repeat(3, 1fr); } }
.tsteps li { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--line); }
.tsteps .mono { font-size: var(--fs-xs); color: var(--moon); }
.tsteps b { display: block; line-height: 1.15; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-card); letter-spacing: var(--tracking-display-sm); }
.tsteps p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }

.rcards { display: grid; gap: var(--s-2) var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rcard { display: grid; gap: 2px var(--s-4); grid-template-columns: 3.4em minmax(0, 1fr) auto; align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--line); text-align: left; transition: border-color var(--t-base), background var(--t-base); }
.rcard:hover { border-color: var(--line-2); background: var(--hover); }
.rcard__k { font-size: 1.5rem; color: var(--text); }
.rcard__note { font-size: var(--fs-sm); color: var(--text-2); }
.rcard__go { font-size: var(--fs-xs); color: var(--text-3); }
.rcard:hover .rcard__go { color: var(--moon); }

.tposts { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .tposts { grid-template-columns: repeat(3, 1fr); } }
.tposts .post { width: auto; }


/* Phones/tablets: one swipeable row per group, so the player sits higher on the screen */
@media (max-width: 999px) {
  .tsetup { gap: var(--s-4); }
  .tgroup .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(1rem, .7rem + 1.2vw, 1.6rem)); padding-inline: clamp(1rem, .7rem + 1.2vw, 1.6rem); mask: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1.5rem), transparent); }
  .tgroup .chips::-webkit-scrollbar { display: none; }
  .tgroup .chip { flex: none; }
  .tsummary { padding-top: var(--s-3); }
}


/* Spotify footer */
.tspotify__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); }
.tspotify__foot .tpanel__hint { margin: 0; max-width: 42ch; }


/* ---------- Tips under the tool ---------- */
.ttips { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); counter-reset: none; }
.ttips li { position: relative; display: grid; gap: 6px; align-content: start; padding: var(--s-5) var(--s-4) var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform var(--t-base) var(--ease-out), border-color var(--t-base); }
.ttips li:hover { transform: translateY(-3px); border-color: var(--line-2); }
.ttips__n { position: absolute; right: 10px; top: -14px; font-family: var(--font-display); font-size: 5.5rem; line-height: 1; color: rgba(236,223,198,.06); pointer-events: none; letter-spacing: var(--tracking-display); font-weight: var(--fw-display); }
.ttips__ico, .gcard__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--moon) 12%, var(--surface-2)); color: var(--moon); margin-bottom: 4px; flex: none; }
.ttips__ico svg, .gcard__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ttips b { font-weight: 500; }
.ttips p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }

/* (guide blocks + the classic-cycle drawing now live in components.css — shared with the home page) */

/* three reasons */
.gcards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gcard { display: grid; gap: 6px; align-content: start; padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--line); }
.gcard b { font-weight: 500; font-size: var(--fs-lg); }
.gcard p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.gquote { margin: var(--s-4) 0 0; padding: var(--s-4) var(--s-5); border-left: 2px solid var(--moon); background: linear-gradient(90deg, color-mix(in srgb, var(--moon) 7%, transparent), transparent); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.35; color: var(--text); letter-spacing: var(--tracking-display-sm); font-weight: var(--fw-display); }

/* rhythms as bars */
.grh { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.grh li { display: grid; grid-template-columns: 4.2em 1fr; gap: 6px var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); }
.grh .mono { font-size: 1.05rem; color: var(--text); }
.grh__bar { display: flex; gap: 3px; height: 8px; }
.grh__bar i { flex: var(--f); background: var(--moon); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.grh__bar u { flex: var(--b); background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 4px); border-radius: 3px; }
.grh li.is-in .grh__bar i { transform: none; }
.grh__txt { grid-column: 2; font-size: var(--fs-sm); color: var(--text-2); }

/* sounds: lead + icon list */
.gsound { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .gsound { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: start; } }
.gsound__lead { margin: 0; font-size: var(--fs-lg); line-height: 1.7; color: var(--text-2); }
.gsound__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.gsound__list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.gsound__list li > span:last-child { display: grid; gap: 2px; color: var(--text-2); font-size: var(--fs-sm); }
.gsound__list b { color: var(--text); font-weight: 500; font-size: var(--fs-md); }

/* versus */
.gvs { display: grid; gap: var(--s-3); }
@media (min-width: 800px) { .gvs { grid-template-columns: 1fr 1.2fr; } }
.gvs__card { display: grid; gap: var(--s-2); align-content: start; justify-items: start; padding: var(--s-5); border-radius: var(--r-xl); border: 1px solid var(--line); }
.gvs__card b { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-card); letter-spacing: var(--tracking-display-sm); }
.gvs__card p:not(.eyebrow) { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.gvs__card--best { border-color: color-mix(in srgb, var(--moon) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--moon) 10%, var(--surface)), var(--surface)); }
.gvs__card--best .btn { margin-top: var(--s-2); }
@media (prefers-reduced-motion: reduce) { .gcycle__bar i, .grh__bar i { transform: none; transition: none; } }

/* Hero: "New to Pomodoro?" jump links next to the title */
@media (min-width: 1000px) { .ttool-hero__grid { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: var(--s-7); align-items: end; } }
.tjump { display: grid; margin-top: var(--s-5); max-width: 380px; }
@media (min-width: 1000px) { .tjump { margin-top: 0; } }
.tjump .eyebrow { margin: 0 0 6px; }
.tjump a { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); transition: color var(--t-base), padding var(--t-base); }
.tjump a:hover { color: var(--text); padding-left: 6px; }
.tjump__n { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--moon); width: 1.2em; }
.tjump__go { margin-left: auto; color: var(--text-3); transition: transform var(--t-base), color var(--t-base); }
.tjump a:hover .tjump__go { color: var(--moon); transform: translateY(2px); }
#what-is, #why-it-works, #first-session { scroll-margin-top: 70px; }

/* Why it works: timer + sound side by side */
.gwhy { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .gwhy { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.gwhy__col { display: grid; gap: var(--s-4); align-content: start; }
.gwhy__label { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-2); }
.gwhy__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.gwhy .gcards { grid-template-columns: 1fr; }
.gwhy .gcard { grid-template-columns: auto 1fr; column-gap: var(--s-3); align-items: start; }
.gwhy .gcard .gcard__ico { grid-row: span 2; }
#why-it-works .gquote { margin-top: var(--s-6); }
.gwhy .gsound__list li { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--line); }
.gwhy .gsound__lead { font-size: var(--fs-md); }
.tstage__play .play-badge::after { border-width: 12px 0 12px 19px; }

/* Blocks today + notify + focus mode */
.textras { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.tcount { font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: .06em; color: var(--text-3); padding: 8px 12px; }
.tcount.is-on { color: var(--moon); }
.tcount b { font-weight: 500; }
.tchip { padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--text-2); transition: color var(--t-base), border-color var(--t-base); }
.tchip:hover, .tchip[aria-pressed="true"] { color: var(--moon); border-color: var(--moon); }
.tpanel.is-focus { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-6); background: #0b0a08; overflow: auto; }
.tpanel.is-focus .tupsell, .tpanel.is-focus .tdone, .tpanel.is-focus .tpanel__hint { display: none; }
.tpanel.is-focus .ttimer { width: min(78vmin, 560px); }
.tpanel.is-focus .ttimer__clock { font-size: clamp(4rem, 3rem + 6vw, 8rem); }
html.in-focus .next-cue, html.in-focus .menu-btn { display: none; }

/* The "Best sound" tab stays visible but calm; it only looks lit when it is the selected one */
.ttab--main { border-color: color-mix(in srgb, var(--moon) 26%, transparent); background: var(--surface); box-shadow: none; padding: .65em .9em; gap: var(--s-2); }
.ttab--main:hover { border-color: color-mix(in srgb, var(--moon) 60%, transparent); }
.ttab--main .ttab__ico { width: 32px; height: 32px; background: color-mix(in srgb, var(--moon) 16%, var(--surface-2)); color: var(--moon); }
.ttab--main[aria-selected="true"] .ttab__ico { background: var(--moon); color: var(--on-moon); }
.ttab__badge { background: color-mix(in srgb, var(--moon) 14%, var(--surface)); color: var(--moon); border: 1px solid color-mix(in srgb, var(--moon) 30%, transparent); padding: 4px 8px; }
@media (max-width: 999px) { .ttool .tplay { order: -1; } }   /* phones and tablets: the timer first, its settings right below */

/* ---- Tool top (Ivan 2026-10-13): all mode info stays; only the ring and hero spacing are tighter. ---- */
.ttimer { width: min(100%, 300px); margin: var(--s-3) auto var(--s-4); }
.ttimer__clock { font-size: clamp(3rem, 2.4rem + 3vw, 4.25rem); }
@media (max-width: 999px) {
  .ttool-hero { padding-bottom: var(--s-4); }
  .tjump { margin-top: var(--s-4); max-width: none; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
  .tjump .eyebrow { flex-basis: 100%; margin: 0 0 2px; }
  .tjump a { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--fs-xs); }
  .tjump a:hover { padding-left: 12px; }
  .tjump__n, .tjump__go { display: none; }
}
.ttool-hero { padding-block: clamp(1.2rem, .8rem + 2vw, 2.5rem) var(--s-5); }
.ttool-hero h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); margin-bottom: var(--s-3); }

/* ---- Tool top, softer compaction (Ivan 2026-10-14): same information, less height. ---- */
.tupsell { padding: .6rem .8rem; margin-bottom: var(--s-3); gap: var(--s-2) var(--s-3); }
.tupsell small { font-size: 12px; line-height: 1.4; }
.tupsell__ico { width: 28px; height: 28px; }
.tupsell__go { padding: 6px 11px; }
@media (max-width: 520px) {
  .tupsell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico t go" "s s s"; align-items: center; }
  .tupsell > span:nth-child(2) { display: contents; }
  .tupsell__ico { grid-area: ico; }
  .tupsell b { grid-area: t; font-size: var(--fs-sm); line-height: 1.25; }
  .tupsell small { grid-area: s; }
  .tupsell__go { grid-area: go; margin-left: 0; }
}
@media (max-width: 999px) {
  .tjump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-top: var(--s-3); }
  .tjump::-webkit-scrollbar { display: none; }
  .tjump .eyebrow { flex: none; margin: 0 4px 0 0; }
  .tjump a { flex: none; white-space: nowrap; }
}
@media (max-width: 599px) {
  .rcard { grid-template-columns: 1fr; padding: var(--s-3); }
  .rcard__go { display: none; }
  .rcard__k { font-size: 1.25rem; }
  .rcard__note { font-size: var(--fs-xs); line-height: 1.4; }
}
.rcard__k { font-size: 1.25rem; }
.rlinks { margin: var(--s-4) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.rlinks a { color: var(--moon); border-bottom: 1px solid var(--line-2); }
#which-rhythm .gblock { margin-top: var(--s-7); }
/* the study quote: regular weight, smaller; only the highlighted words are heavier */
.gquote { font-size: var(--fs-lg); font-weight: var(--fw-ui); line-height: 1.45; padding: var(--s-3) var(--s-4); }
.gquote a { font-weight: var(--fw-medium); }

/* Why it works: the same content, a little smaller (Ivan 2026-10-14). */
#why-it-works .gwhy { gap: var(--s-5); }
#why-it-works .gwhy .gcard { padding: var(--s-3) var(--s-4); }
#why-it-works .gwhy .gcard b, #why-it-works .gsound__list li b { font-size: 1rem; }
#why-it-works .gwhy .gcard p, #why-it-works .gsound__list li > span { font-size: var(--fs-xs); line-height: 1.5; }
#why-it-works .gwhy .gsound__list li { padding: var(--s-3) var(--s-4); }
#why-it-works .gsound__lead { font-size: var(--fs-sm); line-height: 1.6; }

/* Phones and tablets: the timer first, then the way to play it, then the filters (Ivan 2026-10-15). */
@media (max-width: 999px) {
  .tplay { display: grid; gap: var(--s-3); }
  .tplay .tpanel:not([hidden]):not(.is-focus) { display: contents; }
  .tplay .ttabs { order: 6; margin-bottom: 0; }
  .tplay .tupsell { order: 7; margin-bottom: 0; }
  .tplay .ttimer { margin-block: var(--s-2); }
}

.tchip[data-float] { display: inline-flex; align-items: center; gap: .45em; }
.tchip svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 640px) { .tfloat { right: 12px; bottom: 12px; width: 220px; } }

/* Matching ready-made sessions under the setup box: small and quiet */
.tmatch { display: grid; gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.tmatch .eyebrow { margin: 0 0 var(--s-1); }
.tmatch .vcard { grid-template-columns: 88px 1fr; gap: var(--s-3); padding: 6px; margin-inline: -6px; }
.tmatch .vcard__title { font-size: var(--fs-xs); -webkit-line-clamp: 2; }
.tmatch .vcard__meta { font-size: 10px; }
.tmatch .link-arrow { font-size: var(--fs-xs); justify-self: start; margin-top: var(--s-1); }
