/* Yolk Pocket: components. Built only from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--yp-font);
  font-size: var(--yp-size-body);
  line-height: var(--yp-leading-body);
  color: var(--yp-ink);
  background: var(--yp-yolk);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.yp-wrap { width: 100%; max-width: var(--yp-max); margin: 0 auto; padding: 0 var(--yp-space-3); }
.yp-text { max-width: var(--yp-max-text); }

/* Type */
.yp-h1, .yp-h2, .yp-h3 { font-weight: 800; letter-spacing: -0.02em; line-height: var(--yp-leading-head); margin: 0 0 var(--yp-space-2); }
.yp-h1 { font-size: var(--yp-size-h1); }
.yp-h2 { font-size: var(--yp-size-h2); }
.yp-h3 { font-size: var(--yp-size-h3); }
.yp-lead { font-size: var(--yp-size-lead); font-weight: 500; line-height: 1.35; }
.yp-body p { margin: 0 0 var(--yp-space-2); }
.yp-body strong, .yp-lead strong { font-weight: 800; }
.yp-pixel { font-family: var(--yp-pixel-font); font-size: var(--yp-size-pixel); text-transform: uppercase; letter-spacing: 0.04em; }
.yp-small { font-size: var(--yp-size-small); color: var(--yp-ink-soft); }

/* Mega wordmark: two stacked words, two yolk tones, tight leading */
.yp-mega { font-size: var(--yp-size-mega); font-weight: 900; line-height: var(--yp-leading-tight); letter-spacing: -0.06em; margin: 0; text-align: center; }
.yp-mega span { display: block; color: var(--yp-yolk); }
.yp-mega span + span { color: var(--yp-yolk-deep); }

/* Nav */
.yp-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--yp-space-2); padding: var(--yp-space-2) var(--yp-space-3); max-width: var(--yp-max); margin: 0 auto; }
.yp-logo { font-weight: 900; font-size: 1.6rem; letter-spacing: -0.04em; text-decoration: none; color: var(--yp-white); }
.yp-nav--ink .yp-logo, .yp-nav--ink .yp-nav-links a { color: var(--yp-ink); }
.yp-nav-links { display: flex; align-items: center; gap: var(--yp-space-3); list-style: none; margin: 0; padding: 0; }
.yp-nav-links a { color: var(--yp-white); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.yp-nav-links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 720px) { .yp-nav-links li.yp-hide-sm { display: none; } }

/* Buttons */
.yp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; white-space: nowrap; font: 800 1.05rem/1 var(--yp-font); text-decoration: none; border: 0; cursor: pointer; border-radius: var(--yp-radius-pill); padding: 0.95em 1.6em 1.1em; transition: transform 0.12s ease; }
.yp-btn:hover { transform: translateY(-2px); }
.yp-btn:active { transform: translateY(2px); }
.yp-btn--grape { background: var(--yp-grape); color: var(--yp-white); box-shadow: var(--yp-shadow-button); }
.yp-btn--grape em { font-style: italic; }
.yp-btn--ink { background: var(--yp-ink); color: var(--yp-yolk); box-shadow: inset 0 -5px 0 var(--yp-pixel); }
.yp-btn--ghost { background: transparent; color: var(--yp-ink); box-shadow: inset 0 0 0 3px var(--yp-ink); }
.yp-btn--sm { font-size: 0.9rem; padding: 0.7em 1.15em 0.8em; }
.yp-btn--lg { font-size: 1.35rem; }
.yp-btn--block { width: 100%; }

/* Sticker: tilted black badge */
.yp-sticker { display: inline-block; background: var(--yp-pixel); color: var(--yp-white); font-weight: 900; line-height: 1; padding: 0.6em 0.9em 0.7em; border-radius: var(--yp-radius-sm); transform: rotate(-8deg); box-shadow: var(--yp-shadow-sticker); border: 3px solid var(--yp-white); }
.yp-sticker b { display: block; background: var(--yp-white); color: var(--yp-pixel); margin-top: 0.35em; padding: 0.15em 0.35em; border-radius: 4px; text-transform: uppercase; }
.yp-sticker--tilt-r { transform: rotate(6deg); }

/* Badge */
.yp-badge { display: inline-block; font: 700 var(--yp-size-small)/1 var(--yp-font); padding: 0.45em 0.8em; border-radius: var(--yp-radius-pill); background: var(--yp-ink); color: var(--yp-yolk); white-space: nowrap; }
.yp-badge--grape { background: var(--yp-grape); color: var(--yp-white); }
.yp-badge--cream { background: var(--yp-cream); color: var(--yp-ink); }

/* Hero stage: slate with a soft spotlight */
.yp-stage { background: var(--yp-glow); color: var(--yp-white); padding-bottom: var(--yp-space-5); }
.yp-stage-line { text-align: center; font-weight: 700; font-size: var(--yp-size-h1); line-height: 1.12; letter-spacing: -0.02em; margin: var(--yp-space-4) auto var(--yp-space-4); max-width: 900px; }
.yp-stage-cta { display: flex; justify-content: center; margin-top: var(--yp-space-4); }

/* Device: a yolk body with a 1-bit screen */
.yp-device { position: relative; width: min(360px, 82vw); aspect-ratio: 1 / 1.02; margin: 0 auto; background: var(--yp-yolk); border-radius: var(--yp-radius-device); box-shadow: var(--yp-shadow-device); padding: 7%; }
.yp-screen { background: var(--yp-pixel); border-radius: var(--yp-radius); padding: 6%; aspect-ratio: 5 / 3; display: grid; place-items: center; }
.yp-screen-inner { width: 100%; height: 100%; background: var(--yp-screen); border-radius: var(--yp-radius-sm); display: grid; place-items: center; color: var(--yp-pixel); font-family: var(--yp-pixel-font); text-align: center; position: relative; overflow: hidden; }
.yp-dither { background: var(--yp-dither); opacity: 0.55; }
.yp-device-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 10%; }
.yp-dpad { position: relative; width: 28%; aspect-ratio: 1; }
.yp-dpad::before, .yp-dpad::after { content: ""; position: absolute; background: var(--yp-yolk-soft); border-radius: 8px; box-shadow: inset 0 -4px 0 var(--yp-yolk-deep); }
.yp-dpad::before { left: 33%; width: 34%; top: 0; height: 100%; }
.yp-dpad::after { top: 33%; height: 34%; left: 0; width: 100%; }
.yp-keys { display: flex; gap: 10%; width: 40%; justify-content: flex-end; }
.yp-key { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--yp-yolk-soft); box-shadow: inset 0 -4px 0 var(--yp-yolk-deep); display: grid; place-items: center; font: 800 0.8rem var(--yp-font); color: var(--yp-yolk-deep); }
.yp-dial { position: absolute; right: -16px; top: 52%; width: 16px; height: 70px; background: var(--yp-screen); border-radius: 0 8px 8px 0; box-shadow: inset -4px 0 0 var(--yp-slate-deep); }

/* Sections */
.yp-section { padding: var(--yp-space-6) 0; }
.yp-section--cream { background: var(--yp-cream); }
.yp-section--ink { background: var(--yp-pixel); color: var(--yp-yolk); }
.yp-section--slate { background: var(--yp-slate); color: var(--yp-white); }
.yp-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--yp-space-5); align-items: center; }
.yp-split + .yp-split { margin-top: var(--yp-space-6); }
.yp-split--flip > :first-child { order: 2; }
@media (max-width: 820px) { .yp-split { grid-template-columns: 1fr; gap: var(--yp-space-4); } .yp-split--flip > :first-child { order: 0; } }

/* Cards */
.yp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--yp-space-3); }
@media (max-width: 820px) { .yp-grid { grid-template-columns: 1fr; } }
.yp-card { background: var(--yp-cream); border: var(--yp-border); border-radius: var(--yp-radius-lg); padding: var(--yp-space-4) var(--yp-space-3); box-shadow: var(--yp-shadow-card); }
.yp-card .yp-h3 { margin-top: var(--yp-space-2); }
.yp-card p { margin: 0; color: var(--yp-ink-soft); }
.yp-card-icon { color: var(--yp-yolk); width: 64px; height: 64px; border-radius: var(--yp-radius); background: var(--yp-pixel); display: grid; place-items: center; }

/* Pixel panel: a framed 1-bit screen for content */
.yp-panel { background: var(--yp-pixel); border-radius: var(--yp-radius-lg); padding: var(--yp-space-2); box-shadow: var(--yp-shadow-card); }
.yp-panel-inner { background: var(--yp-screen); border-radius: var(--yp-radius); padding: var(--yp-space-3); color: var(--yp-pixel); font-family: var(--yp-pixel-font); min-height: 220px; position: relative; overflow: hidden; }
.yp-panel-bar { display: flex; justify-content: space-between; font-size: var(--yp-size-pixel); border-bottom: 2px solid var(--yp-pixel); padding-bottom: 0.4em; margin-bottom: 1em; }

/* Marquee */
.yp-marquee { overflow-x: clip; background: var(--yp-pixel); color: var(--yp-yolk); padding: var(--yp-space-2) 0; }
.yp-marquee-track { display: flex; gap: var(--yp-space-4); width: max-content; font-weight: 900; font-size: 1.6rem; letter-spacing: -0.02em; animation: yp-slide 30s linear infinite; white-space: nowrap; }
@keyframes yp-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .yp-marquee-track { animation: none; } }

/* Pricing */
.yp-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--yp-space-3); align-items: stretch; }
@media (max-width: 900px) { .yp-price-grid { grid-template-columns: 1fr; } }
.yp-price { position: relative; background: var(--yp-cream); border: var(--yp-border); border-radius: var(--yp-radius-lg); padding: var(--yp-space-4) var(--yp-space-3); display: flex; flex-direction: column; gap: var(--yp-space-2); }
.yp-price--hot { background: var(--yp-white); box-shadow: 0 0 0 6px var(--yp-grape), var(--yp-shadow-card); }
.yp-price .yp-sticker { position: absolute; top: -22px; right: 18px; font-size: 0.9rem; }
.yp-price-amount { font-size: 3.4rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.yp-price-amount small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--yp-ink-soft); }
.yp-price .yp-badge { align-self: flex-start; }
.yp-price ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 0.6em; }
.yp-price li { padding-left: 1.6em; position: relative; }
.yp-price li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.9em; height: 0.9em; background: var(--yp-pixel); border-radius: 3px; box-shadow: inset 0 0 0 3px var(--yp-yolk-soft); }
.yp-toggle { display: inline-flex; background: var(--yp-ink); border-radius: var(--yp-radius-pill); padding: 5px; gap: 4px; }
.yp-toggle button { font: 700 0.95rem var(--yp-font); border: 0; background: transparent; color: var(--yp-yolk); padding: 0.55em 1.1em; border-radius: var(--yp-radius-pill); cursor: pointer; white-space: nowrap; }
.yp-toggle button[aria-pressed="true"] { background: var(--yp-yolk); color: var(--yp-ink); }

/* FAQ */
.yp-faq details { border-top: var(--yp-border); padding: var(--yp-space-2) 0; }
.yp-faq details:last-child { border-bottom: var(--yp-border); }
.yp-faq summary { font-weight: 800; font-size: 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.yp-faq summary::after { content: "+"; font-weight: 900; }
.yp-faq details[open] summary::after { content: "-"; }
.yp-faq p { margin: var(--yp-space-1) 0 0; color: var(--yp-ink-soft); }

/* Article */
.yp-article { max-width: 720px; margin: 0 auto; }
.yp-article-meta { display: flex; flex-wrap: wrap; gap: var(--yp-space-2); align-items: center; margin-bottom: var(--yp-space-3); }
.yp-article p, .yp-article li { font-size: 1.15rem; }
.yp-article h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: var(--yp-space-4) 0 var(--yp-space-2); line-height: var(--yp-leading-head); }
.yp-article blockquote { margin: var(--yp-space-4) 0; background: var(--yp-pixel); color: var(--yp-yolk); border-radius: var(--yp-radius-lg); padding: var(--yp-space-4); font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.yp-article blockquote cite { display: block; margin-top: var(--yp-space-2); font: 400 var(--yp-size-pixel) var(--yp-pixel-font); text-transform: uppercase; color: var(--yp-screen); }
.yp-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--yp-grape); color: var(--yp-white); display: grid; place-items: center; font-weight: 900; flex: none; }

/* Forms */
.yp-form { display: grid; gap: var(--yp-space-3); }
.yp-field { display: grid; gap: 0.4em; }
.yp-label { font-weight: 800; font-size: 0.95rem; }
.yp-input { width: 100%; font: 500 1.05rem var(--yp-font); color: var(--yp-ink); background: var(--yp-white); border: var(--yp-border); border-radius: var(--yp-radius); padding: 0.85em 1em; outline: none; }
.yp-input:focus { box-shadow: 0 0 0 5px var(--yp-grape); }
.yp-hint { font-size: var(--yp-size-small); color: var(--yp-ink-soft); }
.yp-choice { display: flex; gap: 0.7em; align-items: flex-start; font-weight: 500; }
.yp-choice input { width: 22px; height: 22px; accent-color: var(--yp-grape); margin: 0.1em 0 0; flex: none; }
.yp-chips { display: flex; flex-wrap: wrap; gap: 0.6em; }
.yp-chip { display: inline-flex; }
.yp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.yp-chip span { font-weight: 700; padding: 0.5em 1em; border-radius: var(--yp-radius-pill); box-shadow: inset 0 0 0 3px var(--yp-ink); cursor: pointer; white-space: nowrap; }
.yp-chip input:checked + span { background: var(--yp-ink); color: var(--yp-yolk); }
.yp-chip input:focus-visible + span { outline: 4px solid var(--yp-grape); }

/* Footer */
.yp-footer { background: var(--yp-slate-deep); color: var(--yp-white); padding: var(--yp-space-5) 0 var(--yp-space-4); }
.yp-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--yp-space-4); }
@media (max-width: 820px) { .yp-footer-grid { grid-template-columns: 1fr 1fr; } }
.yp-footer h4 { margin: 0 0 var(--yp-space-2); font-weight: 800; color: var(--yp-yolk); }
.yp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4em; }
.yp-footer a { text-decoration: none; opacity: 0.9; }
.yp-footer a:hover { text-decoration: underline; }
.yp-footer-base { margin-top: var(--yp-space-4); padding-top: var(--yp-space-3); border-top: 2px solid rgba(255, 255, 255, 0.2); font-family: var(--yp-pixel-font); font-size: var(--yp-size-pixel); text-transform: uppercase; }
.yp-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
