/* ==========================================================================
   Frostpad v3 — Authentic macOS Glass Design System
   Zero external fonts or CDN dependencies. Clean, calm, Safari-safe CSS.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --grey2: #86868b;
  --line: rgba(0, 0, 0, .08);
  --accent: #007aff;
  --mint: #63e6c4;
  --sky: #62c3f8;
  --lav: #b79bff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1120px;
  --gutter: 32px;
  --shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 4px 10px rgba(0, 0, 0, .05), 0 18px 40px rgba(20, 30, 60, .10), 0 40px 90px rgba(20, 30, 60, .10);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.h-xl {
  font-size: clamp(52px, 9vw, 104px);
  letter-spacing: -.045em;
  line-height: 1;
}

.h-l {
  font-size: clamp(40px, 6.4vw, 80px);
}

.h-m {
  font-size: clamp(32px, 4.4vw, 56px);
}

.lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  color: var(--grey);
  font-weight: 500;
  letter-spacing: -.02em;
  max-width: 640px;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.grad {
  background: linear-gradient(100deg, #2fbf9b, #2aa2e6 45%, #7b6cf6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section {
  position: relative;
}

.pad {
  padding: clamp(80px, 10vw, 128px) 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink);
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 2px 0 rgba(0, 0, 0, .08);
}

kbd .sp {
  color: var(--grey2);
  font-weight: 400;
  margin-left: 3px;
}

/* ==========================================================================
   Aurora Sky
   ========================================================================== */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .26;
  will-change: transform;
}

.b1 {
  background: var(--mint);
  left: -20vmax;
  top: -24vmax;
  animation: d1 28s ease-in-out infinite alternate;
}

.b2 {
  background: var(--sky);
  right: -24vmax;
  top: -12vmax;
  opacity: .22;
  animation: d2 34s ease-in-out infinite alternate;
}

.b3 {
  background: var(--lav);
  left: 12vmax;
  top: 40vh;
  opacity: .18;
  animation: d3 40s ease-in-out infinite alternate;
}

@keyframes d1 {
  to {
    transform: translate(16vmax, 12vmax) scale(1.12);
  }
}

@keyframes d2 {
  to {
    transform: translate(-14vmax, 18vmax) scale(.92);
  }
}

@keyframes d3 {
  to {
    transform: translate(12vmax, -16vmax) scale(1.18);
  }
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 52px;
  transition: box-shadow .4s ease;
}

.nav.solid {
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: flex;
  background: rgba(0, 0, 0, .05);
  border-radius: 999px;
  padding: 2px;
}

.lang button {
  min-height: 32px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
}

.pill:hover {
  text-decoration: none;
  background: #0066d6;
}

/* ==========================================================================
   App Store CTA & Hero
   ========================================================================== */

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 12px 24px 12px 20px;
  transition: transform .3s var(--ease), box-shadow .3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.store:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store span {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.store small {
  font-size: 12px;
  font-weight: 500;
  opacity: .85;
  letter-spacing: 0;
}

.store b {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.price {
  margin-top: 16px;
  font-size: 15px;
  color: var(--grey);
}

.price b {
  color: var(--ink);
  font-weight: 600;
}

.h4,
.h5,
.h6 {
  display: block;
}

/* Hero Floating Glass Notes */
.glass {
  position: relative;
  border-radius: 22px;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.note {
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
}

.note .h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.note ul {
  list-style: none;
}

.note li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 1px 0;
}

.cb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, .28);
  flex: none;
}

.cb.on {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

li.done {
  color: var(--grey2);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 22px;
  filter: drop-shadow(0 12px 24px rgba(40, 80, 140, .22));
}

.hero .lead {
  margin: 22px auto 38px;
}

.float {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fn {
  position: absolute;
  width: 230px;
  will-change: transform;
}

.fn .glass {
  animation: bob 9s ease-in-out infinite;
}

.fn1 {
  left: 4%;
  top: 20%;
}

.fn1 .glass {
  transform: rotate(-5deg);
}

.fn2 {
  right: 5%;
  top: 15%;
  width: 210px;
}

.fn2 .glass {
  animation-delay: -3s;
}

.fn3 {
  right: 9%;
  bottom: 8%;
  width: 200px;
}

.fn3 .glass {
  animation-delay: -6s;
}

.fn4 {
  left: 8%;
  bottom: 10%;
  width: 180px;
}

.fn4 .glass {
  animation-delay: -4.5s;
}

.t-yellow {
  background: rgba(255, 214, 10, .16);
}

.t-mint {
  background: rgba(0, 199, 190, .13);
}

.t-pink {
  background: rgba(255, 55, 95, .10);
}

.t-purple {
  background: rgba(175, 82, 222, .11);
}

@keyframes bob {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

/* Scroll Reveal */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}

.hero .rv,
.rv.in {
  opacity: 1;
  transform: none;
}

.rv.d1 {
  transition-delay: .08s;
}

.rv.d2 {
  transition-delay: .16s;
}

.rv.d3 {
  transition-delay: .24s;
}

/* ==========================================================================
   Section 2: Unified Sticky MacBook Showcase & Interactive Playground
   ========================================================================== */

.macstory {
  height: 560vh;
  position: relative;
}

.macstage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 62px var(--gutter) 22px;
  overflow: hidden;
}

.mac-captions {
  position: relative;
  height: 76px;
  width: 100%;
  max-width: 780px;
  text-align: center;
  margin-bottom: 14px;
}

.mac-cap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}

.mac-cap.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mac-cap h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 6px;
}

.mac-cap p {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--grey);
  margin: 0;
}

/* MacBook Hardware Frame */
.macwrap {
  width: min(820px, 100%, calc((100svh - 235px) * 1.54));
  margin: 0 auto;
}

.mac {
  transform: translate3d(0, var(--my, 0px), 0) scale(var(--ms, 1));
  opacity: var(--mo, 1);
  will-change: transform, opacity;
}

.lid {
  position: relative;
  transform-origin: 50% 100%;
  transform: perspective(60000px) rotateX(var(--lid, 0deg));
  opacity: var(--lid-o, 1);
  will-change: transform, opacity;
}

.lid-front {
  position: relative;
  z-index: 2;
  background: #0e0e10;
  border-radius: 18px 18px 2px 2px;
  padding: 1.7% 1.7% 2.4%;
  box-shadow: inset 0 0 0 1.5px #383a40, 0 0 0 1px #9da1aa;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.notch {
  position: absolute;
  left: 50%;
  top: 1.7%;
  width: 11%;
  height: 3.4%;
  transform: translateX(-50%);
  background: #0e0e10;
  border-radius: 0 0 10px 10px;
  z-index: 45;
  pointer-events: none;
}

.screen-veil {
  position: absolute;
  inset: 0;
  background: #07080c;
  opacity: var(--screen-dim, 0);
  pointer-events: none;
  z-index: 50;
}

.base {
  position: relative;
  width: 100%;
  margin-left: 0;
  height: clamp(11px, 1.55vw, 15px);
  border-radius: 2px 2px 11px 11px;
  border-top: 1.5px solid #26282e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.05) 30%, rgba(0, 0, 0, 0.06) 72%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(90deg, #9fa3ac 0%, #e4e6eb 3.5%, #cfd3da 10%, #eceef2 50%, #cfd3da 90%, #e4e6eb 96.5%, #9fa3ac 100%);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22), 0 20px 42px -14px rgba(15, 23, 42, 0.28);
}

.base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 13%;
  height: 44%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #9ca0a9, #c9ccd4);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.base::after {
  content: "";
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  bottom: -2px;
  height: 2px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, rgba(35, 38, 48, 0.5) 8%, rgba(35, 38, 48, 0.5) 92%, transparent);
}

.closed-lid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(6px, 0.8vw, 8px);
  border-radius: 5px 5px 0 0;
  border-bottom: 1px solid rgba(25, 28, 36, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(90deg, #9ca0a9 0%, #e1e3e8 4%, #cdd1d8 12%, #eaecf0 50%, #cdd1d8 88%, #e1e3e8 96%, #9ca0a9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 -1px 4px rgba(15, 23, 42, 0.10);
  pointer-events: none;
  transform-origin: 50% 100%;
  opacity: var(--closed-lip, 0);
  transform: scaleY(var(--closed-lip-s, 0));
}

/* MacBook Screen & Wallpaper */
.screen,
.screen#mac-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1.2% / 1.9%;
  overflow: hidden;
  container-type: inline-size;
  background: linear-gradient(135deg, #3c73eb 0%, #69b8f8 45%, #ffd5ba 80%, #f7b2d9 100%);
}

[data-mac-theme="dark"] .screen,
.screen#mac-screen[data-mac-theme="dark"] {
  background: linear-gradient(135deg, #09132e 0%, #182a63 48%, #3d296b 82%, #193b5c 100%);
}

.mac-wall-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  pointer-events: none;
}

#mac-screen[data-mac-theme="light"] .wall-night {
  display: none;
}

#mac-screen[data-mac-theme="dark"] .wall-day {
  display: none;
}

/* macOS Menu Bar inside MacBook */
.menubar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  color: #161820;
  background: rgba(255, 255, 255, 0.44);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 40;
  user-select: none;
  -webkit-user-select: none;
}

[data-mac-theme="dark"] .menubar {
  background: rgba(14, 18, 32, 0.58);
  color: #f4f6fb;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.mb-l,
.mb-r {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mb-l b {
  font-weight: 700;
}

.mb-l span,
.mb-r span {
  white-space: nowrap;
}

.mb-r {
  position: relative;
  gap: 8px;
}

.mb-apple {
  width: 11px;
  height: 13px;
  flex: none;
}

.mb-wifi {
  width: 13px;
  height: 13px;
  flex: none;
}

.mb-bat {
  width: 17px;
  height: 11px;
  flex: none;
}

.mb-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mb-notes-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mb-fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mb-fp-btn svg {
  width: 13px;
  height: 13px;
}

.mb-fp-btn:hover,
.mb-fp-btn[aria-expanded="true"],
.mb-fp-btn.is-open {
  background: rgba(0, 0, 0, 0.10);
}

[data-mac-theme="dark"] .mb-fp-btn:hover,
[data-mac-theme="dark"] .mb-fp-btn[aria-expanded="true"],
[data-mac-theme="dark"] .mb-fp-btn.is-open {
  background: rgba(255, 255, 255, 0.18);
}

/* Menu Bar Dropdown Popover */
#mb-dropdown.mb-dropdown,
.mb-dropdown {
  position: absolute;
  top: 32px;
  right: 10px;
  min-width: 212px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(248, 249, 252, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 32px rgba(15, 20, 35, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.10);
  color: #161820;
  z-index: 60;
}

[data-mac-theme="dark"] #mb-dropdown.mb-dropdown,
[data-mac-theme="dark"] .mb-dropdown {
  background: rgba(26, 30, 44, 0.90);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.52), 0 0 0 0.5px rgba(255, 255, 255, 0.10);
  color: #f4f6fb;
}

.mb-dropdown hr,
.mb-sep {
  height: 1px;
  border: 0;
  background: rgba(0, 0, 0, 0.09);
  margin: 4px 6px;
}

[data-mac-theme="dark"] .mb-dropdown hr,
[data-mac-theme="dark"] .mb-sep {
  background: rgba(255, 255, 255, 0.12);
}

.mb-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.mb-item:hover,
.mb-item:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.mb-item kbd,
.mb-item .mb-kbd {
  background: none;
  box-shadow: none;
  min-width: 0;
  height: auto;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: inherit;
  opacity: .6;
}

/* Interactive Desktop Notes Container inside MacBook */
.mac-notes,
.mac-notes#mac-notes {
  position: absolute;
  inset: 28px 0 46px;
  z-index: 15;
}

.fp-note {
  position: absolute;
  border-radius: 18px;
  border: 1px solid var(--note-border, rgba(255, 255, 255, 0.62));
  background: var(--note-bg, rgba(255, 255, 255, 0.48));
  -webkit-backdrop-filter: blur(var(--note-blur, 18px)) saturate(175%);
  backdrop-filter: blur(var(--note-blur, 18px)) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 24px rgba(15, 20, 35, 0.12);
  color: #16181f;
  font-size: 12.5px;
  line-height: 1.44;
  transition: opacity 0.35s ease, transform 0.35s var(--ease), box-shadow 0.2s ease;
  will-change: transform;
}

#note-main {
  opacity: var(--main-o, 1);
  transform: translateY(var(--main-y, 0px));
}

#mac-screen[data-mac-theme="light"] .fp-note.is-ultra-clear {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.65);
}

[data-mac-theme="dark"] .fp-note {
  border-color: var(--note-border, rgba(255, 255, 255, 0.20));
  background: var(--note-bg, rgba(28, 33, 50, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.32);
  color: #f3f5fa;
}

/* Tint fallbacks before JS sets --note-bg */
.fp-note[data-tint="yellow"] {
  --note-bg: rgba(254, 240, 138, 0.48);
}

.fp-note[data-tint="orange"] {
  --note-bg: rgba(253, 186, 116, 0.46);
}

.fp-note[data-tint="pink"] {
  --note-bg: rgba(249, 168, 212, 0.44);
}

.fp-note[data-tint="purple"] {
  --note-bg: rgba(216, 180, 254, 0.44);
}

.fp-note[data-tint="blue"] {
  --note-bg: rgba(147, 197, 253, 0.46);
}

.fp-note[data-tint="mint"] {
  --note-bg: rgba(153, 246, 228, 0.46);
}

.fp-note[data-tint="green"] {
  --note-bg: rgba(134, 239, 172, 0.46);
}

[data-mac-theme="dark"] .fp-note[data-tint="yellow"] {
  --note-bg: rgba(113, 94, 24, 0.48);
}

[data-mac-theme="dark"] .fp-note[data-tint="orange"] {
  --note-bg: rgba(124, 65, 24, 0.48);
}

[data-mac-theme="dark"] .fp-note[data-tint="pink"] {
  --note-bg: rgba(122, 42, 82, 0.48);
}

[data-mac-theme="dark"] .fp-note[data-tint="purple"] {
  --note-bg: rgba(82, 48, 122, 0.48);
}

[data-mac-theme="dark"] .fp-note[data-tint="blue"] {
  --note-bg: rgba(32, 72, 130, 0.48);
}

[data-mac-theme="dark"] .fp-note[data-tint="mint"] {
  --note-bg: rgba(22, 92, 88, 0.48);
}

[data-mac-theme="dark"] .fp-note[data-tint="green"] {
  --note-bg: rgba(28, 96, 52, 0.48);
}

.macstory.is-interactive .fp-note.is-selected {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 0 0 1.5px rgba(0, 122, 255, 0.6), 0 14px 32px rgba(15, 20, 35, 0.18);
  z-index: 26;
}

.macstory.is-interactive [data-mac-theme="dark"] .fp-note.is-selected {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1.5px rgba(10, 132, 255, 0.78), 0 16px 36px rgba(0, 0, 0, 0.46);
}

.fp-note.is-dragging {
  z-index: 35;
  transition: box-shadow 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 18px 42px rgba(10, 15, 30, 0.24);
}

.fp-note.is-secondary {
  opacity: var(--side-o, 0);
  transform: translateY(var(--side-y, 14px));
}

.fp-note.is-hidden-notes {
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(0.96);
}

.fp-note.is-peeking {
  animation: fp-peek 0.6s var(--ease);
}

@keyframes fp-peek {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.03);
    box-shadow: 0 0 0 2.5px var(--accent), 0 18px 38px rgba(0, 122, 255, 0.28);
  }

  100% {
    transform: scale(1);
  }
}

.fp-handle {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  border-radius: 18px 18px 0 0;
  touch-action: none;
}

.fp-note.is-dragging .fp-handle {
  cursor: grabbing;
}

.fp-grip {
  width: 30px;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(20, 24, 36, 0.22);
  opacity: 0;
  transition: opacity 0.18s ease;
}

[data-mac-theme="dark"] .fp-grip {
  background: rgba(255, 255, 255, 0.30);
}

.fp-note:hover .fp-grip,
.fp-note.is-selected .fp-grip,
.fp-note.is-dragging .fp-grip {
  opacity: 1;
}

.fp-close-btn {
  position: absolute;
  top: 4px;
  right: 9px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(128, 136, 156, 0.24);
  color: inherit;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.fp-note:hover .fp-close-btn,
.fp-note:focus-within .fp-close-btn,
.fp-close-btn:focus-visible {
  opacity: 0.85;
}

.fp-close-btn:hover {
  opacity: 1;
  background: rgba(128, 136, 156, 0.38);
}

.fp-body {
  padding: 2px 13px 13px;
  font-size: 12.5px;
  line-height: 1.44;
  user-select: text;
}

.fp-note-title {
  margin: 0 0 5px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.24;
  color: inherit;
}

.fp-checklist {
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-check-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 1.5px 0;
  font-size: 12px;
  line-height: 1.38;
}

.fp-check {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(22, 24, 31, 0.34);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.14s ease, transform 0.12s ease;
}

[data-mac-theme="dark"] .fp-check {
  border-color: rgba(243, 245, 250, 0.42);
}

.fp-check:hover {
  border-color: var(--accent);
}

.fp-check:active {
  transform: scale(0.9);
}

.fp-check svg {
  width: 8.5px;
  height: 8.5px;
  opacity: 0;
  color: #fff;
  transition: opacity 0.12s ease;
}

.fp-check.is-checked,
.fp-check[aria-pressed="true"],
.fp-check-item.is-done .fp-check {
  background: var(--accent);
  border-color: var(--accent);
}

.fp-check.is-checked svg,
.fp-check[aria-pressed="true"] svg,
.fp-check-item.is-done .fp-check svg {
  opacity: 1;
}

.fp-check.is-checked:empty::after,
.fp-check[aria-pressed="true"]:empty::after,
.fp-check-item.is-done .fp-check:empty::after {
  content: "";
  width: 4px;
  height: 7px;
  border-right: 1.7px solid #fff;
  border-bottom: 1.7px solid #fff;
  transform: rotate(42deg) translate(-0.5px, -0.5px);
}

.fp-check-item.is-done span:not(.fp-check) {
  text-decoration: line-through;
  opacity: 0.56;
}

.fp-editable {
  outline: none;
  min-height: 36px;
  cursor: text;
}

.fp-editable p {
  margin: 0 0 4px;
}

.fp-editable p:last-child {
  margin-bottom: 0;
}

.fp-editable ul,
.fp-editable ol {
  margin: 3px 0 0;
  padding-left: 16px;
}

.fp-editable a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fp-editable.is-autotyping::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 1px;
  animation: fp-blink 0.8s steps(1) infinite;
}

@keyframes fp-blink {
  50% {
    opacity: 0;
  }
}

/* macOS Dock inside MacBook */
.dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  z-index: 30;
}

[data-mac-theme="dark"] .dock {
  background: rgba(18, 22, 36, 0.44);
  border-color: rgba(255, 255, 255, 0.16);
}

.dock-ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dock-ic svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.dock-ic:nth-child(1) {
  background: linear-gradient(160deg, #6ad3ff, #2a7bf0);
}

.dock-ic:nth-child(2) {
  background: linear-gradient(160deg, #5ce1e6, #0a84ff);
}

.dock-ic:nth-child(3) {
  background: linear-gradient(160deg, #7cf1a2, #22b45a);
}

.dock-ic:nth-child(4) {
  background: linear-gradient(160deg, #ffd36b, #ff9a2e);
}

.dock-ic:nth-child(5) {
  background: linear-gradient(160deg, #ff8db0, #e8336a);
}

.dock-ic:nth-child(6) {
  background: linear-gradient(160deg, #c9a6ff, #7b4fe0);
}

.dock-ic:nth-child(7) {
  background: linear-gradient(160deg, #8ae6ff, #7388ff);
}

/* Floating Glass Control Bar below MacBook */
#mac-controls.mac-controls,
.mac-controls {
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0s linear 0.55s;
}

.macstory.is-interactive #mac-controls,
.macstory.is-interactive .mac-controls {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0s linear 0s;
}

.mc-sliders {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.mc-ctl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  white-space: nowrap;
}

.mc-ctl label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mc-ctl output {
  font-variant-numeric: tabular-nums;
  width: 4.4ch;
  text-align: right;
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
}

.mc-ctl input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 22px;
  background: linear-gradient(to right, var(--accent) var(--p, 50%), rgba(0, 0, 0, 0.12) var(--p, 50%)) center / 100% 4px no-repeat;
  border-radius: 999px;
  outline-offset: 2px;
  cursor: pointer;
  touch-action: pan-y;
}

.mc-ctl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  cursor: grab;
  transition: transform 0.12s ease;
}

.mc-ctl input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.mc-ctl input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  cursor: grab;
}

.mc-swatches {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
}

#mc-swatches.swatches,
.swatches {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.swatch {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 24, 36, 0.16);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.swatch:hover {
  transform: scale(1.14);
}

.swatch[aria-pressed="true"],
.swatch.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent);
  transform: scale(1.08);
}

.swatch[data-tint="none"] {
  background: linear-gradient(135deg, #ffffff 0%, #dfe5ef 100%);
}

.swatch[data-tint="yellow"] {
  background: #fde68a;
}

.swatch[data-tint="orange"] {
  background: #fdba74;
}

.swatch[data-tint="pink"] {
  background: #f9a8d4;
}

.swatch[data-tint="purple"] {
  background: #d8b4fe;
}

.swatch[data-tint="blue"] {
  background: #93c5fd;
}

.swatch[data-tint="mint"] {
  background: #99f6e4;
}

.swatch[data-tint="green"] {
  background: #86efac;
}

.mc-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mc-pill,
.mc-pill-primary {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, transform 0.12s ease;
}

.mc-pill {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.mc-pill:hover {
  border-color: rgba(0, 0, 0, 0.24);
}

.mc-pill[aria-pressed="true"],
.mc-pill.is-active {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}

.mc-pill-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.mc-pill-primary:hover {
  background: #0066d6;
  border-color: #0066d6;
}

.mc-pill:active,
.mc-pill-primary:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Section 3: Unified Overview
   ========================================================================== */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.ov-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), 0 10px 26px rgba(20, 30, 60, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ov-card h3 {
  font-size: 18px;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.ov-card p {
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.45;
}

.ov-viz {
  height: 136px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4ff 0%, #f5effb 52%, #fef4ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  position: relative;
}

/* Overview Micro-visuals */
.ov-mini,
.ov-note {
  width: 100%;
  max-width: 230px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.08);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

.ov-mini ul,
.ov-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ov-mini li,
.ov-note li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 1.5px 0;
}

.ov-mini .cb,
.ov-note .cb {
  width: 13px;
  height: 13px;
  flex: none;
}

.ov-md {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.ov-md kbd {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 10.5px;
  border-radius: 5px;
}

.ov-table,
.mt {
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .09);
  width: 100%;
}

.ov-table th,
.ov-table td,
.mt th,
.mt td {
  padding: 4px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.ov-table th,
.mt th {
  background: rgba(0, 0, 0, .04);
  font-weight: 600;
}

.ov-table tr:last-child td,
.mt tr:last-child td {
  border-bottom: 0;
}

.ov-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ov-search {
  width: 100%;
  max-width: 250px;
  padding: 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.10);
}

.ov-search-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.045);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.ov-search-bar svg {
  width: 13px;
  height: 13px;
  color: var(--grey);
  flex: none;
}

.ov-search-bar span {
  flex: 1;
}

.ov-search-bar kbd {
  min-width: 0;
  height: 19px;
  padding: 0 5px;
  font-size: 10px;
}

.ov-search-hits {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ov-search-hits li {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-search-hits li:first-child {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.ov-layers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 210px;
}

.ov-layer {
  width: 100%;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(20, 30, 60, 0.07);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--grey);
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
}

.ov-layer.is-top {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.11);
  transform: scale(1.03);
}

.ov-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ov-shortcut kbd {
  min-width: 72px;
  height: 38px;
  font-size: 16px;
  border-radius: 10px;
}

.ov-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(20, 30, 60, 0.07);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.ov-share {
  width: 100%;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ov-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--grey);
}

.ov-card-export {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 230, 196, 0.42), rgba(98, 195, 248, 0.38) 52%, rgba(183, 155, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.09);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ov-card-export strong {
  font-size: 13.5px;
}

.ov-card-export span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.68);
}

/* Promises Strip inside Overview */
.promises-strip {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 72px;
  list-style: none;
  text-align: left;
}

.promises-strip .promises {
  margin-top: 0;
}

.promises li {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.promises-strip .promises li {
  border-top: 0;
  padding-top: 0;
}

.pi {
  display: block;
  margin-bottom: 14px;
}

.pi svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--grey);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promises b {
  display: block;
  font-size: 17px;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 4px;
}

.promises span {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.45;
}

/* ==========================================================================
   Section 4 & 5: FAQ & Finale & Footer
   ========================================================================== */

.faqwrap {
  max-width: 820px;
}

.faq {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.faq details {
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--grey);
  border-bottom: 2px solid var(--grey);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq details p {
  color: var(--grey);
  font-size: 17px;
  line-height: 1.55;
  padding: 0 32px 24px 0;
  max-width: 680px;
}

.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.finale {
  text-align: center;
}

.finale .hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
}

.finale .lead {
  margin: 20px auto 40px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  font-size: 12px;
  color: var(--grey);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer nav {
  display: flex;
  gap: 22px;
  order: 2;
}

footer a {
  color: var(--grey);
}

footer a:hover {
  color: var(--ink);
}

.social {
  display: flex;
  gap: 6px;
  order: 3;
}

.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: color .2s ease;
}

.social a:hover {
  background: rgba(0, 0, 0, .05);
  text-decoration: none;
}

.social svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promises {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }

  .fn1,
  .fn4 {
    left: -40px;
  }

  .fn2,
  .fn3 {
    right: -50px;
  }
}

@media (max-width: 734px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .pad {
    padding: 72px 0;
  }

  .h-xl {
    font-size: clamp(44px, 13vw, 60px);
  }

  .h-l {
    font-size: clamp(34px, 10vw, 44px);
  }

  .h-m {
    font-size: clamp(30px, 9vw, 40px);
  }

  .lead {
    font-size: 18px;
    line-height: 1.4;
  }

  .nav {
    height: 48px;
  }

  .nav .pill {
    display: none;
  }

  .brand {
    font-size: 16px;
  }

  /* Hero */
  .float {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 112px 0 72px;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
    border-radius: 19px;
    margin-bottom: 20px;
  }

  .hero .lead {
    margin: 18px auto 30px;
    max-width: 340px;
  }

  .store {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 14px 20px;
    border-radius: 14px;
  }

  .store b {
    font-size: 20px;
  }

  .price {
    font-size: 14px;
  }

  /* Unified MacBook Showcase on Mobile */
  .macstory {
    height: auto;
  }

  .macstage {
    position: relative;
    min-height: 0;
    padding: 72px var(--gutter) 40px;
  }

  .mac-captions {
    height: 96px;
  }

  .macwrap {
    width: 100%;
  }

  .base {
    width: 100%;
    margin-left: 0;
    height: 10px;
  }

  .menubar {
    height: 24px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .mb-l {
    gap: 7px;
  }

  .mb-l span:nth-child(n+4) {
    display: none;
  }

  .mac-notes,
  .mac-notes#mac-notes {
    inset: 24px 0 40px;
  }

  .fp-note.is-secondary:not(.is-spawned) {
    display: none;
  }

  .fp-note {
    max-width: 88%;
    font-size: 11.5px;
  }

  .fp-note .fp-body {
    padding: 2px 11px 9px;
  }

  .fp-note .fp-note-title {
    font-size: 13.5px;
    margin-bottom: 3px;
  }

  .fp-note:first-child:not(.is-moved) {
    width: 88% !important;
    left: 6% !important;
    top: 5% !important;
  }

  #mac-controls.mac-controls,
  .mac-controls {
    border-radius: 20px;
    padding: 12px 14px;
    gap: 10px 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* Promises & Finale & Footer */
  .promises {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .finale .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  footer .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  footer nav {
    gap: 24px;
  }

  footer a {
    padding: 10px 0;
  }

  .social {
    order: 0;
  }

  .social a {
    padding: 0;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {

  .screen,
  .screen#mac-screen {
    aspect-ratio: 4 / 3;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
  }

  .ov-card {
    padding: 18px;
  }

  .promises-strip {
    margin-top: 40px;
    padding-top: 30px;
  }

  .promises {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 540px) {
  .dock {
    display: none;
  }

  .mac-notes,
  .mac-notes#mac-notes {
    inset: 24px 0 8px;
  }
}

@media (max-width: 380px) {
  .h-xl {
    font-size: 44px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }

  .macstory {
    height: auto;
  }

  .macstage {
    position: relative;
    min-height: 0;
    padding: 110px var(--gutter) 40px;
  }

  .macwrap {
    width: min(820px, 100%);
  }

  #mac-controls.mac-controls,
  .mac-controls {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}
/* Official Apple badge */
.store-badge { display: inline-block; line-height: 0; transition: transform .2s ease, opacity .2s ease; }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-1px); opacity: .9; }
@media (max-width: 600px) { .store-badge img { height: 46px; } }

/* ==========================================================================
   Micro-Animationen
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Überschriften: weich scharfstellen */
  .h-l.rv, .h-xl.rv { filter: blur(8px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .h-l.rv.in, .h-xl.rv.in { filter: none; }

  /* Feature-Karten: anheben beim Hover */
  .ov-card { transition: opacity .8s var(--ease), transform .9s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease); }
  .ov-card:hover { translate: 0 -4px; box-shadow: 0 4px 10px rgba(0,0,0,.03), 0 22px 44px rgba(20,30,60,.10); }
  .ov-card .ov-viz > * { transition: scale .45s var(--ease); }
  .ov-card:hover .ov-viz > * { scale: 1.025; }

  /* Karte 1: Haken ploppen nacheinander, Markdown-Chips fliegen ein */
  .ov-card .cb.on { scale: 0; transition: scale .45s cubic-bezier(.34,1.56,.64,1); }
  .ov-card.in .cb.on { scale: 1; }
  .ov-card.in li:nth-child(1) .cb.on { transition-delay: .45s; }
  .ov-card.in li:nth-child(2) .cb.on { transition-delay: .7s; }
  .ov-md kbd { opacity: 0; translate: 0 8px; transition: opacity .5s var(--ease), translate .5s var(--ease), background .2s; }
  .ov-card.in .ov-md kbd { opacity: 1; translate: 0 0; }
  .ov-card.in .ov-md kbd:nth-child(2) { transition-delay: .08s; }
  .ov-card.in .ov-md kbd:nth-child(3) { transition-delay: .16s; }
  .ov-card.in .ov-md kbd:nth-child(4) { transition-delay: .24s; }
  .ov-card.in .ov-md kbd:nth-child(5) { transition-delay: .32s; }

  /* Karte 2: Tabellenzeilen gleiten rein */
  .ov-table tbody tr { opacity: 0; translate: -10px 0; transition: opacity .5s var(--ease), translate .5s var(--ease); }
  .ov-card.in .ov-table tbody tr { opacity: 1; translate: 0 0; }
  .ov-card.in .ov-table tbody tr:nth-child(1) { transition-delay: .35s; }
  .ov-card.in .ov-table tbody tr:nth-child(2) { transition-delay: .5s; }

  /* Karte 3: Suchtreffer erscheinen nach dem Tippen */
  .ov-search-hits li { opacity: 0; translate: 0 6px; transition: opacity .45s var(--ease), translate .45s var(--ease); }
  .ov-search.typed .ov-search-hits li { opacity: 1; translate: 0 0; }
  .ov-search.typed .ov-search-hits li:nth-child(2) { transition-delay: .1s; }
  .ov-search-bar span.typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: fp-caret 1s steps(1) infinite; }
  @keyframes fp-caret { 50% { opacity: 0; } }

  /* Karte 4: Ebenen fächern sich auf */
  .ov-layer { transition: translate .5s var(--ease), opacity .5s var(--ease); }
  .ov-card:not(.in) .ov-layer { translate: 0 10px; opacity: 0; }
  .ov-card.in .ov-layer:nth-child(2) { transition-delay: .1s; }
  .ov-card.in .ov-layer:nth-child(3) { transition-delay: .2s; }
  .ov-card:hover .ov-layer.is-top { translate: 0 -3px; }

  /* Karte 5: Taste wird regelmäßig „gedrückt“ */
  .ov-shortcut kbd { animation: fp-press 3.2s var(--ease) infinite; animation-delay: 1s; }
  @keyframes fp-press { 0%, 80%, 100% { translate: 0 0; box-shadow: inherit; } 86% { translate: 0 2px; filter: brightness(.94); } }
  .ov-shortcut .ov-pill { animation: fp-pill 3.2s var(--ease) infinite; animation-delay: 1s; }
  @keyframes fp-pill { 0%, 84%, 100% { scale: 1; } 90% { scale: 1.05; } }

  /* Karte 6: Export-Karte schwebt */
  .ov-card-export { animation: fp-float 5s ease-in-out infinite; }
  @keyframes fp-float { 50% { translate: 0 -5px; } }

  /* Versprechen: Icons zeichnen sich */
  .pi svg * { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.2s var(--ease) .2s; }
  .rv.in .pi svg * { stroke-dashoffset: 0; }
  .promises li .pi { transition: scale .3s var(--ease); }
  .promises li:hover .pi { scale: 1.1; }

  /* Icons: sanftes Schweben, Kippen beim Hover */
  .hero-icon { animation: fp-float 6s ease-in-out infinite; transition: rotate .4s var(--ease), scale .4s var(--ease); }
  .hero-icon:hover { rotate: -6deg; scale: 1.06; }

  /* Buttons & Links */
  .store-badge { transition: translate .25s var(--ease), filter .25s var(--ease); }
  .store-badge:hover { transform: none; opacity: 1; translate: 0 -2px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
  .store-badge:active { translate: 0 0; scale: .98; }
  .social a { transition: translate .25s var(--ease), color .25s; }
  .social a:hover { translate: 0 -2px; }
  .swatch { transition: scale .2s var(--ease), box-shadow .2s var(--ease); }
  .swatch:hover { scale: 1.15; }
  .swatch:active { scale: .92; }
  .faq summary { transition: color .2s; }
  .faq summary:hover { color: var(--accent); }
  .faq details { transition: background .3s; }
}
