/* Shared by every page on tapslate.co: the palette and type, the header,
   the sale bar and the footer. The header and footer markup is written into
   each page by scripts/build-pages.mjs, so change them there, not in a page. */

:root{
  --white:#FAFAFA;--paper:#F2F2F1;--panel:#F1F1EF;--line:#E4E4E2;
  --fog:#DEDEDD;--ash:#B6B7B7;--slate:#6E7173;--graphite:#2E3032;--ink:#131517;
}

/* Soft glows behind some sections reach past the window edge on phones.
   Clip them, so the page never scrolls sideways (clip, unlike hidden,
   leaves sticky and fixed positioning alone). */
html,body{overflow-x:clip}

/* The look, shared by every page: a white page, soft grey rounded panels,
   ink pills, and one red-orange kept for the sale. Always light: the site
   is white whatever the visitor's system is set to. */
:root{
  /* Ink, slate, paper and the green are the app's own values (SlateColor),
     so a panel here is the app's page colour and text is the app's ink. */
  --bg:#FFFFFF;--fg:#131517;--body:#2E3032;--muted:#6E7173;--faint:#B6B7B7;
  --soft:#F2F2F1;--soft-2:#DEDEDD;--raise:#FFFFFF;--hair:rgba(19,21,23,.08);
  --pill:#131517;--pill-fg:#FFFFFF;--live:#248A3D;--live-tint:rgba(52,199,89,.14);--sale:#E4002B;--sale-fg:#FFFFFF;--star:#F2A33A;
  --head-bg:rgba(255,255,255,.82);
  /* One type scale, the app's (SlateType): small text is 13, running text
     15, a lead line or a button 17, a row or panel title 20, a small
     headline 28. 12 is only for chips and tags. Big headings scale with the
     window and are set where they are used. See docs/BRAND.md. */
  --t-micro:12px;--t-small:13px;--t-body:15px;--t-lead:17px;--t-title:20px;--t-head:28px;
  /* One corner scale, the app's (SlateSpace): a panel is 20, a control set
     inside it 12, a chip or segment inside that 8. The floating menu stays a
     capsule, like the app's tab bar. */
  --r-panel:20px;--r-control:12px;--r-small:8px;
}
/* Header: a glass pill pinned to one spot on every page. Its right edge
   lines up with the right edge of the steel card on the home page (the card
   is min(460px, 40%) wide, centred in the right half, and its 3D tilt pulls
   the visible edge in to about 44% of that width from the centre). It starts
   level with the home wordmark and rises to 12px as you scroll. On the home
   page it is short, on the others it mirrors that margin on the left. */
/* --W is the window's width without its scrollbar (the header script sets
   --sb). Every section is as wide as the header, --page, so page content lines
   up with the pill's edges on both sides at any window size. */
/* --side is the page's own margin: sections run nearly the full window.
   --promo-h pushes the pill below the sale bar while the bar is showing. */
:root{--W:calc(100vw - var(--sb, 0px));--side:5vw;--promo-h:0px;--head-top:calc(var(--promo-h) + max(12px,calc(clamp(56px,9vw,111px) / 2 - 16px)));
  --head-side:calc(var(--W) * .25 - .44 * min(460px, var(--W) * .4));--page:calc(var(--W) - 2 * var(--head-side))}
.site-head{position:fixed;z-index:50;top:var(--head-top);right:var(--head-side);
  display:flex;align-items:center;gap:22px;padding:8px 8px 8px 22px;isolation:isolate}
.site-head:not(.short){left:var(--head-side)}
.site-head.short{padding-left:24px}
/* The glass lives on a layer behind the links, so it can stretch or shrink
   from the left while the links and the button stay exactly where they are */
.site-head::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:999px;
  background:rgba(255,255,255,.68);-webkit-backdrop-filter:blur(28px) saturate(170%);backdrop-filter:blur(28px) saturate(170%);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 1px 1px rgba(19,21,23,.04),0 18px 40px -14px rgba(19,21,23,.18)}
.site-head.grow::before{animation:head-grow .6s cubic-bezier(.2,.8,.2,1) both}
.site-head.grow .site-mark{animation:head-mark .45s .15s cubic-bezier(.2,.8,.2,1) both}
@keyframes head-grow{from{left:var(--from-left,0px)}}
@keyframes head-mark{from{opacity:0;transform:translateX(-8px)}}
.site-head-space{height:calc(var(--head-top) - var(--promo-h) + 56px)}
@supports (animation-timeline:scroll()){
  .site-head{animation:head-rise linear both;animation-timeline:scroll();animation-range:0 140px}
  @keyframes head-rise{to{top:12px}}
}
.site-mark{font:italic 400 var(--t-head)/1 'Instrument Serif',serif;letter-spacing:-.01em;color:var(--ink);text-decoration:none;margin-right:auto}
.site-links{display:flex;gap:24px;font:400 var(--t-body) 'Schibsted Grotesk',system-ui,sans-serif}
.site-links a{color:var(--slate);text-decoration:none;transition:color .2s}
.site-links a:hover,.site-links a[aria-current]{color:var(--ink)}
:root:has(.promo:not([hidden])){--promo-h:40px}
.site-buy{font:600 var(--t-body) 'Schibsted Grotesk',system-ui,sans-serif;color:var(--pill-fg);background:var(--pill);border-radius:999px;
  padding:10px 18px;text-decoration:none;white-space:nowrap;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.site-buy:hover{transform:translateY(-1px)}
@media (max-width:900px){:root{--head-side:5vw}}

/* The language menu in the header (web/assets/i18n.js): a globe and the
   language you are on, quiet like the links beside it. A tap opens the list. */
html.i18n-wait body{visibility:hidden}
.lang{position:relative;display:flex;align-items:center}
.lang-t{display:inline-flex;align-items:center;gap:5px;padding:6px 2px;border:0;background:none;cursor:pointer;
  font:400 var(--t-body)/1 'Schibsted Grotesk',system-ui,sans-serif;color:var(--slate);transition:color .2s}
.lang-t:hover,.lang.open .lang-t{color:var(--ink)}
.lang-t svg{display:block}
.lang-menu{display:none;position:absolute;top:calc(100% + 16px);left:50%;transform:translateX(-50%);flex-direction:column;min-width:128px;padding:6px;
  border-radius:var(--r-control,12px);background:#fff;box-shadow:0 1px 1px rgba(19,21,23,.04),0 14px 34px -10px rgba(19,21,23,.3)}
.lang.open .lang-menu{display:flex}
.lang-menu button{padding:8px 12px;border:0;border-radius:var(--r-small,8px);background:none;cursor:pointer;text-align:left;
  font:400 var(--t-body)/1.2 'Schibsted Grotesk',system-ui,sans-serif;color:var(--slate)}
.lang-menu button:hover{color:var(--ink)}
.lang-menu button[aria-pressed="true"]{color:var(--ink);font-weight:600;background:rgba(19,21,23,.05)}
/* A phone's bar has no room for the globe, so the code stands alone */
@media (max-width:600px){.lang-t{font-size:var(--t-small)}.lang-t svg{display:none}}

/* The sale bar across the top of the home page and the buy page */
.promo{display:flex;align-items:center;justify-content:center;gap:6px 14px;flex-wrap:wrap;min-height:40px;padding:8px 16px;
  background:var(--sale);color:var(--sale-fg);font:600 var(--t-small)/1.3 'Schibsted Grotesk',system-ui,sans-serif;text-align:center;text-decoration:none}
.promo[hidden]{display:none}

/* Footer: small and quiet, on the page's own colour */
.site-foot{padding:36px var(--side) 40px;font:400 var(--t-small) 'Schibsted Grotesk',system-ui,sans-serif;color:var(--muted)}
.site-foot-top{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;padding-top:28px;border-top:1px solid var(--hair)}
.site-foot-mark{font:italic 400 var(--t-head)/1 'Instrument Serif',serif;color:var(--fg);margin-bottom:8px}
.site-foot-tag{color:var(--muted)}
/* Two short columns: where to get it, then help and the small print */
.site-foot-links{display:flex;gap:0 clamp(36px,5vw,64px)}
.site-foot-links > div{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.site-foot-links a{color:var(--fg);text-decoration:none}
.site-foot-links a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.site-foot-bottom{margin-top:14px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:var(--t-small);color:var(--muted)}
/* Home's footer is a studio photo of the card: the wordmark on its left, the
   links on its right, the small print on the dark surface it stands on. */
.site-foot.foot-shot{position:relative;padding:0;overflow:hidden}
.foot-shot .site-foot-photo{display:block;width:100%;height:auto;aspect-ratio:2400/828;object-fit:cover;object-position:50% 100%}
.foot-shot .site-foot-top{position:absolute;left:var(--side);right:var(--side);top:16%;align-items:flex-start;padding-top:0;border-top:0}
.foot-shot .site-foot-mark{font-size:clamp(40px,5vw,72px);margin-bottom:10px}
.foot-shot .site-foot-links{font-size:var(--t-body)}
.foot-shot .site-foot-bottom{position:absolute;left:var(--side);right:var(--side);bottom:22px;margin:0;color:rgba(255,255,255,.72)}
@media (max-width:720px){
  .site-foot.foot-shot{display:flex;flex-direction:column;padding-top:40px}
  .foot-shot .site-foot-top{position:static;order:-1;padding:0 var(--side)}
  .foot-shot .site-foot-photo{aspect-ratio:auto;height:78vw}
}

/* Moving between pages: the page fades and rises while the header holds
   still.
   Browsers without view transitions simply load the page as before. */
@view-transition{navigation:auto}
.site-head{view-transition-name:site-head}
/* Fade and rise: the old page fades out, the new one fades in 10px low and settles. */
::view-transition-old(root){animation:.22s cubic-bezier(.4,0,1,1) both vt-out}
::view-transition-new(root){animation:.42s cubic-bezier(.2,.8,.2,1) .06s both vt-in}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(10px)}}
/* The header stays put through the change */
::view-transition-group(site-head){animation:none}
::view-transition-old(site-head){display:none}
::view-transition-new(site-head){animation:none}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .site-head,.site-head.grow::before,.site-head.grow .site-mark{animation:none}
  html{scroll-behavior:auto}
}

/* A press you can feel: links, cards and buttons give a little as you
   click, so every tap gets an answer before the next page arrives. */
.site-buy:active,a.buy:active,.btn-ink:active{transform:scale(.97);transition-duration:.08s}
.site-links a:active,.site-foot-links a:active{opacity:.6}
.shot:active,.tile:active{transform:scale(.985);transition-duration:.1s}
/* Browsers without page transitions (Firefox for now) still get a fade:
   the page leaves over 150ms when a link is clicked and arrives the same way.
   The script in the footer sets these classes only there. */
html.fade-nav body{animation:page-in .38s cubic-bezier(.2,.8,.2,1) both}
html.fade-nav.leaving body{animation:page-out .15s cubic-bezier(.4,0,1,1) both}
@keyframes page-in{from{opacity:0;transform:translateY(8px)}}
@keyframes page-out{to{opacity:0}}
@media (prefers-reduced-motion:reduce){html.fade-nav body,html.fade-nav.leaving body{animation:none}}

/* Keyboard focus: a quiet ink ring, never the browser's blue box */
a:focus,button:focus{outline:none}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--fg);outline-offset:3px}

@media (max-width:720px){
  :root{--head-top:calc(var(--promo-h) + 14px);--head-side:4vw;--side:6vw}
  .site-head{gap:14px;padding-left:16px;animation:none}
  .site-mark{font-size:var(--t-head)}
  .site-links{gap:16px;font-size:var(--t-small)}
  .site-buy{padding:9px 14px;font-size:var(--t-small)}
  .site-head.short{padding-left:16px}
  /* On a phone the page scrolls close under the pill, so the glass is
     denser and a soft band of paper fades text out before it reaches it */
  /* Nearly solid on a phone: page text passing under a see-through pill
     read as clutter */
  .site-head::before{background:rgba(255,255,255,.96)}
  .site-head::after{content:"";position:fixed;left:0;right:0;top:0;height:76px;z-index:-2;pointer-events:none;
    background:linear-gradient(to bottom,rgba(255,255,255,.94) 55%,rgba(255,255,255,0))}
  /* The home page has its wordmark up there, and a page with the sale bar
     has the bar, so on those the band only comes in once you scroll */
  .site-head.short::after,:root:has(.promo:not([hidden])) .site-head::after{opacity:0}
  @supports (animation-timeline:scroll()){
    .site-head.short::after,:root:has(.promo:not([hidden])) .site-head::after{animation:scrim linear both;animation-timeline:scroll();animation-range:40px 120px}
    @keyframes scrim{to{opacity:1}}
  }
  .site-head.grow::before,.site-head.grow .site-mark{animation:none}
  .promo{font-size:var(--t-small)}
  .site-foot-top{flex-direction:column;align-items:flex-start;gap:22px}
}
/* Phones keep one link beside the button. On the home page the pill shares
   its row with the big wordmark, so there it keeps the button alone and can
   never run into the logo, whatever the text size. */
@media (max-width:600px){.site-links a:not(:first-child){display:none}.site-head.short .site-links{display:none}}

/* The card flip from the home page to the buy page (web/assets/toss.js).
   toss-in: the buy page waits, hidden, for the card to fall in.
   tossed: that page skips the usual fade, the flip is the transition.
   tossing: the card may leave its column while it flies. */
.toss-y,.toss-r{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;transform-style:preserve-3d;z-index:1}
.toss-shade{position:absolute;z-index:0;height:30px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(closest-side,rgba(19,21,23,.22),rgba(19,21,23,0))}
html.tossing .card-col{overflow:visible}
html.toss-in body{visibility:hidden}
html.toss-in .site-head{visibility:visible}
html.tossed body{animation:none}
html.tossed::view-transition-old(root){display:none}
html.tossed::view-transition-new(root){animation:none}

/* The welcome offer (web/assets/offer.js): a card in the middle of the
   screen, on every size, with the page lightly blurred behind it. */
/* its own layer, or the 3D steel card paints through it */
.offer{position:fixed;inset:0;z-index:80;transform:translateZ(0);display:grid;place-items:center;padding:20px;background:rgba(19,21,23,0);
  -webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:background .3s,backdrop-filter .3s,-webkit-backdrop-filter .3s}
.offer.in{background:rgba(19,21,23,.14);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.offer-card{position:relative;width:min(400px,100%);padding:32px 28px 26px;border-radius:var(--r-panel);background:#fff;
  box-shadow:0 30px 70px -20px rgba(19,21,23,.4);font-family:'Schibsted Grotesk',system-ui,sans-serif;color:var(--ink);
  opacity:0;transform:translateY(16px) scale(.98);transition:opacity .3s,transform .4s cubic-bezier(.2,.8,.2,1)}
.offer.in .offer-card{opacity:1;transform:none}
.offer-x{position:absolute;top:6px;right:6px;width:28px;height:28px;padding:0;border:0;background:none;color:var(--faint);font:400 16px/28px system-ui;cursor:pointer}
.offer-x:hover{color:var(--slate)}
.offer-card h2{font:700 var(--t-head)/1.1 'Schibsted Grotesk',sans-serif;letter-spacing:-.03em;margin:0 0 18px}
.offer-sub{font:400 var(--t-body)/1.55 'Schibsted Grotesk',sans-serif;color:var(--graphite);margin:-6px 0 18px}
.offer-form[hidden],.offer-done[hidden]{display:none}
.offer-form input[type=email],.offer-form input[type=tel]{display:block;width:100%;margin:0 0 8px;padding:13px 15px;border-radius:var(--r-control);border:1px solid var(--line);background:#fff;font:400 var(--t-body) 'Schibsted Grotesk',sans-serif;color:var(--ink);outline:none}
.offer-form input:focus{border-color:var(--ink)}
.offer .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.offer-go{display:block;width:100%;margin-top:6px;padding:14px;border:0;border-radius:var(--r-control);background:var(--ink);color:var(--white);font:600 var(--t-body) 'Schibsted Grotesk',sans-serif;text-align:center;text-decoration:none;cursor:pointer}
.offer-go:disabled{opacity:.6}
.offer-fine{font:400 var(--t-micro)/1.5 'Schibsted Grotesk',sans-serif;color:var(--slate);margin:12px 0 0}
.offer-codes{display:flex;gap:8px;margin:-4px 0 16px}
.offer-codes span{font:600 var(--t-small) ui-monospace,Menlo,monospace;letter-spacing:.06em;padding:8px 12px;border-radius:var(--r-small);border:1px dashed var(--ash);background:#fff}
@media (max-width:560px){.offer-card{padding:30px 22px 22px}.offer-card h2{font-size:23px}}
@media (prefers-reduced-motion:reduce){.offer,.offer-card{transition:none}}


/* Seasonal touches: season.js carries its own styles, so a cached copy of
   this file can never leave its hats unstyled */

/* Pieces the home page and the buy page share: small sentence-case labels,
   tight grotesk headings with a word in serif italic, soft rounded panels,
   pills, and a two-column block (a title on the left, a panel on the right). */
.themed body{background:var(--bg);color:var(--fg)}
.sec{padding:0 var(--side);margin:clamp(72px,10vw,136px) 0}
.label{font:500 var(--t-small)/1.3 'Schibsted Grotesk',sans-serif;color:var(--muted);margin-bottom:12px}
.h-sec{font:700 clamp(28px,3.4vw,44px)/1.06 'Schibsted Grotesk',sans-serif;letter-spacing:-.04em;color:var(--fg);margin:0}
.serif{font-family:'Instrument Serif',serif;font-style:italic;font-weight:400;letter-spacing:-.02em;font-size:1.14em;line-height:.9}
.h-serif{font:italic 400 clamp(34px,4vw,52px)/1.02 'Instrument Serif',serif;letter-spacing:-.02em;color:var(--fg);margin:0}
.lede-sec{font:400 var(--t-body)/1.6 'Schibsted Grotesk',sans-serif;color:var(--muted)}
.soft{background:var(--soft);border-radius:var(--r-panel)}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 22px;border-radius:var(--r-control);border:0;cursor:pointer;
  background:var(--pill);color:var(--pill-fg);font:600 var(--t-body)/1 'Schibsted Grotesk',sans-serif;text-decoration:none;white-space:nowrap;
  transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .2s}
.pill:hover{transform:translateY(-1px)}
.pill:active{transform:scale(.97);transition-duration:.08s}
.pill-soft{background:var(--soft);color:var(--fg)}
.pill svg{width:15px;height:18px;fill:currentColor;flex:none;margin-top:-2px}
/* The stores' own badge look: black, white type, two lines. Same height as a pill. */
.store-badge{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 14px 0 11px;border-radius:9px;background:#000;color:#fff;
  border:1px solid #A6A6A6;text-decoration:none;white-space:nowrap;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.store-badge:hover{transform:translateY(-1px)}
.store-badge:active{transform:scale(.97);transition-duration:.08s}
.store-badge .sb-logo{width:22px;height:24px;flex:none;fill:#fff}
.store-badge .sb-text{display:flex;flex-direction:column;line-height:1;text-align:left}
.store-badge .sb-small{font:500 10px/1.1 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;letter-spacing:.01em}
.store-badge .sb-caps{text-transform:uppercase;font-size:9px;letter-spacing:.04em}
.store-badge .sb-big{font:600 18px/1.05 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;letter-spacing:-.02em}
@media (hover:none){.store-badge:hover{transform:none}}
.split{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,2.4fr);gap:32px;align-items:start}
.statement{text-align:center}
.statement-line{font:italic 400 clamp(34px,5vw,68px)/1.06 'Instrument Serif',serif;letter-spacing:-.025em;color:var(--fg);max-width:18ch;margin:0 auto;text-wrap:balance}
.statement-sub{font:400 var(--t-body)/1.6 'Schibsted Grotesk',sans-serif;color:var(--muted);margin:22px auto 0;max-width:40ch;text-wrap:balance}

@media (max-width:820px){.split{grid-template-columns:1fr;gap:22px}}
@media (max-width:600px){.label{font-size:var(--t-small);margin-bottom:10px}}
@media (hover:none){.pill:hover{transform:none}}

/* Keep this the last rule. scripts/site-check.mjs reads it to know the whole
   file arrived, not a copy cut short on the way. */
/* Clicks land on the element that carries the words, so heatmaps name it by
   its text instead of a CSS path (an FAQ icon, a phone picture, a radio). */
summary svg,.pair-phone img,.opt input{pointer-events:none}
/* "Proudly Canadian" with the maple leaf, under the footer tagline on every page */
.made-in{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:var(--t-lead);font-weight:500;color:var(--fg)}
:root{--site-css-end:1}
