/* musical.sh: what every page shares (the top bar, buttons, the footer) and the pages beside the front page (pricing, docs, company,
   legal). Laid out the way cursor.com is: a calm dark page, one sans throughout, big plain headings, real screenshots of the studio,
   no decoration. The front page adds its own (landing.css). */
:root {
  --page: #1f1f21; --raise: #27272a; --ink: #ececea; --ink-2: #a2a2a6; --ink-3: #75757a; --rule: rgba(255, 255, 255, 0.08); --rule-2: rgba(255, 255, 255, 0.14);
  --accent: #d25ae2;   /* orchid, the mark's purple band lifted to read on the dark; filled marks a very slight gradient of it, under a faint grain */
  --accent-fill: linear-gradient(135deg, #b044cf, #9d3ccb 60%, #8a46df);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(210, 90, 226, 0.35); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.wide { width: min(1320px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }

/* ---------- the top bar: the mark and name, what there is, and the way in ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: var(--nav);
       padding: 0 max(16px, calc((100% - 1320px) / 2)); background: rgba(31, 31, 33, 0.97); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled, .page .nav { border-bottom-color: var(--rule); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.mark { width: 20px; height: 20px; flex: none; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.links a { transition: color 0.15s; }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.quiet { color: var(--ink-2); padding: 0 6px; transition: color 0.15s; }
.quiet:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13.5px; }
.btn.light { background: var(--ink); color: #161617; }
.btn.light:hover { background: #fff; }
.btn.line { border: 1px solid var(--rule-2); color: var(--ink); }
.btn.line:hover { border-color: rgba(255, 255, 255, 0.32); }

/* a phone: the links and the way in move into a menu */
.menu { display: none; justify-self: end; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.menu summary span { position: relative; }
.menu summary span::before, .menu summary span::after { content: ''; position: absolute; left: 0; }
.menu summary span::before { top: -5px; }
.menu summary span::after { top: 5px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { transform: translateY(5px) rotate(45deg); }
.menu[open] summary span::after { transform: translateY(-5px) rotate(-45deg); }
.menu-sheet { position: fixed; left: 0; right: 0; top: var(--nav); bottom: 0; padding: 12px 16px 24px; background: var(--page); display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.menu-sheet a:not(.btn) { padding: 12px 4px; font-size: 18px; border-bottom: 1px solid var(--rule); }
.menu-sheet .btn { height: 44px; margin-top: 12px; font-size: 15px; }
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .links, .nav-cta { display: none; }
  .menu { display: block; }
  .nav { background: var(--page); }
}

/* ---------- the footer: what a company's site has at its foot ---------- */
.foot { margin-top: 40px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 48px 0 40px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; align-self: start; color: var(--ink); font-weight: 600; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot h3 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-bottom: 4px; }
.foot nav a:hover, .foot-base a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 32px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-top: 36px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- the pages beside the front page ---------- */
.page main { min-height: calc(100vh - var(--nav) - 300px); }
.head { padding: 88px 0 48px; text-align: center; }
.head h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; }
.head p { margin: 16px auto 0; max-width: 34em; font-size: 17px; color: var(--ink-2); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { display: flex; flex-direction: column; padding: 24px; border-radius: 16px; background: var(--raise); border: 1px solid var(--rule); }
.plan.on { border-color: rgba(210, 90, 226, 0.5); }
.plan h2 { font-size: 20px; letter-spacing: -0.01em; }
.price { margin: 16px 0 4px; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.price span { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.plan > p { margin: 0 0 22px; color: var(--ink-2); min-height: 3.1em; }
.plan .btn { width: 100%; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: ''; position: absolute; left: 3px; top: 0.42em; width: 9px; height: 5px; border-left: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(-45deg); }
.plan li b { font-weight: 600; }
.wide-plan { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 24px 28px; border-radius: 16px; border: 1px solid var(--rule); }
.wide-plan h2 { font-size: 18px; letter-spacing: -0.01em; }
.wide-plan p { margin: 4px 0 0; color: var(--ink-2); }
.note { margin: 20px 0 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.faq { max-width: 760px; margin: 96px auto 40px; }
.faq h2 { font-size: 28px; margin-bottom: 20px; text-align: center; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .wide-plan { flex-direction: column; align-items: stretch; max-width: 520px; margin-inline: auto; } .plan > p { min-height: 0; } }

/* reading pages: docs, company, legal */
.prose { max-width: 720px; font-size: 16px; line-height: 1.7; color: #d6d6d4; }
.prose h1 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; color: var(--ink); margin-bottom: 12px; }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; color: var(--ink); margin: 44px 0 10px; }
.prose h3 { font-size: 17px; letter-spacing: -0.01em; color: var(--ink); margin: 28px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose .lede { font-size: 18px; color: var(--ink-2); }
.prose .updated { color: var(--ink-3); font-size: 14px; }
.prose figure { margin: 28px 0 32px; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule-2); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.prose kbd { font: 500 13px var(--sans); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--rule-2); background: var(--raise); }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--raise); color: var(--ink); }
.reading { padding: 72px 0 40px; }
.reading .prose { margin-inline: auto; }

/* docs: the sections on the left, the page beside them */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 0 40px; }
.docs aside { position: sticky; top: calc(var(--nav) + 32px); align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.docs aside h3 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin: 18px 0 6px 10px; }
.docs aside h3:first-child { margin-top: 0; }
.docs aside a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.docs aside a:hover { color: var(--ink); }
.docs aside a[aria-current] { color: var(--ink); background: var(--raise); }
.pager { display: flex; justify-content: space-between; gap: 16px; max-width: 720px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); min-width: 0; flex: 1; }
.pager a:hover { border-color: var(--rule-2); }
.pager a.next { text-align: right; }
.pager span { font-size: 13px; color: var(--ink-3); }
.pager b { font-weight: 500; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  .docs aside h3 { display: none; }
  .docs aside a { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
}

/* ---------- what it does: real screenshots, one idea each ---------- */
.features { display: grid; gap: 120px; padding: 40px 0 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 56px; align-items: center; }
.feature h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.feature p { margin: 14px 0 18px; font-size: 16.5px; color: var(--ink-2); }
.feature img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.more { font-size: 15px; color: var(--ink); }
.more::after { content: ' →'; color: var(--ink-2); }
.more:hover::after { color: var(--ink); }
.uses { padding: 140px 0 0; }
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.use-grid a { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: var(--raise); border: 1px solid var(--rule); transition: border-color 0.15s; }
.use-grid a:hover { border-color: var(--rule-2); }
.use-grid b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.use-grid span { color: var(--ink-2); }
@media (max-width: 860px) {
  .features { gap: 72px; padding-top: 80px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .uses { padding-top: 88px; }
  .use-grid { grid-template-columns: 1fr; }
}
.uses h2, .closing h2 { font-size: clamp(24px, 2.6vw, 34px); text-align: center; }
.closing { padding: 140px 0 100px; text-align: center; }
.head-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.head-ctas + .head-ctas { margin-top: 0; }
.closing .head-ctas { margin-top: 20px; }
