/* Free timer pages (/20-20-20, /break-timer). Loaded after styles.css. */
.tool-hero{position:relative;background:radial-gradient(120% 70% at 50% 0%,#1C3E42 0%,var(--night-2) 42%,var(--night) 80%);color:var(--on-night);padding:128px 0 80px;overflow:hidden;isolation:isolate;text-align:center}
.tool-hero h1{font-size:clamp(40px,6.4vw,72px);margin:22px 0 14px}
.tool-hero .lede{max-width:600px}

/* Presets (break timer) */
.presets{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:30px auto 0;max-width:640px}
.presets .chip{height:36px;font-size:13.5px}
.presets .chip[aria-pressed="true"]{background:var(--sage-2);color:#07201A;border-color:var(--sage-2)}
.custom{display:flex;flex-wrap:wrap;gap:10px 18px;justify-content:center;align-items:center;margin:14px auto 0;font-size:14.5px;color:var(--on-night-2)}
.custom[hidden]{display:none}
.custom label{display:flex;align-items:center;gap:8px}
.custom input,.custom select{height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:var(--on-night);font:600 15px var(--display);padding:0 10px}
.custom input{width:72px}
.custom select option{color:#111}

/* Dial */
.dial{position:relative;width:min(340px,82vw);aspect-ratio:1;margin:34px auto 0}
.dial .ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.ring .track{fill:none;stroke:rgba(255,255,255,.08);stroke-width:9}
.ring .prog{fill:none;stroke:var(--sage-2);stroke-width:9;stroke-linecap:round;transition:stroke .4s}
.dial.rest .ring .prog{stroke:var(--amber)}
.dial-in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.tghost-wrap{position:relative;width:34%;margin-top:-4%}
.tghost{width:100%;height:auto;animation:bob 3.4s ease-in-out infinite}
.tghost .hands{opacity:0;transition:opacity .3s}
.dial.rest .tghost .hands{opacity:1}
.tghost-wrap .z{font-size:16px}
.tghost-wrap .z1{left:84%;top:16%}.tghost-wrap .z2{left:96%;top:2%}
.dial:not(.sleepy) .z{display:none}
.boo{position:absolute;top:-8%;left:78%;background:#fff;color:var(--ink);font:800 15px var(--round);padding:6px 11px;border-radius:13px;box-shadow:0 8px 20px -8px rgba(0,0,0,.5);opacity:0;transform:scale(.6);transition:opacity .25s,transform .35s var(--ease);white-space:nowrap}
.dial.boo-on .boo{opacity:1;transform:scale(1)}
.time{font:700 clamp(48px,12vw,68px)/1 var(--display);letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:8px}
.phase{font:600 13.5px/1.3 var(--round);color:var(--on-night-2);letter-spacing:.01em}

.tctl{display:flex;gap:10px;justify-content:center;margin-top:26px}
.tctl .btn{min-width:150px}
.topts{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;margin-top:20px;font-size:14px;color:var(--on-night-2)}
.topts label{display:flex;align-items:center;gap:7px;cursor:pointer}
.topts input{accent-color:var(--sage-2);width:16px;height:16px}
.tnote{margin-top:16px;font-size:13.5px;color:#7F9894}
.tnote a{color:var(--sage-2)}
.tnote b{color:var(--on-night);font-weight:600}

/* The blanket: covers the page during a break, like Peeka does on the Mac */
.blanket{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;text-align:center;color:var(--on-night);
  background:radial-gradient(90% 70% at 50% 40%,#1C3E42,#0B1B1F);transform:translateY(-102%);transition:transform .9s var(--ease);visibility:hidden}
.blanket.on{transform:none;visibility:visible}
.blanket.off{transition:transform .9s var(--ease),visibility 0s .9s}
.bl-in{max-width:640px}
.bl-in svg{width:120px;height:140px;margin:0 auto 10px;animation:bob 3s ease-in-out infinite}
.bl-kicker{font:700 13px/1 var(--round);letter-spacing:.06em;text-transform:uppercase;color:var(--sage-2)}
.bl-in h2{font:700 clamp(30px,5vw,52px)/1.08 var(--round);letter-spacing:-.02em;margin:16px 0 10px}
.bl-sub{font-size:clamp(16px,2vw,19px);color:var(--on-night-2);line-height:1.5}
.bl-dots{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:28px auto 0;max-width:440px}
.bl-dots i{width:11px;height:11px;border-radius:50%;background:rgba(255,255,255,.14);transition:background .3s}
.bl-dots i.on{background:var(--sage-2)}
.bl-time{font:700 clamp(40px,8vw,64px)/1 var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin-top:24px}
.bl-time[hidden],.bl-dots[hidden]{display:none}
.bl-skip{margin-top:34px;height:40px;font-size:14px}

/* Peeka section */
.peeka-cta .split{grid-template-columns:1.1fr .9fr}
.peeka-cta .vid{width:min(380px,100%);margin:0 auto;border-radius:22px;overflow:hidden;aspect-ratio:4/5;background:#0E2226;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 40px 90px -40px rgba(0,0,0,.8)}
.peeka-cta .vid video{width:100%;height:100%;object-fit:cover;display:block}
.peeka-cta .big{color:var(--on-night-2)}
.ticks{list-style:none;display:grid;gap:12px;margin:26px 0 30px}
.ticks li{display:flex;gap:11px;align-items:flex-start;color:var(--on-night);line-height:1.5}
.ticks li::before{content:"";flex:none;width:18px;height:18px;margin-top:2px;border-radius:50%;background:var(--sage-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.peeka-cta .fine{color:#7F9894}

/* Article */
.prose h2{font-size:clamp(28px,3.6vw,40px);margin:64px 0 16px}
.prose h2:first-child{margin-top:0}
.prose h3{margin:30px 0 8px}
.prose p,.prose li{font-size:18px;line-height:1.7;color:var(--ink-2)}
.prose p+p{margin-top:16px}
.prose ol,.prose ul{padding-left:22px;display:grid;gap:10px;margin-top:16px}
.prose a{color:var(--sage-deep)}
.prose .note{font-size:15px;color:var(--muted)}
.howto{list-style:none;padding:0!important;display:grid;grid-template-columns:repeat(3,1fr);gap:14px!important;counter-reset:s}
.howto li{background:var(--card);border-radius:18px;padding:22px;box-shadow:0 1px 0 var(--line),0 18px 40px -30px rgba(22,35,43,.3);font-size:16px!important;line-height:1.55!important;counter-increment:s}
.howto li::before{content:counter(s);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--paper-2);font:700 13px/1 var(--round);color:var(--ink-2);margin-bottom:12px}
.howto b{color:var(--ink)}
.rhythms{width:100%;border-collapse:collapse;margin-top:20px;font-size:16px;background:var(--card);border-radius:18px;overflow:hidden;box-shadow:0 1px 0 var(--line)}
.rhythms th,.rhythms td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.5}
.rhythms th{font:600 13px var(--round);text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--paper-2)}
.rhythms td:first-child{font-weight:600;color:var(--ink);white-space:nowrap}
.rhythms td{color:var(--ink-2)}
.rhythms tr:last-child td{border-bottom:0}
.rhythms button{font:600 13px var(--round);color:var(--sage-deep);background:none;border:0;cursor:pointer;padding:0;text-decoration:underline}
.tool-links{display:flex;flex-wrap:wrap;gap:8px 20px}

@media (max-width:900px){
  .howto{grid-template-columns:1fr}
  .peeka-cta .split{grid-template-columns:1fr}
  .tool-hero{padding-top:112px}
}
@media (max-width:560px){
  .rhythms th:nth-child(3),.rhythms td:nth-child(3){display:none}
}
@media (prefers-reduced-motion:reduce){
  .tghost,.bl-in svg,.stars{animation:none}
  .blanket{transition:none}
}
