/* ── Tokens ── */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b68;
  --dim: #9a9a96;
  --line: #e6e6e1;
  --pill: #efefeb;
  --card: #ffffff;
  --mark: #dbeafe;
  --blue: #7fb2ff;
  --green: #22c55e;
  --paper: #f7f3e8;
  --paper-line: #e9e3d2;

  --helv: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--helv);
  -webkit-font-smoothing: antialiased;
  text-align: center;
  overflow-x: hidden;
}
img, svg { display: block; }
.sr-only, .hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

main { position: relative; z-index: 1; padding: 0 16px; }

/* ── Site Header / Logo Banner ── */
.site-header {
  width: 100%;
  background-color: #f6f6f6; 
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 12px 24px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.logo-container {
  display: flex;
  align-items: center;
}

.main-logo {
  height: 40px; 
  width: auto;
  display: block;
}

/* ── New Header Button ── */
.header-btn {
  background-color: #ffffff; /* Matches the bottom social icons */
  color: #464444;
  text-decoration: none;
  font-family: var(--helv);
  font-size: 11.5px; 
  font-weight: 600;
  padding: 0 16px; 
  height: 32px; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px; 
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-btn:active {
  background-color: #d1d1d6; /* Dull grey */
  transform: translateY(1px); /* Little press down effect */
  transition: background-color 0.1s, transform 0.1s; /* Quick snap */
}
/* ── Hero ── */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 48px) 0 40px; 
  display: flex; flex-direction: column; align-items: center;
}

.title {
  margin: 0;
  font-family: var(--helv);
  font-weight: 700;
  font-size: clamp(40px, 7.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -2px;
  text-wrap: balance;
}

.sub {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

.title--hero { cursor: default; }
.title--hero .word { display: inline-block; white-space: nowrap; }
.title--hero .ch {
  display: inline-block;
  transform-origin: 50% 80%;
  transform: translateY(var(--lift, 0px)) scale(var(--grow, 1));
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), color .3s;
  will-change: transform;
}
.title--hero .ch.is-pop { animation: pop-letter .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop-letter {
  0%   { transform: translateY(var(--lift, 0px)) scale(var(--grow, 1)); }
  35%  { transform: translateY(calc(var(--lift, 0px) + 3px)) scale(.9, 1.08); }
  70%  { transform: translateY(calc(var(--lift, 0px) - 4px)) scale(1.06, .96); }
  100% { transform: translateY(var(--lift, 0px)) scale(var(--grow, 1)); }
}
.js .title--hero .ch.is-hidden { opacity: 0; transform: translateY(.45em) rotateX(-60deg); filter: blur(6px); }
.title--hero .ch.is-entering { transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }

.sub {
  background: linear-gradient(100deg, var(--muted) 0%, var(--muted) 40%, #1d1d1b 50%, var(--muted) 60%, var(--muted) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,1)) drop-shadow(0 2px 1px rgba(0,0,0,.08)) drop-shadow(0 8px 18px rgba(0,0,0,.10));
  animation: sweep 7s ease-in-out infinite;
  transition: filter .5s var(--ease), letter-spacing .6s var(--ease);
}
.sub:hover { filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 3px 2px rgba(0,0,0,.12)) drop-shadow(0 12px 26px rgba(0,0,0,.16)); letter-spacing: .01em; }
@keyframes sweep { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }

/* ── macOS Signup UI ── */
.mac-signup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: auto;
}

.mac-signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.mac-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d1d6;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mac-input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.mac-btn {
  width: 100%;
  height: 36px;
  background: #007aff; 
  color: white;
  border: none;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.mac-btn:hover { background: #0056b3; }
.mac-btn:active { background: #004085; }

/* ── MacOS Finder UI ── */
.mac-window {
  width: 100%;
  max-width: 820px;
  margin: 40px auto 0;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mac-titlebar {
  background: #f6f6f6;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.mac-dots {
  display: flex;
  gap: 8px;
}

.mac-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8d8d3;
}

.mac-dots i:nth-child(1) { background: #ff5f57; }
.mac-dots i:nth-child(2) { background: #febc2e; }
.mac-dots i:nth-child(3) { background: #28c840; }

.mac-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mac-body {
  display: flex;
  min-height: 100px;
}

.mac-main {
  flex: 1;
  padding: 24px;
  background: #ffffff;
}

@media (max-width: 640px) {
  .mac-body { min-height: 100px; }
}

/* ── Social pills ── */
.socials {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px 11px 15px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--pill);
  border-radius: 999px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.pill svg { width: 26px; height: 26px; transition: transform .4s var(--ease); }
.pill:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,.25); }
.pill:hover svg { transform: scale(1.15) rotate(-6deg); }
.pill:active { transform: translateY(0) scale(.97); }

/* ── Offer + count ── */
.offer {
  margin: 36px 0 0;
  max-width: 600px;
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.6;
  text-wrap: balance;
}
.offer mark {
  padding: 2px 6px;
  color: inherit;
  background: var(--mark);
  border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.count {
  margin: 22px 0 0;
  display: inline-flex; align-items: center; gap: 10px;
  font: 13.5px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }

/* ── Founders Note ── */
.note-section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(30px, 4vh, 60px) 0 40px; 
  display: flex; flex-direction: column; align-items: center;
}
.window {
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.04);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.window-wrap { width: 100%; max-width: 820px; margin-top: 44px; }
.window:hover { --ty: -6px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.04); }
.window__bar {
  display: flex; gap: 7px;
  padding: 13px 16px;
  background: #f3f3f0;
  border-bottom: 1px solid var(--line);
}
.window__bar i { width: 11px; height: 11px; border-radius: 50%; transition: background .3s; }
.window__bar i:nth-child(1) { background: #ff5f57; } 
.window__bar i:nth-child(2) { background: #febc2e; } 
.window__bar i:nth-child(3) { background: #28c840; } 
.paper {
  --lh: 32px;
  padding: calc(var(--lh) * 1.5) clamp(22px, 6vw, 56px) calc(var(--lh) * 1.5);
  font: 400 clamp(14px, 1.7vw, 16.5px)/var(--lh) var(--mono);
  color: #1a1a1a;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), var(--paper-line) calc(var(--lh) - 1px), var(--paper-line) var(--lh));
  background-position: 0 calc(var(--lh) * 1.5 - 5px);
}
.paper p { margin: 0 0 var(--lh); }

/* ── Premium Hero CTA (Bottom Button) ── */
.hero-cta-wrapper {
  margin-top: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.premium-cta {
  display: flex;
  align-items: center;
  background: var(--card);
  padding: 12px 20px 12px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s;
  gap: 16px;
  max-width: 480px;
}

.premium-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.18), 0 4px 10px -4px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

.premium-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f4fdf7; 
  border-radius: 50%;
  border: 1px solid #dcf6e5;
}

.premium-cta__icon svg {
  width: 26px;
  height: 26px;
}

.premium-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.premium-cta__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.premium-cta__subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.premium-cta__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  margin-left: 8px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.premium-cta__arrow svg {
  width: 20px;
  height: 20px;
}

.premium-cta:hover .premium-cta__arrow {
  transform: translateX(4px);
  color: var(--ink);
}

/* ── Footer ── */
.footer {
  position: relative; z-index: 1;
  padding: 56px 16px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer__icons { display: flex; justify-content: center; gap: 22px; }
.footer__icons a { color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.footer__icons a:hover { color: var(--ink); transform: translateY(-3px) scale(1.1); }
.footer__icons svg { width: 20px; height: 20px; }
.footer__copy { margin: 0; font: 12px var(--mono); letter-spacing: .08em; color: var(--dim); }
.footer__disclaimer {
  max-width: 700px;
  margin: 10px auto 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--dim);
  text-align: center;
  padding: 0 20px;
}

/* ── Scroll reveal ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal-scale { opacity: 0; transform: scale(.92) translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .is-in { opacity: 1; transform: none; }

/* ── Small screens ── */
@media (max-width: 640px) {
  .yt__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .br-desktop { display: none; }
  .title { letter-spacing: -1.5px; }
  .pill { font-size: 17px; padding: 13px 20px 13px 17px; }
  .pill svg { width: 22px; height: 22px; }
  .paper { --lh: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
}

/* ── Modal UI ── */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: center;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-active { opacity: 1; pointer-events: auto; }

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  width: 90%; max-width: 400px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.is-active .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: #f1f1f1; color: var(--muted);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: #e5e5e5; color: var(--ink); }

.modal-title { margin: 0; font-family: var(--helv); font-size: 24px; font-weight: 700; color: var(--ink); }
.modal-sub { margin: 12px 0 28px; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: balance; }

.modal-drive-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 48px;
  background: #111111; color: #ffffff; 
  border-radius: 12px;
  font-family: var(--helv); font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.modal-drive-btn:hover { background: #2a2a2a; transform: translateY(-1px); }

/* ── Upgraded Mac Window Content ── */
.mac-access-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 0;
}

.mac-access-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
}

.mac-access-title {
  margin: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.mac-access-sub {
  margin: 0 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.access-btn-large {
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.access-btn-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.35);
}