/* ============================================================
   Metronome aben.io — Static site styles
   Consolidated from Jekyll SCSS stack
   ============================================================ */

/* --- Normalize (v8.0.1, abbreviated) --- */
*,*::before,*::after{box-sizing:border-box}
html{line-height:1.15;-webkit-text-size-adjust:100%}
body{margin:0}
main{display:block}
a{background-color:transparent}
b,strong{font-weight:bolder}
small{font-size:80%}
img{border-style:none;max-width:100%;height:auto}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}
button,select{text-transform:none}
[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}
details{display:block}
summary{display:list-item}
template{display:none}
[hidden]{display:none}

/* --- Custom Properties --- */
:root {
  --color-text: #536171;
  --color-heading: #282f36;
  --color-bg: #fff;
  --color-bg-alt: #f5f5f7;
  --color-border: #e1e4e9;
  --color-link: #28aaff;
  --color-accent: #0071e3;
  --color-surface: #f5f5f7;
  --color-dark: #1d1d1f;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
}

/* --- Base --- */
html {
  font-family: var(--font-sans);
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--color-surface);
  color: var(--color-dark);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--color-link); text-decoration: underline; }
a:hover { text-decoration: none; }
h1,h2,h3,h4,h5,h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0 0 1.5rem; }
ul,ol { margin: 0 0 1.5rem; padding: 0 0 0 1.25rem; }
ul { list-style: disc; }
hr { background: var(--color-border); border: 0; height: 1px; margin: 2.25rem 0; }

/* --- Site Layout --- */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex-grow: 1; width: 100%; }

/* --- Header (glassmorphic) --- */
.site-header {
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  left: 0;
  padding: 0.72rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.container--lg { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.navbar { align-items: center; display: flex; }
.navbar__title {
  color: var(--color-dark);
  flex: 0 1 auto;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 1.25rem 0 0;
  text-decoration: none;
}
.navbar__menu { margin-left: auto; }
.navbar__list { align-items: center; display: flex; list-style: none; margin: 0; padding: 0; }
.navbar__item { font-size: 0.875em; margin-left: 1.25rem; }
.navbar__item a { color: var(--color-text); text-decoration: none; white-space: nowrap; }
.navbar__item a:hover { color: var(--color-dark); }
.navbar__item--btn .btn {
  background: var(--color-accent);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  padding: 6px 18px;
  text-decoration: none;
}

/* Mobile nav toggle */
.js-nav-toggle { display: none; background: none; border: none; cursor: pointer; margin-left: auto; padding: 8px; }
.js-nav-toggle svg { display: block; }
.navbar__close-btn { display: none; }
@media (max-width: 800px) {
  .js-nav-toggle { display: block; }
  .navbar__close-btn { display: block; background: none; border: none; cursor: pointer; position: absolute; right: 1.5rem; top: 1.125rem; }
  .navbar__menu {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: #fff;
    bottom: 0;
    right: -360px;
    max-width: 360px;
    position: fixed;
    top: 0;
    transition: right .3s cubic-bezier(.65,.05,.36,1), visibility 0s .3s;
    visibility: hidden;
    width: 100%;
    z-index: 999;
  }
  .navbar__scroller { height: 100%; overflow-y: auto; position: relative; }
  .navbar__inner { padding: 1.125rem 1.5rem; }
  .navbar__list { flex-direction: column; margin-top: 3rem; }
  .navbar__item { border-top: 1px solid var(--color-border); margin-left: 0; }
  .navbar__item:last-child { border-bottom: 1px solid var(--color-border); }
  .navbar__item a { display: block; padding: 0.75rem 0; }
  .navbar__item--btn { padding: 1.125rem 0; }
  .navbar__item--btn .btn { width: 100%; text-align: center; }
  .js-nav-open { overflow: hidden; }
  .js-nav-open .navbar__menu { right: 0; transition: right .3s ease; visibility: visible; }
  .navbar__overlay { background: rgba(0,0,0,0.3); height: 100vh; left: 0; opacity: 0; position: fixed; top: 0; transition: opacity .25s, visibility 0s .25s; visibility: hidden; width: 100%; z-index: 998; }
  .js-nav-open .navbar__overlay { opacity: 1; transition: opacity .25s; visibility: visible; }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 1.5em 0;
  text-align: center;
}
.site-footer__nav { margin-bottom: 1.5rem; }
.site-footer__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; list-style: none; margin: 0 0 1rem; padding: 0; }
.site-footer__menu a { color: var(--color-text); font-size: 0.875rem; text-decoration: none; }
.site-footer__menu a:hover { color: var(--color-dark); }
.site-footer__copyright { color: #8594a5; font-size: 0.8125em; }

/* --- Landing Page --- */
.landing { overflow: hidden; }
.landing__inner { margin: 0 auto; max-width: var(--max-width); padding: 0 24px; }

/* Hero */
.hero {
  background: #000;
  min-height: min(820px, calc(100vh - 56px));
  overflow: hidden;
  position: relative;
}
.hero__media { inset: 0; position: absolute; }
.hero__media::after {
  background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.56) 38%, rgba(0,0,0,0.08) 76%);
  content: "";
  inset: 0;
  position: absolute;
}
.hero__media img { height: 100%; object-fit: cover; object-position: center right; width: 100%; }
.hero__content {
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 680px;
  min-height: min(820px, calc(100vh - 56px));
  padding: 96px 24px 120px;
  position: relative;
  width: min(100%, 1180px);
}

/* Eyebrow / Kicker */
.eyebrow, .section-kicker {
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

/* Hero typography */
.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  max-width: 780px;
}
.hero__copy {
  color: rgba(255,255,255,0.78);
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  margin: 28px 0 0;
  max-width: 620px;
}
.hero__meta {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  margin: 18px 0 0;
}

/* Pill buttons */
.hero__actions, .download__cards { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pill {
  align-items: center;
  border-radius: 999px;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-1px); }
.pill--primary { background: var(--color-accent); color: #fff; }
.pill--secondary { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); color: #fff; }
.pill--dark { background: var(--color-dark); color: #fff; }

/* Intro band */
.band { background: #fff; }
.intro { padding: 88px 0; text-align: center; }
.intro h2, .compare h2, .download h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 auto;
  max-width: 920px;
}
.intro__grid, .features__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
}
.intro__grid article, .features__grid article, .download-card, .watch__modes article {
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 28px;
}
.intro__grid span {
  color: var(--color-dark);
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.intro__grid p, .features__grid p, .product__copy p, .watch__header > p, .watch__modes p {
  color: #5f6368;
  line-height: 1.6;
  margin: 0;
}

/* Product sections */
.product { padding: 112px 0; }
.product--twenty-six { background: var(--color-surface); }
.product--pro { background: #fff; }
.product__layout {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}
.product__layout--reverse {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
}
.app-icon {
  border-radius: 22%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  height: 82px;
  margin-bottom: 28px;
  width: 82px;
}
.product h2 {
  font-size: clamp(2.3rem, 5.5vw, 5rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 24px;
}
.product__copy > p:not(.section-kicker) { font-size: 1.12rem; max-width: 620px; }

/* Check list */
.check-list {
  color: #33363a;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 28px 0 30px;
  padding: 0;
}
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before {
  color: #34c759;
  content: "\2713";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.download-card span, .watch__modes span { display: block; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }

/* Screenshots */
.screens { align-items: center; display: flex; justify-content: center; min-height: 520px; position: relative; }
.screens img { border-radius: 34px; box-shadow: 0 32px 70px rgba(0,0,0,0.22); max-width: 270px; width: 46%; }
.screens img:first-child { transform: rotate(-4deg) translateX(16px); z-index: 2; }
.screens img:last-child { transform: rotate(5deg) translateX(-16px) translateY(28px); }
.screens--single { min-height: 560px; }
.screens--single img { max-width: 300px; width: 48%; }
.screens--single img:first-child { transform: rotate(-3deg) translateX(22px); }
.screens--single img:last-child { transform: rotate(4deg) translateX(-22px) translateY(34px); }

/* Pro Watch */
.product--watch { background: #f7f8fa; }
.watch__header {
  align-items: end;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  margin-bottom: 52px;
}
.watch__header h2 {
  font-size: clamp(2.3rem, 5.5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 1;
}
.watch__header > p { font-size: 1.08rem; }
.watch__layout {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}
.watch__screens {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.watch__screens img {
  background: #111;
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(0,0,0,0.18);
  width: 100%;
}
.watch__modes {
  display: grid;
  gap: 16px;
}
.watch__modes article:first-child { background: #fff; }
.watch__modes article:last-child {
  background: #111;
  border-color: #111;
}
.watch__modes article:last-child span { color: #fff; }
.watch__modes article:last-child p { color: rgba(255,255,255,0.72); }

/* Compare */
.compare { padding: 96px 0; }
.compare__table { background: var(--color-surface); border-radius: 8px; margin-top: 44px; overflow: hidden; }
.compare__row { display: grid; gap: 1px; grid-template-columns: 0.8fr 1.2fr 1.2fr; }
.compare__row span { background: #fff; color: #555a60; line-height: 1.5; padding: 20px; }
.compare__row--head span { color: var(--color-dark); font-weight: 800; }

/* Features */
.features { background: var(--color-surface); padding: 88px 0; }
.features__grid article { background: #fff; }
.features h3 { font-size: 1.55rem; letter-spacing: 0; margin: 0 0 12px; }

/* Download */
.download { background: #111; color: #fff; padding: 86px 0; }
.download__layout { align-items: center; display: grid; gap: 42px; grid-template-columns: 0.92fr 1.08fr; }
.download h2 { color: #fff; margin-left: 0; }
.download-card { color: var(--color-dark); flex: 1 1 220px; min-height: 150px; text-decoration: none; }
.download-card:hover { transform: translateY(-2px); }
.download-card img { border-radius: 22%; height: 54px; margin-bottom: 18px; width: 54px; }
.download-card small { color: #69707a; }

/* --- Page layout (privacy, terms) --- */
.page-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 32px;
}
.page-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 0.75rem;
}
.page-content p, .page-content li {
  color: var(--color-text);
  line-height: 1.7;
}
.page-content ol, .page-content ul {
  padding-left: 1.5rem;
}
.page-content ol ol, .page-content ul ul {
  margin: 0.5rem 0;
}
.page-content li {
  margin-bottom: 0.5rem;
}
.page-content a { color: var(--color-link); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.86) 72%);
  }
  .hero__content { justify-content: flex-end; min-height: 720px; padding-bottom: 72px; }
  .intro__grid, .features__grid, .product__layout, .product__layout--reverse, .download__layout, .watch__header, .watch__layout {
    grid-template-columns: 1fr;
  }
  .product__layout--reverse .screens { order: 2; }
  .watch__header { align-items: start; }
  .watch__screens { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 560px; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__row span:first-child { font-weight: 800; }
}

@media (max-width: 560px) {
  .hero__content { min-height: 660px; }
  .pill { width: 100%; }
  .product, .intro, .compare, .features, .download { padding: 64px 0; }
  .screens { min-height: 460px; }
  .screens img { max-width: 220px; width: 54%; }
  .screens--single { min-height: 500px; }
  .screens--single img { max-width: 230px; width: 58%; }
  .watch__screens { gap: 10px; }
  .watch__screens img { border-radius: 22px; }
}
