/* Studio site: one stylesheet. Each page sets a theme class on <body>:
   studio (home, support, terms), loopstack, neko, louise.
   No web fonts and no third-party requests: the system fonts are used on purpose,
   so visiting the site is as private as the apps. */

:root {
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  --radius: 22px;
}

/* ---------- themes ---------- */
body.studio {
  --bg: #f4f0e8; --bg-2: #ebe5d9; --ink: #1b1916; --ink-2: #5b554c; --ink-3: #8b8478;
  --line: #ddd5c6; --accent: #c4553f; --on-accent: #fff; --card: #fbf8f2;
  --display: var(--serif);
}
body.loopstack {
  --bg: #090a0c; --bg-2: #111318; --ink: #e8e6e1; --ink-2: #8b8e96; --ink-3: #5c5f68;
  --line: #1c1f27; --accent: #e8e6e1; --on-accent: #090a0c; --card: #111318;
  --hot: #c9554b; --display: var(--sans);
}
body.pro {
  --bg: #f6efdc; --bg-2: #eae1c9; --ink: #1f2a36; --ink-2: #5a5a4e; --ink-3: #8b8673;
  --line: #e0d6bd; --accent: #1f2a36; --on-accent: #f6efdc; --card: #fbf6e8;
  --hot: #c63d32; --display: var(--sans);
}
body.neko {
  --bg: #e6c79c; --bg-2: #dcb98a; --ink: #4a2338; --ink-2: #74485d; --ink-3: #9a6f7f;
  --line: #d3ad7c; --accent: #4a2338; --on-accent: #fff5f8; --card: #fff4f6;
  --pink: #f7a3c7; --hot: #e9595f; --display: var(--sans);
}
body.louise {
  --bg: #2a1528; --bg-2: #3a1d38; --ink: #f6ebe1; --ink-2: #cdb7c0; --ink-3: #9a7e8e;
  --line: #4a2a47; --accent: #f6ebe1; --on-accent: #2a1528; --card: #3a1d38;
  --hot: #e8826e; --display: var(--serif);
}

/* ---------- base ---------- */
*, *::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: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.neko {
  /* the maple desk: faint horizontal grain lines like the app */
  background-image: repeating-linear-gradient(180deg, transparent 0 41px, rgba(120, 70, 30, .10) 41px 42px);
}
body.louise {
  background: radial-gradient(1200px 700px at 85% -10%, #7a3a66 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #4b2148 0%, transparent 60%), var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

.label {
  font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 14px; display: block;
}
.lede { font-size: 1.25rem; color: var(--ink-2); max-width: 40ch; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--hot, var(--accent)); outline-offset: 3px; border-radius: 6px; }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 600 17px/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand small { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-left: 8px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav .short { display: none; }
@media (max-width: 600px) { .nav .full { display: none; } .nav .short { display: inline; } }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
@media (max-width: 720px) { .brand small { display: none; } .nav { gap: 14px; font-size: 14px; } .nav .opt { display: none; } }

.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn .sub { font-weight: 500; opacity: .7; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.price-note { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

.chip { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }

/* ---------- studio home ---------- */
.home-hero { padding-top: 104px; padding-bottom: 72px; }
.home-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 500; max-width: 15ch; letter-spacing: -0.03em; }
.home-hero h1 em { font-style: italic; color: var(--accent); }
.home-hero .lede { margin-top: 24px; }

.products { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.products.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .products, .products.two { grid-template-columns: 1fr; } }
.product-card {
  position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 32px; border-radius: var(--radius);
  text-decoration: none; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -18px rgba(40,25,10,.35);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 28px 48px -24px rgba(40,25,10,.45); }
.product-card .icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); }
.product-card h2 { font-size: 2rem; margin-top: 28px; }
.product-card p { margin-top: 10px; font-size: 16px; opacity: .8; max-width: 30ch; }
.product-card .meta { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; }
.product-card .meta > * { white-space: nowrap; }
.product-card .go { font-weight: 600; }
.product-card .go::after { content: " →"; transition: margin .2s; }
.product-card:hover .go::after { margin-left: 4px; }
.pc-loopstack { background: #0b0c0f; color: #e8e6e1; }
.pc-loopstack h2 { font-family: var(--sans); letter-spacing: -0.03em; }
.pc-loopstack .stripe { position: absolute; right: -40px; top: 40px; width: 260px; display: grid; gap: 14px; opacity: .9; }
.pc-loopstack .stripe i { display: block; height: 30px; border-radius: 15px; background: #8f9aaf; }
.pc-loopstack .stripe i:nth-child(2) { background: #e8e6e1; width: 80%; }
.pc-loopstack .stripe i:nth-child(3) { width: 90%; }
.pc-loopstack .stripe::after { content: ""; position: absolute; left: 70px; top: -18px; bottom: -18px; width: 16px; border-radius: 8px; background: #c9554b; }
.pc-neko { background: #ffe9f0; color: #4a2338;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(74,35,56,.06) 33px 34px); }
.pc-neko h2 { font-family: var(--sans); letter-spacing: -0.03em; }
.pc-louise { color: #f6ebe1; background: linear-gradient(150deg, #6b3463 0%, #4a1f45 50%, #9a4a6c 120%); }
.pc-louise h2 { font-weight: 500; font-size: 2.3rem; }
.pc-louise h2 b { color: #e8826e; }
.product-card .art { position: absolute; right: 24px; top: 24px; width: 120px; opacity: .95; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 104px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 28px; } }
.principles h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 10px; }
.principles p { color: var(--ink-2); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 500; max-width: 22ch; }

/* ---------- product pages ---------- */
.p-hero { padding: 88px 0 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .p-hero { grid-template-columns: 1fr; padding-top: 56px; gap: 40px; } }
.p-hero .icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 28px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.p-hero h1 { font-size: clamp(2.8rem, 6.6vw, 5rem); letter-spacing: -0.035em; }
.p-hero .lede { margin-top: 18px; }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); }

.phones { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.phones img { width: 46%; max-width: 280px; border-radius: 30px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.phones img:nth-child(2) { margin-top: 56px; }

.tablet { border-radius: 26px; padding: 12px; background: #2b1622; box-shadow: 0 40px 80px -40px rgba(60,20,30,.65); }
.tablet img { border-radius: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; font-family: var(--sans); letter-spacing: -0.01em; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.feature ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; }
.feature li { margin: 4px 0; }
.feature .k { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--hot, var(--ink-3)); display: block; margin-bottom: 14px; }

.band { padding-top: 104px; }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 24px; margin-top: 36px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots img { width: 240px; flex: none; border-radius: 26px; border: 1px solid var(--line); scroll-snap-align: start; }
@media (max-width: 600px) { .shots img { width: 64vw; } }

.wide-shot { margin-top: 36px; }
.wide-shot figcaption { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; max-width: 70ch; }

.cta { margin-top: 104px; padding: 56px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.cta .actions { justify-content: center; }
@media (max-width: 600px) { .cta { padding: 36px 20px; } }

/* Louise: a drawn chat (an illustration, not a screenshot) */
.chat { background: rgba(20, 8, 20, .45); border: 1px solid var(--line); border-radius: 28px; padding: 22px; max-width: 440px; margin-left: auto;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); font-size: 15.5px; }
@media (max-width: 900px) { .chat { margin: 0 auto; } }
.chat .bar { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 13px; padding: 0 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.chat .bar b { font: 500 18px/1 var(--serif); color: var(--ink); }
.chat .bar b i { color: var(--hot); font-style: normal; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; margin: 0 0 12px; line-height: 1.5; }
.msg.me { margin-left: auto; background: #f6ebe1; color: #2a1528; border-bottom-right-radius: 6px; }
.msg.her { background: rgba(255,255,255,.07); border-bottom-left-radius: 6px; }
.chat .foot { display: flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--ink-3); font-size: 13px; }
.chat .foot .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fcf97; }

/* ---------- prose pages (privacy, support, terms) ---------- */
.prose { max-width: 720px; padding-top: 72px; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.4rem; margin: 48px 0 12px; font-family: var(--sans); letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--ink-3); font-size: 14px; }
.prose .box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 28px 0; }
.prose .box p:last-child { margin: 0; }

@media (max-width: 600px) {
  .home-hero { padding-top: 56px; padding-bottom: 48px; }
  .actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; padding: 12px 20px; flex-wrap: wrap; row-gap: 2px; column-gap: 8px; }
  .chat .bar span { display: none; }
  .p-hero .icon { width: 76px; height: 76px; }
}

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

/* ---------- footer columns ---------- */
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-foot .fcol { display: flex; flex-direction: column; gap: 9px; }
.site-foot .fcol .label { margin-bottom: 6px; }
.site-foot .fbrand p { margin: 0; color: var(--ink-3); max-width: 26ch; }
.site-foot .fbrand .brand { color: var(--ink); margin-bottom: 4px; }
@media (max-width: 860px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .fbrand { grid-column: 1 / -1; } }

/* ---------- compare table ---------- */
.table-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 15px/1.3 var(--sans); background: var(--bg-2); position: sticky; top: 0; }
.compare thead th small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 26%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--ink-3); }

.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .picker { grid-template-columns: 1fr; } }
.picker a { display: block; text-decoration: none; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: transform .2s; }
.picker a:hover { transform: translateY(-3px); }
.picker img { width: 56px; height: 56px; border-radius: 13px; margin-bottom: 18px; }
.picker h3 { font-family: var(--sans); font-size: 1.2rem; margin-bottom: 8px; }
.picker p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- video ---------- */
.video-phone { width: 100%; max-width: 300px; border-radius: 34px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); background: #000; }

/* ---------- press kit ---------- */
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.asset { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); text-decoration: none; }
.asset img { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 1; object-fit: cover; object-position: top; width: 100%; background: var(--bg-2); }
.asset b { display: block; font-size: 15px; }
.asset span { color: var(--ink-3); font-size: 13px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 20px 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); }
.prose.wide { max-width: 980px; }

/* ---------- release notes ---------- */
.release { border-left: 2px solid var(--line); padding-left: 24px; margin: 32px 0; }
.release h3 { font-family: var(--sans); font-size: 1.15rem; }
.release .when { color: var(--ink-3); font-size: 14px; margin: 4px 0 12px; }

/* ---------- small things ---------- */
.mac-badge { display: inline-flex; gap: 8px; align-items: center; }
.req { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.req div { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--card); }
.req b { display: block; margin-bottom: 6px; }
.req span { color: var(--ink-2); font-size: 15px; }
.notfound { text-align: center; padding: 140px 0 40px; }
.notfound h1 { font-size: clamp(3rem, 9vw, 6rem); font-family: var(--serif); font-weight: 500; }

.pc-pro { background: #f6efdc; color: #1f2a36; }
.pc-pro h2 { font-family: var(--sans); letter-spacing: -0.03em; }
