/*
 * Hairly product page (CS / EN). The app's wallpaper, strand and glass on the web.
 * Colours of the wallpaper come from hairly.js (the app's palettes); the defaults below are
 * the Hairly wallpaper, so the page is complete without JavaScript.
 */
.hy{--hy-base0:#A894F0;--hy-base1:#5E45C8;--hy-dot:#FF6F9E;--hy-c0:#7C5CFF;--hy-c1:#FF5FA2;--hy-c2:#FFB86C;
  --hy-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,Noto,sans-serif;
  --hy-glass:rgba(255,255,255,.18);--hy-glass-edge:rgba(255,255,255,.42);--hy-on:#fff;--hy-on-muted:rgba(255,255,255,.78);
  --hy-shell:1180px;--hy-space:clamp(88px,11vw,168px);--hy-radius:32px;
  position:relative;font-family:var(--hy-font);overflow:clip}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .hy{--hy-base0:#1D1A3D;--hy-base1:#0C0D1E;--hy-glass:rgba(255,255,255,.08);--hy-glass-edge:rgba(255,255,255,.16)}}
:root[data-theme=dark] .hy{--hy-base0:#1D1A3D;--hy-base1:#0C0D1E;--hy-glass:rgba(255,255,255,.08);--hy-glass-edge:rgba(255,255,255,.16)}
.hy *{box-sizing:border-box}
.hy-shell{width:min(calc(100% - 80px),var(--hy-shell));margin-inline:auto;position:relative}
.hy h1,.hy h2,.hy h3{font-family:var(--hy-font);letter-spacing:-.035em;font-weight:700;text-wrap:balance}
.hy p{text-wrap:pretty}
.hy-eyebrow{display:block;font-size:clamp(17px,1.5vw,21px);font-weight:600;letter-spacing:-.01em;margin-bottom:.6em;color:var(--hy-c1)}
.hy-wall .hy-eyebrow{color:var(--hy-on-muted)}
.hy-lead{font-size:clamp(19px,1.75vw,24px);line-height:1.45;letter-spacing:-.012em;color:var(--muted);max-width:34ch}
.hy-wall .hy-lead{color:var(--hy-on-muted)}
.hy-section{padding-block:var(--hy-space);position:relative;z-index:1}

/* Wallpaper: the app's gradient with the strand (drawn by hairly.js) */
.hy-wall{position:relative;color:var(--hy-on);background:linear-gradient(180deg,var(--hy-base0),var(--hy-base1));isolation:isolate}
.hy-wallpaper{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none}
.hy-strand{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;max-width:none;height:auto;pointer-events:none;user-select:none}
/* Without JavaScript: the app icon's strand, still */
.hy-strand-static{position:absolute;right:-6%;top:6%;width:min(70vw,900px);opacity:.95}
.hy-js .hy-strand-static{display:none}

/* Hero */
.hy-hero{margin-top:-88px;padding-top:calc(88px + clamp(48px,8vh,96px));min-height:min(100svh,1100px);display:flex;align-items:center}
.hy-hero .hy-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(32px,5vw,80px);align-items:center;padding-bottom:clamp(56px,8vh,96px)}
.hy-hero h1{font-size:clamp(52px,7.6vw,112px);line-height:.98;margin:0 0 .32em;letter-spacing:-.05em}
.hy-hero .hy-lead{font-size:clamp(20px,1.9vw,26px);max-width:28ch}
.hy-hero-icon{width:84px;height:84px;margin:0 0 24px -4px;filter:drop-shadow(0 14px 26px rgba(20,8,60,.30))}
.hy-badges{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px;align-items:center}
.hy-badges a{display:block;border-radius:10px;transition:transform .2s}
.hy-badges a:hover{transform:translateY(-2px)}
.hy-badges img{height:50px;width:auto}
.hy-hero-note{margin-top:18px;font-size:15px;color:var(--hy-on-muted)}
.hy-hero-device{justify-self:center;width:min(100%,360px,calc((100svh - 150px) * .46));transform:rotate(-4deg) translateY(10px);filter:drop-shadow(0 50px 70px rgba(18,6,58,.45))}

/* Devices: plain, precise frames around the real screenshots */
.hy-iphone{position:relative;aspect-ratio:1206/2622;border-radius:15.5%/7.2%;padding:3.6%;background:linear-gradient(145deg,#2c2a35,#0e0d14 45%,#24222c);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.14),inset 0 0 0 4px #000}
.hy-iphone>img,.hy-iphone .hy-screen{position:absolute;inset:3.6%;width:92.8%;height:92.8%;object-fit:cover;border-radius:12.5%/5.8%}
.hy-ipad{position:relative;aspect-ratio:2064/2752;border-radius:5.2%/3.9%;background:linear-gradient(145deg,#2c2a35,#0e0d14 45%,#24222c);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.14),inset 0 0 0 4px #000}
.hy-ipad>img{position:absolute;left:3%;right:3%;top:3%;bottom:3%;width:94%;height:94%;max-width:none;object-fit:fill;border-radius:2.6%/1.95%}

/* Statement */
.hy-statement{font-size:clamp(34px,4.6vw,68px);line-height:1.06;letter-spacing:-.04em;font-weight:700;max-width:18ch;margin:0}
.hy-statement span{color:var(--muted)}

/* The tab tour */
.hy-tour{position:relative;z-index:1}
.hy-tour-stage{position:sticky;top:0;height:100svh;min-height:640px;overflow:hidden}
.hy-tour-stage .hy-shell{height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.hy-tour-phone{grid-column:2;justify-self:center;width:min(100%,330px,calc((100svh - 150px) * .46));position:relative;filter:drop-shadow(0 40px 60px rgba(18,6,58,.40))}
.hy-tour-phone .hy-screen{opacity:0;transition:opacity .5s ease}
.hy-tour-phone .hy-screen.is-current,.hy-tour:not(.hy-tour-live) .hy-tour-phone .hy-screen:first-of-type{opacity:1}
.hy-tabbar{position:absolute;left:50%;bottom:clamp(20px,4vh,40px);transform:translateX(-50%);display:flex;gap:4px;padding:5px;border-radius:999px;background:var(--hy-glass);border:1px solid var(--hy-glass-edge);backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);box-shadow:0 10px 30px rgba(18,6,58,.22)}
.hy-tabbar button{border:0;background:none;color:var(--hy-on);font:600 14px/1 var(--hy-font);padding:11px 16px;border-radius:999px;transition:background .3s,color .3s}
.hy-tabbar button.is-current{background:rgba(255,255,255,.92);color:#2b1f6b}
.hy-tour-chapters{position:relative;margin-top:-100svh;z-index:2;pointer-events:none}
.hy-chapter{min-height:100svh;display:flex;align-items:center}
.hy-chapter .hy-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.hy-chapter-card{pointer-events:auto;max-width:440px;color:var(--hy-on);opacity:.35;transform:translateY(16px);transition:opacity .5s,transform .5s}
.hy-chapter.is-current .hy-chapter-card,.hy-tour:not(.hy-tour-live) .hy-chapter-card{opacity:1;transform:none}
.hy-chapter h2{font-size:clamp(36px,4.4vw,64px);line-height:1.02;margin:0 0 .4em;color:var(--hy-on)}
.hy-chapter p{font-size:clamp(18px,1.5vw,21px);line-height:1.5;color:var(--hy-on-muted);margin:0}
.hy-chapter-card{text-shadow:0 1px 22px rgba(24,10,70,.35)}
.hy-chapter ul{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:10px}
.hy-chapter li{font-size:16px;color:var(--hy-on);padding-left:22px;position:relative}
.hy-chapter li::before{content:"";position:absolute;left:0;top:.55em;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px var(--hy-dot)}

/* Split feature: media + words, hairline facts */
.hy-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,7vw,120px);align-items:center}
.hy-split.is-flipped>:first-child{order:2}
.hy-split h2{font-size:clamp(38px,4.6vw,68px);line-height:1.02;margin:0 0 .4em}
.hy-media-phone{width:min(100%,340px);justify-self:center;filter:drop-shadow(0 34px 50px rgba(20,35,59,.22))}
.hy-facts{margin:40px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 32px}
.hy-facts div{padding:18px 0;border-top:1px solid var(--line)}
.hy-facts dt{font-weight:650;font-size:17px;letter-spacing:-.01em}
.hy-facts dd{margin:4px 0 0;color:var(--muted);font-size:15.5px;line-height:1.5}

/* Tap to Pay */
.hy-ttp-photo{position:relative;border-radius:var(--hy-radius);overflow:hidden;aspect-ratio:16/9;background:#111}
.hy-ttp-photo img{width:100%;height:100%;object-fit:cover}
.hy-ttp-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,6vw,96px);align-items:end;margin-bottom:clamp(40px,5vw,64px)}
.hy-ttp-head h2{font-size:clamp(40px,5.2vw,80px);line-height:1;margin:0}
.hy-ttp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:clamp(40px,5vw,64px)}
.hy-ttp-grid h3{font-size:20px;letter-spacing:-.015em;margin:0 0 6px}
.hy-ttp-grid p{color:var(--muted);font-size:16px;line-height:1.55;margin:0}
.hy-fn{font-size:.62em;vertical-align:super;line-height:0;color:var(--muted);text-decoration:none}

/* EET */
.hy-eet{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,7vw,120px);align-items:start}
.hy-eet-date{font-size:clamp(96px,15vw,232px);line-height:.82;letter-spacing:-.065em;font-weight:800;margin:0;color:var(--ink)}
.hy-eet-date i{font-style:normal;color:var(--hy-dot)}
.hy-eet-date small{display:block;font-size:.2em;letter-spacing:-.02em;line-height:1.2;margin-top:.5em;color:var(--muted)}
.hy-eet h2{font-size:clamp(34px,3.8vw,54px);line-height:1.04;margin:0 0 .45em}
.hy-steps{list-style:none;margin:36px 0 0;padding:0;counter-reset:hy}
.hy-steps li{counter-increment:hy;display:grid;grid-template-columns:44px 1fr;gap:4px 14px;padding:18px 0;border-top:1px solid var(--line)}
.hy-steps li::before{content:counter(hy);grid-row:span 2;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font:700 15px/1 var(--hy-font);color:#fff;background:linear-gradient(135deg,var(--hy-c0),var(--hy-c1))}
.hy-steps strong{font-size:17px;letter-spacing:-.01em}
.hy-steps span{color:var(--muted);font-size:15.5px;line-height:1.5}

/* Appearance: wallpaper chips */
.hy-look{border-radius:calc(var(--hy-radius) + 8px);overflow:hidden;min-height:clamp(520px,62vw,720px);display:flex;align-items:flex-end}
.hy-look .hy-look-inner{padding:clamp(32px,5vw,64px);width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:end}
.hy-look h2{font-size:clamp(38px,4.6vw,68px);line-height:1.02;margin:0 0 .35em;color:var(--hy-on)}
.hy-look p{color:var(--hy-on-muted);font-size:clamp(18px,1.5vw,21px);margin:0;max-width:36ch}
.hy-chips{display:flex;flex-wrap:wrap;gap:10px;padding:10px;border-radius:999px;background:var(--hy-glass);border:1px solid var(--hy-glass-edge);backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4)}
.hy-chips button{width:44px;height:44px;border-radius:50%;border:0;padding:0;position:relative;background:linear-gradient(180deg,var(--chip0,#A894F0),var(--chip1,#5E45C8));box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);transition:transform .2s}
.hy-chips button::after{content:"";position:absolute;inset:13px;border-radius:50%;background:var(--chip-curl,linear-gradient(135deg,#7C5CFF,#FF5FA2,#FFB86C))}
.hy-chips button[aria-pressed=true]{box-shadow:0 0 0 3px #fff,0 0 0 5px rgba(0,0,0,.18)}
.hy-chips button:hover{transform:scale(1.06)}
.hy-chips-label{display:block;color:var(--hy-on-muted);font-size:14px;margin:0 0 10px 6px}

/* Everywhere */
.hy-lineup{display:flex;justify-content:center;align-items:flex-end;margin-top:clamp(56px,7vw,96px);padding-right:clamp(40px,8vw,140px)}
.hy-lineup .hy-ipad{width:min(64%,600px);filter:drop-shadow(0 40px 60px rgba(20,35,59,.20))}
.hy-lineup .hy-media-phone{width:min(25%,232px);margin:0 0 -6% calc(-1 * clamp(60px,9vw,130px));position:relative;z-index:1}
.hy-platforms{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:28px;padding:0;list-style:none;font-weight:600;font-size:17px}
.hy-platforms li{display:flex;align-items:center;gap:10px}
.hy-platforms li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--hy-c1)}

/* Privacy & pricing pair */
.hy-pair{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,6vw,96px)}
.hy-panel{padding-top:28px;border-top:2px solid var(--ink)}
.hy-panel h3{font-size:clamp(30px,3vw,44px);line-height:1.05;margin:0 0 .5em}
.hy-panel p{color:var(--muted);font-size:17px;line-height:1.55;margin:0}
.hy-panel a{display:inline-block;margin-top:20px;font-weight:600;color:var(--blue);text-decoration:none}

/* End: the thread's dot, the downloads */
.hy-end{text-align:center;padding-bottom:clamp(64px,8vw,120px)}
.hy-end-dot{width:52px;height:52px;margin:0 auto 40px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgba(20,35,59,.18);transform:scale(.4);opacity:0;transition:transform .6s cubic-bezier(.2,1.4,.4,1),opacity .4s}
.hy-end-dot::after{content:"";width:26px;height:26px;border-radius:50%;background:var(--hy-dot)}
.hy-thread-done .hy-end-dot,:root:not(.hy-js) .hy-end-dot{transform:none;opacity:1}
.hy-end h2{font-size:clamp(44px,6vw,96px);line-height:.98;margin:0 auto .3em;max-width:14ch;letter-spacing:-.05em}
.hy-end .hy-lead{margin-inline:auto}
.hy-end .hy-badges{justify-content:center}
.hy-notes{border-top:1px solid var(--line);padding-block:28px 8px;color:var(--muted);font-size:13px;line-height:1.55}
.hy-notes p{max-width:none;margin:0 0 .6em}
.hy-resources{display:flex;flex-wrap:wrap;gap:12px 28px;padding-block:8px 64px}
.hy-resources a{font-weight:600;text-decoration:none;color:var(--ink)}
.hy-resources a:hover{color:var(--blue)}

/* The thread down the page */
.hy-threaded{position:relative}
.hy-thread{position:absolute;left:0;top:0;width:100%;z-index:0;pointer-events:none;overflow:visible}
.hy-thread-shadow{opacity:.10;transform:translate(2px,8px)}
:root:not(.hy-js) .hy-thread{display:none}

/* Reveals */
.hy-js .hy [data-hy-reveal]{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.hy-js .hy [data-hy-reveal].is-in{opacity:1;transform:none}

/* Phones and small tablets */
@media(max-width:900px){
  .hy-shell{width:min(calc(100% - 40px),var(--hy-shell))}
  .hy-hero{min-height:auto}
  .hy-hero .hy-shell{grid-template-columns:1fr;text-align:left}
  .hy-hero{padding-top:calc(88px + 32px)}
  .hy-hero-icon{width:66px;height:66px;margin-bottom:16px}
  .hy-hero h1{font-size:clamp(46px,13vw,64px)}
  .hy-hero-device{width:min(74vw,320px);margin-top:12px}
  .hy-tour-stage .hy-shell,.hy-chapter .hy-shell{grid-template-columns:1fr}
  .hy-tour-phone{grid-column:1;align-self:start;margin-top:max(96px,12svh);width:min(64vw,calc((100svh - 330px) * .46),300px)}
  .hy-tabbar{bottom:14px}
  .hy-tabbar button{padding:10px 11px;font-size:13px}
  .hy-chapter{align-items:flex-end;padding-bottom:84px}
  .hy-chapter-card{padding:22px 22px 24px;border-radius:26px;background:rgba(30,18,80,.38);border:1px solid var(--hy-glass-edge);backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3)}
  .hy-chapter h2{font-size:30px}
  .hy-chapter p{font-size:16px}
  .hy-chapter ul{display:none}
  .hy-split,.hy-ttp-head,.hy-eet,.hy-pair{grid-template-columns:1fr}
  .hy-split.is-flipped>:first-child{order:0}
  .hy-ttp-grid{grid-template-columns:1fr}
  .hy-facts{grid-template-columns:1fr}
  .hy-look .hy-look-inner{grid-template-columns:1fr}
  .hy-chips{border-radius:28px}
  .hy-lineup{padding-right:24px}
  .hy-lineup .hy-ipad{width:78%}
  .hy-lineup .hy-media-phone{width:34%;margin-left:-18%}
}
@media(prefers-reduced-motion:reduce){
  .hy-js .hy [data-hy-reveal]{opacity:1;transform:none;transition:none}
  .hy-chapter-card,.hy-tour-phone .hy-screen,.hy-end-dot{transition:none}
}
@media(prefers-reduced-transparency:reduce){
  .hy-tabbar,.hy-chips,.hy-chapter-card{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(30,18,80,.85)}
}
