/* macify.whiledo.xyz: an Apple product page, light, with the system font stack and Liquid Glass accents. */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #fff;
  --bg-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.1);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --radius: 28px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --golden: linear-gradient(160deg, #f6a15b 0%, #e2715f 26%, #8d5a9e 58%, #2c3a72 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 2px; font-size: 0.8em; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 44px); margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- the global nav: a thin translucent bar, as on apple.com ------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 253, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 48px; }
.nav .brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav .brand:hover { text-decoration: none; }
.nav .brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; }
.nav .links a { color: var(--ink); opacity: 0.8; }
.nav .links a:hover { opacity: 1; text-decoration: none; }
.nav .get { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 980px; background: var(--blue); color: #fff; }
.nav .get:hover { background: var(--blue-hover); text-decoration: none; }
@media (max-width: 640px) { .nav .links a:not(.keep) { display: none; } .nav .wrap { gap: 14px; } }

/* ---- buttons --------------------------------------------------------------------------------------------- */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 500; }
.button:hover { background: var(--blue-hover); text-decoration: none; }
.button svg { width: 18px; height: 18px; }
.button.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.button.ghost:hover { background: rgba(0, 113, 227, 0.06); }
.more { font-size: 17px; }
.more::after { content: " ›"; }

/* ---- hero ------------------------------------------------------------------------------------------------- */
.hero { text-align: center; padding: 72px 0 0; overflow: hidden; }
.hero .eyebrow { font-size: 21px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.hero h1 { font: 700 clamp(56px, 11vw, 112px)/1.02 var(--display); letter-spacing: -0.045em; margin: 0; background: var(--golden); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font: 600 clamp(21px, 3vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; margin: 14px auto 28px; max-width: 760px; }
.hero .fine { color: var(--ink-3); font-size: 14px; margin: 14px 0 0; }

/* the desktop: a Golden Gate wallpaper, a menu bar, a Control Center piece and a glass Dock, all CSS */
.desk { position: relative; margin: 56px auto 0; width: min(1080px, 100% - 44px); aspect-ratio: 16 / 9.4; border-radius: 22px 22px 0 0; overflow: hidden; background: url("img/wall.svg") center / cover, var(--golden); box-shadow: 0 40px 90px -30px rgba(44, 58, 114, 0.55); }
.desk .bar { position: absolute; inset: 0 0 auto 0; height: 4.2%; min-height: 20px; display: flex; align-items: center; gap: 2.2%; padding: 0 1.8%; color: #fff; font-size: clamp(9px, 1.15vw, 13px); font-weight: 600; background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.desk .bar span { opacity: 0.92; font-weight: 500; }
.desk .bar b { font-weight: 700; }
.desk .bar .right { margin-left: auto; display: flex; gap: 1.6vw; }
.glass { background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.5), inset 1.5px 1.5px 1px -0.5px rgba(255, 255, 255, 0.9), inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.45), 0 12px 30px rgba(0, 0, 0, 0.18); }
.desk .dock { position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 0.9vw; padding: 0.8vw; border-radius: 2vw; }
.desk .dock img, .desk .dock i { width: clamp(28px, 5.2vw, 58px); height: clamp(28px, 5.2vw, 58px); border-radius: 23%; flex: none; transition: transform 0.25s cubic-bezier(.2,.9,.3,1.3); transform-origin: bottom; }
.desk .dock i { background: linear-gradient(180deg, var(--a), var(--b)); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25); display: grid; place-items: center; color: #fff; font-style: normal; }
.desk .dock i svg { width: 56%; height: 56%; }
.desk .dock :hover { transform: scale(1.35) translateY(-8%); }
.desk .dock .sep { width: 1px; height: clamp(28px, 5.2vw, 58px); background: rgba(255, 255, 255, 0.4); border-radius: 0; }
.desk .cc { position: absolute; right: 2%; top: 7.5%; width: 27%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7vw; }
.desk .cc > div { border-radius: 1.6vw; padding: 0.9vw 1.1vw; color: #fff; font-size: clamp(8px, 1vw, 12px); font-weight: 600; display: flex; align-items: center; gap: 0.7vw; min-height: 3.6vw; }
.desk .cc .dot { width: 2.2vw; height: 2.2vw; border-radius: 50%; background: var(--blue); flex: none; display: grid; place-items: center; }
.desk .cc .dot svg { width: 58%; height: 58%; }
.desk .cc .wide { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0.5vw; }
.desk .cc .track { height: 1.3vw; border-radius: 1vw; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.desk .cc .track i { display: block; height: 100%; width: 62%; background: #fff; border-radius: 1vw; }
@media (max-width: 560px) { .desk .cc { display: none; } }
.desk .island { position: absolute; left: 50%; top: 6.6%; transform: translateX(-50%); width: 21%; height: 5%; border-radius: 999px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 1%; }
.desk .island img { height: 70%; aspect-ratio: 1; border-radius: 30%; object-fit: cover; }
.desk .island .wave { display: flex; gap: 2px; align-items: center; height: 50%; margin-right: 4%; }
.desk .island .wave b { width: 2px; background: #ff9f0a; border-radius: 1px; animation: wave 1s ease-in-out infinite; }
.desk .island .wave b:nth-child(2) { animation-delay: -0.3s; } .desk .island .wave b:nth-child(3) { animation-delay: -0.6s; } .desk .island .wave b:nth-child(4) { animation-delay: -0.15s; }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* ---- sections --------------------------------------------------------------------------------------------- */
section { padding: 110px 0; }
section.alt { background: var(--bg-2); }
section.dark { background: #000; color: #f5f5f7; }
.head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.head .eyebrow { color: var(--ink-2); font-weight: 600; font-size: 19px; margin: 0 0 8px; }
.dark .head .eyebrow { color: #a1a1a6; }
.head h2 { font: 700 clamp(40px, 6vw, 64px)/1.06 var(--display); letter-spacing: -0.04em; margin: 0 0 18px; }
.head p { font-size: 21px; color: var(--ink-2); margin: 0; }
.dark .head p { color: #a1a1a6; }
.grad { background: var(--golden); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the bento of features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg); padding: 30px 30px 0; display: flex; flex-direction: column; min-height: 420px; grid-column: span 2; }
.alt .tile { background: #fff; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
.tile h3 { font: 700 28px/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tile .shot { margin: 24px -30px 0; flex: 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.tile .shot img { width: 100%; object-fit: cover; object-position: top; border-radius: 16px 16px 0 0; max-height: 330px; }
.tile.dark { background: #000; color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }
.tile.text { min-height: 0; padding-bottom: 30px; }
.tile .big { font: 700 64px/1 var(--display); letter-spacing: -0.04em; margin-top: auto; padding: 26px 0 30px; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; background: var(--c, var(--blue)); }
.tile .icon svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .tile, .tile.w3, .tile.w4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: auto; min-height: 0; } }

/* the video, in a phone-shaped frame */
.film { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.film .phone { border-radius: 46px; padding: 10px; background: #1d1d1f; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #3a3a3c; }
.film video { width: 100%; aspect-ratio: 9 / 16; border-radius: 37px; background: #000; object-fit: cover; }
.film ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.film li { font-size: 19px; color: #a1a1a6; }
.film kbd { background: #1d1d1f; border-color: #3a3a3c; color: #f5f5f7; }
.film li b { color: #f5f5f7; font-weight: 600; }
@media (max-width: 860px) { .film { grid-template-columns: 1fr; } .film .phone { max-width: 320px; margin: 0 auto; } }

/* download */
.download { text-align: center; }
.download .card { max-width: 720px; margin: 0 auto; border-radius: var(--radius); background: #fff; padding: 48px 40px; box-shadow: 0 1px 0 var(--line); }
.download .app { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 22px; }
.download h3 { font: 700 34px/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 6px; }
.download .meta { color: var(--ink-2); font-size: 15px; margin: 0 0 26px; }
.download dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; text-align: left; max-width: 520px; margin: 34px auto 0; font-size: 14px; }
.download dt { color: var(--ink-3); }
.download dd { margin: 0; word-break: break-all; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 48px auto 0; text-align: left; }
.steps div { background: #fff; border-radius: 22px; padding: 24px; }
.steps b { display: block; font-size: 15px; color: var(--ink-3); margin-bottom: 6px; }
.steps p { margin: 0; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* credits */
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.credit { border-radius: var(--radius); background: var(--bg-2); padding: 34px; }
.credit .who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.credit .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; background: var(--golden); flex: none; }
.credit .avatar.discord { background: #5865f2; }
.credit h3 { margin: 0; font: 700 21px/1.2 var(--display); letter-spacing: -0.02em; }
.credit .role { color: var(--ink-3); font-size: 14px; }
.credit p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .credits { grid-template-columns: 1fr; } }

/* footer */
footer { background: var(--bg-2); color: var(--ink-3); font-size: 12px; line-height: 1.33; padding: 28px 0 40px; }
footer .wrap > p { margin: 0 0 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 6px; }
footer a { color: var(--ink-2); }
footer .row nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- documentation ---------------------------------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; width: min(1180px, 100% - 44px); margin: 0 auto; padding: 40px 0 100px; }
.docs aside { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; font-size: 14px; padding-right: 6px; }
.docs aside h4 { margin: 20px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.docs aside a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink); }
.docs aside a:hover { background: var(--bg-2); text-decoration: none; }
.docs aside a.on { background: rgba(0, 113, 227, 0.1); color: var(--blue); font-weight: 600; }
.docs aside .search { width: 100%; font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); outline: none; margin-bottom: 4px; }
.docs aside .search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2); }
.doc h1 { font: 700 48px/1.08 var(--display); letter-spacing: -0.04em; margin: 0 0 10px; }
.doc .intro { font-size: 21px; color: var(--ink-2); margin: 0 0 40px; }
.doc h2 { font: 700 32px/1.15 var(--display); letter-spacing: -0.03em; margin: 64px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.doc h3 { font: 600 21px/1.25 var(--display); letter-spacing: -0.02em; margin: 34px 0 8px; scroll-margin-top: 70px; }
.doc p, .doc li { color: #333336; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 5px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0 22px; }
.doc th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 13px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td:first-child { font-weight: 500; white-space: nowrap; }
.doc .note { border-radius: 16px; background: var(--bg-2); padding: 16px 20px; margin: 18px 0; font-size: 15px; }
.doc .note.warn { background: #fff4e5; }
.doc pre { background: #1d1d1f; color: #f5f5f7; border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.doc figure { margin: 22px 0; }
.doc figure img { border-radius: 18px; width: min(420px, 100%); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4); }
.doc figcaption { color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.doc .hidden { display: none; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 0; } .docs aside { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 14px; } .docs aside nav { display: none; } .docs aside.open nav { display: block; } .doc td:first-child { white-space: normal; } }
.menu-toggle { display: none; }
@media (max-width: 900px) { .menu-toggle { display: inline-block; margin-top: 8px; font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; } }
