/* Piano Legend: shared design system
   Type: Sweet Square Pro (Adobe Fonts kit uot7yrd), SF Pro / system font as fallback. */

:root {
  --font: "sweet-square-pro", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "sweet-square-pro", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #f5f5f7;
  --white: #fff;
  --on-dark: #f5f5f7;
  --on-dark-2: #86868b;
  --on-dark-3: #6e6e73;
  --tile-dark: #161617;
  --tile-dark-2: #1d1d1f;
  --hair-dark: rgba(255, 255, 255, .12);
  --hair-light: rgba(0, 0, 0, .1);
  --link-dark: #2997ff;
  --link-light: #0066cc;
  --brand-blue: #31a1f8;
  --brand-violet: #8f66ff;
  --brand-pink: #eea4b1;
  --brand-gradient: linear-gradient(90deg, #31a1f8 0%, #8f66ff 52%, #eea4b1 100%);
  --f1: #31a1f8; --f2: #34d399; --f3: #a78bfa; --f4: #f472b6; --f5: #fbbf24;

  --nav-h: 52px;
  --gutter: max(22px, calc((100vw - 1068px) / 2));
  --wide: min(1440px, calc(100vw - 2 * 22px));
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--link-dark); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ type scale */
h1, h2, h3, .t-hero, .t-xl, .t-l, .t-m, .t-s { text-wrap: balance; }
p { text-wrap: pretty; }
.t-hero { font-family: var(--font); font-size: clamp(48px, 7.4vw, 104px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; }
.t-xl   { font-family: var(--font); font-size: clamp(40px, 6vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; }
.t-l    { font-family: var(--font); font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -.005em; }
.t-m    { font-family: var(--font); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.t-s    { font-family: var(--font); font-size: clamp(21px, 2vw, 28px); line-height: 1.14; font-weight: 600; letter-spacing: .007em; }
.t-eyebrow { font-family: var(--font); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.17; font-weight: 600; letter-spacing: .009em; }
.t-lead { font-family: var(--font); font-size: clamp(19px, 1.75vw, 24px); line-height: 1.35; font-weight: 600; letter-spacing: .009em; }
.t-body { font-size: 17px; line-height: 1.47; letter-spacing: -.022em; }
.t-small { font-size: 14px; line-height: 1.43; letter-spacing: -.016em; }
.t-note { font-size: 12px; line-height: 1.34; letter-spacing: -.01em; }
.muted { color: var(--on-dark-2); }
.light .muted { color: var(--ink-2); }
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead-mixed { color: var(--on-dark-2); }
.lead-mixed strong { color: var(--on-dark); font-weight: 600; }
.light .lead-mixed { color: var(--ink-2); }
.light .lead-mixed strong { color: var(--ink); }

/* ------------------------------------------------------------ layout */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section.tight { padding: clamp(72px, 9vw, 120px) 0; }
.container { width: min(1068px, calc(100vw - 44px)); margin-inline: auto; }
.container-wide { width: var(--wide); margin-inline: auto; }
.center { text-align: center; }
.light { background: var(--paper); color: var(--ink); color-scheme: light; }
.white { background: var(--white); color: var(--ink); color-scheme: light; }
.light ::selection, .white ::selection { background: rgba(0, 113, 227, .2); }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hair-dark); }
.nav-inner { height: 100%; width: min(1068px, calc(100vw - 44px)); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; height: 100%; flex: none; }
.nav-logo img { height: 28px; width: auto; }
@media (max-width: 734px) { .nav-logo img { height: 22px; } }
.nav-title { font-family: var(--font); font-size: 21px; font-weight: 600; letter-spacing: .011em; margin-left: 2px; white-space: nowrap; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 12px; letter-spacing: -.01em; color: rgba(245, 245, 247, .8); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { flex: none; }
@media (max-width: 734px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-title { font-size: 19px; }
}

/* ------------------------------------------------------------ buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px;
  font-size: 17px; line-height: 1.17; letter-spacing: -.022em; font-weight: 400;
  background: #0071e3; color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: #0077ed; }
.btn:active { transform: scale(.98); }
.btn.small { min-height: 28px; padding: 4px 12px; font-size: 12px; letter-spacing: -.01em; }
.btn.ghost { background: transparent; color: var(--link-dark); box-shadow: inset 0 0 0 1px var(--link-dark); }
.btn.ghost:hover { background: var(--link-dark); color: #fff; }
.light .btn.ghost, .white .btn.ghost { color: var(--link-light); box-shadow: inset 0 0 0 1px var(--link-light); }
.light .btn.ghost:hover, .white .btn.ghost:hover { background: var(--link-light); color: #fff; }
.btn.white-btn { background: #f5f5f7; color: #1d1d1f; }
.btn.white-btn:hover { background: #fff; }
.link { color: var(--link-dark); display: inline-flex; align-items: center; gap: 2px; font-size: inherit; }
.light .link, .white .link { color: var(--link-light); }
.link:hover { text-decoration: underline; text-underline-offset: .18em; }
.link .chev { font-size: .9em; transform: translateY(.02em); }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.center .cta-row { justify-content: center; }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ------------------------------------------------------------ footer */
.footer { background: var(--paper); color: var(--ink-2); color-scheme: light; padding: 18px 0 22px; font-size: 12px; line-height: 1.34; letter-spacing: -.01em; }
.footer .container { display: grid; gap: 14px; }
.footer-notes { border-bottom: 1px solid #d2d2d7; padding: 6px 0 14px; display: grid; gap: 8px; }
.footer-notes li { counter-increment: fn; display: grid; grid-template-columns: 18px 1fr; }
.footer-notes li::before { content: counter(fn) "."; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #86868b; }
.footer a { color: #424245; }
.footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ Sweet Square Pro settings
   Running and small text +6 % and a little brighter; large titles and figures unchanged. */
html.pl-sweet body { font-size-adjust: .478; font-size-adjust: cap-height .692; }
html.pl-sweet :is(h1, h2, h3, h4, .t-hero, .t-xl, .t-l, .stat-num, .offer-price, .try-dates) { font-size-adjust: none; }
html.pl-sweet:not(.tg-glow) :is(p, summary, small, label, dd, figcaption, .nav-links a):not(.t-hero, .t-xl, .t-l, #pl-fonts *),
html.pl-sweet:not(.tg-glow) li:not(:has(p)):not(#pl-fonts *) { filter: brightness(1.14); } /* not with the ?glow test, whose filters draw the glow */

/* Sweet Square Pro draws its figures at 82 % of the capital height (bold: 87 %): in "3D" the 3 is scaled up to match the D.
   Not with the comparison fonts, whose figures already match their capitals. */
html:not(.pl-adj):not(.pl-orb) .n3 { font-size: 1.218em; line-height: 0; }
html:not(.pl-adj):not(.pl-orb) :is(h1, h2, h3, h4, strong, b, .tile-kicker) .n3 { font-size: 1.15em; }
