/* Tomatoro page: phase tokens, the hero and section adjustments, and the app mocks (panel contents,
   ring button, slots, tabs). The cycle stage is in cycle.css, the tile and widget art in art.css.
   Shell tokens come from ../assets/site.css, section frames from product.css, mock chrome from mac-mocks.css.
   Colours are the app's palette: base / low per phase, the panel tint, ink and secondary. */

.hue-tomato {
  /* Stage colours: the phase "low" tones, deep enough for white copy in both themes. */
  --stage-work: #CF2A20;
  --stage-short: #14803A;
  --stage-long: #2459D0;
  --on-stage: #FFFFFF;
  --panel-w: 336px;
  --panel-r: 16px;
  --panel-pad: 16px 20px 8px;
  --tomato-red: #DC3327;
  --leaf: #1A9A47;
  --leaf-rib: rgba(255, 255, 255, 0.55);
  --leaf-stem: #14873C;
  --wall: radial-gradient(ellipse at 20% 10%, #ffd9b8 0, transparent 55%), radial-gradient(ellipse at 90% 60%, #a9c2f5 0, transparent 60%), linear-gradient(160deg, #f2a9a0, #d9a4d4 55%, #8fb0ee);
}
.hue-tomato .mock {
  --m-bg: rgba(251, 250, 249, 0.88);
  --m-solid: #FBFAF9;
  --m-fg: #1B1A19;
  --m-muted: #6B6661;
  --m-line: rgba(27, 26, 25, 0.11);
  --m-edge: rgba(27, 26, 25, 0.22);
  --m-seg: #FFFFFF;
  --btn-top: #FFFFFF;
  --btn-bottom: #ECEAE6;
}
[data-phase="work"]  { --ring: #DC3327; --ring-low: #CF2A20; }
[data-phase="short"] { --ring: #1A9A47; --ring-low: #14873C; }
[data-phase="long"]  { --ring: #2F6BE6; --ring-low: #2459D0; }
@media (prefers-color-scheme: dark) {
  .hue-tomato {
    --tomato-red: #FF6B6B;
    --leaf: #34D399;
    --leaf-rib: rgba(255, 255, 255, 0.5);
    --leaf-stem: #22BF87;
    --wall: radial-gradient(ellipse at 15% 10%, #5b3b6e 0, transparent 55%), radial-gradient(ellipse at 90% 65%, #25407a 0, transparent 60%), linear-gradient(160deg, #3a2030, #2a2650 55%, #172044);
  }
  .hue-tomato .mock {
    --m-bg: rgba(27, 26, 25, 0.86);
    --m-solid: #1B1A19;
    --m-fg: #F3F1EE;
    --m-muted: #A8A29C;
    --m-line: rgba(243, 241, 238, 0.12);
    --m-edge: rgba(243, 241, 238, 0.3);
    --m-seg: rgba(255, 255, 255, 0.06);
    --btn-top: #4B4846;
    --btn-bottom: #2B2928;
  }
  [data-phase="work"]  { --ring: #FF6B6B; --ring-low: #F2564F; }
  [data-phase="short"] { --ring: #34D399; --ring-low: #22BF87; }
  [data-phase="long"]  { --ring: #60A5FA; --ring-low: #4A93F5; }
}

/* ---------- Hero ---------- */
/* The headline is the cycle, one word a line, at the shared hero size (product.css). */
/* The actions stack on the column edge: the store status, then a text link, then the price line. */
.hero .actions { flex-direction: column; align-items: flex-start; gap: 4px; }
.hero .actions .btn.ghost { gap: 9px; padding: 0; border: 0; border-radius: 4px; color: var(--ink); }
.hero .actions .btn.ghost::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hero .actions .btn.ghost:hover { background: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.hero .meta { margin-top: 0.4rem; }
@media (max-width: 480px) {
  .hero .actions { align-items: stretch; }
  /* Phones show the status-item end of the menu bar; the app menus are off its left edge. */
  .screen .mb-left { display: none; }
  .screen .menubar { justify-content: flex-end; }
  .screen .mb-date { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  /* The hero ring's arc glides from one second to the next. */
  .screen .r-arc { transition: stroke-dasharray 1s linear; }
}

/* ---------- Copy: line ends ---------- */
/* A sentence gap survives the headings' negative tracking. */
.section-head h2 { word-spacing: 0.06em; }
/* Running text outside <p> gets the same last-line care as paragraphs; so does a question that wraps. */
.usage li, .pr-note, .perm dd, .faq-list summary { text-wrap: pretty; }
/* A step's number stands on the baseline of the step's first line. */
.usage li::before { top: 26px; }

/* ---------- Pricing ---------- */
/* Phones: the notes here are sentences, so a row is the name and the amount with its unit on one
   line and the note under them at the row's full width. */
@media (max-width: 480px) {
  .price-rows .pr-val { grid-area: 1 / 2; display: flex; align-items: baseline; gap: 6px; }
  .price-rows .pr-note { grid-area: 2 / 1 / 3 / -1; }
}

/* ---------- Privacy and permissions ---------- */
/* Both cards are a label, a title and two rows; side by side they share all four row lines, so the
   rows start level and the cards end level. */
@media (min-width: 900px) {
  .split .perm { grid-row: span 4; }
  .split .perm dl { display: contents; }
}

/* ---------- Shapes: leaves, brand mark, Today slots ---------- */
.lf { fill: var(--leaf); }
.lf-rib { fill: none; stroke: var(--leaf-rib); stroke-width: 0.16; stroke-linecap: round; }
.lf-stem { fill: none; stroke: var(--leaf-stem); stroke-width: 0.5; stroke-linecap: round; }
.bm-ring { fill: var(--ring); }
.sl-body { fill: var(--tomato-red); }
.sl-gloss { fill: #FFFFFF; opacity: 0.4; }
.sl-ring { fill: none; stroke: currentColor; stroke-opacity: 0.36; stroke-width: 1.1; }

/* ---------- Panel contents, top to bottom ---------- */
.p-head { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.p-mark { width: 16px; height: 16px; flex: none; }
.p-timer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 12px; }
.p-side, .w-side { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.p-phase, .w-phase { font-weight: 600; }
.p-time, .w-time { font: 300 60px/1 var(--sys); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin: 3px 0 5px -2px; white-space: nowrap; }
.p-next, .w-next { font-size: 12.5px; color: var(--m-muted); }
.p-cmds { display: flex; gap: 18px; margin-top: 14px; font-weight: 500; }
.p-cmds span { display: inline-flex; align-items: center; gap: 5px; }
.p-cmds svg { width: 12px; height: 12px; fill: currentColor; }
.p-div { height: 1px; background: var(--m-line); }
.p-settings { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.p-settings b { font-weight: 600; }
.p-settings svg { width: 11px; height: 11px; color: var(--m-muted); }
.p-foot { display: flex; align-items: center; justify-content: space-between; height: 34px; font-size: 12px; color: var(--m-muted); }
.p-key { margin-left: 3px; }

/* The ring is the Start / Pause / Resume button: a soft band in the phase colour, the elapsed arc on it,
   a tomato knob with two leaves on top, and a raised round button inside that carries the action's
   glyph over its name (12 pt medium). Box 124x154, centre 70,90. */
.ring { position: relative; flex: none; width: var(--w); isolation: isolate; }
.ring::before { content: ""; position: absolute; z-index: -1; left: -28%; right: -28%; top: 12%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ring) 15%, transparent), transparent); }
.r-art { display: block; width: 100%; height: auto; overflow: visible; }
.r-halo { fill: color-mix(in srgb, var(--ring) 13%, transparent); stroke: color-mix(in srgb, var(--ring) 40%, transparent); stroke-width: 0.7; }
.r-well { fill: color-mix(in srgb, var(--ring) 7%, var(--m-solid)); stroke: color-mix(in srgb, var(--ring) 32%, transparent); stroke-width: 0.7; }
.r-arc { fill: none; stroke: var(--ring); stroke-width: 10.2; stroke-linecap: round; }
.r-arc.zero { stroke-opacity: 0; }
.r-knob { fill: var(--ring); }
/* 90 / 154: the ring's centre inside the box; the button is 0.73 of the box width. */
.r-btn { position: absolute; left: 50%; top: 58.44%; width: 73%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; background: linear-gradient(var(--btn-top), var(--btn-bottom)); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 3px 7px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5); line-height: 1.1; }
.r-btn svg { width: 19px; height: 19px; fill: var(--ring-low); }
.r-btn b { font-size: 12px; font-weight: 500; }

/* Today: the label, one slot per pomodoro of the goal, the count. */
.today { display: flex; align-items: center; gap: 10px; height: 46px; }
.today > b:first-child { margin-right: auto; font-weight: 600; }
.today .count { min-width: 34px; text-align: right; font-weight: 600; }
.slots { display: flex; gap: 5px; }
.slots svg { width: 18px; height: 18px; flex: none; overflow: visible; }
.slots.sm { gap: 2px; }
.slots.sm svg { width: 13px; height: 13px; }

/* Preset tabs: the chosen one is semibold with an underline. */
.tabs { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; }
.tabs span { padding-bottom: 5px; border-bottom: 1.5px solid transparent; color: var(--m-muted); }
.tabs span.on { border-bottom-color: currentColor; color: var(--m-fg); font-weight: 600; }
.tabs span.dim { opacity: 0.55; }
.summary { margin: 9px 0 13px; font-size: 12px; color: var(--m-muted); }
.s-cap { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.66px; color: var(--m-muted); }

/* Trial row: the note on the left, the outlined Buy capsule on the right. */
.trial { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }
.trial-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trial-text b { font-weight: 600; }
.trial-text span { font-size: 12px; color: var(--m-muted); }
.buy { display: flex; align-items: center; flex: none; height: 30px; padding: 0 15px; border-radius: 15px; border: 1px solid var(--m-edge); background: var(--m-seg); font-weight: 600; white-space: nowrap; }
.panel.frag { padding: 6px 20px; }
