/* Hetu public pages on a phone (owner's brief, 21 Nov 2026).
   Landing, MCP introduction, sign-in and sign-up, below 761px. Same colours, fonts, icons and words as the desktop site;
   only the layout changes. The rules are written in docs/PHONE_DESIGN.md, section 5.
   Everything is inside the media query: above 760px this file does nothing and the desktop is untouched.
   Parts built by phone-public.js are prefixed pp-. */
.pp-dots,.pp-menu,.pp-scrim,.pp-sheet,.pp-lib{display:none}

@media (max-width:760px){
:root{--pp-gut:16px;--pp-ease:cubic-bezier(.2,.8,.2,1);--sec-pad:48px;--sec-gap:28px;--sec-h2:30px}
html{-webkit-text-size-adjust:100%}

/* ---------- a row of like cards: swipe, snap, next card peeks, dots ---------- */
.pcar{display:flex !important;grid-template-columns:none !important;gap:32px;margin:0 !important;padding:4px var(--pp-gut) 8px !important;
  overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 var(--pp-gut);-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y;align-items:flex-start}
.pcar::-webkit-scrollbar{display:none}
.pcar:focus-visible{outline:2px solid var(--navy);outline-offset:-2px;border-radius:16px}
.pcar>*{flex:0 0 100% !important;max-width:none !important;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box}
.pp-dots{display:flex;justify-content:center;align-items:center;margin:0 auto;padding:0}
.pp-dots button{appearance:none;border:0;background:none;padding:0;width:28px;height:44px;min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pp-dots i{display:block;width:8px;height:8px;border-radius:999px;background:#958a76;transition:width .2s var(--pp-ease),background-color .2s var(--pp-ease)}
.pp-dots button[aria-current="true"] i{width:22px;background:var(--navy)}
.pp-dots{position:relative}
.pp-dots.pp-above{margin-bottom:4px}
.pp-dots .pp-play{position:absolute;right:calc(var(--pp-gut) - 10px);top:0;width:44px;height:44px;color:var(--muted)}
.pp-dots .pp-play svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pp-dots .pp-play .pp-i-play{display:none;fill:currentColor;stroke-width:1.2}
.pp-dots .pp-play.is-paused .pp-i-pause{display:none}
.pp-dots .pp-play.is-paused .pp-i-play{display:inline}
.pcar.pp-glide{transition:height .5s var(--pp-ease)}

/* cards in a row are cards: outlined, rounded, same height, same padding */
.g-sec .g-grid.pcar>.g-col{border:1px solid var(--line) !important;border-radius:16px;padding:16px 16px 24px !important;background:var(--paper)}
.g-sec .g-grid.pcar>.g-col .g-art{min-height:0;padding:22px 14px}
/* the row is not a ruled table on a phone: the card has its own outline, so the full-width rules above and below it go */
.g-sec .g-grid.pcar{border-top:0 !important;border-bottom:0 !important}
.u-feats.pcar{border-top:0 !important}
/* the website shows the sample cards inside the art at .85 of their size; the phone does the same, so the art reads as a
   picture and not as the main text (sample text 15px -> 12.9px, as on the website) */
.g-sec .g-grid.pcar .g-art>*{zoom:.86}
/* card titles and text at the website's proportions: smaller than the section heading, body 16px */
.g-sec .g-grid.pcar .g-t,.u-feats.pcar .g-t{font-size:26px}
.g-sec .g-grid.pcar .g-p,.u-feats.pcar .g-p,.u-feats.pcar p{font-size:16px;line-height:1.55}
.g-sec .g-grid.pcar .g-p{margin-top:10px}
.art-mcp .u-read .prov-text{font-size:16.5px;line-height:1.5}
/* hero: the heading wraps by itself (the desktop line break left "for" alone on a line), smaller lede,
   and the two actions side by side as on the website (they stack again only if they do not fit) */
.hero .hero-h br{display:none}
.hero .hero-h{text-wrap:balance}
.hero .hero-lede{font-size:17px;line-height:1.6}
.hero .hero-ctas{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 24px}
/* plans: the card was roomier than the website's; same order, tighter steps */
.pc-grid.pcar .pc-name{font-size:30px}
.pc-grid.pcar .pc-amt{margin-top:16px;min-height:0}
.pc-grid.pcar .pc-fig{font-size:56px}
.pc-grid.pcar .pc-btn{margin-top:20px}
.pc-grid.pcar .pc-grp{margin-top:24px}
.pc-grid.pcar .pc-rows li{padding:9px 0}
/* MCP results: smaller score so "Claude with Hetu MCP" stays on one line; no "Hover a mark" on a touch screen */
#results .mx-num b{font-size:34px}
#results .sx-key-tip{display:none}
/* the MCP block is one column, not a row of cards: drop the ruled outer frame so the terminal and the cards do not sit in a second outline */
.g-sec .g-grid.g-one:not(.pcar){border:0;margin:0 var(--pp-gut)}
.g-sec .g-grid.g-one:not(.pcar)>.g-col{border:0 !important;padding:0 !important}
.g-sec .g-grid.g-one:not(.pcar) .art-mcp{border-radius:12px}
.u-feats.pcar{margin:20px 0 0 !important}
.u-feats.pcar>div{border:1px solid var(--line) !important;border-radius:16px;padding:20px !important;background:var(--paper)}
.u-feats.pcar .g-t{font-size:24px;white-space:normal;overflow-wrap:break-word}
.pc-grid.pcar>.pc-card{margin:0}
.rp-lane.pcar>.rp{margin:0;padding:32px 0 0 24px;gap:28px}
.rp-lane.pcar .rp-copy{padding-right:24px}
.rp-lane.pcar .rp-price{font-size:34px;white-space:nowrap}
.rp-lane.pcar .rp-unit{white-space:nowrap}
.rp-lane.pcar .rp-sheet{margin-bottom:-60px;padding:28px 24px 0}

/* ---------- Limitless ways to search: ONE frame. A strip of the three counts (also the tabs), the three panels slide inside it ---------- */
#library.pp-lib-on .l-a,#library.pp-lib-on .l-b,#library.pp-lib-on .b-stats{display:none}
#library.pp-lib-on .pp-lib{display:block}
.pp-lib{margin:0 var(--pp-gut);border:1px solid var(--line);border-radius:16px;background:var(--paper);overflow:hidden;box-shadow:0 1px 2px rgba(20,18,40,.05),0 12px 28px -14px rgba(20,18,40,.18)}
.pp-lib-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 12px 0}
.pp-tab{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-height:66px;padding:10px 4px 8px;border:1px solid var(--line);border-radius:12px;background:var(--canvas);color:var(--ink);font:inherit;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .2s var(--pp-ease),color .2s var(--pp-ease),border-color .2s var(--pp-ease)}
.pp-tab b{font-family:var(--serif);font-weight:400;font-size:19px;line-height:1.15;white-space:nowrap}
.pp-tab span{font-size:12px;line-height:1.25;color:var(--muted)}
.pp-tab[aria-current="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.pp-tab[aria-current="true"] span{color:rgba(255,255,255,.8)}
.pp-lib .pp-lib-row.pcar{padding:2px 12px 12px !important;scroll-padding:0 12px}
.pp-lib .pp-dots{margin-top:2px}
.pp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pp-fr{position:relative;display:flex;flex-direction:column;gap:14px;padding:0}
.pp-fr .g-art{flex:0 0 auto;justify-content:center;height:auto;min-height:260px;padding:14px 10px;border-radius:8px}
.pp-fr .g-art>.g-w{position:relative;left:auto;right:auto;top:auto;width:auto;margin:0 0 8px}
.pp-fr .g-art>.g-w:last-child{margin-bottom:0}
.pp-fr .g-lab{padding:10px 14px;font-size:11.5px}
.pp-fr .g-lab small{font-size:11.5px}
.pp-fr .g-in{padding:10px 14px 12px;font-size:13.5px;line-height:1.45}
.pp-fr .jb-q .g-in{padding:12px 14px;font-size:14px;gap:10px}
.pp-fr .res li{padding:7px 0;grid-template-columns:46px minmax(0,1fr)}
.pp-fr .res li>b{font-size:15px}
.pp-fr .jb-cite .num{font-size:34px}
.pp-fr .jb-cite .num+span,.pp-fr .jb-app .g-in{font-size:13px}
.pp-fr .art-judg{flex:0 0 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-content:center}
.pp-fr .art-judg>.g-w{margin:0}
.pp-fr .art-judg>.jb-q,.pp-fr .art-judg>.jb-res{grid-column:1 / -1}
.pp-fr .art-judg .g-lab{flex-wrap:wrap;gap:2px 8px}
.pp-fr .jb-cite .g-in{flex-direction:column;align-items:flex-start;gap:2px}
.pp-fr .res li{line-height:1.3}
.pp-fr .res li .m{font-size:11.5px;line-height:1.3}
.pp-fr .res li>span{display:block}
.pp-fr .jb-q .g-in{padding:10px 14px 12px;line-height:1.35}
.pp-fr .art-judg .g-lab{padding:8px 12px}
.pp-fr .jb-cite .g-in,.pp-fr .jb-app .g-in{padding:8px 12px 10px;line-height:1.35}
.pp-fr .art-judg{padding:10px 8px;gap:6px}
.pp-fr .art-judg .g-w{box-shadow:0 1px 2px rgba(20,27,46,.06),0 8px 18px rgba(34,28,24,.10)}
.pp-fr .jb-q svg{width:16px;height:16px}
.pp-fr .jb-q .g-in{padding:8px 12px 10px;font-size:13.5px;gap:8px}
.pp-fr .art-judg .res li{padding:6px 0;font-size:13px}
.pp-fr .art-judg .res li .t{font-size:13px}
.pp-fr .art-judg .res li .m{font-size:12px}
.pp-fr .art-judg .res{margin-top:-2px}
.pp-fr .jb-cite .num{font-size:30px}
.pp-fr .jb-cite .num+span,.pp-fr .jb-app .g-in{font-size:12.5px}
.pp-fr .jb-app .g-in b{font-size:13px}
.pp-fr .prov{font-size:19px}
.pp-fr .prov-text{font-size:13.5px;margin-top:6px}
.pp-fr .circ p{font-size:13.5px}
.pp-fr-txt{padding:0 4px}
.pp-fr-txt .g-p{margin:8px 0 0;font-size:15px;line-height:1.5}
.pp-fr-txt .l-pts{margin:12px 0 0}
.pp-fr-txt .l-pts li{padding:7px 0}
.pp-fr-txt .l-pts b{font-size:16px;line-height:1.3}
.pp-fr-txt .l-pts span{margin-top:1px;font-size:13.5px;line-height:1.4}

/* ---------- MCP page: the three answers to one question, one card each ---------- */
.sx-in .pcar{margin-left:calc(var(--sec-gutter) * -1) !important;margin-right:calc(var(--sec-gutter) * -1) !important}
.ex-cols.pcar{margin-top:20px !important;border-top:0 !important}
.ex-cols.pcar>.ex-col{border:1px solid var(--line) !important;border-radius:16px;padding:18px 16px 6px !important;background:var(--paper)}
.ex-cols.pcar>.ex-col h3{margin-bottom:14px;font-size:15px}
.ex-cols.pcar>.ex-col p{font-size:16px;line-height:1.55}
/* MCP page, Ways to use: the website's moving rows of one-line pills, at phone size. Each row keeps its three
   shortest questions (phone-public.js), so about two pills show side by side, as on the website. */
#use .mqs{gap:10px}
#use .mq .mq-track{animation-duration:var(--pp-mq-dur,48s)}
#use .mq-set li{padding:9px 16px;margin-right:10px;font-size:13px;line-height:1.3}
#use .mq-set li.pp-mq-off{display:none}

/* ---------- the three counts: one row each, number left ---------- */
.b-stats{display:block;margin:16px var(--pp-gut) 0}
.b-stats li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:16px 4px;border:0;border-top:1px solid var(--line)}
.b-stats li:last-child{border-bottom:1px solid var(--line)}
.b-stats b{font-size:32px;line-height:1.1}
.b-stats span{font-size:15px;text-align:right}

/* ---------- price cards: breathing room inside a swipe card ---------- */
.pc-extra{margin:12px var(--pp-gut) 0}
.pc-fine{margin:16px var(--pp-gut) 0}

/* ---------- the close: footer links spread across the width of the big hetu, one size up ---------- */
.close-foot{padding:0 28px;bottom:22px;font-size:14px}
.close-foot nav{justify-content:space-between;gap:0 12px}

/* the close was a whole screen with about 210px of empty navy between the button and the big hetu: 700px keeps the same picture, tighter */
.close.close-dusk{--ch:700px}
h1,.g-h2,.g-t{text-wrap:balance}
.u-note a{padding:11px 0;margin:-11px 0}
.close-foot a:hover{color:#fff !important}

/* ---------- header: menu button and the menu sheet ---------- */
.pp-menu{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 -10px 0 -4px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.hd-over .pp-menu{color:#fff}
.pp-menu svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.pp-scrim{display:block;position:fixed;inset:0;z-index:100;background:color-mix(in srgb,var(--ink) 30%,transparent);opacity:0;pointer-events:none;transition:opacity .22s var(--pp-ease)}
.pp-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:101;max-height:88dvh;background:var(--canvas);border-radius:20px 20px 0 0;
  padding-bottom:env(safe-area-inset-bottom,0px);transform:translateY(105%);visibility:hidden;transition:transform .22s var(--pp-ease),visibility 0s .22s;overscroll-behavior:contain}
.pp-open .pp-scrim{opacity:1;pointer-events:auto}
.pp-open .pp-sheet{transform:none;visibility:visible;transition:transform .28s var(--pp-ease),visibility 0s}
.pp-grab{position:absolute;top:8px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--line)}
.pp-sh-top{position:relative;display:flex;align-items:center;justify-content:center;height:52px;padding-top:8px;font:600 17px/22px var(--sans)}
.pp-x{position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;background:none;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.pp-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.pp-list{list-style:none;margin:0;padding:0 var(--pp-gut) 16px}
.pp-list a{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 4px;font:500 16px/22px var(--sans);color:var(--ink);text-decoration:none;border-top:1px solid var(--line)}
.pp-list li:first-child a{border-top:0}
.pp-list a svg{width:12px;height:12px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pp-list a[aria-current="true"]{color:var(--navy)}

/* ---------- sign-in and sign-up: the Show button sits inside its field ---------- */
.au-input{position:relative}
.au-field-password .field-input{padding-right:68px}
.au-reveal{right:2px;color:var(--navy);font-weight:600}
/* the way on to the other page is a link people can see: navy, bold, underlined, 52px apart */
body.lp[data-auth] .au-alt:not(#_){font-size:14.5px}
body.lp[data-auth] .au-link:not(#_){font-size:14px;padding:13px 0 !important;margin:-13px 0 !important;display:inline-block}
.au-card :is(input,select):focus:not(#_){border-color:var(--navy) !important}  /* the 3px halo alone is 1.3:1; the border now changes too */
body.lp[data-auth] .au-alt a:not(#_){font-weight:600;color:var(--navy);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
body.lp[data-auth] .au-card .au-alt:not(#_){margin-top:12px}
body.lp[data-auth] .au-card .au-alt+.au-alt:not(#_){margin-top:26px}
body.lp .au .au-card:not(#_){padding-top:20px !important}
body.lp .au .au-back:not(#_){height:44px !important;margin:0 !important}
body.lp .au:not(#_){align-content:start !important;padding-top:4px !important}

@media (prefers-reduced-motion:reduce){
  .pp-dots i,.pp-scrim,.pp-sheet,.pp-open .pp-sheet{transition:none !important}
  #use .mqs{padding:0 var(--pp-gut)}
  #use .mq-set li{margin:0;text-align:center}
}
}
