/* Inner pages (FAQ, compare, blog, legal), styled after the homepage redesign */
:root{--cream:#FFFFFF;--card:#FEFAEB;--ink:#0C1A00;--sub:#4C5049;--mute:#6E7269;--line:#E7E2D4}
body{background:var(--cream);color:var(--ink)}

/* nav */
body header.nav{display:grid;grid-template-columns:1fr auto 1fr;gap:32px}
body header.nav .navbtn{justify-self:end;margin-left:0}
header.nav .mark{justify-self:start}
body header.nav .mark{display:flex;align-items:center;gap:10px}
body header.nav .app-icon{width:36px;height:36px;border-radius:9px;box-shadow:0 0 0 1px rgba(12,26,0,.08)}
body header.nav .wm{padding-right:0}
body header.nav .links{display:flex;gap:28px}
body header.nav .links a{color:var(--sub);font-size:15px;font-weight:500;text-decoration:none}
@media(hover:hover) and (pointer:fine){.nav .links a:hover{color:var(--ink)}}
@media(max-width:640px){body header.nav .links{display:none}}

/* article */
.doc{max-width:1040px;margin:0 auto;padding:48px 0 112px}
.doc>*:not(.doc-head):not(.crumb){max-width:720px;margin-left:auto!important;margin-right:auto!important}
.doc-head{max-width:720px;margin:0 auto 8px}
.doc-head h1{font-size:clamp(32px,4vw,44px);line-height:1.1;letter-spacing:-.02em;font-weight:600;margin:0 0 16px}
.doc-head .updated{font-size:18px;line-height:1.55;color:var(--sub);margin:0}
.doc h2{font-size:26px;line-height:1.2;letter-spacing:-.015em;font-weight:600;margin-top:56px;margin-bottom:14px}
.doc h3{font-size:19px;line-height:1.3;font-weight:600;margin-top:32px;margin-bottom:8px}
.doc p,.doc li{font-size:17px;line-height:1.65;color:#3B4036}
.doc a{color:var(--ink);text-underline-offset:3px}

/* compare article header */
.crumb{max-width:1040px;margin:0 auto 20px;font-size:14px;color:var(--mute)}
.crumb a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.doc-head.has-vs{max-width:1040px;display:grid;gap:32px;align-items:center;padding-bottom:40px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.doc-head .meta{margin-top:14px;font-size:14px;color:var(--mute)}
@media(min-width:860px){.doc-head.has-vs{grid-template-columns:1fr 340px}}

/* jino vs X tile (hub cards + article header) */
.vs-tile{display:flex;align-items:center;justify-content:center;gap:28px;min-height:132px;padding:24px;border-radius:20px;background:var(--card)}
.vs-tile .side{display:grid;justify-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink)}
.vs-tile .side img{width:48px;height:48px;border-radius:12px;box-shadow:0 0 0 1px rgba(12,26,0,.08)}
.vs-tile .vs{font-size:13px;color:var(--mute)}
.vs-tile .them{font-size:17px;font-weight:600;color:var(--ink)}

/* tables */
.table-scroll{border-radius:16px;box-shadow:0 0 0 1px var(--line);overflow:auto;background:#fff;margin-top:20px}
.doc table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.doc th{background:var(--card);text-align:left;font-weight:600;padding:12px 16px}
.doc td{padding:14px 16px;vertical-align:top;color:#3B4036;border-top:1px solid var(--line)}
.doc td:first-child{font-weight:600;color:var(--ink)}

/* FAQ accordions */
body .doc .faqlist{display:grid;gap:8px;margin-top:16px}
body .doc .faqlist details{border:0;border-radius:16px;background:var(--card);padding:0}
body .doc .faqlist summary{padding:18px 20px;font-size:17px;font-weight:600;cursor:pointer;list-style:none}
body .doc .faqlist summary::-webkit-details-marker{display:none}
body .doc .faqlist details p{padding:0 20px 18px;margin:0}

/* compare hub */
.cmp-grid{display:grid;gap:48px 24px;margin-top:48px!important;max-width:1040px!important}
@media(min-width:640px){.cmp-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.cmp-grid{grid-template-columns:repeat(3,1fr)}}
.cmp-grid a{display:grid;gap:10px;align-content:start;color:var(--ink);text-decoration:none}
.cmp-grid h2{margin:12px 0 0;font-size:19px;line-height:1.3;letter-spacing:-.01em}
.cmp-grid p{margin:0;font-size:15px;line-height:1.55;color:var(--sub);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cmp-grid .date{font-size:13px;color:var(--mute)}
.cmp-grid .vs-tile{transition:transform .2s cubic-bezier(.23,1,.32,1)}
@media(hover:hover) and (pointer:fine){.cmp-grid a:hover .vs-tile{transform:translateY(-2px)}.cmp-grid a:hover h2{text-decoration:underline;text-underline-offset:3px}}
.doc-head.hub{max-width:1040px}

/* footer brand */
body footer.site .mark{display:flex;align-items:center;gap:10px}
body footer.site .app-icon{width:36px;height:36px;border-radius:9px;box-shadow:0 0 0 1px rgba(12,26,0,.08)}
body footer.site .wm{padding-right:0}
.callout{padding:24px;border-radius:20px;background:#FEFAEB;box-shadow:none}

/* blog index (after Headspace /articles, small scale) */
.blog{max-width:1040px;margin:0 auto;padding:40px 0 0}
.bhero{display:grid;gap:40px;align-items:center;padding:24px 0 72px}
@media(min-width:860px){.bhero{grid-template-columns:1fr 1fr}}
.bhero h1{margin:0 0 18px;font-size:clamp(36px,5vw,56px);line-height:1.1;letter-spacing:-.02em;font-weight:600}
.bhero .lede{max-width:20em;margin:0 0 32px;font-size:18px;line-height:1.55;color:var(--sub);text-wrap:pretty}
.bart{position:relative;display:grid;place-items:center;min-height:320px}
.bart .disc{position:absolute;width:min(100%,380px);aspect-ratio:1;border-radius:50%;background:linear-gradient(180deg,#E6FED2,#FBFBEF)}
.bart img{position:relative;width:min(92%,420px);height:auto}
.bsec{padding:48px 0}
.bsec h2{margin:0 0 28px;font-size:26px;line-height:1.2;letter-spacing:-.015em;font-weight:600}
.btile{aspect-ratio:4/3;border-radius:20px;display:grid;place-items:center;overflow:hidden}
.btile img{width:46%;height:auto;transition:transform .35s cubic-bezier(.23,1,.32,1)}
.btile.g{background:linear-gradient(180deg,#E6FED2,#FBFBEF)}
.btile.p{background:linear-gradient(180deg,#FEEEE6,#FFF8EE)}
.btile.t{background:linear-gradient(180deg,#DDF7F5,#F8FBF1)}
.btile.y{background:linear-gradient(180deg,#FDFDCE,#FFFBEF)}
.topics{display:grid;gap:20px;grid-template-columns:repeat(2,1fr)}
@media(min-width:860px){.topics{grid-template-columns:repeat(4,1fr)}}
.topics a{display:grid;gap:12px;color:var(--ink);text-decoration:none;font-size:17px;font-weight:600}
.bgrid{display:grid;gap:40px 20px}
@media(min-width:640px){.bgrid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.bgrid{grid-template-columns:repeat(4,1fr)}.bgrid.three{grid-template-columns:repeat(3,1fr)}}
.bcard{display:grid;gap:8px;align-content:start;color:var(--ink);text-decoration:none}
.bcard h3{margin:10px 0 0;font-size:18px;line-height:1.3;letter-spacing:-.01em;font-weight:600}
.bcard p{margin:0;font-size:15px;line-height:1.5;color:var(--sub)}
.bmeta{font-size:13px;color:var(--mute)}
@media(hover:hover) and (pointer:fine){.bcard:hover h3,.topics a:hover span{text-decoration:underline;text-underline-offset:3px}.bcard:hover .btile img,.topics a:hover .btile img{transform:scale(1.05)}}
.band{margin:48px calc(50% - 50vw);padding:72px 16px 0;background:linear-gradient(180deg,#E6FED2 0%,#F4FCE6 60%,#FFFFFF 100%);overflow:hidden}
.band-in{max-width:1040px;margin:0 auto;display:grid;gap:40px;align-items:end}
@media(min-width:860px){.band-in{grid-template-columns:1fr 1fr}}
.band-txt{padding-bottom:72px}
.band h2{margin:0 0 16px;font-size:clamp(28px,3.4vw,38px);line-height:1.15;letter-spacing:-.02em;font-weight:600}
.band p{max-width:28em;margin:0 0 28px;font-size:17px;line-height:1.6;color:#3B4036}
.band-cta{display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.bbtn{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:14px;background:var(--ink);color:#FBF8F0;font-size:15px;font-weight:600;text-decoration:none;transition:transform .16s cubic-bezier(.23,1,.32,1)}
.bbtn:active{transform:scale(.96)}
.blink{color:var(--ink);font-size:15px;font-weight:600;text-underline-offset:3px}
.band-art{display:flex;justify-content:center}
.iphone-s{width:280px;height:500px;border:8px solid #1d1a14;border-bottom:0;border-radius:44px 44px 0 0;overflow:hidden;background:#1d1a14;box-shadow:0 30px 60px -30px rgba(40,50,20,.45)}
.iphone-s img,.iphone-s video{display:block;width:100%;height:auto}
@media(max-width:859px){.band-txt{padding-bottom:0}}

.fine{display:flex;flex-wrap:wrap;gap:8px 24px}
.fine a{color:inherit;text-decoration:none}
@media(hover:hover) and (pointer:fine){.fine a:hover{color:var(--ink)}}

/* footer: no rule, lighter type (matches the homepage) */
body footer.site{border-top:0}
body footer.site h4{font-weight:500;color:#737770}
body footer.site nav a{color:#6B6F67}
body footer.site .fbrand p,body .fine{color:#737770}

/* research posts */
.doc sup{font-size:12px;line-height:0;margin-left:1px}
.doc sup a{text-decoration:none;color:var(--mute)}
.doc .sources{display:grid;gap:10px;padding-left:22px}
.doc .sources li{font-size:15px;line-height:1.55;color:var(--sub)}
.doc .note{margin-top:32px;font-size:15px;color:var(--mute)}
.doc .crumb{margin-bottom:20px}
.doc .sources li{scroll-margin-top:96px}

/* ---------- type scale, shared with the homepage: 56 / 40 / 28 / 20 / 18 / 16 / 14 / 13 ----------
   28 is the one step inner pages add: the h2 inside long articles. */
:root{--t-h1:clamp(32px,4vw,40px);--t-h2a:clamp(24px,2.6vw,28px);--t-h3:20px;--t-lede:20px;--t-body:18px;--t-card:16px;--t-small:14px;--t-cap:13px}
body .doc h1,body .doc-head h1{font-size:var(--t-h1)}
body .doc-head .updated,body .doc .updated{font-size:var(--t-lede)}
body .doc h2,body .bsec h2{font-size:var(--t-h2a)}
body .callout h2{font-size:var(--t-h3)}
body .doc h3,body .cmp-grid h2,body .bcard h3{font-size:var(--t-h3)}
body .doc p,body .doc li,body .faqlist summary,body .doc .faqlist summary{font-size:var(--t-body)}
body .band h2{font-size:clamp(30px,4vw,40px)}
body .band p,body .bhero .lede{font-size:var(--t-body)}
body .cmp-grid p,body .bcard p,body .topics a,body .vs-tile .them{font-size:var(--t-card)}
body .doc table,body .doc .sources li,body .doc .note,body .crumb,body .vs-tile .side,body .bbtn,body .blink,
body header.nav .links a{font-size:var(--t-small)}
body .doc-head .meta,body .bmeta,body .cmp-grid .date,body .vs-tile .vs,body .doc sup{font-size:var(--t-cap)}

/* ---------- polish: hit areas (40 desktop / 44 touch) for standalone links; inline links in sentences are exempt ---------- */
header.nav .mark,footer.site .mark{min-height:44px}
.fine a{display:inline-block;padding-block:12px;margin-block:-12px}
.crumb a,.quote-card figcaption a,.how .evid a{padding-block:14px}
.doc sup a{position:relative;display:inline-block}
.doc sup a::before{content:"";position:absolute;inset:-22px -12px}
.blink{display:inline-flex;align-items:center;min-height:48px}
@media(max-width:640px){footer.site nav a{display:flex;align-items:center;min-height:44px}}

/* ---------- mobile menu: a 44px button beside Get Jino opens the nav links as a card ---------- */
.menubtn{display:none}
@media(max-width:640px){
  .menubtn{display:grid;place-items:center;width:44px;height:44px;margin-right:-10px;border:0;border-radius:12px;background:transparent;color:var(--ink);cursor:pointer;touch-action:manipulation}
  .menubtn svg{overflow:visible}
  .menubtn path{stroke:currentColor;stroke-width:2;stroke-linecap:round;transform-origin:11px 11px;transition:transform .2s cubic-bezier(.23,1,.32,1)}
  .menubtn[aria-expanded="true"] .l1{transform:translateY(3px) rotate(45deg)}
  .menubtn[aria-expanded="true"] .l2{transform:translateY(-3px) rotate(-45deg)}
  .menubtn:active{transform:scale(.96)}
  body header.nav{grid-template-columns:1fr auto auto;gap:8px;position:relative}
  body header.nav .btn{justify-self:end}
  .menu-open .links,body .menu-open .links,body header.nav.menu-open .links{display:flex;flex-direction:column;gap:0;position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:60;padding:8px;border-radius:20px;background:#fff;box-shadow:0 0 0 1px rgba(12,26,0,.06),0 24px 48px -24px rgba(40,50,20,.35);transform-origin:top right;animation:menu-in .18s cubic-bezier(.23,1,.32,1)}
  .menu-open .links a,body header.nav.menu-open .links a{display:flex;align-items:center;min-height:48px;padding:0 16px;border-radius:12px;font-size:16px;color:var(--ink);opacity:1}
  .menu-open .links a:active{background:#F4F5F0}
}
@keyframes menu-in{from{opacity:0;transform:translateY(-4px) scale(.98)}}
@media(prefers-reduced-motion:reduce){.menu-open .links{animation-name:menu-fade}.menubtn path{transition:none}}
@keyframes menu-fade{from{opacity:0}}
body header.nav .navbtn{display:inline-flex}

/* mobile menu, Wellspoken-style: a full-width panel attached under the bar, plain left-aligned links */
@media(max-width:640px){
  
  .menubtn[aria-expanded="true"] .l1{transform:translateY(5px) rotate(45deg)}
  .menubtn[aria-expanded="true"] .l3{transform:translateY(-5px) rotate(-45deg)}
  .menubtn .l2{transition:opacity .15s ease-out}
  .menubtn[aria-expanded="true"] .l2{opacity:0}
  
  .menu-open .links,body .menu-open .links,body header.nav.menu-open .links{top:100%;left:calc(50% - 50vw);right:auto;width:100vw;padding:8px max(var(--gutter,16px),16px) 20px;border-radius:0;box-shadow:0 1px 0 var(--line,#E7E2D4),0 20px 32px -24px rgba(40,50,20,.3);transform-origin:top center;animation-name:menu-drop}
  .menu-open .links a,body header.nav.menu-open .links a{min-height:48px;padding:0;border-radius:0;font-size:18px;font-weight:500}
  .menu-open .links a:active{background:none;opacity:.6}
}
@keyframes menu-drop{from{opacity:0;transform:translateY(-6px)}}

/* article and card titles fill the line; "pretty" still avoids a lone last word (balance split them too early) */
body .doc h1,body .doc h2,body .doc h3,body .bhero h1,body .bsec h2,body .bcard h3,body .cmp-grid h2,body .band h2{text-wrap:pretty}

/* breadcrumb: align with the article column (720) unless the page head is the wide vs layout, and keep it quiet */
body .doc:not(:has(.has-vs))>.crumb{max-width:720px}
body .crumb a{color:var(--mute,#6E7269);text-decoration:none;transition:color .15s ease-out}
@media(hover:hover) and (pointer:fine){body .crumb a:hover{color:var(--ink)}}

/* comparison header: same 720 column as the article, the vs tile as a slim banner above the title, no divider */
body .doc-head.has-vs{max-width:720px;display:flex;flex-direction:column-reverse;align-items:stretch;gap:28px;padding-bottom:0;margin-bottom:8px;border-bottom:0}
body .doc-head.has-vs .vs-tile{min-height:0;padding:28px 24px}
body .doc>.crumb{max-width:720px}

/* blog pages: side gutter below the 1040 column (the static pages never got .g padding), topic pages sit their cards close under the intro */
@media(max-width:1088px){body main.blog{padding-inline:max(24px,env(safe-area-inset-left,0px)) max(24px,env(safe-area-inset-right,0px))}}
body .topic-head{padding-bottom:8px}

/* compare hub: lede keeps a readable measure; the roundups row sits under the vs cards in the same column */
body .doc-head.hub .updated{max-width:720px}
body .doc h2.cmp-more{max-width:1040px!important;margin:72px auto 0!important}
body .cmp-grid.guides{margin-top:24px!important}
body .cmp-grid.guides a{padding:24px;border-radius:20px;background:var(--card)}
body .cmp-grid.guides h2{margin-top:0}

/* ---------- text-layout pass ---------- */
/* measure: body copy stays near 75 characters inside the 720 column; blocks keep one shared left edge */
body .doc p,body .doc li{box-sizing:border-box;padding-right:clamp(0px,calc(100% - 620px),100px)}
body .doc .faqlist details p{padding-right:clamp(20px,calc(100% - 620px),100px)}
body .doc .updated,body .doc .lede{padding-right:0}
body .doc .callout p{padding-right:clamp(0px,calc(100% - 620px),100px)}
body .doc .updated,body .doc-head .updated{max-width:720px}
/* titles and ledes: balance so no heading ends on one or two stray words */
body .doc h1,body .doc h2,body .doc h3,body .bhero h1,body .bsec h2,body .bcard h3,body .cmp-grid h2,body .band h2,body .topics a{text-wrap:balance}
body .doc .updated,body .doc .lede,body .bhero .lede,body .topic-head .lede,body .bcard p,body .band p{text-wrap:pretty}
.nb{white-space:nowrap}
/* "more links" lists replace run-on link paragraphs */
body .doc .more-lead{margin-top:40px;font-weight:600;color:var(--ink)}
body .doc .more-links{display:grid;gap:4px;margin:8px 0 0;padding:0;list-style:none}
body .doc .more-links li{max-width:none}
body .doc .more-links a{display:inline-block;padding-block:8px}
/* mobile: tables fit the 24px gutter instead of forcing a sideways scroll */
@media(max-width:640px){
  body .doc table{min-width:0}
  body .doc th,body .doc td{padding:12px 10px;font-size:14px}
  body .doc th:first-child,body .doc td:first-child{min-width:92px}
  body .doc td,body .doc th{overflow-wrap:normal;word-break:normal;hyphens:none}
}

/* FAQ: blog-style header sits above the article column */
body .doc.faq{padding-top:0}
/* cards and the copy below fill the full 1040 column; answers keep a readable measure */
body .doc.faq>*:not(.doc-head):not(.crumb){max-width:1040px}
body .doc.faq .faqlist details p{max-width:75ch;padding-right:20px}

.bart img[src$="faq-nerding-out.webp"]{width:min(70%,284px)}

/* ---------- press feedback: the tap flash is off, so rows, cards and standalone links answer :active themselves ---------- */
body .doc .faqlist summary{border-radius:16px;transition:opacity .15s ease-out}
body .doc .faqlist summary:active{opacity:.6}
.bcard,.topics a,.cmp-grid a{transition:transform .15s cubic-bezier(.23,1,.32,1),opacity .15s ease-out}
.bcard:active,.topics a:active,.cmp-grid a:active{transform:scale(.98);opacity:.85}
footer.site nav a:active,.fine a:active,.crumb a:active,.blink:active,body .doc .more-links a:active,body header.nav .links a:active{opacity:.6}
@media(prefers-reduced-motion:reduce){.bcard:active,.topics a:active,.cmp-grid a:active{transform:none}}

/* stacked header: reserve the full circle so it never crowds the App Store button */
@media(max-width:859px){.bart{min-height:min(380px,calc(100vw - 48px))}}
