/* Hoot website on phones and small tablets. Every rule sits in a phone-width query (portrait up to 768 px, or a
   landscape phone) or under html.is-phone (a device that cannot add a Chrome extension, set by phone.js), so
   desktop layouts never see it. Loaded after the page's own stylesheets. */

/* ---------- things phone.js adds on phones and tablets (no effect elsewhere) ---------- */
.ph-toast{position:fixed;left:16px;right:16px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:90;width:fit-content;max-width:420px;margin:0 auto;padding:12px 18px;border-radius:14px;
  background:#f3f4fb;color:#0b1236;font-weight:700;font-size:15px;line-height:1.35;text-align:center;box-shadow:0 18px 40px -12px rgba(0,0,0,.7);
  opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s,transform .25s}
.ph-toast.is-on{opacity:1;transform:none}
.ph-note{margin:14px auto 0;max-width:30em;color:var(--dim,#93a3cf);font-size:14px;line-height:1.45;text-align:center}
.ph-note a{color:var(--ink,#f3f4fb);text-underline-offset:3px;display:inline-block;padding:12px 0;margin:-12px 0}
.ph-here{display:none}
.is-phone .m-sticky.ph-sticky{display:flex;gap:8px}
.is-phone .m-sticky.ph-sticky .m-btn--gold{flex:1;min-width:0;padding-inline:14px;font-size:15.5px;gap:8px}
.is-phone .m-sticky.ph-sticky .ph-sticky__wt{flex:none;min-height:48px;padding:10px 14px;font-size:15px;gap:7px;background:rgba(10,20,60,.96)}
.is-phone .m-sticky.ph-sticky .m-btn svg{width:18px;height:18px}
@media (max-width:379px){.is-phone .m-sticky.ph-sticky .ph-sticky__wt{width:48px;padding:0}.is-phone .ph-sticky__wt span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}

@media (max-width:768px), (pointer:coarse) and (max-height:500px){
  /* ---------- nav: no blur on the bar that scrolls over everything; the section on screen next to the name ---------- */
  .m-nav .m-nav__bar,.m-nav.is-stuck .m-nav__bar{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(8,16,48,.94)}
  .m-nav .m-nav__bar{gap:10px}
  .m-brand{min-height:44px;flex:none}
  .m-brand small{display:none}
  .m-nav__end{flex:none}
  .is-phone .m-nav .m-btn--sm{padding-inline:12px;gap:7px}
  .ph-here{display:block;flex:0 1 auto;min-width:0;margin-left:-6px;padding:4px 10px;border-radius:99px;border:1px solid rgba(255,224,138,.28);color:var(--m-gold,#ffe08a);
    font-size:13px;font-weight:700;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transform:translateY(3px);transition:opacity .25s,transform .25s}
  .ph-here.is-on{opacity:1;transform:none}
  .m-nav__toggle{width:44px;height:44px}
  .m-nav .m-btn--sm{min-height:44px}
  .m-nav__sheet{max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain}
  .m-nav__sheet a:not(.m-btn){display:flex;align-items:center;min-height:48px;padding:10px 14px}
  .m-nav__sheet a.is-here{background:rgba(255,224,138,.1);color:var(--m-gold,#ffe08a)}
  .m-nav__sheet a.is-here::after{content:"";width:6px;height:6px;margin-left:auto;border-radius:50%;background:currentColor}

  /* ---------- glass cards: no blur on phones (it repaints every scrolled frame); a little more fill instead ---------- */
  .pl-card{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(13,26,74,.92)}
  .m-sticky{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(4,10,34,.97)}
  .m-sticky.ph-hide{transform:translateY(110%)!important}

  /* ---------- hero: the owl idles in CSS (the live owl is desktop only), the note under the buttons ---------- */
  .pl-hero__owl .d-owl-still{animation:ph-owl 6.5s ease-in-out infinite;transform-origin:50% 85%}
  @keyframes ph-owl{0%,100%{transform:translateY(0) rotate(0)}20%{transform:translateY(-4%) rotate(-4deg)}40%{transform:translateY(0) rotate(0)}62%{transform:translateY(-3%) rotate(5deg)}80%{transform:translateY(0) rotate(0)}}

  /* ---------- use cases: big pause, dots as a quiet indicator (phone.js takes them out of the tab order) ---------- */
  .pl-flow__pause{width:44px;height:44px}
  .pl-flow__pause::before{inset:0}
  .pl-flow__pause svg{width:16px;height:16px}
  .pl-dots{pointer-events:none}
  .pl-ring b{font-size:12px}

  /* ---------- feature panels: controls sized for a thumb ---------- */
  .e-slider input{height:44px;background:transparent;touch-action:pan-y}
  .e-slider input::-webkit-slider-runnable-track{height:10px;border-radius:99px;background:var(--g)}
  .e-slider input::-moz-range-track{height:10px;border-radius:99px;background:var(--g)}
  .e-slider input::-webkit-slider-thumb{width:28px;height:28px;margin-top:-9px}
  .d-compare__range{touch-action:pan-y}
  .e-switch,.e-switch[aria-pressed=false]{width:52px;height:44px;background:transparent}
  .e-switch::before{content:"";position:absolute;left:0;right:0;top:10px;height:24px;border-radius:99px;background:#526ce5;transition:background-color .25s}
  .e-switch[aria-pressed=false]::before{background:#3a4052}
  .e-switch::after{top:13px;transform:translateX(28px)}
  .e-switch[aria-pressed=false]::after{transform:none}
  .e-sites small{font-size:12px}

  /* ---------- floating timer: a phone-shaped browser, tall enough for the widget to roam ---------- */
  .d-stage{max-width:380px;border-radius:34px;border:7px solid #0d1018;box-shadow:0 0 0 1px rgba(190,205,255,.18),0 40px 80px -30px rgba(0,0,0,.9)}
  .d-stage__bar{justify-content:center;height:44px;padding:0 12px;background:#0d1018;border-bottom:0}
  .d-stage__bar i{display:none}
  .d-stage__bar span{margin:0;max-width:100%;padding:6px 14px;font-size:13px;color:#a7adb8;background:rgba(255,255,255,.08)}
  .d-stage__view{height:clamp(440px,calc(100svh - 250px),600px)}
  .d-stage__poster{padding:28px 20px}
  .d-stage__h{font-size:26px}
  .e-steps{gap:6px}
  .e-steps li{padding:6px 12px;font-size:13.5px}

  /* ---------- customize: the row drifts by itself and a finger can't move, hold or stop it (a touch on it scrolls the page); cards sized for a phone ---------- */
  .d-strip{overflow:hidden;overflow:clip;touch-action:pan-y;pointer-events:none;padding:30px 0 40px}
  .d-look{width:min(220px,58vw)}
  .d-look:hover{transform:rotate(var(--rot,-2deg)) translateY(var(--ty,0))}
  .e-kinds li{font-size:14px}

  /* ---------- pricing: Pro and its free days first ---------- */
  .m-plan--pro{order:-1}
  .m-price__fine a,.m-end__pro{display:inline-flex;align-items:center;min-height:44px}
  .d-faq summary{min-height:48px;display:flex;align-items:center}

  /* ---------- footer and the other pages: taller targets ---------- */
  .m-foot li a{display:inline-flex;align-items:center;min-height:44px}
  .m-foot ul{gap:0}
  .m-doc__toc summary{min-height:44px;display:flex;align-items:center}
  .m-doc__toc nav a{min-height:44px;display:flex;align-items:center}
  .h-bye__label{min-height:44px;display:flex;align-items:center}
  .pw2-skip{min-height:44px}
  .hoot-step{min-width:44px}
}

/* ---------- the web timer: a big clock and big buttons on a phone ---------- */
@media (max-width:768px), (pointer:coarse) and (max-height:500px){
  .e-wt[data-view=running] .e-wt__head{display:none}
  .e-wt__clockwrap{width:min(360px,88vw)}
  .e-wt[data-view=running] .popup-clock{font-size:clamp(60px,17vw,92px)}
  .e-wt__btn{min-height:60px;font-size:17px}
}
/* landscape phone: the clock and the controls side by side, so both fit without scrolling */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  .e-wt[data-view=running] .e-wt__card{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:24px}
  .e-wt[data-view=running] .e-wt__modes{grid-column:1/-1}
  .e-wt[data-view=running] .e-wt__clockwrap{width:min(300px,62svh);margin:0}
  .e-hero.pl-hero{min-height:0}
}

/* narrow phones: the nav's send button is just its icon (its label is in aria-label), so the section name fits */
@media (max-width:540px){
  .is-phone .m-nav__end .m-btn--sm{display:inline-flex;width:44px;padding:0;gap:0}
  .is-phone .m-nav__end .m-btn--sm span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .is-phone .m-nav__end .m-btn--sm svg{width:20px;height:20px}
}
/* the smallest phones: on the home page the bottom bar already has the send button */
@media (max-width:359px){.is-phone .d-home .m-nav__end .m-btn--sm{display:none}}

@media (prefers-reduced-motion:reduce){
  .pl-hero__owl .d-owl-still{animation:none}
  .ph-toast,.ph-here{transition:none}
}

/* ---------- Chrome on iPhone, home page: <body> is the scroller, so the browser's bars stop sliding (boxscroll.js) ---------- */
html.box-scroll{height:100%;overflow:hidden}
html.box-scroll body{height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scroll-padding-top:96px;scroll-padding-bottom:84px}
@media (prefers-reduced-motion:reduce){html.box-scroll body{scroll-behavior:auto}}
html.box-scroll .uc-day.is-pinned.is-fixed{position:fixed;pointer-events:none;margin:0}

/* ---------- landscape phone, the floating timer panel (2026-11-26 screenshot: a narrow phone-shaped stage taller than
   the screen, with empty space both sides). The words sit in a column on the left; the stage is a wide
   browser window on the right, as tall as the screen leaves between the nav and the bottom bar. ---------- */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  .e-feat--float{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,2fr);grid-template-rows:auto 1fr;column-gap:18px;row-gap:12px;align-items:start;padding:16px 14px 16px 6px}
  .e-feat--float .e-feat__copy{grid-column:1;grid-row:1/3;align-self:center;padding-inline:12px 0;margin:0}
  .e-feat--float .e-feat__copy h3{font-size:20px;line-height:1.2}
  .e-feat--float .e-feat__copy p{font-size:14px;line-height:1.45}
  .e-feat--float .e-steps{display:none}   /* the caption on the stage already names each step */
  .e-feat--float .d-stage{grid-column:2;grid-row:1/3;max-width:none;width:100%;margin:0;border-radius:16px;border-width:4px}
  .e-feat--float .d-stage__bar{height:30px}
  .e-feat--float .d-stage__bar span{padding:3px 12px;font-size:12px}
  .e-feat--float .e-stagecap{position:absolute;left:10px;top:auto;bottom:10px;margin:0;font-size:12px;padding:5px 11px 5px 9px}
  .e-feat--float .d-stage__view{height:clamp(200px,calc(100svh - 130px),380px)}
  .is-phone .e-feat--float .d-stage__view{height:clamp(180px,calc(100svh - 200px),380px)}   /* room for the bottom bar too */
  .e-feat--float .d-stage__poster{padding:18px 20px}
  .e-feat--float .d-stage__h{font-size:22px}
}
