/* ==========================================================
   cookiejar.app: the same fonts, colours and shapes as the app (src/head.html), so the site looks like what
   people download. Colours are tokens on :root. The site has one look, light, whatever the phone is set to.
   ========================================================== */
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 600;font-stretch:100%;font-display:swap;src:url(/assets/fonts/instrument-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 600;font-stretch:100%;font-display:swap;src:url(/assets/fonts/instrument-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/newsreader-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/newsreader-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/newsreader-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/newsreader-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}

:root{
  color-scheme:light;
  --font-ui:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-read:"Newsreader","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;

  --bg:#E6E9EB;
  --spot:rgba(255,255,255,.6);
  --surface:#F3F4F5;
  --surface-2:#FFFFFF;
  --ink:#14171A;
  --ink-2:#434A51;
  --muted:#5E676F;
  --line:rgba(20,23,26,.09);
  --line-2:rgba(20,23,26,.16);
  --line-3:rgba(20,23,26,.3);
  --hover:rgba(20,23,26,.045);
  --hover-2:rgba(20,23,26,.08);
  --accent:#14171A;
  --on-accent:#FFFFFF;
  --danger:#B4281F;
  --pop-shadow:0 24px 60px -18px rgba(20,23,26,.3),0 2px 6px rgba(20,23,26,.06);
  --baked:#C98B46;
  --gold:#C9A227;
  --gold-ink:#86650F;          /* gold that reads as text on white (5:1) */
  --gold-tint:#FBF6E7;
  --gold-line:rgba(201,162,39,.55);
  --gold-flag:#E8C55A;
  --scrim:rgba(10,12,14,.34);
  --veil:rgba(230,233,235,.72);
  --header-solid:#1C1C1C;            /* the header once it is coloured (Tdera 2026-11-13: same as the footer) */
  --foot-bg:#1C1C1C;
  --foot-ink:rgba(255,255,255,.66);   /* the footer's links and line on #1C1C1C (8:1) */

  --header-h:64px;
  --gutter:clamp(16px,4vw,40px);
  --page-w:1120px;
}
@media (max-width:760px){:root{--header-h:56px}}

html{height:100%;-webkit-text-size-adjust:100%;scroll-behavior:auto}
body{
  min-height:100%;margin:0;background:var(--bg);color:var(--ink);
  font:400 16px/1.55 var(--font-ui);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3,p,ul,ol,figure{margin:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
img{display:block;max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- header ---------- */
.top{
  position:fixed;z-index:40;top:0;left:0;right:0;height:var(--header-h);
  padding:0 var(--gutter);padding-top:env(safe-area-inset-top,0px);
  display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;
  transform:translate3d(0,0,0);will-change:transform;
  /* a longer, gentle ease both ways, so the slide reads as one soft motion rather than a snap */
  transition:background-color .25s ease,box-shadow .25s ease,transform .5s cubic-bezier(.22,.61,.36,1);
}
/* scrolling down, the header slides up out of the way (js/site.js); scrolling up brings it back */
.top.hidden{transform:translate3d(0,calc(-100% - 2px),0);transition:background-color .25s ease,box-shadow .25s ease,transform .45s cubic-bezier(.4,0,.6,1)}
body.menu-open .top{transform:none}
/* the home page's header is clear at the very top and on the way down from it; #1C1C1C, with white text, once it has
   slid away or the page scrolls back up (js/site.js). Every other page (main.page) has the #1C1C1C header all the time,
   from the first paint (the :has rules) and in js/site.js */
.top.solid,body:has(main.page) .top{background:var(--header-solid);color:#fff}
.top.solid nav a,body:has(main.page) .top nav a{color:rgba(255,255,255,.72)}
.top.solid nav a:hover,.top.solid nav a[aria-current="page"],body:has(main.page) .top nav a:hover,body:has(main.page) .top nav a[aria-current="page"]{color:#fff}
.top.solid .menu-btn,body:has(main.page) .top .menu-btn{color:#fff}
.top.solid :focus-visible,body:has(main.page) .top :focus-visible{outline-color:#fff}
.brand{display:flex;align-items:center;gap:10px;min-width:0;padding:6px 10px;border-radius:10px;font-weight:600;font-size:17px;letter-spacing:-.012em;white-space:nowrap;transition:color .25s ease}
.top .brand{grid-column:1;grid-row:1;justify-self:start;margin-left:-10px}
/* the app's jar mark on its own, without the icon's dark tile: drawn in the text colour through a mask */
.brand .mark{width:30px;height:30px;flex:none;background:currentColor;-webkit-mask:url(/assets/logo-mark.png) center/contain no-repeat;mask:url(/assets/logo-mark.png) center/contain no-repeat}
.top nav{grid-column:2;grid-row:1;justify-self:end;display:flex;align-items:center;gap:2px;margin-right:-12px}
/* header links: no box on hover; the text itself lights up, darker and underlined */
.top nav a{
  padding:8px 12px;border-radius:9px;font-size:14.5px;color:var(--ink-2);
  text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1.5px;text-underline-offset:6px;
  transition:color .15s ease,text-decoration-color .15s ease;
}
.top nav a:hover{color:var(--ink);text-decoration-color:currentColor}
.top nav a[aria-current="page"]{color:var(--ink);font-weight:500}
.top nav .cta{margin-left:8px}
.menu-btn{
  grid-column:1;grid-row:1;justify-self:start;
  display:none;place-items:center;width:40px;height:40px;margin-left:-8px;padding:0;border:0;border-radius:11px;
  background:none;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .25s ease;
}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* the menu on phones: a drawer that drops down from under the header, the links and then the two store buttons */
.menu-btn .close-ic{display:none}
.menu-btn[aria-expanded="true"] .open-ic{display:none}
.menu-btn[aria-expanded="true"] .close-ic{display:block}
body.menu-open .top{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
/* once the page has scrolled, the open menu is a translucent veil: the drawer (which reaches up behind the header)
   carries the veil and the blur; a clear header stays clear over it, a black header stays black */
body.menu-open.scrolled .top{background:transparent}
body.menu-open .top.solid{background:var(--header-solid)}
body.scrolled .drawer{background:var(--veil);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
.drawer{
  position:fixed;z-index:35;top:0;left:0;right:0;
  padding:calc(var(--header-h) + env(safe-area-inset-top,0px) + 4px) var(--gutter) 18px;
  display:flex;flex-direction:column;
  background:var(--surface);border-bottom:1px solid var(--line);box-shadow:var(--pop-shadow);
  transform:translateY(-104%);visibility:hidden;
  transition:transform .26s cubic-bezier(.3,.7,.2,1),visibility 0s .26s;
}
.drawer.open{transform:none;visibility:visible;transition:transform .26s cubic-bezier(.3,.7,.2,1),visibility 0s}
.drawer nav{display:flex;flex-direction:column;gap:2px;margin:0 -10px}
.drawer nav a{display:flex;align-items:center;padding:12px 10px;border-radius:9px;color:var(--ink-2);font-size:16px}
.drawer nav a:hover{background:var(--hover);color:var(--ink)}
.drawer nav a[aria-current="page"]{background:var(--hover-2);color:var(--ink);font-weight:500}
.drawer .badges{justify-content:center;gap:10px;margin-top:14px;padding-top:16px;border-top:1px solid var(--line-2)}
.drawer .badge{height:46px;padding:0 12px 0 10px;gap:8px;border-radius:10px}
.drawer .badge svg{width:22px;height:22px}
.drawer .badge b{font-size:17px}
.drawer .badge small{margin-bottom:2px;font-size:9.5px}
.drawer .badge.play small{font-size:8.5px}
.scrim{position:fixed;inset:0;z-index:30;background:var(--scrim);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s .2s}
.scrim.open{opacity:1;visibility:visible;transition:opacity .2s ease,visibility 0s}
body.menu-open{overflow:hidden}
@media (max-width:760px){
  .top{grid-template-columns:1fr auto 1fr}
  .top nav{display:none}
  .menu-btn{display:grid}
  .top .brand{grid-column:2;justify-self:center;margin-left:0;font-size:16.5px}
  .top .brand .mark{width:28px;height:28px}
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;
  border-radius:10px;border:1px solid transparent;background:none;
  font-weight:500;font-size:14.5px;line-height:1;white-space:nowrap;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.btn .ic{width:18px;height:18px;margin-left:-3px}
.btn.primary{background:var(--accent);color:var(--on-accent)}
.btn.primary:hover{opacity:.88}
.btn.ghost{border-color:var(--line-2);color:var(--ink)}
.btn.ghost:hover{background:var(--hover)}
.btn.sm{height:34px;padding:0 12px;font-size:13.5px;border-radius:9px}
.btn.lg{height:48px;padding:0 20px;font-size:15.5px;border-radius:12px}

/* store buttons, everywhere: the stores' own black badges, a thin grey edge, the store's mark and two lines */
.badges{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.badge{
  display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 20px 0 14px;border-radius:11px;
  background:#000;color:#fff;border:1px solid #A6A6A6;text-align:left;line-height:1;
  -webkit-tap-highlight-color:transparent;transition:opacity .15s ease;
}
.badge:hover{opacity:.86}
/* Google Play until the app is published there: the same black badge, not a link, reading "Coming soon on Google Play" */
.badge.soon{cursor:default;-webkit-user-select:none;user-select:none}
.badge.soon:hover{opacity:1}
.badge svg{width:27px;height:27px;flex:none}
.badge .apple{fill:#fff;width:26px;height:26px;margin-top:-3px}
.badge small{display:block;margin-bottom:3px;font-size:11px;font-weight:400;letter-spacing:.01em}
.badge.play small{font-size:10px;font-weight:500;letter-spacing:.07em;text-transform:uppercase}
.badge b{display:block;font-size:21px;font-weight:500;letter-spacing:-.015em}
@media (max-width:420px){
  .badges{gap:10px}
  .badge{height:48px;padding:0 13px 0 10px;gap:8px;border-radius:10px}
  .badge svg{width:23px;height:23px}
  .badge b{font-size:18px}
  .badge small{font-size:10px}
  .badge.play small{font-size:9px}
}

/* ---------- pages ---------- */
.page{max-width:var(--page-w);margin:0 auto;padding:calc(var(--header-h) + env(safe-area-inset-top,0px) + 48px) var(--gutter) 96px}
.page.narrow{max-width:720px}
.page.read{max-width:680px}
.page-head{margin-bottom:34px}
.page-head h1{font-size:clamp(30px,4.5vw,44px);line-height:1.08;font-weight:600;letter-spacing:-.025em}
.page-head .sub{margin-top:12px;font-size:17px;color:var(--muted);max-width:52ch}
.page h2{font-size:21px;line-height:1.25;font-weight:600;letter-spacing:-.018em;margin:40px 0 12px}
.page h3{font-size:16.5px;font-weight:600;letter-spacing:-.01em;margin:24px 0 6px}
.page p{margin:0 0 14px;color:var(--ink-2)}
.page ul,.page ol{margin:0 0 14px;padding-left:22px;color:var(--ink-2)}
.page li{margin:4px 0}
.page a:not(.btn):not(.badge){text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-3)}
.page a:not(.btn):not(.badge):hover{text-decoration-color:currentColor}
.page .lede{font-family:var(--font-read);font-size:21px;line-height:1.45;color:var(--ink-2)}
.page .meta{font-size:13.5px;color:var(--muted)}
.page .card{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:22px 24px}
.page .note{padding:14px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--ink-2);font-size:14.5px}

.faq details{border-top:1px solid var(--line);padding:4px 0}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 2px;cursor:pointer;list-style:none;font-weight:500;font-size:15.5px}
.faq summary::-webkit-details-marker{display:none}
.faq summary .ic{width:18px;height:18px;color:var(--muted);transition:transform .2s ease}
.faq details[open] summary .ic{transform:rotate(90deg)}
.faq details p{padding:0 2px 14px;margin:0}

/* ---------- footer: dark (#1C1C1C), with the logo in white and the links and line in a soft grey ---------- */
.foot{background:var(--foot-bg);padding:30px var(--gutter) calc(30px + env(safe-area-inset-bottom,0px))}
.foot-in{max-width:var(--page-w);margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;font-size:13.5px;color:var(--foot-ink)}
.foot-in nav{display:flex;flex-wrap:wrap;gap:4px 18px;margin-left:auto}
.foot-in nav a{transition:color .15s ease}
.foot-in nav a:hover{color:#fff}
.foot :focus-visible{outline-color:#fff}
.foot-in .brand{font-size:14px;padding:0;margin:0;color:#fff}
.foot-in .brand .mark{width:20px;height:20px}
/* the social links: Instagram, TikTok and Facebook as small grey marks that turn white on hover */
.foot-in .social{display:flex;align-items:center;gap:6px;margin:0 -6px}
.foot-in .social a{display:grid;place-items:center;width:34px;height:34px;color:var(--foot-ink);transition:color .15s ease}
.foot-in .social a:hover{color:#fff}
.foot-in .social svg{width:19px;height:19px}
@media (max-width:760px){.foot-in nav{margin-left:0}}
