/* okaybravo. light, lowercase, generous: after the teenage.engineering store, in the okay brand. */
:root {
  --paper: #f4f4f4; --white: #ffffff; --card: #ebebeb; --ink: #0c0c0c; --dim: #8c8c8c; --line: rgba(0,0,0,.12);
  --night: #0c0c0c; --orange: #ff5a1f; --link: #1673d1; --ok: #1f8a4c; --err: #c2311a;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.45 var(--font); letter-spacing: -.005em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -.025em; }
p { margin: 0 0 .8em; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: .85em; letter-spacing: 0; }
code { font-family: var(--mono); font-size: .82em; background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 3px; }

/* header band */
.band { background: var(--night); color: #fff; }
.band-in { display: grid; grid-template-columns: auto 1fr auto auto; align-items: start; gap: clamp(16px, 3vw, 48px); padding: 22px var(--gut) 20px; max-width: 1800px; margin: 0 auto; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.02; font-weight: 300; letter-spacing: -.03em; padding-top: 2px; }
.nav { display: flex; gap: clamp(14px, 2.6vw, 44px); flex-wrap: wrap; }
.nav-item { display: flex; gap: 12px; text-decoration: none; align-items: flex-start; opacity: .92; transition: opacity .15s; }
.nav-item:hover, .nav-item.on { opacity: 1; }
.pict svg { width: clamp(40px, 4.2vw, 64px); height: clamp(40px, 4.2vw, 64px); fill: #fff; display: block; }
.nav-words { display: flex; flex-direction: column; }
.nav-words b { font-weight: 300; font-size: clamp(20px, 2.2vw, 34px); line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
.nav-words small { font-size: 13px; line-height: 1.35; color: #cfcfcf; }
.nav-item.on .nav-words b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.fine { font-size: 9.5px; line-height: 1.5; width: 132px; margin: 4px 0 0; color: #e8e8e8; font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; }
.mark { color: #fff; }
.glyph { width: clamp(64px, 7vw, 120px); height: auto; display: block; }
.glyph.sm { width: 28px; color: var(--ink); }

main { min-height: 60vh; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 400 16px/1 var(--font); padding: 14px 22px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; text-decoration: none; letter-spacing: 0; }
.btn:hover { background: #2a2a2a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.buy { width: 100%; font-size: clamp(22px, 2vw, 30px); font-weight: 300; padding: clamp(22px, 2.2vw, 32px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; font-size: 14px; }
button.link.dim { color: var(--dim); }

/* marketplace */
.hero { padding: clamp(48px, 9vw, 140px) var(--gut) clamp(32px, 5vw, 72px); max-width: 1800px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 7vw, 112px); line-height: .98; letter-spacing: -.045em; }
.hero p { max-width: 560px; margin-top: 28px; font-size: clamp(17px, 1.4vw, 21px); color: #333; }
.hero.small h1 { font-size: clamp(36px, 5vw, 76px); }
.grid-wrap { padding: 0 var(--gut) clamp(48px, 6vw, 96px); max-width: 1800px; margin: 0 auto; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 14px 0 22px; }
.row-head h2 { font-size: 22px; }
.row-head span { color: var(--dim); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.card { text-decoration: none; display: block; }
.card-img { background: var(--card); aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.card-img img { width: 86%; height: 86%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.035); }
.pill { position: absolute; top: 14px; left: 14px; font-size: 12px; padding: 4px 9px; background: #fff; border-radius: 99px; }
.card-meta { display: grid; grid-template-columns: 1fr auto; padding: 12px 2px 0; gap: 0 12px; }
.card-meta b { font-weight: 400; font-size: 18px; }
.card-meta span { color: var(--dim); font-size: 14px; grid-column: 1; }
.card-meta .price { grid-column: 2; grid-row: 1; color: var(--ink); font-size: 18px; }
.noimg { color: var(--dim); font-size: 20px; padding: 20px; text-align: center; }
.noimg.big { font-size: 40px; }
.empty-line { color: var(--dim); }
.empty-line a { color: var(--link); }
.band-cta { background: var(--night); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(40px, 6vw, 88px) var(--gut); }
.band-cta h2 { font-size: clamp(30px, 4vw, 56px); margin-bottom: 10px; }
.band-cta p { max-width: 560px; color: #cfcfcf; margin: 0; }
.makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.maker { background: #fff; padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 180px; }
.maker b { font-weight: 300; font-size: 30px; letter-spacing: -.03em; }
.maker span { color: #444; }
.maker small { margin-top: auto; color: var(--dim); }
.maker:hover { background: #fafafa; }

/* company */
.co-hero { padding: clamp(56px, 9vw, 140px) var(--gut) clamp(36px, 5vw, 72px); max-width: 1800px; margin: 0 auto; }
.co-hero h1 { font-size: clamp(48px, 9vw, 150px); line-height: .92; letter-spacing: -.055em; }
.co-hero .lede { font-size: clamp(20px, 2vw, 30px); color: #444; margin-top: 18px; max-width: 900px; }
.demo-tag, .tag { display: inline-block; font-size: 12px; line-height: 1; padding: 5px 9px 6px; border-radius: 99px; background: rgba(0,0,0,.07); color: #333; letter-spacing: 0; vertical-align: middle; }
.demo-tag { margin-bottom: 18px; background: var(--orange); color: #fff; }
.tag.firmware, .tag.software { background: #e2ecfb; color: #1655a5; }
.tag.shipping, .tag.shipped { background: #e1f3e8; color: #1f6b3e; }
.tag.live, .tag.paid { background: #111; color: #fff; }
.tag.cancelled, .tag.expired, .tag.archived { background: #eee; color: #999; }
.tag.pending_payment { background: #fff1e0; color: #a35a00; }
.story { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr 1fr; gap: clamp(20px, 4vw, 64px); padding: clamp(40px, 5vw, 80px) var(--gut); background: #fff; }
.story h2 { font-size: 22px; }
.prose p { font-size: clamp(17px, 1.3vw, 20px); color: #222; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 15px; align-content: start; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }
.facts a { color: var(--link); text-decoration: none; }

/* product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 80px); padding: clamp(24px, 5vw, 96px) var(--gut) clamp(40px, 5vw, 80px); max-width: 1800px; margin: 0 auto; align-items: start; }
.gallery { position: relative; aspect-ratio: 1 / 1; display: grid; user-select: none; position: sticky; top: 24px; }
.slide { grid-area: 1 / 1; margin: 0; display: grid; place-items: center; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.g-prev, .g-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 44px; height: 88px; cursor: pointer; padding: 10px; opacity: .6; }
.g-prev:hover, .g-next:hover { opacity: 1; }
.g-prev { left: calc(-1 * var(--gut) + 4px); }
.g-next { right: -8px; }
.g-prev svg, .g-next svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.dots { position: absolute; bottom: -8px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }
.dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; background: #b8b8b8; padding: 0; cursor: pointer; }
.dots button.on { background: var(--ink); }
.buybox { padding-top: clamp(0px, 3vw, 40px); max-width: 680px; }
.maker-link { display: inline-block; color: var(--dim); text-decoration: none; font-size: 15px; margin-bottom: 10px; }
.maker-link:hover { color: var(--ink); }
.buybox h1 { font-size: clamp(38px, 3.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.ships { margin: 18px 0 0; font-size: 20px; }
.ships .left { color: var(--orange); }
.reserve { margin: 32px 0 34px; }
.variants { border: 0; padding: 0; margin: 0 0 18px; }
.variants legend { padding: 0; font-size: 20px; margin-bottom: 12px; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatch { cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 52px; height: 52px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); position: relative; }
.swatch input:checked + span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #333; }
.swatch input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.fields input, .fields select, .follow input, .form input, .form select, .form textarea, .inline input, .mini input {
  font: 300 17px/1.3 var(--font); padding: 14px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0; width: 100%; min-width: 0;
}
.fields select { width: auto; padding-right: 30px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.fine-print { color: var(--dim); font-size: 14px; margin: 12px 0 0; }
.soldout { background: #fff; padding: 22px; margin: 28px 0; }
.bullets { padding-left: 1.1em; margin: 22px 0; font-size: clamp(17px, 1.3vw, 20px); }
.bullets li { margin-bottom: 4px; }
.explore { display: flex; flex-direction: column; gap: 8px; margin-top: 34px; font-size: 20px; }
.explore a { color: var(--link); text-decoration: none; }
.explore a:hover { text-decoration: underline; }
.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 80px); background: #fff; padding: clamp(40px, 5vw, 88px) var(--gut); }
.sheet + .sheet { padding-top: 0; }
.sheet h2 { font-size: 26px; margin-bottom: 22px; }
.sheet-col.wide { grid-column: 1 / -1; }
.specs table { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: 300; }
.specs th { color: var(--dim); width: 40%; padding-right: 16px; }
.box { list-style: none; padding: 0; margin: 0; counter-reset: b; }
.box li { border-top: 1px solid var(--line); padding: 11px 0; counter-increment: b; display: flex; gap: 16px; }
.box li::before { content: counter(b, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--orange); padding-top: 4px; }
.dl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.dl li { background: var(--paper); padding: 18px 20px; }
.dl a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.dl a b { font-weight: 400; color: var(--link); }
.dl a span { color: var(--dim); font-size: 14px; font-family: var(--mono); }
.dl p { margin: 8px 0 0; font-size: 14px; color: #555; }
.feed { padding: clamp(40px, 5vw, 88px) var(--gut); max-width: 1100px; }
.feed.wide { max-width: 1100px; padding-top: 0; }
.feed > h2 { font-size: 26px; margin-bottom: 18px; }
.update { border-top: 1px solid var(--line); padding: 22px 0 14px; }
.update-meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--dim); margin-bottom: 10px; flex-wrap: wrap; }
.update-meta a { color: var(--ink); }
.update h3 { font-size: 26px; margin-bottom: 10px; letter-spacing: -.02em; }
.update p { color: #333; max-width: 760px; }
.update a { color: var(--link); }
.follow { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 12px; }
.follow label { display: block; font-size: 18px; margin-bottom: 10px; }
.follow div { display: flex; gap: 8px; max-width: 560px; }
.flash { background: #fff; border-left: 3px solid var(--ink); padding: 14px 18px; margin: 18px var(--gut) 0; font-size: 16px; }
.flash.ok { border-color: var(--ok); }
.flash.err { border-color: var(--err); }
.preview-bar { background: var(--orange); color: #fff; padding: 10px var(--gut); font-size: 15px; }
.preview-bar a { color: #fff; }

/* confirmation, empty states */
.done, .empty, .signin { padding: clamp(56px, 9vw, 140px) var(--gut); max-width: 900px; }
.done h1, .empty h1, .signin h1 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -.045em; line-height: .98; margin-bottom: 22px; }
.kicker a { color: var(--dim); text-decoration: none; }
.lede { font-size: clamp(20px, 1.8vw, 26px); }
.done .facts { margin: 28px 0; }
.signin .btn.buy { max-width: 460px; margin-top: 18px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 12px; max-width: 560px; }
.steps li { display: flex; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.steps b { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--orange); }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--line); }
.foot-in { padding: 36px var(--gut) 48px; display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: center; font-size: 14px; color: var(--dim); max-width: 1800px; margin: 0 auto; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--ink); }
.foot p { grid-column: 1 / -1; margin: 0; }

/* dashboard */
.dash main { background: var(--paper); }
.dash-wrap { padding: 28px var(--gut) 80px; max-width: 1240px; margin: 0 auto; }
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); }
.crumbs i { font-style: normal; margin: 0 8px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 10px 0 26px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.035em; }
.dash-head p { margin: 8px 0 0; }
.dash-head a { color: var(--link); }
.dash .flash { margin: 0 0 18px; }
.flash.token code { display: block; margin-top: 10px; font-size: 14px; padding: 10px; background: var(--paper); word-break: break-all; user-select: all; cursor: copy; }
.panel { background: #fff; padding: clamp(18px, 2.5vw, 32px); margin-bottom: 18px; }
.panel h2 { font-size: 24px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.panel > .dim { margin-top: -8px; font-size: 15px; }
.small-note { font-size: 14px; margin: -6px 0 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 18px; }
.stats div { background: #fff; padding: 18px 20px; }
.stats b { display: block; font-weight: 300; font-size: 34px; letter-spacing: -.03em; }
.stats span { color: var(--dim); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-weight: 300; font-size: 26px; letter-spacing: -.02em; }
.tile span { color: var(--link); font-size: 14px; }
.tile small { color: var(--dim); }
.tile:hover { outline: 1px solid var(--ink); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: #555; }
.form textarea { resize: vertical; font-size: 15px; line-height: 1.45; }
.form .btn { justify-self: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prefix { display: flex; align-items: stretch; }
.prefix em { font-style: normal; color: var(--dim); background: var(--paper); border: 1px solid var(--line); border-right: 0; padding: 14px 10px; font-size: 15px; white-space: nowrap; }
.inline { display: flex; gap: 8px; margin-top: 16px; max-width: 620px; }
.inline .btn { white-space: nowrap; }
.dash-head .inline { margin: 0; }
.scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
.list th { text-align: left; font-weight: 400; color: var(--dim); font-size: 13px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.list td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.list td small { display: block; color: var(--dim); font-size: 13px; }
.list td b { font-weight: 400; }
.list a { color: var(--link); text-decoration: none; }
.list tr.off td { color: var(--dim); }
.mini { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.mini input { padding: 6px 8px; font-size: 13px; width: 150px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.thumbs figure { margin: 0; background: var(--paper); padding: 8px; }
.thumbs img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.thumbs figcaption { font-size: 12px; color: var(--dim); margin: 6px 0 2px; }
.past { list-style: none; padding: 0; margin: 22px 0 0; }
.past li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 10px 0; }
.past b { font-weight: 400; }
.past small { color: var(--dim); margin-left: auto; }

/* phones */
@media (max-width: 1100px) {
  .band-in { grid-template-columns: auto 1fr auto; }
  .fine { display: none; }
}
@media (max-width: 860px) {
  .band-in { grid-template-columns: 1fr auto; gap: 18px; padding-top: 16px; }
  .nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .nav-words small { display: none; }
  .nav-words b { margin: 6px 0 0; font-size: 20px; }
  .pict svg { width: 34px; height: 34px; }
  .glyph { width: 56px; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; }
  .g-prev { left: -10px; }
  .story { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields input[type=email] { grid-column: 1 / -1; }
  .two, .three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
