/*
 * Sunny Slab: components
 * Built only from tokens.css. Load tokens.css first.
 */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
.sy { margin: 0; background: var(--sy-yolk); color: var(--sy-ink); font-family: var(--sy-sans); font-size: var(--sy-text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.sy img, .sy svg { display: block; max-width: 100%; }
:where(.sy) a { color: inherit; }
:where(.sy) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
.sy strong { font-weight: 700; }

/* Layout */
.sy-container { width: min(100% - 2 * var(--sy-gutter), var(--sy-container)); margin-inline: auto; }
.sy-narrow { width: min(100% - 2 * var(--sy-gutter), var(--sy-narrow)); margin-inline: auto; }
.sy-center { text-align: center; }
.sy-section { padding-block: var(--sy-section); }
.sy-section--pewter { background: var(--sy-pewter); color: var(--sy-on-pewter); }
.sy-section--cream { background: var(--sy-cream); }
.sy-section--ink { background: var(--sy-ink); color: var(--sy-cream); }
.sy-stack > * + * { margin-top: 18px; }
.sy-grid { display: grid; gap: 24px; }
.sy-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sy-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Type */
.sy-mark { font-family: var(--sy-display); font-weight: 800; font-size: var(--sy-text-mark); line-height: var(--sy-leading-mark); letter-spacing: -.06em; color: var(--sy-yolk-deep); text-transform: lowercase; }
.sy-mark span { display: block; }
.sy-hero-title { font-family: var(--sy-display); font-weight: 800; font-size: var(--sy-text-hero); line-height: 1.1; letter-spacing: var(--sy-tracking-tight); }
.sy-h2 { font-family: var(--sy-display); font-weight: 800; font-size: var(--sy-text-h2); line-height: 1; letter-spacing: var(--sy-tracking-tight); }
.sy-h3 { font-family: var(--sy-display); font-weight: 800; font-size: var(--sy-text-h3); line-height: 1.15; letter-spacing: -.02em; }
.sy-lead { font-size: var(--sy-text-lead); line-height: 1.5; max-width: 600px; }
.sy-center .sy-lead { margin-inline: auto; }
.sy-muted { color: var(--sy-ink-soft); }
.sy-pixel { font-family: var(--sy-pixel); font-size: var(--sy-text-pixel); text-transform: uppercase; letter-spacing: .04em; }
.sy-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sy-pixel); font-size: var(--sy-text-pixel); text-transform: uppercase; }
.sy-kicker::before { content: ""; width: 10px; height: 10px; background: currentColor; }

/* Nav: white bold links with small glyphs, a grape pill at the end */
.sy-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--sy-gutter); background: var(--sy-pewter); color: var(--sy-on-pewter); }
.sy-logo { font-family: var(--sy-display); font-weight: 800; font-size: 30px; letter-spacing: -.05em; line-height: 1; text-decoration: none; white-space: nowrap; }
.sy-nav__links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 16px; }
.sy-nav__links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.sy-nav__links a:hover, .sy-nav__links a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sy-nav__links svg { width: 16px; height: 16px; }
.sy-nav--yolk { background: var(--sy-yolk); color: var(--sy-ink); }
@media (max-width: 820px) { .sy-nav__links a:not(.sy-btn) { display: none; } }

/* Buttons: pills that sit on a solid lower edge and press down */
.sy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--sy-radius-pill); font-family: var(--sy-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--sy-speed) var(--sy-spring), box-shadow var(--sy-speed) var(--sy-spring); }
.sy-btn:hover { transform: translateY(-2px); }
.sy-btn:active { transform: translateY(4px); box-shadow: none; }
.sy-btn--grape { background: var(--sy-grape); color: var(--sy-white); box-shadow: var(--sy-press); }
.sy-btn--ink { background: var(--sy-ink); color: var(--sy-yolk); box-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
.sy-btn--white { background: var(--sy-white); color: var(--sy-ink); box-shadow: var(--sy-press-ink); border: var(--sy-edge); }
.sy-btn--sm { min-height: 38px; padding: 0 16px; font-size: 16px; box-shadow: 0 3px 0 var(--sy-grape-deep); }
.sy-btn--lg { min-height: 60px; padding: 0 36px; font-size: 26px; }
.sy-btn--block { width: 100%; }
.sy-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sy-center .sy-actions { justify-content: center; }
.sy-textlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Badges and the tilted sticker */
.sy-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--sy-radius-pill); background: var(--sy-ink); color: var(--sy-yolk); font-weight: 700; font-size: 13px; white-space: nowrap; }
.sy-badge--grape { background: var(--sy-grape); color: var(--sy-white); }
.sy-badge--cream { background: var(--sy-cream); color: var(--sy-ink); border: 2px solid var(--sy-ink); }
.sy-sticker { display: inline-grid; gap: 0; padding: 14px 20px 10px; border-radius: 14px; background: var(--sy-ink); color: var(--sy-white); transform: rotate(-8deg); box-shadow: var(--sy-sticker); font-family: var(--sy-display); font-weight: 800; line-height: .95; }
.sy-sticker__big { font-size: 34px; letter-spacing: -.03em; }
.sy-sticker__big b { color: var(--sy-yolk); }
.sy-sticker__band { margin: 8px -20px -10px; padding: 6px 20px 8px; border-radius: 0 0 14px 14px; background: var(--sy-white); color: var(--sy-ink); font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; }

/* Hero: the pewter stage with a spotlight, one object, a line, the wordmark */
.sy-stage { position: relative; background: radial-gradient(ellipse 50% 55% at 50% 40%, var(--sy-spot), var(--sy-pewter) 70%); color: var(--sy-on-pewter); text-align: center; padding: clamp(32px, 5vw, 64px) var(--sy-gutter) clamp(56px, 7vw, 96px); overflow: hidden; }
.sy-stage .sy-hero-title { max-width: 820px; margin: clamp(28px, 4vw, 48px) auto 0; }
.sy-stage .sy-mark { margin-top: clamp(28px, 4vw, 52px); }
.sy-stage .sy-actions { margin-top: clamp(24px, 3vw, 40px); justify-content: center; }
.sy-stage__sticker { position: absolute; top: clamp(24px, 6vw, 90px); left: max(var(--sy-gutter), calc(50% - 420px)); z-index: 2; }
@media (max-width: 640px) { .sy-stage__sticker { position: static; margin-bottom: 18px; } }

/* The device: a chunky yellow slab with bolts, a gray screen and a side dial */
.sy-device { position: relative; width: min(100%, 360px); aspect-ratio: 1 / 1.02; margin-inline: auto; padding: 28px; border-radius: var(--sy-radius-lg); background: linear-gradient(160deg, var(--sy-yolk-soft), var(--sy-yolk) 30%, var(--sy-yolk-deep)); box-shadow: var(--sy-slab), inset 0 -6px 0 rgba(0, 0, 0, .08); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; justify-items: stretch; gap: 24px; text-align: left; }
.sy-device__screen { border-radius: 16px; background: var(--sy-screen); padding: 14px; display: grid; place-items: center; }
.sy-lcd { position: relative; width: 100%; padding: 22px 12px; border-radius: 14px; background: var(--sy-lcd); color: var(--sy-lcd-ink); font-family: var(--sy-pixel); text-align: center; line-height: 1.1; }
.sy-lcd b { display: block; font-family: var(--sy-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.03em; white-space: nowrap; }
.sy-lcd small { display: block; margin-top: 6px; font-size: 11px; text-transform: uppercase; }
.sy-device__controls { display: flex; align-items: center; justify-content: space-between; }
.sy-device__ring { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--sy-yolk-soft) 0 30%, var(--sy-yolk-deep) 32% 58%, var(--sy-yolk) 60%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 3px 0 rgba(0, 0, 0, .12); }
.sy-device__keys { display: flex; gap: 12px; }
.sy-device__key { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sy-yolk); color: var(--sy-cream); font-weight: 700; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 0 0 3px var(--sy-yolk-deep); }
.sy-bolt { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--sy-bolt) 0 30%, var(--sy-steel) 34%); }
.sy-bolt--tl { top: 12px; left: 12px; } .sy-bolt--tr { top: 12px; right: 12px; } .sy-bolt--bl { bottom: 12px; left: 12px; } .sy-bolt--br { bottom: 12px; right: 12px; }
.sy-device__dial { position: absolute; right: -24px; top: 44%; width: 26px; height: 74px; border-radius: 0 12px 12px 0; background: linear-gradient(90deg, var(--sy-steel), var(--sy-pewter-light)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.sy-device__dial::after { content: ""; position: absolute; top: 10px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--sy-yolk-deep); }
.sy-device--sm { width: min(100%, 240px); padding: 20px; gap: 16px; border-radius: 24px; }
.sy-device--sm .sy-device__key { width: 28px; height: 28px; font-size: 12px; }

/* Feature rows on yolk: heavy title with a full stop, text, drawing to the side */
.sy-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.sy-feature + .sy-feature { margin-top: clamp(64px, 8vw, 112px); }
.sy-feature--flip > :first-child { order: 2; }
.sy-feature__copy > * + * { margin-top: 16px; }
.sy-feature__copy p { max-width: 520px; }
@media (max-width: 820px) { .sy-feature { grid-template-columns: 1fr; } .sy-feature--flip > :first-child { order: 0; } }

/* Cards: cream slabs with a thick ink edge and a solid drop */
.sy-card { padding: 28px; border: var(--sy-edge); border-radius: var(--sy-radius); background: var(--sy-cream); box-shadow: var(--sy-press-ink); }
.sy-card > * + * { margin-top: 12px; }
.sy-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sy-yolk); border: var(--sy-edge); }
.sy-card__icon svg { width: 28px; height: 28px; }
.sy-card--pewter { background: var(--sy-pewter); color: var(--sy-on-pewter); }
.sy-card--grape { background: var(--sy-grape); color: var(--sy-white); box-shadow: 0 5px 0 var(--sy-ink); }

/* A small LCD readout panel used for stats */
.sy-readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 16px; border-radius: var(--sy-radius); background: var(--sy-screen); }
.sy-readout__cell { padding: 16px; border-radius: 12px; background: var(--sy-lcd); color: var(--sy-lcd-ink); }
.sy-readout__cell b { display: block; font-family: var(--sy-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.sy-readout__cell span { display: block; margin-top: 6px; font-family: var(--sy-pixel); font-size: 11px; text-transform: uppercase; }

/* Quote */
.sy-quote { font-family: var(--sy-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.025em; }
.sy-quote__by { margin-top: 18px; font-weight: 700; }

/* Pricing */
.sy-toggle { display: inline-flex; padding: 5px; border-radius: var(--sy-radius-pill); background: var(--sy-ink); }
.sy-toggle button { min-height: 40px; padding: 0 20px; border: 0; border-radius: var(--sy-radius-pill); background: transparent; color: var(--sy-cream); font-family: var(--sy-sans); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.sy-toggle button[aria-pressed="true"] { background: var(--sy-yolk); color: var(--sy-ink); }
.sy-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.sy-plan { position: relative; display: grid; gap: 18px; padding: 30px 28px; border: var(--sy-edge); border-radius: var(--sy-radius-lg); background: var(--sy-cream); box-shadow: var(--sy-press-ink); }
.sy-plan--pick { background: var(--sy-white); transform: translateY(-10px); box-shadow: 0 10px 0 var(--sy-grape); border-color: var(--sy-grape); }
.sy-plan__flag { position: absolute; top: -18px; right: 22px; transform: rotate(4deg); }
.sy-plan__name { font-family: var(--sy-display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; }
.sy-plan__price { font-family: var(--sy-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.05em; }
.sy-plan__price small { font-family: var(--sy-sans); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--sy-ink-soft); }
.sy-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.sy-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.sy-list li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--sy-yolk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%23241f19' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border: 2px solid var(--sy-ink); }
.sy-table-wrap { overflow-x: auto; border: var(--sy-edge); border-radius: var(--sy-radius); background: var(--sy-cream); }
.sy-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.sy-table th, .sy-table td { padding: 14px 18px; text-align: left; border-bottom: 2px solid var(--sy-yolk-soft); }
.sy-table thead th { background: var(--sy-ink); color: var(--sy-yolk); font-family: var(--sy-display); font-weight: 800; font-size: 17px; }
.sy-table tr:last-child td { border-bottom: 0; }

/* FAQ */
.sy-faq { display: grid; gap: 14px; }
.sy-faq details { border: var(--sy-edge); border-radius: var(--sy-radius); background: var(--sy-cream); box-shadow: var(--sy-press-ink); }
.sy-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--sy-display); font-weight: 800; font-size: 20px; letter-spacing: -.015em; cursor: pointer; }
.sy-faq summary::-webkit-details-marker { display: none; }
.sy-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sy-grape); color: var(--sy-white); font-size: 20px; line-height: 1; }
.sy-faq details[open] summary::after { content: "\2013"; }
.sy-faq details p { padding: 0 24px 22px; }

/* Article */
.sy-article-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.sy-article-head > * + * { margin-top: 18px; }
.sy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--sy-text-small); font-weight: 500; }
.sy-avatar { width: 40px; height: 40px; border-radius: 50%; border: var(--sy-edge); background: var(--sy-grape-soft); display: grid; place-items: center; font-family: var(--sy-display); font-weight: 800; }
.sy-prose { font-size: 19px; line-height: 1.7; }
.sy-prose > * + * { margin-top: 22px; }
.sy-prose h2 { margin-top: 48px; font-family: var(--sy-display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; }
.sy-prose a { font-weight: 700; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--sy-grape); }
.sy-prose ul { padding-left: 22px; }
.sy-prose li + li { margin-top: 8px; }
.sy-prose code { font-family: var(--sy-pixel); font-size: 14px; padding: 2px 6px; border-radius: 6px; background: var(--sy-lcd); color: var(--sy-lcd-ink); }
.sy-pull { margin: 40px 0; padding: 28px 30px; border-radius: var(--sy-radius); background: var(--sy-yolk); border: var(--sy-edge); box-shadow: var(--sy-press-ink); font-family: var(--sy-display); font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.sy-figure { margin: 36px 0; padding: 32px 24px; border-radius: var(--sy-radius-lg); background: radial-gradient(ellipse at 50% 40%, var(--sy-spot), var(--sy-pewter) 70%); }
.sy-figure figcaption { margin-top: 18px; color: var(--sy-on-pewter); font-family: var(--sy-pixel); font-size: 11px; text-transform: uppercase; text-align: center; }
.sy-callout { padding: 20px 22px; border-radius: var(--sy-radius); background: var(--sy-screen); color: var(--sy-lcd); font-family: var(--sy-pixel); font-size: 13px; line-height: 1.6; }

/* Forms: fat rounded fields with an ink edge */
.sy-form { display: grid; gap: 18px; }
.sy-field { display: grid; gap: 8px; }
.sy-label { font-weight: 700; font-size: 15px; }
.sy-input, .sy-select { width: 100%; min-height: 54px; padding: 0 18px; border: var(--sy-edge); border-radius: 16px; background: var(--sy-white); color: var(--sy-ink); font-family: var(--sy-sans); font-size: 17px; box-shadow: inset 0 3px 0 rgba(36, 31, 25, .08); }
.sy-input:focus, .sy-select:focus { outline: none; border-color: var(--sy-grape); box-shadow: 0 0 0 4px var(--sy-grape-soft); }
.sy-input::placeholder { color: var(--sy-ink-soft); opacity: .7; }
.sy-hint { font-size: 13px; color: var(--sy-ink-soft); }
.sy-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.sy-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.sy-choice { position: relative; display: grid; gap: 4px; padding: 16px; border: var(--sy-edge); border-radius: 16px; background: var(--sy-cream); cursor: pointer; }
.sy-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sy-choice b { font-family: var(--sy-display); font-weight: 800; font-size: 18px; }
.sy-choice span { font-size: 13px; color: var(--sy-ink-soft); }
.sy-choice:has(input:checked) { background: var(--sy-yolk); box-shadow: var(--sy-press-ink); }
.sy-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.sy-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sy-grape); flex: none; }
.sy-panel { padding: clamp(24px, 4vw, 40px); border: var(--sy-edge); border-radius: var(--sy-radius-lg); background: var(--sy-cream); box-shadow: 0 8px 0 var(--sy-ink); }
.sy-steps { display: flex; gap: 8px; }
.sy-steps span { flex: 1; height: 8px; border-radius: 8px; background: var(--sy-yolk-soft); border: 2px solid var(--sy-ink); }
.sy-steps span[aria-current] { background: var(--sy-grape); }

/* Footer */
.sy-footer { background: var(--sy-pewter); color: var(--sy-on-pewter); padding: clamp(56px, 7vw, 88px) 0 32px; }
.sy-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.sy-footer h4 { margin: 0 0 12px; font-family: var(--sy-display); font-weight: 800; font-size: 18px; }
.sy-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sy-footer a { text-decoration: none; }
.sy-footer a:hover { text-decoration: underline; }
.sy-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--sy-pewter-light); font-family: var(--sy-pixel); font-size: 11px; text-transform: uppercase; }
@media (max-width: 760px) { .sy-footer__grid { grid-template-columns: 1fr 1fr; } .sy-footer__grid > :first-child { grid-column: 1 / -1; } }

/* Fills and strokes for inline SVG drawings */
.sy-f-yolk { fill: var(--sy-yolk); } .sy-f-deep { fill: var(--sy-yolk-deep); } .sy-f-soft { fill: var(--sy-yolk-soft); }
.sy-f-cream { fill: var(--sy-cream); } .sy-f-ink { fill: var(--sy-ink); } .sy-f-grape { fill: var(--sy-grape); }
.sy-f-steel { fill: var(--sy-steel); } .sy-f-lcd { fill: var(--sy-lcd); } .sy-f-screen { fill: var(--sy-screen); } .sy-f-white { fill: var(--sy-white); }
.sy-s-ink { stroke: var(--sy-ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.sy-drawing { width: 100%; max-width: 420px; margin-inline: auto; }
.sy-device--sm .sy-lcd b { font-size: 22px; }
.sy-section--yolk { background: var(--sy-yolk); }
.sy-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sy-fieldset legend { padding: 0; margin-bottom: 8px; }
