/* Shared by every page; anything page-specific stays in that page's <style>.
   The app's look (src/theme.js): a warm paper page, off-white cards with soft 2px outlines, flat colour, no
   shadows or ledges, Baloo 2 for titles and Nunito for text. Fonts are self-hosted so no page calls a third party. */

@font-face{ font-family:"Baloo 2"; font-weight:700; font-display:swap; src:url(/fonts/baloo2-700.woff2) format("woff2"); }
@font-face{ font-family:"Baloo 2"; font-weight:800; font-display:swap; src:url(/fonts/baloo2-800.woff2) format("woff2"); }
@font-face{ font-family:"Nunito"; font-weight:700; font-display:swap; src:url(/fonts/nunito-700.woff2) format("woff2"); }
@font-face{ font-family:"Nunito"; font-weight:800; font-display:swap; src:url(/fonts/nunito-800.woff2) format("woff2"); }
@font-face{ font-family:"Nunito"; font-weight:900; font-display:swap; src:url(/fonts/nunito-900.woff2) format("woff2"); }

:root{
  --paper:#F7F1E7; --paper2:#FFFDF9; --paper-deep:#EFE7DA; --locked:#E9E1D4;
  --ink:#1C1C1C; --ink-soft:#4F4A44; --ink-faint:#8C8478;
  --line:#E3D9C9;
  --brand:#6C4CF1; --pink:#FF5D8F; --sun:#FFD23F; --teal:#2ED3C6;
  --coral:#FF8A3D; --sky:#7ED0FF; --lime:#7BC950; --lilac:#B9A6FF;
  --good:#21A179; --good-bg:#DFF6EA; --bad:#D93A26; --bad-bg:#FDE7E3;
  --brand-bg:#EDE8FF;
  --on-accent:#FFFFFF;
  /* the scribble under a screen's title in the app (components/Masthead.js), stretched to the word */
  --squiggle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 14.25 1 26.5 6 T 51 6 T 75.5 6 T 100 6' fill='none' stroke='%236C4CF1' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --wrap:1120px;
  --gutter:20px;
}
@media (prefers-color-scheme: dark){
  :root{
    /* warm charcoal, the paper page at night, rather than a grey that could be any site */
    --paper:#171512; --paper2:#211E1A; --paper-deep:#100E0C; --locked:#2E2A25;
    --ink:#F4EFE6; --ink-soft:#BDB5A9; --ink-faint:#81796E;
    --line:#37322C;
    --brand:#8B6DFF; --pink:#FF7DA5; --sun:#EDBF3C; --coral:#FF9A5A; --lime:#8FD866;
    --good:#3FD39B; --good-bg:#123B2C; --bad:#FF6B55; --bad-bg:#3D1A14;
    --brand-bg:#2A2340;
    --squiggle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 14.25 1 26.5 6 T 51 6 T 75.5 6 T 100 6' fill='none' stroke='%238B6DFF' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  }
}

/* The app's springs (src/anim.js SPRING, SPRING_BOUNCY, SPRING_STIFF, SPRING_ENTER) as easings, each with the
   time it takes to settle. Made by scripts/site-springs.js; older browsers get a curve with the same overshoot. */
:root{
  --spring:cubic-bezier(.3,1.5,.5,1); --spring-ms:726ms;
  --bouncy:cubic-bezier(.3,1.8,.5,1); --bouncy-ms:961ms;
  --stiff:cubic-bezier(.3,1.4,.5,1); --stiff-ms:498ms;
  --enter:cubic-bezier(.25,1.25,.5,1); --enter-ms:638ms;
}
@supports (transition-timing-function:linear(0, 1)){
  :root{
    --spring:linear(0, 0.081, 0.259, 0.502, 0.736, 0.953, 1.109, 1.214, 1.258, 1.255, 1.219, 1.16, 1.098, 1.036, 0.989, 0.954, 0.936, 0.931, 0.937, 0.951, 0.967, 0.983, 0.997, 1.008, 1.015, 1.018, 1.017, 1.015, 1.011, 1.006, 1.002, 0.999, 0.997, 0.996, 0.995, 0.996, 0.997, 0.998, 0.999, 1, 1.001, 1.001, 1.001, 1.001, 1);
    --bouncy:linear(0, 0.152, 0.497, 0.887, 1.189, 1.368, 1.396, 1.307, 1.157, 1.005, 0.897, 0.843, 0.847, 0.892, 0.955, 1.013, 1.05, 1.065, 1.058, 1.036, 1.011, 0.989, 0.977, 0.974, 0.979, 0.988, 0.998, 1.006, 1.01, 1.01, 1.008, 1.004, 1, 0.997, 0.996, 0.996, 0.997, 0.999, 1.001, 1.001, 1.002, 1.001, 1.001, 1, 1);
    --stiff:linear(0, 0.065, 0.237, 0.442, 0.656, 0.869, 1.025, 1.137, 1.207, 1.228, 1.218, 1.182, 1.136, 1.087, 1.041, 1, 0.973, 0.956, 0.948, 0.949, 0.956, 0.967, 0.978, 0.989, 0.999, 1.005, 1.01, 1.012, 1.012, 1.01, 1.008, 1.005, 1.003, 1.001, 0.999, 0.998, 0.997, 0.997, 0.998, 0.998, 0.999, 0.999, 1, 1, 1);
    --enter:linear(0, 0.04, 0.131, 0.261, 0.398, 0.546, 0.676, 0.8, 0.896, 0.978, 1.035, 1.077, 1.1, 1.111, 1.111, 1.104, 1.092, 1.076, 1.06, 1.044, 1.03, 1.017, 1.007, 0.999, 0.994, 0.99, 0.988, 0.987, 0.988, 0.989, 0.99, 0.992, 0.994, 0.996, 0.997, 0.999, 1, 1, 1.001, 1.001, 1.001, 1.001, 1.001, 1.001, 1);
  }
}

*, *::before, *::after{ box-sizing:border-box; }

/* No tap highlight or focus ring on click. Keyboard focus still gets a dashed ring. */
html{ -webkit-tap-highlight-color:transparent; }
*{ -webkit-tap-highlight-color:transparent; }
:focus{ outline:none; }
:focus-visible{ outline:3px dashed var(--ink); outline-offset:4px; border-radius:8px; }
::selection{ background:var(--sun); color:#1C1C1C; }

html{ scroll-behavior:smooth; scroll-padding-top:88px; }

/* Arriving (Appear in the app): from 16px lower and 96% size on the entrance spring, the fade on its own
   shorter clock so it never flickers with the bounce. Used on load here, and by js/motion.js on scroll. */
@keyframes rv-move{ from{ translate:0 16px; scale:.96; } }
@keyframes rv-fade{ from{ opacity:0; } }
.rv{ opacity:0; translate:0 16px; scale:.96; }
.rv.in{
  opacity:1; translate:0 0; scale:1;
  transition:opacity 320ms ease-out var(--d,0ms), translate var(--enter-ms) var(--enter) var(--d,0ms), scale var(--enter-ms) var(--enter) var(--d,0ms);
}

/* Going from page to page the bar stays put; the old page goes and the new one comes up into place, as the app swaps screens. */
@view-transition{ navigation:auto; }
header.bar{ view-transition-name:bar; }
::view-transition-old(root){ animation:120ms ease-in both vt-out; }
::view-transition-new(root){ animation:240ms ease-out 60ms both rv-fade, var(--enter-ms) var(--enter) 60ms both vt-in; }
@keyframes vt-out{ to{ opacity:0; } }
@keyframes vt-in{ from{ translate:0 12px; } }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation:none !important; transition:none !important; }
  @view-transition{ navigation:none; }
  .rv{ opacity:1; translate:none; scale:none; }
}

body{
  margin:0; background:var(--paper); color:var(--ink);
  font:17px/1.6 Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-weight:700;
  -webkit-text-size-adjust:100%;
}
h1, h2, h3, .display{ font-family:"Baloo 2",Nunito,system-ui,sans-serif; font-weight:800; letter-spacing:-.01em; }
h1, h2, h3{ line-height:1.08; margin:0; }
p{ margin:0; }
a{ color:inherit; text-decoration-thickness:2px; text-underline-offset:3px; }
strong, b{ font-weight:900; }
img{ max-width:100%; }
button{ font:inherit; color:inherit; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip{
  position:absolute; left:-9999px; top:0; background:var(--sun); color:#1C1C1C;
  padding:10px 16px; border-radius:0 0 12px 0; z-index:60;
}
.skip:focus{ left:0; }

/* Blip is drawn in near-black ink; on the dark page a thin light edge keeps his legs and outline in view. */
@media (prefers-color-scheme: dark){
  .blip-edge{ filter:drop-shadow(1.5px 0 0 #F2F2F2) drop-shadow(-1.5px 0 0 #F2F2F2) drop-shadow(0 1.5px 0 #F2F2F2) drop-shadow(0 -1.5px 0 #F2F2F2); }
}

/* a card, as in the app */
.sticker{ background:var(--paper2); border:2px solid var(--line); border-radius:20px; }

/* the app's title scribble, under a word */
.scribble{ padding-bottom:10px; background:var(--squiggle) left bottom / 100% 12px no-repeat; }

/* top bar */
header.bar{
  position:sticky; top:0; z-index:40;
  background:var(--paper); border-bottom:2px solid var(--line);
}
.bar .wrap{ display:flex; align-items:center; gap:10px; height:70px; }
.brand{ display:flex; align-items:center; gap:8px; text-decoration:none; margin-right:auto; }
.brand svg{ width:42px; height:42px; display:block; flex:none; }
.brand .word{ font-family:"Baloo 2",Nunito,sans-serif; font-weight:800; font-size:26px; letter-spacing:-.01em; line-height:1; }
.brand .word span{ color:var(--brand); }

/* The nav reads like the app's masthead: words, and a scribble under the one you are on. */
.bar nav.main{ display:flex; gap:6px; }
.bar nav.main a{
  font-family:"Baloo 2",Nunito,sans-serif; font-weight:800; font-size:18px; line-height:1.2;
  text-decoration:none; color:var(--ink-faint); padding:8px 10px 10px;
  background:var(--squiggle) center bottom 2px / 0 12px no-repeat;
  transition:color .12s, background-size .2s cubic-bezier(.2,.8,.2,1);
}
.bar nav.main a:hover, .bar nav.main a[aria-current]{ color:var(--ink); background-size:calc(100% - 20px) 12px; }
/* With js/motion.js the words lose their own scribbles and one mark slides between them. */
.bar nav.main.marked{ position:relative; }
.bar nav.main.marked a, .bar nav.main.marked a:hover, .bar nav.main.marked a[aria-current]{ background-size:0 12px; color:var(--ink-faint); }
.bar nav.main.marked a.lit{ color:var(--ink); }
.nav-mark{
  position:absolute; left:0; bottom:2px; height:12px; width:var(--w,0px); translate:var(--x,0px) 0; pointer-events:none;
  background:var(--squiggle) center / 100% 12px no-repeat; opacity:0;
  transition:translate var(--spring-ms) var(--spring), width var(--spring-ms) var(--spring), opacity .18s ease-out;
}
.nav-mark.on{ opacity:1; }
.nav-mark.jump{ transition:none; }

/* Language menu (from site-build.js) and the phone menu: both <details>, so no JS needed. */
.lm, .mm{ position:relative; }
.lm > summary, .mm > summary{
  list-style:none; cursor:pointer; user-select:none;
  display:flex; align-items:center; gap:6px; height:42px; padding:0 12px;
  background:var(--paper2); border:2px solid var(--line); border-radius:999px;
  font-weight:900; font-size:14px;
  transition:scale var(--stiff-ms) var(--stiff), border-color .15s;
}
.lm > summary::-webkit-details-marker, .mm > summary::-webkit-details-marker{ display:none; }
.lm > summary:active, .mm > summary:active{ scale:.95; }
.lm[open] > summary, .mm[open] > summary{ border-color:var(--brand); }
.lm > summary svg, .mm > summary svg{ display:block; flex:none; }
.lm-pop, .mm-pop{
  position:absolute; right:0; top:calc(100% + 10px); z-index:50;
  background:var(--paper2); border:2px solid var(--line); border-radius:20px; padding:8px;
}
/* a menu opens like the app's pop-overs: out of its button's corner on the spring */
@keyframes pop-open{ from{ scale:.9; translate:0 -6px; } }
.lm[open] > .lm-pop, .mm[open] > .mm-pop{ transform-origin:top right; animation:var(--spring-ms) var(--spring) backwards pop-open, 160ms ease-out backwards rv-fade; }
[dir="rtl"] .lm[open] > .lm-pop, [dir="rtl"] .mm[open] > .mm-pop{ transform-origin:top left; }
.lm-pop{ display:grid; grid-template-columns:repeat(2, minmax(118px,1fr)); gap:2px; width:max-content; }
.lm-pop a, .lm-pop span, .mm-pop a{
  display:block; padding:8px 12px; border-radius:12px; text-decoration:none; font-weight:900; font-size:15px; white-space:nowrap;
}
.lm-pop a:hover, .mm-pop a:hover{ background:var(--paper-deep); }
.lm-pop [aria-current]{ background:var(--brand); color:var(--on-accent); }
.mm{ display:none; }
.mm-pop{ display:grid; min-width:210px; }
@media (max-width:780px){
  .bar nav.main{ display:none; }
  .mm{ display:block; }
  .bar .wrap{ height:64px; position:relative; }
  /* the language list opens from the bar's edge, not from its button, so it stays on screen */
  .lm{ position:static; }
  .lm-pop{ right:var(--gutter); }
  html[dir="rtl"] .lm-pop{ right:auto; left:var(--gutter); }
  .brand svg{ width:38px; height:38px; }
  .brand .word{ font-size:24px; }
}
/* Small phones, and Android's larger-text setting, which narrows the page: the bar still has to fit. */
@media (max-width:360px){
  .bar .wrap{ gap:8px; }
  .brand{ gap:6px; }
  .brand svg{ width:34px; height:34px; }
  .brand .word{ font-size:22px; }
  .lm > summary, .mm > summary{ padding:0 10px; }
}
@media (max-width:330px){
  :root{ --gutter:14px; }
  .lm > summary span{ display:none; }
  .lm-pop{ grid-template-columns:repeat(2, minmax(0,1fr)); width:calc(100vw - 2 * var(--gutter)); }
  .lm-pop a, .lm-pop span{ padding:8px 10px; font-size:14px; }
}

/* Buttons are flat, like the app's: a fill, no edge. Pressed they squash on the app's stiff spring (Squish),
   and under a mouse they rise a little to say they can be pressed. */
.store, .btn{
  display:inline-flex; align-items:center; gap:12px; text-decoration:none;
  border:0; border-radius:16px; padding:12px 20px;
  background:var(--ink); color:var(--paper);
  transition:scale var(--stiff-ms) var(--stiff), translate var(--spring-ms) var(--spring);
}
@media (hover:hover) and (pointer:fine){
  .store:hover, .btn:hover{ translate:0 -3px; }
}
.store:active, .btn:active{ scale:.95; }
.store{ width:224px; }
.store .top{ display:block; font-size:12px; font-weight:800; opacity:.8; white-space:nowrap; line-height:1.3; }
.store .name{ display:block; font-family:"Baloo 2",Nunito,sans-serif; font-size:20px; font-weight:800; line-height:1.1; white-space:nowrap; }
.store svg{ flex:none; }
.btn{ font-family:"Baloo 2",Nunito,sans-serif; font-size:19px; font-weight:800; background:var(--brand); color:var(--on-accent); }
.stores{ display:flex; flex-wrap:wrap; gap:12px; }
/* on a coloured band the buttons stay ink in both modes */
.on-colour .store{ background:#1C1C1C; color:#FFFFFF; }

/* footer */
footer{ background:var(--paper-deep); color:var(--ink-soft); padding:44px 0 56px; font-size:15px; border-top:2px solid var(--line); }
footer a{ color:var(--ink); }
footer .cols{ display:flex; flex-wrap:wrap; gap:26px 48px; align-items:flex-start; }
footer .who{ margin-right:auto; display:grid; gap:10px; }
footer nav{ display:flex; flex-wrap:wrap; gap:10px 22px; font-weight:900; }
footer nav a{ text-decoration:none; }
footer nav a:hover{ text-decoration:underline; }
.langs{ display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:28px; padding-top:22px; border-top:2px solid var(--line); font-size:14px; font-weight:800; }
.langs a{ color:var(--ink-soft); text-decoration:none; }
.langs a:hover{ color:var(--ink); text-decoration:underline; }
.langs [aria-current]{ color:var(--ink); }
.fineprint{ margin-top:18px; font-size:13px; color:var(--ink-faint); max-width:56em; }

/* Inline SVG flags sized in em, with a hairline edge so white fields stay visible. */
.fl{ width:1.5em; height:1em; display:inline-block; vertical-align:-0.13em; border-radius:3px; flex:none;
     box-shadow:0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }

/* document pages: privacy, terms, support, delete-account, changelog */
.doc{ max-width:800px; margin:0 auto; padding:48px 20px 72px; }
/* the title as the app titles a screen: big, with its scribble */
.doc-head{ margin:0 0 34px; }
.doc-head h1{
  display:inline-block; max-width:100%; margin:0; padding-bottom:12px; font-size:clamp(28px,7.4vw,52px); line-height:1.05;
  /* one long word ("конфиденциальности") must still fit a phone */
  hyphens:auto; overflow-wrap:break-word;
  background:var(--squiggle) left bottom / min(100%, 7em) 12px no-repeat;
}
/* The title arrives, then its scribble is drawn under it; the line under it follows. */
@keyframes scribble-in{ from{ background-size:0 12px; } }
.doc-head h1{ animation:var(--enter-ms) var(--enter) backwards rv-move, 320ms ease-out backwards rv-fade, 560ms cubic-bezier(.3,0,.1,1) 180ms backwards scribble-in; }
.doc-head p, .doc-head + .lede, .doc > .jump{ animation:var(--enter-ms) var(--enter) 70ms backwards rv-move, 320ms ease-out 70ms backwards rv-fade; }
.doc-head + .lede{ animation-delay:120ms; }
.doc .doc-head p{ margin:12px 0 0; font-size:15px; font-weight:800; color:var(--ink-faint); max-width:32em; }
.doc h2{ font-size:clamp(23px,3.6vw,30px); margin:54px 0 12px; }
.doc h3{ font-size:20px; margin:28px 0 6px; }
.doc p{ margin:14px 0; }
.doc p, .doc li{ color:var(--ink); overflow-wrap:break-word; }
/* store links written out in full are wider than a phone */
.doc a{ overflow-wrap:anywhere; }
.doc .lede{ color:var(--ink-soft); font-size:18.5px; }
.doc ul, .doc ol{ padding-left:24px; }
.doc li{ margin:8px 0; }
.doc li::marker{ color:var(--brand); font-weight:900; }
.doc .card, .doc .steps, .doc .note{
  background:var(--paper2); border:2px solid var(--line); border-radius:20px; padding:18px 22px; margin:26px 0;
}
.doc .note{ background:var(--paper-deep); }
.doc .card p:first-child, .doc .note p:first-child{ margin-top:0; }
.doc .card p:last-child, .doc .note p:last-child{ margin-bottom:0; }
.tablewrap{
  overflow-x:auto; margin:24px 0; background:var(--paper2);
  border:2px solid var(--line); border-radius:20px;
}
table{ border-collapse:collapse; width:100%; min-width:520px; font-size:15px; }
th, td{ padding:12px 14px; text-align:left; vertical-align:top; border-bottom:2px solid var(--line); }
th + th, td + td{ border-left:2px solid var(--line); }
tr:last-child td{ border-bottom:0; }
th{ background:var(--paper-deep); font-weight:900; }
code{ background:var(--paper-deep); border-radius:8px; padding:1px 6px; font-size:14px; }
.mail{ margin:8px 0 4px; }

/* RTL: flex rows mirror by themselves; these are the physical left/right rules. */
[dir="rtl"] .skip{ left:auto; right:-9999px; border-radius:0 0 0 12px; }
[dir="rtl"] .skip:focus{ right:0; }
[dir="rtl"] .brand, [dir="rtl"] footer .who{ margin-right:0; margin-left:auto; }
[dir="rtl"] .lm-pop, [dir="rtl"] .mm-pop{ right:auto; left:0; }
[dir="rtl"] .doc ul, [dir="rtl"] .doc ol{ padding-left:0; padding-right:24px; }
[dir="rtl"] .doc th, [dir="rtl"] .doc td{ text-align:right; }
[dir="rtl"] .doc th + th, [dir="rtl"] .doc td + td{ border-left:0; border-right:2px solid var(--line); }
[dir="rtl"] .doc-head h1, [dir="rtl"] .scribble{ background-position:right bottom; }
/* the wordmark stays in Latin order */
[dir="rtl"] .brand .word{ direction:ltr; }
/* so "@amelie" doesn't become "amelie@" */
[dir="rtl"] a[href^="mailto:"]{ unicode-bidi:plaintext; }
