@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:300 700;src:url(/fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:300 700;src:url(/fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 800;src:url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 800;src:url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ── Swonie Labs ── tokens ───────────────────────────────────────── */
:root {
  --bg: #0b0710;
  --bg-2: #170914;
  --fg: #fff7fb;
  --muted: #bdaaba;
  --line: rgba(255, 198, 223, .16);
  --line-strong: rgba(255, 198, 223, .32);
  --accent: #E20960;
  --accent-text: #ff7ab0;
  --btn: #BA166C;
  --btn-hover: #E20960;
  --btn-fg: #fff;
  --tint: rgba(226, 9, 96, .08);
  --g1: #E20960;
  --g2: #ff8fc2;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #F4F1EE;
  --bg-2: #EAE5E1;
  --fg: #170914;
  --muted: #6b5d63;
  --line: rgba(80, 29, 48, .16);
  --line-strong: rgba(80, 29, 48, .36);
  --accent: #BA166C;
  --accent-text: #BA166C;
  --tint: rgba(186, 22, 108, .07);
  --g1: #7f154a;
  --g2: #E20960;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-width: 320px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 14px; height: 14px; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 14px; background: var(--btn); color: #fff; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.logo { width: 40px; height: 40px; }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.bar-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; text-decoration: none; color: var(--muted); }
.bar-link:hover { color: var(--fg); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: var(--fg); font-family: var(--font-mono); font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chip .ico { width: 18px; height: 18px; }
html[data-theme="light"] .theme-sun { display: none; }
html:not([data-theme="light"]) .theme-moon { display: none; }

.logo-light, .badge-light { display: none; }
html[data-theme="light"] .logo-light, html[data-theme="light"] .badge-light { display: block; }
html[data-theme="light"] .logo-dark, html[data-theme="light"] .badge-dark { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(3.4rem, 12.5vw, 10rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.grad { background: linear-gradient(135deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(20px, 3vw, 40px); }
.lead { max-width: 36rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--fg); }

.index { border-top: 1px solid var(--line-strong); }
.index-count { padding: 12px 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.index a:hover { color: var(--accent-text); padding-left: 6px; }
.index .n, .index .c { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.index .t { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; line-height: 1.4; }

/* ── Sections ─────────────────────────────────────────────────────── */
.sec { border-top: 1px solid var(--line-strong); padding: clamp(40px, 6vw, 80px) 0; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(28px, 5vw, 80px); }
.sec-head { align-self: start; position: sticky; top: 96px; }
.sec-num { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--accent-text); }
.sec-head h2 { margin-top: 8px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; }
.sec-text { margin-top: 12px; max-width: 24rem; color: var(--muted); font-size: .98rem; }
.sec-last { border-bottom: 1px solid var(--line-strong); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 6px; background: var(--btn); color: var(--btn-fg); font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }

/* ── Web apps ─────────────────────────────────────────────────────── */
.web-app { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-bottom: clamp(32px, 5vw, 56px); }
.web-app + .web-app { padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.web-app:last-child { padding-bottom: 0; }
.web-app:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.web-app:nth-child(even) .shot { order: 2; }
.shot { display: block; border: 1px solid var(--line-strong); background: var(--bg-2); text-decoration: none; overflow: hidden; }
.shot-bar { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.web-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.web-body h3 a { display: inline-block; padding: 6px 0; text-decoration: none; }
.web-body h3 a:hover { color: var(--accent-text); }
.meta { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--accent-text); }
.desc { margin: 14px 0 22px; color: var(--fg); max-width: 30rem; }

/* ── Shopify app rows ─────────────────────────────────────────────── */
.app-list { border-top: 1px solid var(--line); }
.app-row { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 8px 24px; align-items: center; padding: 18px 12px; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.app-row:hover { background: var(--tint); }
.app-icon { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--bg-2); }
.app-main h3 { font-size: 1.1rem; font-weight: 600; }
.app-link { text-decoration: none; }
.app-link::after { content: ""; position: absolute; inset: 0; }
.app-link:focus-visible { outline: none; }
.app-link:focus-visible::after { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.app-cat { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--accent-text); }
.app-desc { font-size: .95rem; line-height: 1.55; color: var(--muted); }
.app-meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.app-row:hover .app-meta { color: var(--accent-text); }

/* ── Custom app ───────────────────────────────────────────────────── */
.custom-text { max-width: 34rem; font-size: 1.1rem; line-height: 1.65; margin-bottom: 24px; }
.support { margin-top: 28px; color: var(--muted); font-size: .95rem; }
.support a { display: inline-block; padding: 12px 0; color: var(--accent-text); text-underline-offset: 3px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { padding: clamp(40px, 6vw, 72px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-logo { width: 48px; height: 48px; }
.foot-copy { margin-top: 16px; max-width: 22rem; color: var(--muted); font-size: .95rem; }
.social { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #fff; }
html[data-theme="light"] .social-link { color: #501D30; }
.social-link:hover { color: var(--accent-text); }
.partner img { height: 36px; width: auto; }
.foot-h { font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.foot-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .95rem; }
.foot-list a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ── 404 ──────────────────────────────────────────────────────────── */
.nf { padding: clamp(72px, 14vw, 160px) 0; }
.nf h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 16px; }
.nf .lead { margin-bottom: 28px; color: var(--muted); }

/* ── Motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s ease-out both; }
  .rise-2 { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .index a, .app-row { transition: none; }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-row { grid-template-columns: 1fr; align-items: start; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-head { position: static; }
  .web-app, .web-app:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .web-app:nth-child(even) .shot { order: 0; }
  .app-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .app-desc { grid-column: 2 / 4; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .bar-link { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .app-row { grid-template-columns: 48px minmax(0, 1fr); padding: 16px 4px; }
  .app-desc { grid-column: 1 / 3; }
  .app-meta { grid-column: 1 / 3; }
}
