/* Desktop for YT · landing
   System lifted from live otty.sh (2026-08-26):
   Inter + JetBrains Mono, paper/ink/muted, black mono pills, left-aligned
   640px column that breaks out for product windows.
   Layouts A/B/C only change composition — not the product copy. */

:root {
  --paper: #fbfaf8;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --muted: #7e7f95;
  --chip: #eef0f1;
  --chip-hover: #e4e7e9;
  --hairline: rgba(10, 10, 10, 0.1);
  --border: rgba(10, 10, 10, 0.08);
  --label: rgba(10, 10, 10, 0.42);
  --desk: #c8c8cc;
  --win: #ffffff;
  --fill: #efece7;
  --green: #2f8a55;
  --radius: 14px;
  --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

[data-layout="b"] {
  --paper: #f6f5f2;
  --surface: #ffffff;
  --ink: #161616;
  --muted: #6d6d72;
  --chip: #efece7;
  --chip-hover: #e6e5e1;
  --desk: #c8c8cc;
}

[data-layout="c"] {
  --paper: #151515;
  --surface: #1c1d1f;
  --ink: #ececef;
  --muted: #9698ac;
  --chip: #1d1d21;
  --chip-hover: #26262b;
  --hairline: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --label: rgba(255, 255, 255, 0.42);
  --win: #1c1d1f;
  --fill: #26272a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--ui);
  font-feature-settings: "cv11", "ss01", "ss03";
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol, p, h1, h2, h3, figure { margin: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 13px;
}

/* Glyphs: Lucide / Simple Icons via CSS mask — currentColor, no hand-drawn paths */
.glyph {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--g) center / contain no-repeat;
  mask: var(--g) center / contain no-repeat;
}
.g-apple { --g: url("assets/icons/apple.svg"); width: 15px; height: 15px; }
.g-arrow { --g: url("assets/icons/arrow-up-right.svg"); width: 14px; height: 14px; }
.g-mail { --g: url("assets/icons/mail.svg"); }
.g-play { --g: url("assets/icons/play.svg"); }
.g-pause { --g: url("assets/icons/pause.svg"); }
.g-pip { --g: url("assets/icons/picture-in-picture-2.svg"); }
.g-back { --g: url("assets/icons/chevron-left.svg"); }
.g-fwd { --g: url("assets/icons/chevron-right.svg"); }
.g-reload { --g: url("assets/icons/rotate-cw.svg"); }
.g-expand { --g: url("assets/icons/square-arrow-out-up-right.svg"); }
.g-monitor { --g: url("assets/icons/monitor.svg"); }
.g-window { --g: url("assets/icons/app-window.svg"); }

/* Pills — Otty download language */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}
.pill:hover { opacity: 0.9; }
.pill:focus-visible,
.ghost:focus-visible,
.nav a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease;
}
.ghost:hover { background: var(--chip-hover); }

.mark {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  object-fit: cover;
  user-select: none;
}

/* Type scale (Otty) */
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
h1.name {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: -0.02em;
}
.tagline {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
}
.bio {
  margin-top: 32px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}
h2.sec {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: pretty;
}
.lede {
  margin-top: 12px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* Mac window — product chrome, not a fake YouTube redesign */
.win {
  background: var(--win);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
}
[data-layout="c"] .win.light {
  --ink: #0a0a0a;
  --muted: #7e7f95;
  --chip: #eef0f1;
  --fill: #efece7;
  background: #fff;
  color: #0a0a0a;
}
.titlebar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
}
.lights { display: flex; gap: 8px; flex-shrink: 0; }
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.lights .c { background: #ff5f57; }
.lights .m { background: #febc2e; }
.lights .z { background: #28c840; }
.tb-btns { display: flex; align-items: center; gap: 2px; }
.ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.ico:hover { background: var(--chip); }
.tb-grow { flex: 1; min-width: 0; }
.tb-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--label);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.chip.on {
  background: var(--ink);
  color: var(--paper);
}
.stage {
  background: #111;
  aspect-ratio: 16 / 9;
  position: relative;
}
.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.desk-win { width: min(420px, 100%); }
.desk-win .stage { aspect-ratio: 16 / 10; }
.thinbar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: #1a1a1c;
  color: #ececef;
  font-size: 11px;
  font-weight: 500;
}
.thinbar .glyph { width: 13px; height: 13px; }
.scrub {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}
.scrub i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}
.code-win {
  width: min(360px, 100%);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
}
.code-win .body {
  padding: 16px 18px 20px;
  background: var(--surface);
}
.code-win .cmt { color: var(--muted); }
.code-win .kw { color: #2f8a55; }

/* Footer */
.footer {
  margin-top: 128px;
  padding: 48px 0 64px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.footer h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer a {
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer a:hover { color: var(--ink); }
.legal-note {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Hub */
.hub-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}
.hub-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.hub-list a:last-child { border-bottom: 1px solid var(--hairline); }
.hub-list .idx {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  width: 1.5em;
}
.hub-list .ttl {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hub-list .sub {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.hub-list a:hover .ttl { opacity: 0.7; }

/* Legal document */
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}
.legal .nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  font-size: 13px;
  color: var(--muted);
}
.legal .nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  margin-right: auto;
}
.legal .nav .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.legal .nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.legal .updated {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.legal h2 {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.legal p, .legal li {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.legal p strong, .legal li strong { color: var(--ink); font-weight: 500; }
.legal ul, .legal ol {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.legal code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--ink);
}

/* Layout A — faithful Otty column */
[data-layout="a"] .page {
  padding: 80px 24px 0;
}
[data-layout="a"] .col {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
[data-layout="a"] .cta { margin-top: 32px; }
[data-layout="a"] .hero-shot {
  margin: 56px auto 0;
  max-width: 960px;
}
[data-layout="a"] .block {
  max-width: 640px;
  margin: 112px auto 0;
}
[data-layout="a"] .pair {
  max-width: 960px;
  margin: 112px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
[data-layout="a"] .want {
  max-width: 640px;
  margin: 128px auto 0;
}

/* Layout B — desk as the hero */
[data-layout="b"] .page { padding: 0; }
[data-layout="b"] .desk-hero {
  min-height: 100svh;
  background: var(--desk);
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 48px;
}
[data-layout="b"] .scene {
  position: relative;
  min-height: 420px;
}
[data-layout="b"] .scene .code-win {
  position: absolute;
  left: 4%;
  top: 12%;
  transform: rotate(-1.2deg);
}
[data-layout="b"] .scene .desk-win {
  position: absolute;
  right: 2%;
  bottom: 8%;
  transform: rotate(2deg);
}
[data-layout="b"] .sheet {
  background: var(--paper);
  padding: 96px 48px 0;
}
[data-layout="b"] .sheet .col,
[data-layout="b"] .want,
[data-layout="b"] .block {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
[data-layout="b"] .block { margin-top: 96px; }
[data-layout="b"] .mosaic {
  max-width: 1040px;
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
[data-layout="b"] .cta { margin-top: 28px; }

/* Layout C — night editorial */
[data-layout="c"] .page {
  padding: 72px 32px 0;
  overflow-x: clip;
}
[data-layout="c"] .splash {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}
[data-layout="c"] h1.display {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
}
[data-layout="c"] .splash .bio {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.45;
}
[data-layout="c"] .cta { margin-top: 28px; }
[data-layout="c"] .stack {
  position: relative;
  min-height: 380px;
}
[data-layout="c"] .stack .win.main {
  transform: rotate(-2.5deg);
}
[data-layout="c"] .stack .desk-win {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 58%;
  transform: rotate(3deg);
}
[data-layout="c"] .rail {
  max-width: 1120px;
  margin: 120px auto 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
[data-layout="c"] .rail .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
[data-layout="c"] .want {
  max-width: 720px;
  margin: 128px auto 0;
}
[data-layout="c"] .footer { max-width: 1120px; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  [data-layout="a"] .pair,
  [data-layout="b"] .desk-hero,
  [data-layout="b"] .mosaic,
  [data-layout="c"] .splash,
  [data-layout="c"] .rail {
    grid-template-columns: 1fr;
  }
  [data-layout="b"] .desk-hero { padding: 56px 24px 72px; min-height: auto; }
  [data-layout="b"] .scene { min-height: 340px; }
  [data-layout="b"] .sheet { padding: 72px 24px 0; }
  [data-layout="c"] .page { padding: 56px 20px 0; }
  [data-layout="c"] .stack { min-height: 280px; }
  .footer { grid-template-columns: 1fr 1fr; margin-top: 80px; }
  h1.name { line-height: 1.25; }
}

@media (max-width: 560px) {
  .footer { grid-template-columns: 1fr; }
  .hub-list .sub { display: none; }
  .pill, .ghost { height: 44px; width: 100%; }
  .row { width: 100%; }
  .tb-label, .titlebar .chip { display: none; }
  [data-layout="b"] .scene .code-win { position: relative; left: auto; top: auto; transform: none; margin-bottom: 16px; }
  [data-layout="b"] .scene .desk-win { position: relative; right: auto; bottom: auto; transform: none; }
  [data-layout="c"] .stack .desk-win { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
}

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