@font-face {
  font-family: Inter;
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #171717;
  --fg: #f4f4f3;
  --muted: #a1a1a1;
  --rule: #303030;
  --lime: #c4fb50;
  --aqua: #7cf9e6;
  --pink: #e841ba;
  --amber: #f1b43f;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.mast {
  border-bottom: 1px solid var(--rule);
}
.mast-inner,
main,
footer {
  width: min(100% - clamp(2.5rem, 9vw, 10rem), 78rem);
  margin-inline: auto;
}
.mast-inner {
  display: flex;
  align-items: center;
  min-height: 5.1rem;
  gap: 1.4rem;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo {
  width: 7.8rem;
  height: auto;
  margin-left: -0.5rem;
}
.section-label {
  font-size: 0.9rem;
  border-left: 1px solid #474747;
  padding-left: 1.4rem;
  color: #ccc;
  letter-spacing: -0.02em;
}
nav {
  margin-left: auto;
}
main {
  flex: 1;
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}
h1,
h2,
p,
dl,
dd {
  margin: 0;
}
h1 {
  font-size: clamp(3.6rem, 6.9vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 540;
  text-wrap: balance;
}
h2 {
  font-weight: 550;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.lead {
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.6;
  max-width: 26rem;
  color: #b4b4b4;
  margin-top: 1.65rem;
  letter-spacing: -0.025em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 3.2rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: #f0f0eb;
  color: #111;
  font:
    600 0.99rem Inter,
    system-ui,
    sans-serif;
  letter-spacing: -0.025em;
  cursor: pointer;
}
.intro .button,
.message .button {
  margin-top: 2.1rem;
}
.button:hover {
  background: var(--aqua);
}
.arrow {
  font-size: 1.2rem;
}
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 5px;
}
.secondary {
  min-height: 2.6rem;
  padding: 0.55rem 1.05rem;
  border-color: #414141;
  background: transparent;
  color: var(--fg);
  font-size: 0.88rem;
}
.secondary:hover {
  background: #242424;
}
.art {
  position: relative;
  aspect-ratio: 1.12;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 1px solid #303333;
  border-radius: 1.4rem;
  background: radial-gradient(ellipse at 20% 85%, #1d2421 0, transparent 54%), #111312;
}
.art:before {
  position: absolute;
  inset: 0;
  content: '';
  background-image: radial-gradient(#ffffff1a 0.7px, transparent 0.9px);
  background-size: 7px 7px;
}
.pass {
  position: relative;
  isolation: isolate;
  width: 71%;
  aspect-ratio: 1.56;
  overflow: hidden;
  transform: rotate(-11deg);
  border-radius: clamp(0.85rem, 1.65vw, 1.4rem);
  border: 1px solid #ffffff4a;
  background: linear-gradient(130deg, #2c3230, #191d1c 60%);
  box-shadow:
    0 10px 4px -6px #0b0d0c,
    0 19px 5px -11px #303531,
    0 28px 5px -16px #101110,
    0 36px 8px -21px #343a35,
    0 48px 35px -15px #000b;
}
.pass-logo {
  position: absolute;
  top: 10%;
  left: 6%;
  width: 38%;
  height: auto;
  z-index: 2;
}
.rings {
  position: absolute;
  right: -9%;
  bottom: -74%;
  width: 90%;
  aspect-ratio: 1;
  transform: rotate(-24deg);
}
.rings i {
  display: block;
  position: absolute;
  border-radius: 50%;
  border: clamp(0.75rem, 1.6vw, 1.5rem) solid;
  inset: 0;
  color: var(--lime);
}
.rings i:nth-child(2) {
  inset: 10%;
  color: var(--aqua);
}
.rings i:nth-child(3) {
  inset: 20%;
  color: var(--pink);
}
.rings i:nth-child(4) {
  inset: 30%;
  color: var(--amber);
}
.account {
  width: min(100%, 52rem);
  margin-inline: auto;
}
.account h1 {
  font-size: clamp(3.1rem, 6vw, 5.1rem);
  margin-bottom: 2rem;
}
.profile {
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  background: var(--surface);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
.avatar-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.avatar {
  position: relative;
  flex: none;
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #273c37;
  color: var(--aqua);
  font-size: 1.25rem;
  font-weight: 620;
}
.detail {
  border-top: 1px solid #333;
  padding: 1.05rem 0;
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 2fr;
  gap: 1rem;
  font-size: 0.96rem;
  line-height: 1.5;
}
.detail:last-child {
  padding-bottom: 0;
}
dt {
  color: var(--muted);
}
dd {
  overflow-wrap: anywhere;
}
.verified,
.unverified {
  display: inline-block;
  margin-left: 0.5rem;
  border: 1px solid #35564e;
  border-radius: 1rem;
  padding: 0.06rem 0.47rem;
  font-size: 0.74rem;
  color: var(--aqua);
}
.unverified {
  color: var(--muted);
  border-color: #494949;
}
.message {
  max-width: 48rem;
}
.message h1 {
  font-size: clamp(2.7rem, 5.3vw, 5rem);
}
footer {
  padding-block: 1.45rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
footer a {
  color: #bdbdbd;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }
  .art {
    aspect-ratio: 1.75;
  }
  .pass {
    width: 58%;
  }
  .mast-inner {
    min-height: 4.3rem;
  }
  main {
    padding-block: 3rem;
  }
  .account {
    margin-inline: 0;
  }
  .detail {
    gap: 0.6rem;
  }
  .logo {
    width: 7rem;
  }
}
@media (max-width: 440px) {
  .detail {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .mast-inner {
    gap: 0.8rem;
  }
  .section-label {
    padding-left: 0.8rem;
  }
  .intro .button {
    margin-top: 1.4rem;
  }
  .art {
    border-radius: 1rem;
  }
}

.rotulo-logo { font-size: 1.8rem; letter-spacing: -.06em; color: var(--fg); }
.logo-link { text-decoration: none; }

.result a { color: var(--aqua); }
.result { overflow-wrap: anywhere; gap: 1rem; }
.result code { user-select: all; padding: 1rem; background: var(--surface); }

.explore .app-shelf { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,6.25rem),7rem)); column-gap:1.25rem; row-gap:1rem; }
.explore .app-shelf li { border:0; padding:0; }
.app-shelf a { display:grid; justify-items:center; gap:.6rem; color:var(--fg); text-decoration:none; border-radius:.6rem; padding:.35rem; }
.app-shelf a:focus-visible { outline:2px solid var(--aqua); outline-offset:3px; }
.app-icon { position:relative; display:grid; place-items:center; isolation:isolate; width:4.75rem; aspect-ratio:1; border-radius:24%; overflow:hidden; box-shadow:inset 0 0 0 1px #ffffff26,0 4px 10px #0004; }
.merkado-icon { background:radial-gradient(circle at 100% 118%, transparent 0 26%, var(--amber) 27% 32%, transparent 33% 38%, var(--pink) 39% 44%, transparent 45% 50%, var(--aqua) 51% 56%, transparent 57% 62%, var(--lime) 63% 68%, transparent 69%),#242826; }
.merkado-icon img { width:75%; align-self:start; margin-top:17%; }
.rotulo-icon { color:#ffefc5; background:linear-gradient(155deg,#f9bb55 0 13%,transparent 13% 79%,#feac56 79% 83%,#fc6389 83% 88%,#7edac7 88%),#8e2442; font:bold italic 3.15rem/1 Georgia,serif; text-shadow:2px 2px #502239; }
.app-caption { font-weight:600; font-size:.94rem; }
.app-caption span { color:var(--aqua); font-size:.8em; }
.app-shelf a:hover .app-caption { text-decoration:underline; text-underline-offset:.2em; }
.action-result p { margin-top:.7rem; }
.action-result code,.action-result pre { display:block; padding:.75rem; margin:.75rem 0; overflow-wrap:anywhere; white-space:pre-wrap; color:var(--aqua); background:var(--bg); border-radius:.4rem; user-select:all; }

/* Member account */
main:has(.account-home) { width:min(100% - clamp(2rem,8vw,8rem),67rem); align-content:start; padding:clamp(1.5rem,4vw,3.25rem) 0 4rem; }
.account-home { min-width:0; }
.identity-band { position:relative; isolation:isolate; display:flex; align-items:center; min-height:10.5rem; padding:clamp(1.25rem,3.4vw,2.5rem); border:1px solid #303535; border-radius:1.4rem; background:linear-gradient(110deg,#1b2221,#151716 63%,#191d1a); }
.identity-content { display:flex; align-items:center; gap:clamp(.9rem,2vw,1.5rem); max-width:83%; min-width:0; }
.identity-content .avatar { width:clamp(3.4rem,7vw,5rem); font-size:clamp(1.2rem,2.5vw,1.8rem); border:1px solid #49665e; color:#b0f6de; background:linear-gradient(145deg,#304b43,#20332f); }
.identity-name { min-width:0; }
.identity-name h1 { font-size:clamp(1.65rem,4.1vw,3.4rem); line-height:1.09; letter-spacing:-.059em; overflow-wrap:anywhere; text-wrap:initial; }
.identity-name > .edit-button,.identity-name > a { background:transparent; border:0; color:#c1d0c9; font-size:.875rem; padding:.4rem 0; min-height:2.75rem; text-underline-offset:.24em; text-decoration:underline; }
.brand-orbit { pointer-events:none; overflow:hidden; position:absolute; z-index:-1; inset:0; border-radius:inherit; opacity:.8; }
.brand-orbit i { position:absolute; right:-5.3rem; bottom:-12rem; width:20rem; height:20rem; border:1rem solid var(--lime); border-radius:50%; transform:rotate(-20deg); }
.brand-orbit i:nth-child(2) { width:16.8rem; height:16.8rem; right:-3.7rem; bottom:-10.4rem; border-color:var(--aqua); }
.brand-orbit i:nth-child(3) { width:13.6rem; height:13.6rem; right:-2.1rem; bottom:-8.8rem; border-color:var(--pink); }
.brand-orbit i:nth-child(4) { width:10.4rem; height:10.4rem; right:-.5rem; bottom:-7.2rem; border-color:var(--amber); }
.settings-nav { display:flex; margin:1.05rem 0 1.5rem; gap:1.5rem; border-bottom:1px solid var(--rule); }
.settings-nav a { position:relative; color:var(--muted); padding:.85rem .12rem; font-size:.95rem; font-weight:580; text-decoration:none; }
.settings-nav a:hover,.settings-nav a[aria-current] { color:var(--fg); }
.settings-nav a[aria-current]::after { content:''; position:absolute; height:3px; background:var(--aqua); border-radius:2rem; inset:auto 0 -1px; }
.settings-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(14rem,17rem); align-items:start; gap:1.25rem; }
.settings-feed { display:grid; min-width:0; gap:1.1rem; }
.settings-card,.account-home .explore { min-width:0; background:#141615; border:1px solid #2d302e; border-radius:1.15rem; padding:0 clamp(1rem,2.4vw,1.65rem); }
.settings-card h2,.account-home .explore h2 { font-size:1.16rem; font-weight:610; line-height:1.35; letter-spacing:-.035em; padding:1.2rem 0 .83rem; }
.setting-row { display:flex; justify-content:space-between; align-items:center; gap:.8rem; padding:.9rem 0; min-height:4.25rem; }
.setting-row + .setting-row,.settings-card h2 + .setting-row { border-top:1px solid #2d302e; }
.row-content { min-width:0; }
.row-label { font-size:.79rem; color:#b3b9b6; line-height:1.35; font-weight:510; }
.row-value { margin-top:.22rem; font-size:1rem; line-height:1.45; overflow-wrap:anywhere; }
.row-value.empty { color:#9fa5a2; }
.row-actions { flex-shrink:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.4rem; max-width:45%; }
.edit-button,.text-action,.close-editor { font:inherit; cursor:pointer; }
.edit-button { border:1px solid #414643; border-radius:.65rem; padding:.48rem .85rem; min-width:3.5rem; min-height:2.75rem; font-size:.86rem; font-weight:560; line-height:1.2; color:var(--fg); background:#202421; }
.edit-button:hover { background:#2c332e; border-color:#65736a; }
.account-home :focus-visible,.editor :focus-visible { outline:2px solid var(--aqua); outline-offset:3px; }
.account-home .explore { padding-bottom:1rem; }
.explore .app-shelf { list-style:none; margin:0; padding:0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.25rem; }
.app-shelf a { align-content:start; }
.section-status,.account-notice,.saved-notice { font-size:.93rem; line-height:1.5; padding:1rem 0; color:#c2c8c4; }
.section-status a,.account-notice a,.editor a { color:var(--aqua); }
.section-status .edit-button,.account-notice .edit-button { margin-top:.5rem; }
.account-notice,.saved-notice { border:1px solid #3a5246; background:#18251e; color:#d1e8d8; border-radius:.8rem; padding:.85rem 1rem; }
dialog.editor { box-sizing:border-box; color:var(--fg); padding:0; width:min(28rem,calc(100vw - 2.5rem)); max-width:100%; max-height:85dvh; border:1px solid #434a45; background:#191c1a; border-radius:1.25rem; overflow:auto; box-shadow:0 1.5rem 5rem #0008; }
.editor::backdrop { background:rgb(0 0 0 / .72); }
html:has(dialog.editor[open]) { overflow:hidden; }
.editor-interior { padding:1.35rem 1.45rem 1.45rem; }
.editor-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:0 0 1.1rem; }
.editor .editor-head h2 { padding:0; margin:0; font-size:1.45rem; line-height:1.2; color:var(--fg); font-weight:600; }
.close-editor { flex:none; width:2.75rem; height:2.75rem; border:1px solid #3b403c; background:#242925; color:var(--fg); border-radius:50%; font-size:1.5rem; line-height:1; }
.editor .account-action { display:grid; gap:1rem; align-items:stretch; margin:0; }
.editor label { display:block; font-size:.92rem; color:var(--fg); font-weight:520; }
.editor .account-action input:not([type=checkbox]),.editor .account-action select { display:block; min-width:0; max-width:100%; width:100%; min-height:2.9rem; background:#0e110f; color:var(--fg); border:1px solid #585f59; padding:.7rem .8rem; border-radius:.65rem; margin-top:.45rem; font:400 1rem/1.4 Inter,system-ui,sans-serif; }
.editor .account-action input[type=file] { font-size:.88rem; }
.editor .confirm { display:flex; align-items:center; gap:.5rem; min-height:2.75rem; }
.editor .confirm input { height:1.15rem; width:1.15rem; accent-color:var(--aqua); }
.editor .field-help,.editor p { line-height:1.5; font-size:.93rem; color:#bfc7c0; }
.editor-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.35rem; }
.editor .button { min-height:2.75rem; border-radius:.7rem; padding:.65rem 1.05rem; font-size:.93rem; }
.editor .button:not(.secondary,.destructive) { background:var(--aqua); color:#0b2722; }
.editor .button:disabled { opacity:.58; cursor:wait; }
.editor [hidden] { display:none !important; }
.editor .text-action { border:0; padding:0; min-height:2.75rem; background:transparent; }
.danger { color:#ffb2ac; }
.destructive { background:#862f32; color:white; }
.remove-option { border-top:1px solid var(--rule); margin-top:1.15rem; padding-top:.65rem; }
.action-result:not(:empty) { margin-top:1rem; }
.action-result button { margin-top:.6rem; }
@media (max-width:760px) {
  .settings-layout { grid-template-columns:1fr; }
  .identity-band { min-height:7.2rem; }
  .brand-orbit { opacity:.44; mask-image:linear-gradient(to left,black,transparent 36%); }
  .account-home .app-shelf { grid-template-columns:repeat(2,5.8rem); gap:.8rem; }
}
@media (max-width:520px) {
  main:has(.account-home) { width:calc(100% - 2rem); padding-top:1.2rem; }
  .identity-band { border-radius:1rem; padding:1.05rem; }
  .settings-nav { margin:.65rem 0 1.05rem; }
  .settings-nav a { padding:.77rem .15rem; }
  .settings-card { border-radius:1rem; }
  dialog.editor { position:fixed; inset:auto 0 0; margin:0; width:100%; max-height:90dvh; border-bottom:0; border-radius:1.3rem 1.3rem 0 0; }
  .editor-interior { padding:1.1rem 1.15rem max(1.3rem,env(safe-area-inset-bottom)); }
}
