/* glyph.fru.dev: one bright screen per page. Shared by the family home and every app page. */
:root{color-scheme:light;
  --bg:#F7FBF5;--ink:#0B1A10;--soft:#3E5446;--dim:#5E7366;--green:#008000;--green-h:#006E00;--on-green:#fff;
  --line:rgba(11,26,16,.10);--card:rgba(255,255,255,.72);--pill:#fff;--sheet:#fff;--foot:rgba(255,255,255,.82);
  --shadow:rgba(11,26,16,.22);--strike:#A6402B;--tint:rgba(0,128,0,.10);--tint-line:rgba(0,128,0,.2);
  --b1:#C9F7B5;--b2:#CFE6FF;--b3:#E4DCFF;--b4:#FFE7C7;--head:linear-gradient(90deg,#E9F8E4,#EEF3FF)}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;color:var(--ink);font:17px/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
  background:radial-gradient(45% 40% at 12% 18%,var(--b1) 0,transparent 70%),radial-gradient(40% 45% at 90% 12%,var(--b2) 0,transparent 70%),
  radial-gradient(45% 45% at 85% 92%,var(--b3) 0,transparent 70%),radial-gradient(40% 40% at 8% 95%,var(--b4) 0,transparent 70%),var(--bg);
  background-attachment:fixed}
a{color:var(--green)}
:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:6px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- an app page: two halves on wide screens, one column on phones ---------- */
main{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(14px,2.4vh,24px);
  padding:clamp(16px,3vh,40px) 16px calc(60px + env(safe-area-inset-bottom));text-align:center}
.left{display:flex;flex-direction:column;align-items:stretch;gap:clamp(14px,2.6vh,28px);width:min(100%,440px)}
.top{display:flex;flex-direction:column;align-items:center;gap:clamp(10px,1.8vh,16px)}
.brand{display:flex;align-items:center;gap:14px;text-align:left;color:inherit;text-decoration:none}
.icon{width:clamp(52px,8vh,72px);height:auto;border-radius:22%;box-shadow:0 10px 24px rgba(0,100,0,.28);flex:none}
.brand b{display:block;font:800 clamp(26px,4.2vh,38px)/1 "Bricolage Grotesque",sans-serif;letter-spacing:-.02em;white-space:nowrap}
.brand span{display:block;white-space:nowrap;color:var(--soft);font-weight:600;font-size:clamp(14px,1.9vh,17px);margin-top:5px}
.brand span i{font-style:normal;color:var(--dim);font-weight:500}
h1{font:800 clamp(34px,min(8.5vh,12.5vw),80px)/1.02 "Bricolage Grotesque",-apple-system,sans-serif;letter-spacing:-.035em;margin:0;white-space:nowrap}
h1 em{font-style:normal;color:var(--green);white-space:nowrap;display:block}
.caret{display:inline-block;width:.07em;height:.8em;margin-left:.04em;background:var(--green);vertical-align:-.02em;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* the strip: what you'd pay elsewhere (or what it works with), then this app */
.alt{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:12px 16px}
.paid{display:flex;gap:clamp(6px,.8vw,10px)}
.alt figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.alt figure img,.tile{width:clamp(38px,5.4vh,50px);height:auto;aspect-ratio:1;border-radius:24%;box-shadow:0 4px 10px rgba(0,0,0,.12)}
.paid img{filter:saturate(.6);opacity:.85}
.tile{display:grid;place-items:center;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.10),inset 0 0 0 1px rgba(11,26,16,.06)}
.tile svg,.tile img{width:62%;height:62%;object-fit:contain;box-shadow:none;border-radius:0;filter:none;opacity:1}
.alt s{font:700 13px -apple-system,sans-serif;color:var(--strike);text-decoration-color:currentColor;text-decoration-thickness:1.5px}
.alt figcaption{font-size:12.5px;font-weight:600;color:var(--soft);white-space:nowrap}
.or{font:800 clamp(16px,2.2vh,20px) "Bricolage Grotesque",sans-serif;color:var(--dim)}
svg.or{width:20px;height:20px;flex:none}
.ours{display:grid;grid-template-columns:auto auto;column-gap:10px;align-items:center;text-align:left;text-decoration:none;color:var(--ink)}
.ours img{grid-row:1/3;width:clamp(38px,5.4vh,50px);height:auto;border-radius:24%;box-shadow:0 6px 14px rgba(0,128,0,.3)}
.ours b{font:800 clamp(19px,2.7vh,25px)/1.05 "Bricolage Grotesque",sans-serif;color:var(--green);white-space:nowrap}
.ours small{font-size:13px;font-weight:600;color:var(--soft);white-space:nowrap}
a.ours:hover small{color:var(--green)}

/* the one button, the star pill and its hand-drawn note */
.cta{display:flex;gap:10px;flex-wrap:nowrap;align-items:stretch;position:relative}
.btn{display:inline-flex;align-items:center;gap:9px;height:clamp(48px,6vh,56px);padding:0 22px;border-radius:14px;font-family:inherit;font-weight:700;font-size:17px;text-decoration:none;border:0;cursor:pointer;white-space:nowrap}
.btn svg{width:20px;height:20px;flex:none}
.btn.go{flex:1;min-width:0;justify-content:center;background:var(--green);color:var(--on-green);box-shadow:0 10px 22px rgba(0,128,0,.28)}
.btn.go:hover{background:var(--green-h)}
.btn.state{flex:1;justify-content:center;cursor:default;background:var(--tint);color:var(--green);box-shadow:inset 0 0 0 1.5px var(--tint-line)}
.btn.star{position:relative;padding:0 18px;font-size:15px;gap:7px;background:var(--pill);color:var(--ink);border:1px solid var(--line)}
.btn.star:hover{border-color:var(--green);color:var(--green)}
.btn.star>svg{width:17px;height:17px;color:var(--green)}
.count,.dlc{display:inline-flex;align-items:center;gap:3px;padding:4px 9px;border-radius:999px;font-size:.84em;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.count{margin-left:2px;background:var(--tint);box-shadow:inset 0 0 0 1px var(--tint-line);color:var(--green)}
.dlc{margin-left:4px;padding:4px 10px 4px 8px;background:rgba(255,255,255,.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.btn .dlc svg{width:.95em;height:.95em}
[hidden]{display:none!important}
.love{position:absolute;top:calc(100% + 4px);right:50%;margin-right:-9px;display:flex;flex-direction:column;align-items:flex-end;color:var(--green);pointer-events:none}
.love svg.arrow{width:clamp(54px,7vh,72px);height:auto}
.love .say{font:700 clamp(22px,3.1vh,29px)/1 "Caveat",cursive;white-space:nowrap;display:flex;align-items:center;gap:6px;margin-top:-2px;margin-right:clamp(20px,3vh,30px);transform:rotate(-4deg)}
.love svg.heart{width:.8em;height:.8em;color:#E0465B;animation:beat 1.6s ease-in-out infinite}
@keyframes beat{0%,100%{transform:scale(1)}15%{transform:scale(1.25)}30%{transform:scale(1)}45%{transform:scale(1.15)}}
.cta.loved{margin-bottom:76px}
.copied .lbl-copy{display:none}

.badges{display:flex;gap:8px 20px;flex-wrap:wrap;justify-content:center;margin:0;padding:0;list-style:none;color:var(--soft);font-size:15px;font-weight:600}
.badges li{display:flex;align-items:center;gap:7px}
.badges svg{width:19px;height:19px;color:var(--green)}
.note{margin:0;font-size:12px;line-height:1.45;color:var(--dim)}

/* the right half: hidden on phones */
.right{display:none;position:relative}
.works{display:flex;flex-direction:column;align-items:center;gap:clamp(8px,1.4vh,14px)}
/* the real people who starred it, above the pictures */
.proof{display:flex;align-items:center;gap:12px;padding:6px 18px 6px 8px;border-radius:999px;background:var(--card);border:1px solid var(--line);box-shadow:0 8px 24px rgba(11,26,16,.07);max-width:100%}
.works p{margin:0;font:800 clamp(17px,2.4vh,22px) "Bricolage Grotesque",sans-serif;color:var(--soft);letter-spacing:-.01em}
.works .row{display:flex;gap:clamp(6px,.8vw,12px);flex-wrap:nowrap}
.works .row>*{width:clamp(28px,min(4.8vh,3vw),52px);height:auto;aspect-ratio:1;flex:none;filter:drop-shadow(0 6px 10px rgba(11,26,16,.16));animation:bob 4.2s ease-in-out infinite;animation-delay:calc(var(--i) * -.35s)}
.works .row .tile{width:clamp(28px,min(4.8vh,3vw),52px)}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.faces{display:flex;align-items:center;padding-left:10px;flex:none}
.faces a{margin-left:-10px;display:block;border-radius:50%;box-shadow:0 0 0 3px var(--bg),0 4px 10px rgba(0,0,0,.12);transition:transform .2s}
.faces a:hover{transform:translateY(-3px);z-index:1}
.faces img{display:block;width:clamp(30px,4vh,40px);height:clamp(30px,4vh,40px);border-radius:50%;object-fit:cover;background:#eee}
.faces .more{margin-left:-10px;display:grid;place-items:center;min-width:clamp(30px,4vh,40px);height:clamp(30px,4vh,40px);padding:0 6px;border-radius:999px;background:var(--tint);color:var(--green);font-size:12.5px;font-weight:800;box-shadow:0 0 0 3px var(--bg)}
.proof p{margin:0;font-size:clamp(14px,1.9vh,16px);color:var(--soft);font-weight:600;white-space:nowrap}
.proof .heart{width:.95em;height:.95em;margin-left:6px;vertical-align:-.12em;color:#E0465B;animation:beat 1.6s ease-in-out infinite}
.proof p a{text-decoration:none;color:inherit}.proof p a:hover{color:var(--green)}
.proof b{color:var(--ink);font-weight:800}
.shot{display:block;max-width:100%;border-radius:16px;box-shadow:0 30px 60px var(--shadow)}
img.shot,video.shot{background:#0B0F0C}
.capbar{display:inline-flex;align-items:center;gap:6px;padding:5px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:15px;color:var(--soft)}
.capbar button{width:34px;height:34px;border-radius:50%;border:0;background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}
.capbar button:hover{background:var(--tint);color:var(--green)}
.capbar button svg{width:18px;height:18px}
.capbar .cap{display:flex;align-items:center;gap:8px;min-width:clamp(250px,24vw,330px);justify-content:center;white-space:nowrap}
.capbar .cap b{color:var(--ink);font-weight:700}
.capbar .cap span{color:var(--dim);font-variant-numeric:tabular-nums;font-size:13px}

/* phones and tablets: one column, centred */
@media not ((min-width:960px) and (min-height:560px)){
  .left{display:contents}
  .top{order:1}.alt{order:3}.cta{order:4}.badges{order:5}.note{order:6}
  .alt,.cta,.badges,.note{width:min(100%,440px)}
  body:not([data-page=home]) .right{display:contents}
  body:not([data-page=home]) .right>:not(.proof){display:none}
  body:not([data-page=home]) .proof{order:7}
}
@media (max-width:1280px){.faces a:nth-child(n+9),.faces .more{display:none}}
@media (max-width:1180px){.proof .dv{display:none}}
@media (max-width:520px){.faces a:nth-child(n+7),.faces .more{display:none}.proof .dv{display:none}.proof{gap:10px;padding:5px 16px 5px 6px}}
@media (max-width:440px){.alt figcaption{display:none}.alt{gap:6px;padding:10px 10px}.paid{gap:5px}.alt figure img,.tile,.ours img{width:36px}.ours{column-gap:7px}.ours b{font-size:18px}.ours small{font-size:12px}.alt s{font-size:12px}.alt figcaption{font-size:12px}}
@media (max-width:480px){.formac{display:none}}
@media (max-width:400px){.star .lbl{display:none}.btn.star{padding:0 14px}.btn.go{padding:0 16px}.hide-xs{display:none}}
@media (max-width:370px){.alt figure img,.tile,.ours img{width:32px}.paid{gap:4px}.alt{padding:9px 8px}}

/* wide screens: two halves; the left column fills the height, the right group centres on it */
@media (min-width:960px) and (min-height:560px){
  main{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100svh;min-height:0;align-items:stretch;
    gap:clamp(32px,5vw,96px);max-width:1680px;margin:0 auto;padding:5vh clamp(32px,5vw,96px) calc(44px + 5vh);text-align:left}
  .left{width:clamp(400px,36vw,620px);justify-content:space-between;gap:clamp(10px,2vh,24px)}
  .top{align-items:flex-start}
  .icon{width:clamp(64px,9vh,92px)}
  .brand b{font-size:clamp(30px,5vh,46px)}.brand span{font-size:clamp(15px,2.1vh,19px)}
  h1{font-size:clamp(64px,min(14vh,7.6vw),170px)}
  .badges{justify-content:flex-start;font-size:clamp(15px,1.9vh,18px)}
  .btn{height:clamp(54px,7vh,68px);font-size:clamp(17px,2.2vh,21px)}
  .btn.star{font-size:15px}
  .cta.loved{margin-bottom:clamp(56px,8vh,90px)}
  .right{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(14px,2.6vh,28px);align-self:center;min-width:0}
}
@media (min-width:960px) and (max-width:1180px) and (min-height:560px){.cta.loved{margin-bottom:clamp(70px,11vh,96px)}}

/* ---------- the sheet behind the footer link ---------- */
dialog.sheet{outline:none;border:0;padding:0;border-radius:28px;width:min(720px,calc(100% - 24px));max-height:calc(100svh - 32px);overflow:auto;background:var(--sheet);color:var(--ink);box-shadow:0 30px 80px rgba(11,26,16,.35)}
dialog.sheet::backdrop{background:rgba(11,26,16,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
dialog.sheet[open]{animation:pop .22s cubic-bezier(.16,1,.3,1)}
@keyframes pop{from{opacity:0;transform:translateY(12px) scale(.98)}}
.fhead{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:12px;padding:18px 22px;background:var(--head);border-bottom:1px solid var(--line)}
.fhead img{border-radius:10px}
.fhead h2{flex:1;margin:0;font:800 clamp(22px,3vw,30px)/1.1 "Bricolage Grotesque",sans-serif;letter-spacing:-.02em}
.fclose{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--pill);display:grid;place-items:center;cursor:pointer;color:var(--ink);flex:none}
.fclose svg{width:18px;height:18px}
.flist{padding:6px 28px 24px}
.fq{padding:16px 0;border-bottom:1px solid var(--line)}
.fq:last-child{border-bottom:0}
.fq h3{margin:0;font:700 18px/1.3 -apple-system,BlinkMacSystemFont,sans-serif}
.fq p{margin:5px 0 0;color:var(--soft);font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.fq code{font:14px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--tint);padding:1px 5px;border-radius:5px}
@media (max-width:520px){.fhead{padding:12px 16px}.fhead img{width:32px;height:32px}.flist{padding:2px 18px 18px}.fq h3{font-size:17px}.fq p{font-size:15px}}

/* ---------- the footer ---------- */
footer{position:fixed;left:0;right:0;bottom:0;z-index:30;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:var(--foot);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
footer .bar{max-width:1680px;margin:0 auto;height:44px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--dim)}
@media (min-width:960px) and (min-height:560px){footer .bar{padding:0 clamp(32px,5vw,96px)}}
footer nav{display:flex;align-items:center;gap:2px;min-width:0}
footer nav a{color:var(--soft);text-decoration:none;padding:6px 8px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
footer nav a:hover{background:var(--tint);color:var(--ink)}
footer nav a.home{color:var(--ink);font-weight:600}
footer nav a img{display:block;border-radius:4px}
footer a.feat{color:var(--green);font-weight:700}
footer a.feat svg{color:var(--green)}
footer a:focus:not(:focus-visible){outline:none}
footer .built{display:inline-flex;align-items:center;gap:6px;color:var(--soft);text-decoration:none;font-weight:600;white-space:nowrap}
footer .built:hover{color:var(--green)}
footer .built .heart-i{display:inline-block;vertical-align:-2px;margin:0 1px}
@media (max-width:620px){footer .opt{display:none}}
@media (max-width:420px){footer nav a{padding:6px 5px}footer a.feat svg{display:none}footer .bar{gap:6px}}
@media (max-width:380px){footer .built .bw{display:none}}
.brand span i::before{content:" · "}
@media (max-width:480px){.brand span i{display:block;margin-top:2px}.brand span i::before{content:none}}
