:root {
  --page: #0b0b0e;
  --surface: #14141c;
  --surface-2: #1a1a24;
  --ink: #f5f5f7;
  --muted: #a1a1aa;
  --brass: #a855f7;
  --accent: #2563eb;
  --accent-lavender: #c4b5fd;
  --accent-blue: #93c5fd;
  --line: rgba(255, 255, 255, .09);
  --serif: "Bodoni 72", Didot, "Didot LT STD", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: dark; }
body {
  margin: 0;
  background: radial-gradient(ellipse 75% 36% at 50% 0%, rgba(124, 58, 237, .12), transparent 65%), var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: 90;
  pointer-events: none;
  opacity: .11;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(168, 85, 247, .38); color: #fff; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-lavender); }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--sans); font-weight: 700; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -.025em; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
p { max-width: 68ch; color: var(--muted); }
p + p { margin-top: 18px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 10px 18px; border-radius: 999px; background: #f5f5f7; color: #0b0b0e; z-index: 200; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 14px; }
.skip-link:hover { color: #0b0b0e; }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 clamp(16px, 4vw, 44px);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(11, 11, 14, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 10px rgba(168, 85, 247, .3); }
.guide-header nav { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.guide-header nav a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.guide-header nav a:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.guide-header nav a[aria-current] {
  color: var(--ink);
  background: rgba(139, 92, 246, .16);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .32);
}

.guide-main { width: min(1184px, 92%); margin: auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.guide-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 68px); align-items: center; padding: 36px 0 68px; }
.lead { margin-top: 22px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c026d3 0%, #6366f1 55%, #2563eb 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 28px rgba(99, 102, 241, .35);
  transition: transform .25s var(--ease-out), box-shadow .25s, filter .25s;
}
.download-link:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(99, 102, 241, .48); color: #fff; }
.availability { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.guide-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 75% 65% at 15% 18%, rgba(249, 115, 22, .82), transparent 55%),
    radial-gradient(ellipse 70% 68% at 85% 22%, rgba(37, 99, 235, .88), transparent 58%),
    linear-gradient(135deg, #c026d3 0%, #6d28d9 48%, #1d4ed8 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.guide-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.outfit-pair { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.outfit-pair img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.outfit-pair img:nth-child(2) { margin-top: 34px; }
figcaption { position: relative; z-index: 1; margin-top: 16px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.guide-split figcaption { color: var(--muted); }

.guide-section { padding: 60px 0; border-top: 1px solid var(--line); }
.guide-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 7vw, 100px); }
.guide-steps { padding: 0; margin: 32px 0 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-steps li {
  counter-increment: step;
  background: linear-gradient(180deg, #171720, #121218);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
.guide-steps h3::before { content: "0" counter(step) " · "; color: var(--accent-lavender); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.guide-steps p { margin-top: 12px; font-size: 15px; }
.text-link { display: inline-block; margin-top: 20px; color: var(--accent-lavender); font-weight: 600; }

.guide-faq details {
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
.guide-faq details:first-child { border-top: 1px solid var(--line); }
.guide-faq summary { cursor: pointer; font-size: 17px; font-weight: 600; padding: 18px 24px 18px 0; color: var(--ink); }
.guide-faq summary::marker { color: var(--accent-lavender); }
.answer { padding: 0 0 24px; }
.answer a { color: var(--accent-lavender); }

.related-guides { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.related-guides li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(25, 25, 34, .92), rgba(18, 18, 25, .95));
  border: 1px solid var(--line);
  transition: transform .28s var(--ease-out), border-color .28s, box-shadow .28s;
}
.related-guides li:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, .48);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .42);
}
.related-guides a { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; text-decoration: none; color: var(--ink); }
.related-guides a:hover { color: var(--accent-lavender); }
.related-guides span { color: var(--muted); font-size: 14.5px; }

.guide-close {
  text-align: center;
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(168, 85, 247, .16), rgba(37, 99, 235, .08) 48%, transparent 72%);
}
.guide-close p { margin: 16px auto 0; font-size: 14px; color: var(--muted); }

.guide-footer {
  padding: 32px 4vw;
  background: #09090c;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  font-size: 13px;
  color: var(--muted);
}
.footer-brand { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.guide-footer nav a { text-decoration: none; }
.guide-footer nav a:hover { color: var(--ink); text-decoration: underline; }

.credit-ledger { padding: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.credit-ledger h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; }
.pack-price { font-family: var(--sans); font-size: clamp(44px, 5vw, 68px); font-weight: 700; line-height: 1.2; margin-top: 12px; font-variant-numeric: lining-nums tabular-nums; }
.price-context { margin-top: 6px; font-size: 13px; color: var(--muted); }
.credit-ledger dl { margin: 28px 0; }
.credit-ledger dl div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 13px 0; }
.credit-ledger dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.credit-ledger > p:last-child { font-size: 14px; }
.feature-table { margin-top: 28px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 12px; }
th, td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; color: var(--muted); }
tbody th { font-weight: 500; color: var(--ink); }
td { width: 35%; font-variant-numeric: tabular-nums; color: var(--muted); }

@media (max-width: 760px) {
  .guide-header { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 5%; }
  .guide-header nav { gap: 4px 8px; }
  .guide-main { width: 90%; }
  .guide-hero { grid-template-columns: 1fr; gap: 36px; padding: 28px 0 48px; }
  .guide-intro { max-width: 560px; }
  .lead { font-size: 17px; }
  .guide-figure { max-width: 560px; }
  .guide-split { grid-template-columns: 1fr; gap: 24px; }
  .guide-section { padding: 40px 0; }
  .guide-steps { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .related-guides { grid-template-columns: 1fr; gap: 14px; }
  .guide-close { padding: 48px 0; }
  .guide-footer { padding: 28px 5%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-link, .related-guides li { transition: none; }
}

/* Tutorials inherit the dark obsidian palette and typography, with a narrower reading column. */
.tutorial-page .guide-main { max-width: 820px; }
.article-header { padding: 36px 0 48px; }
.article-header h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.03em; }
.article-meta { margin-top: 20px; color: var(--muted); font-size: 14px; }
.draft-note { font-size: 14px; color: var(--muted); padding: 16px 0; border-bottom: 1px solid var(--line); }
.article-contents {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.article-contents h2 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-lavender); }
.article-contents ol { list-style: none; margin: 12px 0 0; padding: 0; }
.article-contents a { display: inline-block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.article-contents a:hover { color: var(--ink); }
.article-section { padding: 40px 0; border-top: 1px solid var(--line); }
.article-section h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.article-section a { color: var(--accent-lavender); }
.article-table { margin: 24px 0; }
.article-table th { width: 36%; }
.article-table td { width: auto; }
.tutorial-page .guide-split { grid-template-columns: 1fr; gap: 24px; }
@media (max-width: 760px) {
  .article-header { padding: 28px 0 36px; }
  .article-section { padding: 32px 0; }
  .article-table th, .article-table td { font-size: 15px; padding-right: 10px; }
}

.guide-library { list-style: none; margin: 0 0 64px; padding: 0; display: grid; gap: 18px; }
.guide-library li {
  display: grid;
  grid-template-columns: clamp(76px, 16vw, 136px) 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 32px);
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(25, 25, 34, .92), rgba(18, 18, 25, .95));
  border: 1px solid var(--line);
  transition: transform .28s var(--ease-out), border-color .28s, box-shadow .28s;
}
.guide-library li:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, .48);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .45);
}
.guide-library img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); }
.guide-library h2 { font-size: clamp(22px, 2.6vw, 32px); }
.guide-library h2 a { text-decoration: none; }
.guide-library p { margin-top: 10px; color: var(--muted); }
.reference-look { margin: 0 0 24px; }
.reference-look img { width: min(100%, 285px); height: auto; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); }

.app-screen { margin: 24px 0; }
.app-screen img { width: min(100%, 305px); height: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.tryon-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.tryon-sequence figure { margin: 0; }
.tryon-sequence img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: contain; background: var(--surface); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; }
.tryon-sequence figcaption { margin-top: 8px; }
@media (max-width: 550px) {
  .tryon-sequence { grid-template-columns: 1fr 1fr; }
  .tryon-sequence figure:last-child { grid-column: 1/-1; }
  .tryon-sequence figure:last-child img { max-height: 440px; }
}

.app-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-pair img { width: 100%; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 550px) { .app-pair { grid-template-columns: 1fr; max-width: 305px; } }
