/* wearly.io shared layer: tokens, type, buttons, header, menu, closing card, footer.
   Every page loads this first; home.css and page.css add their own sections. */

:root {
  --canvas: #F4F3F6;
  --paper: #FFFFFF;
  --ink: #0E0D12;
  --ink-2: #4A4757;
  --ink-3: #6E6A7C;
  --hair: rgba(14, 13, 18, .09);
  --chip: #E8E6EE;
  --night: #000000;
  --night-2: #0E0D14;

  --blue: #5A6FFC;
  --violet: #AF6ADF;
  --pink: #FF66C4;
  --accent: #6E6BF7;
  --accent-ink: #4C4FE0;
  --grad: linear-gradient(100deg, #5A6FFC 0%, #AF6ADF 55%, #FF66C4 100%);

  /* the chat widget reads these */
  --bg: var(--canvas); --surface: #fff; --surface-2: #F7F6FA; --line: #E6E4EE; --font: var(--sans);
  --r-lg: 28px; --r-md: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 13, 18, .06), 0 14px 30px -16px rgba(14, 13, 18, .22);

  --frame: clamp(10px, 2.6vw, 40px);
  --radius: clamp(20px, 2.2vw, 30px);
  --wrap: 1300px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --expo: cubic-bezier(.19, 1, .22, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --accent-deep: var(--accent-ink);
}

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/figtree-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; }
/* U+0304 lives only in latin-ext, so "ū" never splits across two files */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; font-weight: 400; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }
button, select { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: rgba(175, 106, 223, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
html { scrollbar-color: rgba(14, 13, 18, .3) transparent; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { width: 18px; height: 18px; flex: none; fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.t-hero { font-weight: 500; font-size: clamp(54px, 8.6vw, 124px); line-height: .96; letter-spacing: -.04em; }
.t-big { font-weight: 500; font-size: clamp(46px, 7.6vw, 108px); line-height: 1.05; letter-spacing: -.035em; }
.t-h2 { font-weight: 500; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.t-para { font-weight: 500; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.g { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(175, 106, 223, .45); background: rgba(255, 255, 255, .5); }
.dark .chip { color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .04); }

/* split text */
.split .wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .ch { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, box-shadow .4s var(--expo); }
.btn > span { display: inline-flex; align-items: center; gap: 9px; pointer-events: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2B2933; }
.btn--chip { background: var(--chip); color: var(--ink); }
.btn--chip:hover { background: #DCD9E4; }
.btn--paper { background: #fff; color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .55); color: var(--ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--glass:hover { background: rgba(255, 255, 255, .75); }
.dark .btn--glass { background: rgba(255, 255, 255, .1); color: #fff; }
.dark .btn--glass:hover { background: rgba(255, 255, 255, .18); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 60; transition: background-color .4s, color .4s, transform .6s var(--expo); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; width: min(100% - 2 * var(--gutter) - 2 * var(--frame), var(--wrap)); margin-inline: auto; }
.top.is-solid { background: rgba(244, 243, 246, .86); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); }
.top.is-dark { background: rgba(0, 0, 0, .78); color: #fff; }
.top.is-hidden { transform: translateY(-100%); }
.logo { display: block; width: 88px; aspect-ratio: 1400 / 643; background: var(--ink); -webkit-mask: url("../img/logo-mask-320.png") center / contain no-repeat; mask: url("../img/logo-mask-320.png") center / contain no-repeat; transition: background-color .4s; }
.top.is-dark .logo { background: #fff; }
.top-nav ul { display: flex; gap: 6px; }
.top-nav a { position: relative; display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; }
.top-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--expo); }
.top-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.top.is-dark .btn--chip { background: rgba(255, 255, 255, .14); color: #fff; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--chip); place-items: center; cursor: pointer; }
.top.is-dark .menu-btn { background: rgba(255, 255, 255, .14); }
.menu-btn[aria-expanded="true"] .i-open, .menu-btn[aria-expanded="false"] .i-close { display: none; }
.sheet { position: fixed; inset: 0; z-index: 55; padding: 96px var(--gutter) 40px; background: var(--canvas); display: flex; flex-direction: column; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet > a { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.sheet .sheet-stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }


/* ---------- closing card ---------- */
.closing { padding: 0 var(--frame) 0; }
.close-card { position: relative; border-radius: var(--radius); background: var(--paper); padding: clamp(110px, 13vw, 190px) var(--gutter) 30px; text-align: center; overflow: hidden; isolation: isolate; }
.close-card::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 80%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(175, 106, 223, .16), transparent 70%); }
.close-card .t-big { max-width: 13ch; margin-inline: auto; }
.close-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin-top: clamp(100px, 12vw, 170px); width: min(100%, var(--wrap)); margin-inline: auto; }
.foot .logo { background: var(--grad); width: 96px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; font-size: 14.5px; font-weight: 500; }
.foot-links a { position: relative; }
.foot-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--expo); }
.foot-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); transition: background-color .3s; }
.social a:hover { background: var(--canvas); }
.social .icon { width: 17px; height: 17px; }
.fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 20px auto 22px; font-size: 13px; color: var(--ink-3); }
.fine a:hover { color: var(--ink); }


/* ---------- responsive (shared) ---------- */
@media (max-width: 860px) {
  .top-in { grid-template-columns: 1fr auto; }
  .top-nav, .top-end .btn { display: none; }
  .menu-btn { display: grid; }
  .foot { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 560px) { body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .g { animation: none; } }

/* ---------- fixes 2026-11-02 ---------- */
.foot-links a { padding: 6px 0; }
.fine a { display: inline-block; padding: 4px 0; }
body:has(.wc-launch) .fine { padding-right: 150px; }
@media (max-width: 860px) { body:has(.wc-launch) .fine { padding-right: 0; padding-bottom: 70px; } }
@media (forced-colors: active) { .logo { background: CanvasText !important; } }
.sheet > a[aria-current="page"] { color: var(--accent-ink); }

/* ---------- closing card, v4: night with a glowing arc (every page) ---------- */
.close-card { background: #0F0E15; color: #fff; }
.close-card::before { inset: auto -25% -2% -25%; height: 115%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 100%, transparent 70%, rgba(110, 107, 247, .95) 79%, rgba(175, 106, 223, .85) 84%, rgba(255, 102, 196, .25) 90%, transparent 96%);
  filter: blur(26px); opacity: .95; }
.close-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 50% 120%, rgba(110, 107, 247, .35), transparent 70%); }
.close-card .btn--ink { background: #fff; color: var(--ink); }
.close-card .btn--ink:hover { background: #ECEAF2; }
.close-card .btn--chip { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.close-card .btn--chip:hover { background: rgba(255, 255, 255, .2); }
.close-card .foot-links a { color: rgba(255, 255, 255, .86); }
.close-card .social a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #fff; }
.close-card .social a:hover { background: rgba(255, 255, 255, .1); }
.close-card .foot { position: relative; z-index: 1; }
.close-card :focus-visible { outline-color: #fff; }

/* closing store buttons: they do not move, they fill with colour */
.close-actions .btn { transform: none !important; transition: background-color .45s var(--expo), color .45s, box-shadow .45s var(--expo); }
.close-card .close-actions .btn--ink:hover { background: var(--grad); color: #fff; box-shadow: 0 14px 40px -12px rgba(175, 106, 223, .8); }
.close-card .close-actions .btn--chip:hover { background: #fff; color: var(--ink); box-shadow: none; }
.fine { align-items: center; }
/* gradient lead words stay still: a moving background repaints every frame */
.g { animation: none; background-size: 100% 100%; }

/* ---------- the menu sheet animates in and out (v8) ---------- */
.sheet { opacity: 0; transform: translateY(-14px); clip-path: inset(0 0 100% 0 round 0 0 28px 28px); transition: opacity .35s var(--expo), transform .6s var(--expo), clip-path .6s var(--expo); }
.sheet.is-open { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 0); }
.sheet > a, .sheet .sheet-stores { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--expo), transform .7s var(--expo); }
.sheet.is-open > a, .sheet.is-open .sheet-stores { opacity: 1; transform: none; }
.sheet.is-open > a:nth-child(1) { transition-delay: .06s; } .sheet.is-open > a:nth-child(2) { transition-delay: .09s; }
.sheet.is-open > a:nth-child(3) { transition-delay: .12s; } .sheet.is-open > a:nth-child(4) { transition-delay: .15s; }
.sheet.is-open > a:nth-child(5) { transition-delay: .18s; } .sheet.is-open > a:nth-child(6) { transition-delay: .21s; }
.sheet.is-open > a:nth-child(7) { transition-delay: .24s; } .sheet.is-open > a:nth-child(8) { transition-delay: .27s; }
.sheet.is-open .sheet-stores { transition-delay: .3s; }
.sheet > a { font-size: 28px; padding: 13px 0; display: flex; justify-content: space-between; align-items: center; }
.sheet > a::after { content: ""; width: 9px; height: 9px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg); opacity: .35; }
/* the burger turns into a cross */
.menu-btn .icon { transition: transform .5s var(--expo), opacity .3s; }
.menu-btn[aria-expanded="true"] .i-close { animation: menuIn .5s var(--expo); }
@keyframes menuIn { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet > a, .sheet .sheet-stores { transition: none; } }
/* footer icons: the Instagram glyph is a filled mark */
.social .icon-fill { width: 16px; height: 16px; }
@media (max-width: 860px) { body:has(.wc-launch) .fine { padding-bottom: 8px; } .fine { margin-bottom: 84px; } }
/* menu: compact rows, store buttons always in view */
.menu-btn { -webkit-tap-highlight-color: transparent; }
.sheet { padding-top: 84px; padding-bottom: 0; }
.sheet > a { font-size: 23px; padding: 11px 0; }
.sheet .sheet-stores { position: sticky; bottom: 0; margin-top: auto; padding: 16px 0 calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--canvas) 22%); }
/* footer fine print: no dangling dots, comfortable taps */
.fine a { white-space: nowrap; padding: 10px 0; }

/* ---------- touch devices: no live blur, cheap glows (v9) ---------- */
@media (hover: none) and (pointer: coarse) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .top.is-solid { background: rgb(244, 243, 246); } /* fully opaque: without the blur, 3% see-through reads as ghost text */
  .top.is-dark { background: rgba(0, 0, 0, .95); }
  .close-card::before { filter: none; opacity: .75; }
}

/* ---------- phones (2026-11-05 r4): entrances play once when an element comes on screen ----------
   CSS transitions on opacity/transform, toggled by one IntersectionObserver (.in): the GPU runs them, nothing is
   computed while the finger scrolls, and they work in every Safari. (Scroll timelines did not run on the owner's
   iPhone; GSAP scrubs on every scroll frame stuttered.) */
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .sd .sd-in:not(.in) { opacity: 0; transform: translate3d(0, 36px, 0) scale(.97); }
  .sd .sd-pop:not(.in) { opacity: 0; transform: translate3d(0, 56px, 0) scale(.92); }
  .sd .sd-rise:not(.in) { opacity: 0; transform: translate3d(0, 45%, 0); }
  .sd .sd-scale:not(.in) { transform: translate3d(0, 40px, 0) scale(.9); }
  .sd .sd-img:not(.in) { transform: scale(1.14); }
  .sd .sd-in, .sd .sd-pop, .sd .sd-rise { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.16, 1, .3, 1); }
  .sd .sd-scale { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
  .sd .sd-img { transition: transform 1.5s cubic-bezier(.16, 1, .3, 1); }
  /* statements light up word by word, left to right */
  .sd .sd-words .w { transition: opacity .5s ease; transition-delay: calc(var(--i, 0) * 30ms); }
  .sd .sd-words.in .w { opacity: 1; }
}

/* ---------- footer fine print (2026-11-05): separators belong to the link after them, so a wrapped line never ends on a dot ---------- */
.fine-links { display: flex; flex-wrap: wrap; column-gap: 0; }
.fine-links a + a::before { content: "·"; display: inline-block; padding: 0 .55em; color: var(--ink-3); }
@media (max-width: 560px) {
  .fine { gap: 4px 20px; }
  .fine-links { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 22px; }
  .fine-links a + a::before { content: none; }
}
/* phones 2026-11-05: the closing card starts sooner */
@media (max-width: 600px) { .close-card { padding-top: 76px; } .foot { margin-top: 84px; } }


/* intro veil, before the script arrives: plain canvas, the wordmark has not been written yet */
.intro-pre .veil { display: block; -webkit-mask: none; mask: none; }
