/* OmniNotch extension store: the Porthole world (night layer of the Living Sky) inside the Mactoro chrome. */
@font-face { font-family: Urbanist; font-weight: 300; font-display: swap; src: url(/omninotch/fonts/Urbanist-300.woff2) format("woff2"); }
@font-face { font-family: Urbanist; font-weight: 500; font-display: swap; src: url(/omninotch/fonts/Urbanist-500.woff2) format("woff2"); }
@font-face { font-family: Urbanist; font-weight: 700; font-display: swap; src: url(/omninotch/fonts/Urbanist-700.woff2) format("woff2"); }

:root {
  --night: #05060F; --indigo: #1B2257; --window: #3A4392; --orb: #6B6EF2; --calm: #9EC2FF;
  --star: #E8ECFF; --star-2: rgba(232, 236, 255, .78); --star-3: rgba(232, 236, 255, .6);
  --rim: rgba(232, 236, 255, .14); --row: rgba(232, 236, 255, .1);
  --font: Urbanist, -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html { background: var(--night); scrollbar-color: #2A3170 var(--night); }
body { background: transparent; color: var(--star); font: 300 18px/1.55 var(--font); caret-color: var(--calm); }
::selection { background: var(--orb); color: #fff; }
:focus-visible { outline: 2px solid var(--calm); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -.035em; margin: 0; }
a { color: inherit; }

/* the night sky, fixed behind the page */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 760px at 50% 0%, #151B4D 0%, #0A0D24 52%, var(--night) 88%); }
.sky::after { content: ""; position: absolute; inset: 0; opacity: .85; background-image:
    radial-gradient(1.4px 1.4px at 40px 60px, #fff, transparent), radial-gradient(1px 1px at 210px 130px, #fffc, transparent),
    radial-gradient(1.2px 1.2px at 120px 280px, #fffd, transparent), radial-gradient(1px 1px at 330px 40px, #fffa, transparent),
    radial-gradient(1.6px 1.6px at 400px 330px, #fff, transparent), radial-gradient(1px 1px at 60px 470px, #fffb, transparent);
  background-size: 340px 300px, 470px 410px, 530px 610px, 290px 370px, 610px 530px, 410px 470px; }

/* chrome */
.topbar { position: absolute; height: 64px; font-family: var(--font); }
.brand { font: 700 18px/1 var(--font); letter-spacing: -.02em; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand .by { font-weight: 500; color: var(--star-3); }
.nav { font-size: 16px; font-weight: 500; align-items: center; }
.nav a { color: var(--star-2); }
.nav a:hover, .nav a[aria-current] { color: var(--star); }
.nav .buy-small { padding: 9px 16px; border-radius: 999px; color: var(--star); background: rgba(232, 236, 255, .1); box-shadow: inset 0 0 0 1px rgba(232, 236, 255, .18); }
.menubar { position: relative; height: 34px; margin-top: 64px; background: #000; box-shadow: 0 1px 0 rgba(232, 236, 255, .07); }
.footer { color: var(--star-3); }
.footer a { color: var(--star-2); }

/* buttons */
.btn { font: 700 16px/1 var(--font); letter-spacing: -.01em; }
.btn-primary { background: var(--star); color: #0A0F30; box-shadow: 0 14px 30px -12px rgba(5, 6, 15, .9), inset 0 -2px 0 rgba(10, 15, 48, .12); }
.btn-primary:hover { background: #fff; }
.btn-primary[aria-disabled="true"] { background: rgba(232, 236, 255, .14); color: var(--star); box-shadow: inset 0 0 0 1px rgba(232, 236, 255, .3); cursor: default; transform: none; }
.btn-quiet { background: rgba(232, 236, 255, .08); color: var(--star); border: 1px solid rgba(232, 236, 255, .22); }
.install { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  font: 700 15px/1 var(--font); text-decoration: none; color: #0A0F30; background: var(--star);
  transition: background .2s var(--ease), transform .2s var(--ease); }
.install:hover { background: #fff; transform: translateY(-1px); }
.install:active { transform: scale(.97); }

/* a pill as OmniNotch draws it: always the app's own render */
.pill { display: block; width: 100%; max-width: 396px; height: auto; aspect-ratio: 396 / 52; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.meta { font-size: 15px; font-weight: 500; color: var(--star-3); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* icon tiles: a glass squircle, the glyph in starlight, the category's hue in the glass */
.tile { --h: 236; --s: 44px; flex: none; display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 26%;
  color: #F2F4FF; background:
    radial-gradient(120% 90% at 30% 10%, hsl(var(--h) 70% 72% / .55), transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 45% 34%), hsl(var(--h) 40% 16%) 70%, #0A0D24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(232, 236, 255, .12), 0 8px 18px -8px rgba(0, 0, 0, .8); }
.tile svg { width: 54%; height: 54%; }
/* a real logo: the app's or service's own icon, as it is (Mac app icons carry their own shape; site icons get the squircle) */
.tile.logo { background: none; box-shadow: none; }
.tile.logo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 23%; }
.t-big { --s: 64px; }
.t-hero { --s: 104px; }
.t-cloud { --s: 52px; }

/* store hero: the notch opens into the search bar, like the command bar */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 8px; }
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; width: min(680px, 100%); height: 64px; margin: -1px auto 0;
  padding: 0 18px 0 22px; background: #000; border-radius: 0 0 26px 26px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .9), 0 1px 0 rgba(232, 236, 255, .06) inset;
  transform-origin: top center; animation: drop .9s var(--ease) .15s both; }
@keyframes drop { from { clip-path: inset(0 36% 52% 36% round 0 0 16px 16px); } to { clip-path: inset(0 0 0 0 round 0 0 26px 26px); } }
.bar svg { flex: none; width: 20px; height: 20px; stroke: rgba(232, 236, 255, .6); }
.bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--star); font: 500 19px var(--font); }
.bar input::placeholder { color: rgba(232, 236, 255, .55); }
.bar input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.bar:focus-within { box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(158, 194, 255, .5); }
.bar kbd { flex: none; font: 500 13px var(--font); color: rgba(232, 236, 255, .6); padding: 5px 9px; border-radius: 8px; background: rgba(232, 236, 255, .08); }
.field { position: relative; width: 100%; height: clamp(380px, 38vw, 470px); margin-top: 26px; }
.cloud { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0;
  -webkit-mask: radial-gradient(75% 85% at 50% 50%, #000 55%, transparent 100%); mask: radial-gradient(75% 85% at 50% 50%, #000 55%, transparent 100%); }
.cloud li { position: absolute; transform: translate(-50%, -50%); opacity: var(--o); }
.cloud .tile { --s: var(--sz); }
.field-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-size: clamp(64px, 8vw, 96px); line-height: .95; }
.hero .lede { margin: 16px 0 0; font-size: clamp(19px, 1.8vw, 23px); color: var(--star-2); max-width: 40ch; }
.hero .count { margin: 14px 0 0; font-size: 16px; color: var(--star-3); font-variant-numeric: tabular-nums; }
.hero .count b { color: var(--star); font-weight: 700; }

/* sections */
.sec { margin-top: clamp(64px, 8vw, 104px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; }
.sec-head p { margin: 6px 0 0; color: var(--star-3); font-size: 17px; }

/* featured: three panels, the one place with a surface */
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { --h: 236; position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px; border-radius: 22px;
  background: radial-gradient(120% 90% at 0% 0%, hsl(var(--h) 60% 45% / .32), transparent 62%),
    linear-gradient(180deg, rgba(232, 236, 255, .06), rgba(232, 236, 255, .02));
  box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 75% / .16); transition: box-shadow .25s var(--ease); }
.feat .tile { margin-bottom: 8px; }
.feat h3 { font-size: 24px; letter-spacing: -.02em; }
.feat h3 a { text-decoration: none; }
.feat h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.feat:hover { box-shadow: inset 0 0 0 1px hsl(var(--h) 70% 80% / .32); }
.feat p { margin: 0; color: var(--star-2); font-size: 17px; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.feat .install { position: relative; z-index: 1; }

/* browse: categories down the left, tabs for order, the list */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(232, 236, 255, .06); }
.tabs button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font: 500 15px var(--font); color: var(--star-2); }
.tabs button:hover { color: var(--star); }
.tabs button[aria-selected="true"] { background: rgba(232, 236, 255, .14); color: var(--star); }
.browse-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.cats { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.cat { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 12px; border: 0; border-radius: 10px;
  cursor: pointer; background: transparent; font: 500 15px var(--font); color: var(--star-2); text-align: left; }
.cat span { color: var(--star-3); font-variant-numeric: tabular-nums; }
.cat:hover { color: var(--star); background: rgba(232, 236, 255, .05); }
.cat[aria-pressed="true"] { color: var(--star); background: rgba(232, 236, 255, .12); }
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--row); }
.item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 0 22px;
  padding: 14px 6px; border-bottom: 1px solid var(--row); }
.item .tile { --s: 42px; }
.item h3 { font-size: 18px; letter-spacing: -.01em; }
.item h3 a { text-decoration: none; }
.item h3 a::after { content: ""; position: absolute; inset: 0; }
.item:hover { background: rgba(232, 236, 255, .035); }
.by-inline { display: none; color: var(--star-3); }
.item:hover h3 { color: #fff; }
.item .words p { margin: 1px 0 0; color: var(--star-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.item .install { position: relative; z-index: 1; height: 32px; padding: 0 14px; font-size: 14px; }
.empty { padding: 48px 0; color: var(--star-2); }
.more { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }

/* make your own · get OmniNotch: two equal halves */
.halves { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rim); }
.half { padding: clamp(36px, 5vw, 64px) clamp(0px, 4vw, 56px) clamp(36px, 5vw, 64px) 0; }
.half + .half { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--rim); }
.half h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; }
.half p { color: var(--star-2); margin: 14px 0 0; max-width: 40ch; }
.half ol { margin: 18px 0 0; padding-left: 1.2em; color: var(--star-2); }
.half ol li { margin: 4px 0; }
.half code, .doc code { font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace; color: var(--star); background: rgba(232, 236, 255, .08); padding: .1em .4em; border-radius: 6px; }
.half .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* extension page */
.crumbs { padding-top: clamp(96px, 11vw, 130px); font-size: 15px; font-weight: 500; color: var(--star-3); }
.crumbs a { color: var(--star-2); text-decoration: none; }
.crumbs a:hover { color: var(--star); }
.ext-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 32px; align-items: center; margin-top: 22px; }
.ext-head h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1; }
.ext-head .lede { margin: 12px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--star-2); max-width: 52ch; }
.ext-head .byline { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--star-3); }
.ext-head .byline a { color: var(--star-2); }
.ext-head .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ext-head .actions .install { height: 48px; padding: 0 26px; font-size: 17px; }
.note { font-size: 14px; color: var(--star-3); }
.stage { margin-top: 40px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px; background: #000; box-shadow: 0 1px 0 rgba(232, 236, 255, .07); }
.stage { overflow: hidden; }
.stage .pill { position: relative; z-index: 1; width: max(396px, min(594px, 100% - 24px)); max-width: none; flex: none; }
.stage .label { font-size: 14px; color: var(--star-3); }
.ext-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 72px; margin-top: 56px; }
.ext-body section + section { margin-top: 40px; }
.cmds, .needs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--row); }
.cmds li, .needs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--row); }
.c-title { color: var(--star); font-weight: 500; }
.c-mode { color: var(--star-3); white-space: nowrap; }
.needs li { color: var(--star-2); }
.ext-body h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.ext-body p { margin: 0 0 14px; color: var(--star-2); max-width: 58ch; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 16px; }
.facts dt { color: var(--star-3); }
.facts dd { margin: 0; color: var(--star); }
.facts a { color: var(--calm); text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* the guide */
.doc { max-width: 760px; padding-top: 0; }
.doc h1 + p { margin-top: 20px; }
.doc h1 { font-size: clamp(48px, 6vw, 76px); line-height: 1; margin-top: 18px; }
.doc h2 { font-size: 30px; letter-spacing: -.025em; margin: 56px 0 12px; }
.doc h3 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--star-2); }
.doc strong { color: var(--star); }
.doc a { color: var(--calm); }
.doc pre { margin: 16px 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(232, 236, 255, .1); }
.doc p code, .doc li code { overflow-wrap: anywhere; }
.doc td code { white-space: nowrap; }
.doc pre code { background: none; padding: 0; font-size: 14px; line-height: 1.6; color: var(--star); }
.doc .table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--row); color: var(--star-2); }
.doc th { color: var(--star); font-weight: 700; }

@media (max-width: 760px) {
  .topbar .nav { display: flex; gap: 12px; font-size: 14px; white-space: nowrap; }
  .topbar .brand > span { display: none; }
  .topbar .nav a:first-child { display: none; }
  .nav .buy-small { padding: 7px 12px; }
}
@media (max-width: 1100px) {
  .item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .item .meta { display: none; }
  .by-inline { display: inline; }
}
@media (max-width: 900px) {
  .browse-grid { grid-template-columns: 1fr; gap: 16px; }
  .cats { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .cat { flex: none; gap: 8px; }
  .featured { grid-template-columns: 1fr; }
  .ext-head { grid-template-columns: auto minmax(0, 1fr); }
  .ext-head .actions { grid-column: 1 / -1; align-items: flex-start; }
  .halves { grid-template-columns: 1fr; }
  .half { padding-right: 0; }
  .half + .half { padding-left: 0; border-left: 0; border-top: 1px solid var(--rim); }
  .ext-body { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .field { height: auto; margin-top: 30px; }
  .cloud { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 360px; margin: 0 auto;
    -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
  .cloud li { position: static; transform: none; opacity: 1; }
  .cloud li:nth-child(n+19) { display: none; }
  .cloud .tile { --s: 42px; }
  .field-copy { position: static; margin-top: 26px; }
}
@media (max-width: 560px) {
  .bar { height: 56px; border-radius: 0 0 20px 20px; }
  .bar kbd { display: none; }
  .t-hero { --s: 72px; }
  .stage { margin-inline: calc(-1 * var(--gutter)); }          /* full bleed: the pill's own shape shows on the sky */
  .stage::before { display: none; }
  .item .words p { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .bar { animation: none; }
  .install, .install:hover { transition: none; transform: none; }
}

/* the store ends on the two halves: the footer rule closes their divider */
main:has(> .halves:last-child) + .footer { margin-top: 0; }
