/* Blumenau Tech site. Tokens, base, components and pages.
   Shape rule: buttons, chips and pills are full pill; cards 20px; fields 12px; mockup windows 16-22px.
   Color rule: red (the tower) is action; blue (the sky) is selection, information and the assistant. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --paper: #fbfaf7;
  --paper-2: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --ink: #151515;
  --ink-2: #47463f;
  --ink-3: #69685f;
  --line: rgb(21 21 21 / 0.08);
  --line-2: rgb(21 21 21 / 0.14);
  --field-border: #8f8d85;

  --red: #d0262a;
  --red-hover: #b91f23;
  --red-ink: #c22125;
  --red-soft: #fbeceb;
  --blue: #3aaee8;
  --blue-ink: #0b6dab;
  --blue-soft: #e8f4fb;
  --green-ink: #1d7446;
  --green-soft: #e6f3ea;
  --warn-ink: #8a5300;
  --warn-soft: #fbf0dc;
  --device: #1c1c1e;

  --shadow-1: 0 1px 2px rgb(48 36 20 / 0.06);
  --shadow-2: 0 1px 2px rgb(48 36 20 / 0.05), 0 14px 34px -16px rgb(48 36 20 / 0.2);
  --shadow-3: 0 2px 6px rgb(48 36 20 / 0.05), 0 42px 90px -34px rgb(48 36 20 / 0.34);
  --focus-ring: rgb(11 109 171 / 0.22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --topbar: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --paper-2: #171716;
    --surface: #1b1b19;
    --surface-2: #232321;
    --ink: #f2f1ec;
    --ink-2: #c4c3bc;
    --ink-3: #9a9991;
    --line: rgb(255 255 255 / 0.08);
    --line-2: rgb(255 255 255 / 0.14);
    --field-border: #6e6d66;

    --red-hover: #e0322f;
    --red-ink: #ef4a44;
    --red-soft: rgb(239 74 68 / 0.13);
    --blue-ink: #4cb8f0;
    --blue-soft: rgb(76 184 240 / 0.13);
    --green-ink: #62cc8f;
    --green-soft: rgb(98 204 143 / 0.13);
    --warn-ink: #e8b55c;
    --warn-soft: rgb(232 181 92 / 0.13);
    --device: #2a2a2c;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 36px -16px rgb(0 0 0 / 0.6);
    --shadow-3: 0 2px 6px rgb(0 0 0 / 0.35), 0 44px 90px -30px rgb(0 0 0 / 0.75);
    --focus-ring: rgb(76 184 240 / 0.28);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main {
  flex: 1 0 auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 3px;
}
::selection {
  background: rgb(58 174 232 / 0.28);
}
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.link {
  color: var(--blue-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover {
  text-decoration-thickness: 2px;
}
.muted {
  color: var(--ink-3);
}

/* ---------- Buttons ---------- */
.button {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.16s var(--ease);
}
.button:active:not([disabled]) {
  transform: scale(0.98);
}
.button .icon {
  width: 1.1em;
  height: 1.1em;
}
.button--lg {
  --h: 52px;
  padding: 0 26px;
  font-size: 1rem;
}
.button--sm {
  --h: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}
.button--block {
  width: 100%;
}
.button--primary {
  background: var(--red);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 1px 2px rgb(120 20 20 / 0.18),
    0 8px 18px -12px rgb(208 38 42 / 0.55);
}
.button--primary:hover {
  background: var(--red-hover);
}
.button--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-1);
}
.button--secondary:hover {
  border-color: var(--field-border);
}
.button--ghost {
  background: transparent;
  color: var(--ink);
}
.button--ghost:hover {
  background: var(--surface-2);
}
.button--danger {
  background: transparent;
  color: var(--red-ink);
  border-color: color-mix(in srgb, var(--red-ink) 45%, transparent);
}
.button--danger:hover {
  background: var(--red-soft);
}
.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.button[aria-busy="true"] {
  cursor: progress;
}
.button[data-state="ok"] {
  color: var(--green-ink);
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-button:hover {
  background: var(--surface-2);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .topbar {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.topbar__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  border-radius: 10px;
}
.brand__icon {
  width: 36px;
  height: 36px;
}
.brand__wordmark {
  width: auto;
  height: 18px;
}
.topbar__nav {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}
.topbar__nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.95rem;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.topbar__nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.topbar__nav a[aria-current="page"] {
  color: var(--ink);
}
.topbar__account {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 200px;
  min-height: 38px;
}
.topbar__person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 4px;
  font-weight: 600;
  font-size: 0.925rem;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.avatar--link {
  width: 36px;
  height: 36px;
}
.topbar__compact,
.topbar__menu {
  display: none;
}
.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 22px;
  background: var(--paper);
  max-height: calc(100dvh - var(--topbar));
  overflow-y: auto;
}
.mobile-menu__nav a {
  display: block;
  padding: 15px 2px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__account {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.mobile-menu__who {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  background: none;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
}
@media (max-width: 899px) {
  .topbar__nav,
  .topbar__account {
    display: none;
  }
  .topbar__compact {
    display: flex;
    margin-left: auto;
  }
  .topbar__menu {
    display: inline-grid;
    margin-right: -8px;
  }
}
.topbar--minimal .topbar__back {
  margin-left: auto;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  font-size: 0.95rem;
}
.footer__inner {
  display: grid;
  gap: 36px;
}
.footer__brand p {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 34ch;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 24px;
}
.footer__head {
  font-weight: 650;
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.footer__nav a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
}
.footer__nav a:hover {
  color: var(--ink);
}
.footer__legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.875rem;
}
@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Section rhythm ---------- */
.section {
  padding-block: clamp(64px, 7.5vw, 112px);
}
.section-head {
  max-width: 700px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .section-lead {
  margin-inline: auto;
}
.section-title {
  font-size: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.section-lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.split {
  display: grid;
  gap: 52px;
}
.split--reverse .split__text {
  order: -1;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(56px, 6vw, 96px);
    align-items: center;
  }
  .split--reverse {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
  .split--reverse .split__text {
    order: 0;
  }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Pills and status ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill--ok {
  background: var(--green-soft);
  color: var(--green-ink);
}
.pill--info {
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.pill--wait {
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.pill--neutral {
  background: var(--surface-2);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ============================================================
   Landing
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(44px, 6.5vw, 92px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  isolation: isolate;
}
.hero::before {
  /* the sky of the logo: a soft wash behind the product window */
  content: "";
  position: absolute;
  inset: 38% 0 auto;
  height: 62%;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 70% 30%, rgb(58 174 232 / 0.16), transparent 70%),
    radial-gradient(40% 60% at 15% 70%, rgb(208 38 42 / 0.06), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: 28px;
  grid-template-areas:
    "title"
    "copy"
    "switch";
}
.hero__title {
  grid-area: title;
  font-size: clamp(2.45rem, 0.9rem + 3.75vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -0.034em;
  font-weight: 760;
}
.hero__line {
  display: block;
}
.hero__line--accent {
  color: var(--red-ink);
}
.hero__copy {
  grid-area: copy;
  max-width: 560px;
}
.hero__lead {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__switch {
  grid-area: switch;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.hero__switch-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3);
}
.hero__stage {
  margin-top: clamp(36px, 5vw, 60px);
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title title"
      "copy switch";
    column-gap: 48px;
    row-gap: 30px;
  }
  .hero__switch {
    align-self: end;
    justify-items: end;
  }
}
@media (max-width: 559px) {
  .hero__actions .button {
    width: 100%;
  }
  .hero__switch {
    justify-items: stretch;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line,
  .js .hero__copy,
  .js .hero__switch,
  .js .hero__demo {
    animation: rise 1s var(--ease) both;
  }
  .js .hero__line--accent {
    animation-delay: 0.08s;
  }
  .js .hero__copy {
    animation-delay: 0.16s;
  }
  .js .hero__switch {
    animation-delay: 0.24s;
  }
  .js .hero__demo {
    animation: rise-far 1.2s var(--ease) 0.3s both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes rise-far {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.985);
  }
}

/* segmented control (hero) */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar {
  display: none;
}
.segmented__item {
  position: relative;
  flex: 1 0 auto;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.segmented__item:hover {
  color: var(--ink);
}
.segmented__item[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    var(--shadow-1),
    0 0 0 1px var(--line);
}
.segmented__progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.segmented__item.is-running .segmented__progress {
  opacity: 0.85;
  animation: progress var(--demo-interval, 5200ms) linear forwards;
}
@keyframes progress {
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 559px) {
  .segmented {
    display: flex;
  }
  .segmented__item {
    padding: 0 10px;
    font-size: 0.82rem;
  }
  .segmented__progress {
    left: 10px;
    right: 10px;
  }
}

/* ---------- Browser window + app mockup ---------- */
.browser {
  position: relative;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.browser__dots {
  display: flex;
  gap: 7px;
  width: 64px;
  flex: none;
}
.browser__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}
.browser__spacer {
  width: 64px;
  flex: none;
}
.browser__url {
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.browser__url .icon {
  width: 13px;
  height: 13px;
  color: var(--green-ink);
}
.browser__url span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 470px;
  font-size: 14px;
  line-height: 1.4;
}
.app__side {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 60%, var(--surface));
}
.app__org {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 18px;
  font-weight: 650;
  font-size: 14px;
}
.app__mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app__org-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app__nav {
  display: grid;
  gap: 2px;
}
.app__nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 13.5px;
  white-space: nowrap;
}
.app__nav .icon {
  width: 17px;
  height: 17px;
}
.app__nav li.is-active {
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-weight: 600;
}
.app__main {
  padding: 24px 28px 18px;
  min-width: 0;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.hero__demo .app__nav,
.hero__demo .app__org,
.hero__demo .browser__url span {
  transition: opacity 0.22s ease;
}
.hero__demo.is-swapping .app__main {
  opacity: 0;
  transform: translateY(6px);
}
.hero__demo.is-swapping .app__nav,
.hero__demo.is-swapping .app__org,
.hero__demo.is-swapping .browser__url span {
  opacity: 0;
}
.app__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.app__crumb {
  font-size: 12.5px;
  color: var(--ink-3);
}
.app__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.app__action .icon {
  width: 15px;
  height: 15px;
}
.app__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 14px;
}
.app__stat {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.app__stat span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app__stat strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.app__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 110px auto;
  align-items: center;
  gap: 14px;
  padding: 11px 6px;
  border-top: 1px solid var(--line);
}
.app__lead {
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.app__who {
  min-width: 0;
}
.app__who b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app__who small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app__meta {
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1023px) {
  .app {
    grid-template-columns: 196px minmax(0, 1fr);
  }
}
@media (max-width: 759px) {
  .browser__dots,
  .browser__spacer {
    display: none;
  }
  .browser__bar {
    height: 42px;
    padding: 0 12px;
  }
  .browser__url {
    font-size: 12px;
    padding: 0 12px;
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .app__side {
    display: none;
  }
  .app__main {
    padding: 18px 14px 10px;
  }
  .app__title {
    font-size: 18px;
  }
  .app__action {
    height: 30px;
    padding: 0 11px 0 9px;
    font-size: 12px;
  }
  .app__stats {
    gap: 8px;
    margin: 16px 0 10px;
  }
  .app__stat {
    padding: 9px 10px;
  }
  .app__stat span {
    font-size: 11px;
  }
  .app__stat strong {
    font-size: 15px;
  }
  .app__row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 2px;
    font-size: 13px;
  }
  .app__meta {
    display: none;
  }
  .app__lead {
    font-size: 12.5px;
  }
  .pill {
    font-size: 11px;
    padding: 0 8px;
    height: 22px;
  }
}

/* ---------- AI section ---------- */
.flow {
  margin-top: 40px;
  display: grid;
}
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20.5px;
  top: 58px;
  bottom: -6px;
  width: 1px;
  background: var(--line-2);
}
.flow__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.flow li > span:last-child {
  color: var(--ink-2);
  font-size: 0.975rem;
  padding-top: 1px;
}
.flow b {
  display: block;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.02rem;
}

.chat {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.45;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.chat__head b {
  display: block;
  font-size: 14.5px;
}
.chat__head small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
}
.chat__badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #3aaee8, #0b6dab);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.chat__badge .icon {
  width: 19px;
  height: 19px;
}
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px 18px;
}
.chat__turn {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.bubble {
  max-width: 90%;
  padding: 12px 15px;
  border-radius: 18px;
}
.bubble--me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.bubble--ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.bubble--typing {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  gap: 5px;
  padding: 15px 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.bubble--typing.is-shown {
  opacity: 1;
}
.bubble--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: typing 1s ease-in-out infinite;
}
.bubble--typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.bubble--typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.proposal {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
}
.proposal__title {
  font-weight: 650;
  font-size: 13.5px;
  padding-bottom: 6px;
}
.proposal__list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.proposal__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.proposal__icon .icon {
  width: 16px;
  height: 16px;
}
.proposal__list b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.proposal__list small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
}
.proposal__list em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--green-ink);
  background: var(--green-soft);
  padding: 2px 9px;
  border-radius: 999px;
}
.proposal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.mock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.mock-button--primary {
  background: var(--red);
  color: #fff;
}
.mock-button--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--surface);
}
.mock-button--block {
  width: 100%;
}
.chat.is-done .mock-button--primary {
  animation: nudge 1.6s var(--ease) 0.2s 1;
}
@keyframes nudge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(208 38 42 / 0);
  }
  40% {
    box-shadow: 0 0 0 6px rgb(208 38 42 / 0.18);
  }
}
.chat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin: 0 16px 16px;
  padding: 0 7px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
}
.chat__send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
}
.chat__send .icon {
  width: 16px;
  height: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-chat] [data-step] {
    transition:
      opacity 0.55s var(--ease),
      transform 0.55s var(--ease);
  }
  .js [data-chat]:not(.is-done) [data-step]:not(.is-shown) {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (max-width: 559px) {
  .chat {
    font-size: 13.5px;
  }
  .chat__body {
    padding: 18px 12px 14px;
  }
  .bubble {
    max-width: 96%;
  }
  .proposal__list small {
    white-space: normal;
  }
}

/* ---------- Studio section ---------- */
.studio {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.4;
}
.studio__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.studio__tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.studio__tabs b {
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
}
.studio__tabs b.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    var(--shadow-1),
    0 0 0 1px var(--line);
}
.studio__tools {
  display: flex;
  gap: 8px;
}
.studio__body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 260px;
  min-height: 480px;
}
.studio__label {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.studio__palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}
.part {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  white-space: nowrap;
}
.part .icon {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
}
.part--ghost {
  border-style: dashed;
  color: var(--ink-3);
  background: transparent;
  box-shadow: none;
}
.studio__canvas {
  position: relative;
  padding: 26px 30px 30px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 18px 18px;
  min-width: 0;
}
.canvas__head {
  display: grid;
}
.canvas__kind {
  font-size: 12px;
  color: var(--ink-3);
}
.canvas__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.form-mock {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.fm {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid transparent;
  min-width: 0;
}
.fm--wide {
  grid-column: 1 / -1;
}
.fm__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.fm__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm__input .icon {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}
.fm__input--area {
  height: 58px;
  align-items: flex-start;
  padding-top: 9px;
  white-space: normal;
}
.fm__grip {
  position: absolute;
  top: 7px;
  right: 6px;
  color: var(--ink-3);
  opacity: 0.6;
}
.fm__grip .icon {
  width: 15px;
  height: 15px;
}
.fm--selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.fm--slot {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 1.5px dashed var(--blue);
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.drag-chip {
  position: absolute;
  left: 14%;
  top: 18%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 10px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--blue);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    0 22px 40px -14px rgb(11 109 171 / 0.5),
    0 4px 10px rgb(0 0 0 / 0.08);
  transform: rotate(-3deg);
}
.drag-chip .icon {
  width: 17px;
  height: 17px;
  color: var(--blue-ink);
}
.drag-chip .drag-chip__grip {
  color: var(--ink-3);
}
.drag-chip__cursor {
  position: absolute;
  right: -12px;
  bottom: -16px;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #151515;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25));
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-studio] .drag-chip {
    transform: translate(var(--from-x, -330px), var(--from-y, -40px)) rotate(0deg);
    opacity: 0;
    transition:
      transform 1.3s var(--ease) 0.5s,
      opacity 0.3s ease 0.5s;
  }
  .js [data-studio].is-in .drag-chip {
    transform: rotate(-3deg);
    opacity: 1;
  }
  .js [data-studio] .fm--slot {
    transition:
      background-color 0.4s ease 1.2s,
      border-color 0.4s ease 1.2s;
  }
  .js [data-studio]:not(.is-in) .fm--slot {
    background: transparent;
    border-color: var(--line-2);
  }
}
.studio__props {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  border-left: 1px solid var(--line);
}
.prop {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prop__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.prop--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-2);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.toggle.is-on {
  background: var(--blue-ink);
}
.toggle.is-on::after {
  left: 19px;
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.seg b {
  padding: 6px 0;
  border-radius: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
}
.seg b.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    var(--shadow-1),
    0 0 0 1px var(--line);
}
@media (max-width: 1099px) {
  .studio__body {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .studio__props {
    display: none;
  }
}
@media (max-width: 719px) {
  .studio__body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .studio__palette {
    display: none;
  }
  .studio__tools .mock-button--ghost {
    display: none;
  }
  .studio__tabs b {
    padding: 6px 10px;
  }
  .studio__canvas {
    padding: 18px 12px 20px;
  }
  .form-mock {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }
  .js [data-studio] .drag-chip {
    --from-x: -160px;
    --from-y: 60px;
  }
}

/* ---------- Templates bento ---------- */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 250px;
  padding: 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.3s;
}
a.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.js .bento .tile[data-reveal].is-in:hover {
  transform: translateY(-3px);
}
.tile__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--red-ink);
}
.tile__segment {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-3);
}
.tile__title {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 680;
}
.tile__text {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.tile__counts {
  min-height: 1.3em;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tile__visual {
  margin-top: auto;
  padding-top: 16px;
}
.tile--feature {
  padding: 32px;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--blue-soft), transparent 60%),
    var(--surface);
}
.tile--feature .tile__title {
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.75rem);
  letter-spacing: -0.025em;
}
.tile--feature .tile__text {
  max-width: 38ch;
  font-size: 1rem;
}
.tile--feature .tile__visual {
  flex: 1 1 auto;
  display: grid;
  min-height: 230px;
}
.tile--feature .mini-agenda__col {
  height: auto;
  min-height: 230px;
}
.tile--warm {
  background: var(--red-soft);
  border-color: transparent;
}
.tile--warm .tile__icon {
  background: var(--surface);
}
.tile--cool::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--blue) 45%, transparent) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 55%);
  mask-image: linear-gradient(to top, #000, transparent 55%);
  pointer-events: none;
}
.tile--cool > * {
  position: relative;
}
.tile--strip {
  min-height: 0;
  padding: 26px 28px;
  gap: 18px;
  background: var(--paper-2);
  border-color: var(--line);
}
.strip__text {
  display: grid;
  gap: 6px;
}
@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile--feature,
  .tile--strip {
    grid-column: 1 / -1;
  }
  .tile--strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tile--feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .tile--strip {
    grid-column: 1 / -1;
  }
}
.bento > :nth-child(2) {
  --delay: 70ms;
}
.bento > :nth-child(3) {
  --delay: 140ms;
}
.bento > :nth-child(4) {
  --delay: 110ms;
}
.bento > :nth-child(5) {
  --delay: 180ms;
}

/* tile visuals */
.mini-agenda {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mini-agenda__col {
  position: relative;
  height: 230px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding-top: 34px;
}
.mini-agenda__col b {
  position: absolute;
  top: 9px;
  left: 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
}
.mini-agenda__col i {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(34px + var(--top) * 0.82);
  height: calc(var(--h) * 0.82);
  border-radius: 8px;
  background: var(--surface-2);
  border-left: 3px solid var(--line-2);
}
.mini-agenda__col i.is-blue {
  background: var(--blue-soft);
  border-left-color: var(--blue);
}
.mini-agenda__col i.is-red {
  background: var(--red-soft);
  border-left-color: var(--red);
}
.next-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
}
.next-card b {
  grid-row: span 2;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--blue-ink);
}
.next-card span {
  font-weight: 600;
}
.next-card em {
  font-style: normal;
  color: var(--ink-3);
  font-size: 12px;
}
.os-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.os-steps i {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red-ink) 18%, transparent);
}
.os-steps i.is-done {
  background: var(--green-ink);
}
.os-steps i.is-now {
  background: linear-gradient(90deg, var(--blue) 55%, color-mix(in srgb, var(--red-ink) 18%, transparent) 55%);
}
.tables-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.tables-map i {
  aspect-ratio: 1.35;
  border-radius: 8px;
  border: 1.5px dashed var(--line-2);
  background: var(--surface);
}
.tables-map i.is-busy {
  border: 1.5px solid transparent;
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 50%, transparent);
}
.tables-map i.is-bill {
  border: 1.5px solid var(--red);
  background: var(--red-soft);
}
.receipt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px dashed var(--line-2);
  font-size: 13px;
  color: var(--ink-3);
}
.receipt b {
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
@media (max-width: 699px) {
  .tile {
    min-height: 0;
  }
  .mini-agenda__col {
    height: 190px;
  }
}

/* ---------- Daily section ---------- */
.daily {
  display: grid;
  gap: 56px;
}
.daily__intro {
  min-width: 0;
}
.doc-stack {
  position: relative;
  margin-top: 44px;
  max-width: 400px;
  padding-bottom: 66px;
}
.doc {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  transform: rotate(-1.4deg);
  font-size: 13px;
}
.doc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.doc__head b {
  display: block;
  font-size: 14px;
}
.doc__head small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.doc__brand {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
}
.doc__line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--surface-2);
  margin-bottom: 7px;
}
.doc__line--short {
  width: 62%;
  margin-bottom: 14px;
}
.doc__row,
.doc__total {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.doc__total {
  font-weight: 700;
  font-size: 14px;
  border-top: 1px solid var(--line-2);
}
.doc__sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.doc__signature {
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 19px;
  color: var(--blue-ink);
  white-space: nowrap;
}
.notice {
  position: absolute;
  right: -18px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  font-size: 13px;
  line-height: 1.35;
  transform: rotate(1deg);
}
.notice b {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}
.notice__icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-ink);
}
.cap-group + .cap-group {
  margin-top: 52px;
}
.cap-group__title {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 36px;
}
.cap-grid li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-content: start;
  padding: 18px 0 8px;
}
.cap-grid .icon {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--red-ink);
}
.cap-grid b {
  font-weight: 640;
}
.cap-grid span {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (min-width: 600px) {
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .daily {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(56px, 7vw, 104px);
    align-items: start;
  }
  .daily__sticky {
    position: sticky;
    top: calc(var(--topbar) + 40px);
  }
}
@media (max-width: 479px) {
  .notice {
    right: 0;
    max-width: 260px;
  }
}

/* ---------- Devices ---------- */
.devices {
  container-type: inline-size;
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding-bottom: 6cqi;
}
.tablet,
.phone {
  font-size: clamp(6px, 2.05cqi, 13px);
  line-height: 1.35;
}
.tablet {
  width: 88%;
  aspect-ratio: 4 / 3;
  padding: 0.95em;
  border-radius: 2.2em;
  background: var(--device);
  box-shadow:
    var(--shadow-3),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.tablet__screen {
  height: 100%;
  border-radius: 1.3em;
  background: var(--surface);
  overflow: hidden;
}
.pos {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  height: 100%;
}
.pos__catalog {
  padding: 1.4em;
}
.pos__title {
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75em;
  margin-top: 1em;
}
.pos__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6em;
  min-height: 6.4em;
  padding: 0.85em;
  border-radius: 0.9em;
  border: 1px solid var(--line-2);
}
.pos__item b {
  font-weight: 600;
}
.pos__item small {
  font-size: 0.95em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pos__item.is-picked {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.pos__ticket {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  order: -1;
  padding: 1.4em 1.1em;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}
.pos__line {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pos__total {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.7em;
  border-top: 1px solid var(--line-2);
  font-weight: 700;
}
.pos__ticket .mock-button {
  height: 2.7em;
  font-size: 1em;
}
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 33%;
  padding: 0.65em;
  border-radius: 2.9em;
  background: var(--device);
  box-shadow:
    var(--shadow-3),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19;
  padding: 3.1em 1.05em 1em;
  border-radius: 2.3em;
  background: var(--surface);
  overflow: hidden;
}
.phone__island {
  position: absolute;
  top: 0.8em;
  left: 50%;
  width: 34%;
  height: 1.45em;
  border-radius: 999px;
  background: var(--device);
  transform: translateX(-50%);
}
.phone__title {
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phone__sub {
  color: var(--ink-3);
}
.phone__list {
  display: grid;
  gap: 0.6em;
  margin-top: 1em;
}
.phone__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7em;
  padding: 0.75em;
  border-radius: 0.9em;
  background: var(--surface-2);
}
.phone__item b {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.phone__item span {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone__item small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
}
.phone__item.is-now {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}
.phone__item.is-now b {
  color: var(--blue-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .js .devices .phone {
    transition: transform 1.2s var(--ease) 0.25s;
  }
  .js .devices:not(.is-in) .phone {
    transform: translateY(14%);
  }
}
.device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.device-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 0.925rem;
}
.device-list .icon {
  color: var(--blue-ink);
}
@media (max-width: 479px) {
  .device-list {
    gap: 8px;
  }
  .device-list li {
    height: 36px;
    padding: 0 12px 0 10px;
    font-size: 0.85rem;
    gap: 6px;
  }
  .studio__tabs b:nth-child(4) {
    display: none;
  }
}

/* ---------- Security ---------- */
.feature-security {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.vault {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 36px);
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.vault__address {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  height: 54px;
  margin-inline: auto;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: clamp(14px, 1.3vw + 9px, 19px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.vault__address .icon {
  color: var(--green-ink);
}
.vault__address b {
  color: var(--red-ink);
  font-weight: 700;
}
.vault__lanes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
  margin-top: 34px;
}
.vault__lanes::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  height: 34px;
  border-left: 1.5px dashed var(--blue);
}
.lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(14px, 2.4vw, 22px) 10px;
  border-radius: 18px;
  border: 1.5px dashed var(--line-2);
  text-align: center;
}
.lane__org {
  font-weight: 650;
  font-size: clamp(12.5px, 1vw + 8px, 15px);
  line-height: 1.3;
  color: var(--ink-2);
}
.lane--you {
  border: 1.5px solid var(--blue);
  background: var(--blue-soft);
}
.lane--you .lane__org {
  color: var(--ink);
}
.lane__db {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--blue-ink);
  box-shadow: var(--shadow-1);
}
.lane__db .icon {
  width: 28px;
  height: 28px;
}
.lane__copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.lane__copy .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.assurances {
  display: grid;
  gap: 32px 28px;
  margin-top: clamp(48px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr);
}
.assurances li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.assurances .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  color: var(--blue-ink);
}
.assurances b {
  font-weight: 660;
  font-size: 1.02rem;
}
.assurances span {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.assurances li:nth-child(2) {
  --delay: 70ms;
}
.assurances li:nth-child(3) {
  --delay: 140ms;
}
.assurances li:nth-child(4) {
  --delay: 210ms;
}
@media (min-width: 600px) {
  .assurances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .assurances {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .lane__db {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .lane__db .icon {
    width: 22px;
    height: 22px;
  }
  .lane {
    padding-inline: 6px;
  }
  .lane__copy {
    font-size: 11px;
    white-space: nowrap;
  }
  .lane__copy .icon {
    display: none;
  }
  .vault__address {
    padding: 0 16px 0 14px;
    height: 48px;
  }
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.plan--featured {
  border: 1.5px solid var(--red);
  box-shadow:
    0 34px 70px -38px rgb(208 38 42 / 0.45),
    var(--shadow-2);
}
.plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan__name {
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.plan__flag {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.plan__summary {
  margin-top: -10px;
  color: var(--ink-2);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan__price strong {
  font-size: clamp(2.6rem, 2.2rem + 1vw, 3.1rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__price span {
  color: var(--ink-3);
  font-size: 0.95rem;
}
.plan__list {
  display: grid;
  gap: 11px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.plan__list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}
.plan__list li.is-extra {
  color: var(--ink);
  font-weight: 600;
}
.plan__list .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--green-ink);
  stroke-width: 2.2;
}
.plans > :nth-child(2) {
  --delay: 80ms;
}
.plans > :nth-child(3) {
  --delay: 160ms;
}
.plan--skeleton {
  min-height: 520px;
  gap: 16px;
}
.sk {
  display: block;
  border-radius: 8px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.sk--title {
  width: 40%;
  height: 22px;
}
.sk--price {
  width: 55%;
  height: 46px;
  margin-bottom: 14px;
}
.sk--line {
  width: 90%;
  height: 12px;
}
.sk--block {
  height: 180px;
  border-radius: 20px;
}
@media (prefers-reduced-motion: no-preference) {
  .sk::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.4s ease-in-out infinite;
  }
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}
.notice-box {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 36px;
}
@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
  }
}
.faq__item {
  border-bottom: 1px solid var(--line-2);
}
.faq__item:first-child {
  border-top: 1px solid var(--line-2);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  list-style: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  border-radius: 8px;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary .icon {
  color: var(--ink-3);
  transition: transform 0.35s var(--ease);
}
.faq__item[open] summary .icon {
  transform: rotate(45deg);
}
.faq__item p {
  padding: 0 40px 24px 2px;
  color: var(--ink-2);
  max-width: 64ch;
}
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] p {
    animation: rise 0.45s var(--ease);
  }
}

/* ============================================================
   Forms
   ============================================================ */
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.field + .field,
.field-row + .field,
.field + .field-row {
  margin-top: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.field-row > .field + .field {
  margin-top: 0;
}
.label {
  font-weight: 600;
  font-size: 0.925rem;
}
.hint {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.textarea {
  padding: 12px 14px;
  min-height: 120px;
  resize: vertical;
}
.select {
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-3);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue-ink);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--red-ink);
}
.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red-ink) 22%, transparent);
}
.input--mono {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.field__error {
  display: flex;
  gap: 6px;
  color: var(--red-ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-right: 52px;
}
.input-wrap .icon-button {
  position: absolute;
  right: 4px;
  top: 4px;
  color: var(--ink-3);
}
.message {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.message[data-tone="error"] {
  background: var(--red-soft);
  color: var(--red-ink);
}
.message[data-tone="ok"] {
  background: var(--green-soft);
  color: var(--green-ink);
}
.message[data-tone="info"] {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

/* ============================================================
   Auth pages
   ============================================================ */
.auth {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter) 56px;
  min-height: calc(100dvh - var(--topbar));
  position: relative;
  isolation: isolate;
}
.auth::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: min(980px, 160vw);
  height: 560px;
  z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(58 174 232 / 0.16), transparent);
  pointer-events: none;
}
.auth__card {
  width: 100%;
  max-width: 430px;
}
.auth__logo {
  width: 132px;
  height: 132px;
  margin: 0 auto 6px;
}
.auth__title {
  text-align: center;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  font-weight: 730;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.auth__sub {
  margin-top: 8px;
  text-align: center;
  color: var(--ink-2);
}
.auth__panel {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.google-button:hover {
  background: var(--surface-2);
}
.google-button svg {
  width: 18px;
  height: 18px;
}
.google-button em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--ink-3);
  font-size: 0.85rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.auth__submit {
  margin-top: 24px;
}
.auth__message {
  margin-bottom: 18px;
}
.auth__message + .google-button {
  margin-top: 0;
}
.auth__switch {
  margin-top: 22px;
  text-align: center;
  color: var(--ink-2);
}
.auth__legal {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ============================================================
   App pages (contratar, painel, sistema, loja)
   ============================================================ */
.page {
  padding-block: clamp(32px, 5vw, 56px) clamp(64px, 8vw, 104px);
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.page-title {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 740;
}
.page-sub {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 60ch;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.925rem;
}
.back-link:hover {
  color: var(--ink);
}
.back-link .icon {
  width: 17px;
  height: 17px;
}
.card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.checkout__main > .card + .card {
  margin-top: 18px;
}
.card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 690;
  letter-spacing: -0.015em;
}
.card__sub {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.card__body {
  margin-top: 22px;
}
.step-num {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
}
.empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  border: 1.5px dashed var(--line-2);
  background: var(--surface);
}
.empty__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.empty__icon .icon {
  width: 26px;
  height: 26px;
}
.empty h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.empty p {
  color: var(--ink-2);
  max-width: 52ch;
}

/* ---------- Contratar ---------- */
.checkout {
  display: grid;
  gap: 24px;
}
@media (min-width: 1000px) {
  .checkout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 40px;
    align-items: start;
  }
  .checkout__aside {
    position: sticky;
    top: calc(var(--topbar) + 24px);
  }
}
.choices {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
@media (min-width: 640px) {
  .choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.choice {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.choice:hover {
  border-color: var(--field-border);
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice__name {
  font-weight: 680;
  font-size: 1.02rem;
}
.choice__price {
  font-weight: 720;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.choice__price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.choice__summary {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.choice__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--field-border);
  display: grid;
  place-items: center;
  color: transparent;
}
.choice__check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.choice:has(input:checked) {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red-soft) 55%, var(--surface));
}
.choice:has(input:checked) .choice__check {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.choice:has(input:focus-visible) {
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.slug-input {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.slug-input:hover {
  border-color: var(--ink-3);
}
.slug-input:focus-within {
  border-color: var(--blue-ink);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.slug-input:has([aria-invalid="true"]) {
  border-color: var(--red-ink);
}
.slug-input .input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  min-width: 0;
  flex: 1;
  text-align: right;
  padding-right: 2px;
}
.slug-input__suffix {
  display: flex;
  align-items: center;
  padding: 0 14px 0 0;
  color: var(--ink-3);
  font-size: 1rem;
  white-space: nowrap;
}
.slug-status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 1.5em;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-3);
}
.slug-status .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.slug-status[data-state="ok"] {
  color: var(--green-ink);
}
.slug-status[data-state="error"] {
  color: var(--red-ink);
}
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9rem;
}
.demo-note .icon {
  margin-top: 1px;
  color: var(--blue-ink);
}
.summary {
  padding: 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
}
.summary__title {
  font-size: 1.05rem;
  font-weight: 680;
}
.summary__rows {
  display: grid;
  margin: 16px 0 18px;
}
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.summary__row span:first-child {
  color: var(--ink-3);
}
.summary__row span:last-child {
  text-align: right;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-weight: 700;
}
.summary__total strong {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.summary .button {
  margin-top: 20px;
}
.summary__fine {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
}
.pay-state {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
}
.pay-state__text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}
.pay-state__text .icon {
  color: var(--green-ink);
  stroke-width: 2.4;
}
.pay-state__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.pay-state__bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--blue-ink);
  transform-origin: left center;
  transform: scaleX(0.04);
}
.pay-state.is-running .pay-state__bar i {
  transition: transform 2.6s cubic-bezier(0.3, 0.6, 0.4, 1);
  transform: scaleX(0.92);
}
.pay-state.is-ok .pay-state__bar i {
  transition: transform 0.4s var(--ease);
  transform: scaleX(1);
  background: var(--green-ink);
}

/* ---------- Painel ---------- */
.systems {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.system-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s;
}
.system-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.system-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.system-card__mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.85rem;
}
.system-card__name {
  font-size: 1.2rem;
  font-weight: 690;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.system-card__address {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 0.925rem;
  overflow-wrap: anywhere;
}
.system-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  color: var(--ink-2);
}
.system-card__foot .icon {
  color: var(--ink-3);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status--instalando {
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.status--pronto {
  background: var(--green-soft);
  color: var(--green-ink);
}
.status--falhou {
  background: var(--red-soft);
  color: var(--red-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .status--instalando::before {
    animation: blink 1.4s ease-in-out infinite;
  }
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
.system-card--skeleton {
  min-height: 210px;
}

/* ---------- Sistema (one environment) ---------- */
.sys-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.sys-meta a {
  color: var(--blue-ink);
  font-weight: 600;
}
.sys-layout {
  display: grid;
  gap: 20px;
}
@media (min-width: 1000px) {
  .sys-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
  }
}
.timeline {
  position: relative;
  display: grid;
  margin-top: 26px;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 16px;
  padding-bottom: 26px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16.5px;
  top: 38px;
  bottom: 4px;
  width: 1.5px;
  background: var(--line-2);
}
.timeline li.is-done:not(:last-child)::before {
  background: color-mix(in srgb, var(--green-ink) 55%, transparent);
}
.tl-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-3);
}
.tl-dot .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.3;
}
.is-done .tl-dot {
  background: var(--green-ink);
  border-color: var(--green-ink);
  color: var(--surface);
}
.is-current .tl-dot {
  border-color: var(--blue-ink);
  color: var(--blue-ink);
}
.is-current .tl-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .is-current .tl-dot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--blue-ink);
    opacity: 0;
    animation: ring 1.8s var(--ease) infinite;
  }
}
@keyframes ring {
  0% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
.is-failed .tl-dot {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.tl-body {
  padding-top: 5px;
  min-width: 0;
}
.tl-title {
  font-weight: 640;
}
.is-pending .tl-title {
  color: var(--ink-3);
  font-weight: 550;
}
.tl-detail {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.925rem;
  overflow-wrap: anywhere;
}
.is-failed .tl-detail {
  color: var(--red-ink);
}
.tl-detail a {
  color: var(--blue-ink);
  font-weight: 600;
}
.tl-time {
  padding-top: 7px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.ready {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, var(--green-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.ready__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-ink);
  color: var(--surface);
}
.ready__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}
.ready__title {
  margin-top: 20px;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.ready__text {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 54ch;
}
.ready__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.access {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.access__row {
  display: grid;
  gap: 6px;
}
.access__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
}
.access__value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 4px 4px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.access__value code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.access__value .button {
  flex: none;
}
.warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 0.9rem;
  font-weight: 550;
}
.warning .icon {
  margin-top: 1px;
}
.plan-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
}
.plan-option b {
  display: block;
  font-weight: 680;
}
.plan-option span {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.failed {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--red-ink) 35%, transparent);
}
.failed__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red-ink);
}
.failed h2 {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}
.failed p {
  margin-top: 8px;
  color: var(--ink-2);
}
.failed .button {
  margin-top: 20px;
}

/* ---------- Loja ---------- */
.store-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.search {
  position: relative;
  max-width: 520px;
}
.search > .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.search .input {
  padding-left: 46px;
  border-radius: 999px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 4px;
}
.chips::-webkit-scrollbar {
  display: none;
}
@media (min-width: 900px) {
  .chips {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip .icon {
  width: 16px;
  height: 16px;
}
.chip:hover {
  border-color: var(--field-border);
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.results-line {
  margin-bottom: 16px;
  color: var(--ink-3);
  font-size: 0.925rem;
  min-height: 1.5em;
}
.templates {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.tcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s;
}
.tcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.tcard__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.seg-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--red-ink);
}
.seg-icon--lg {
  width: 56px;
  height: 56px;
  border-radius: 17px;
}
.seg-icon--lg .icon {
  width: 26px;
  height: 26px;
}
.tcard__segment {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink-3);
}
.tcard__name {
  font-size: 1.17rem;
  font-weight: 690;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.tcard__summary {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tcard__counts {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.tcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.by span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.by--official {
  color: var(--blue-ink);
  font-weight: 650;
}
.by .icon {
  width: 17px;
  height: 17px;
}
.tcard--skeleton {
  min-height: 268px;
  gap: 14px;
}

/* ---------- Modelo (detail) ---------- */
.detail {
  display: grid;
  gap: 32px;
}
@media (min-width: 1000px) {
  .detail {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 48px;
    align-items: start;
  }
  .detail__aside {
    position: sticky;
    top: calc(var(--topbar) + 24px);
  }
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.crumbs a {
  color: var(--ink-2);
  font-weight: 550;
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs .icon {
  width: 15px;
  height: 15px;
}
.detail__head {
  display: grid;
  gap: 16px;
}
.detail__title {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 740;
}
.detail__summary {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 62ch;
}
.detail__by {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.95rem;
  color: var(--ink-3);
}
.counts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-top: 32px;
}
.count {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.count strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.count span {
  color: var(--ink-3);
  font-size: 0.875rem;
}
.contents {
  display: grid;
  gap: 32px;
  margin-top: 44px;
}
.contents__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.contents__head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 690;
}
.contents__head h2 .icon {
  color: var(--blue-ink);
}
.contents__head span {
  color: var(--ink-3);
  font-size: 0.875rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.3;
}
.more-button {
  margin-top: 12px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--blue-ink);
  font-weight: 600;
  font-size: 0.925rem;
}
.more-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.apply-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
}
.apply-card h2 {
  font-size: 1.15rem;
  font-weight: 690;
}
.apply-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.apply-card .button {
  margin-top: 18px;
}
.apply-card__stats {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  color: var(--ink-2);
}
.apply-card__stats li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.apply-card__stats .icon {
  color: var(--ink-3);
}
.pick {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 0;
  padding: 0;
}
.pick label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  cursor: pointer;
}
.pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  margin: 0;
}
.pick label:has(input:checked) {
  border-color: var(--red);
}
.pick b {
  display: block;
  font-weight: 650;
}
.pick small {
  display: block;
  color: var(--ink-3);
  font-size: 0.85rem;
}
.go-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-size: 0.925rem;
  font-weight: 550;
}
.go-note .icon {
  margin-top: 1px;
}

/* ---------- Publicar ---------- */
.publish {
  display: grid;
  gap: 32px;
}
@media (min-width: 1000px) {
  .publish {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
  }
  .publish__how {
    position: sticky;
    top: calc(var(--topbar) + 24px);
  }
}
.howto {
  display: grid;
  margin-top: 20px;
  counter-reset: how;
}
.howto li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  color: var(--ink-2);
}
.howto li::before {
  counter-increment: how;
  content: counter(how);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.howto b {
  color: var(--ink);
  font-weight: 650;
}
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 20px;
  border-radius: 16px;
  border: 1.5px dashed var(--field-border);
  background: var(--surface-2);
  text-align: center;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--blue-ink);
  background: var(--blue-soft);
}
.dropzone:focus-within {
  border-color: var(--blue-ink);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue-ink);
}
.dropzone b {
  font-weight: 650;
}
.dropzone span {
  color: var(--ink-3);
  font-size: 0.875rem;
}
.dropzone.has-file {
  border-style: solid;
  border-color: var(--green-ink);
  background: var(--green-soft);
}
.dropzone.has-file .dropzone__icon {
  color: var(--green-ink);
}
.counter {
  justify-self: end;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.mine {
  margin-top: 48px;
}
.mine__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mine__list {
  margin-top: 14px;
  border-top: 1px solid var(--line-2);
}
.mine__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mine__item a {
  font-weight: 650;
}
.mine__item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mine__item small {
  display: block;
  color: var(--ink-3);
  font-size: 0.85rem;
}
.mine__actions {
  display: flex;
  gap: 6px;
  flex: none;
}

/* ---------- Dialog ---------- */
.dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.dialog::backdrop {
  background: rgb(12 12 12 / 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dialog__panel {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
}
.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog__title {
  padding-top: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.dialog__head .icon-button {
  margin: -2px -8px 0 0;
  color: var(--ink-3);
}
.dialog__body {
  margin-top: 8px;
  color: var(--ink-2);
}
.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] .dialog__panel {
    animation: pop 0.32s var(--ease);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
@media (max-width: 479px) {
  .dialog__actions .button {
    flex: 1 1 auto;
  }
}

/* ---------- Small page pieces ---------- */
.topbar--minimal {
  position: static;
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.topbar--minimal .topbar__back {
  margin-left: -12px;
}
.footer--minimal {
  margin-top: 0;
  padding: 24px 0 32px;
  border-top: 0;
}
.footer--minimal .footer__legal {
  border-top: 0;
  padding-top: 0;
  text-align: center;
}
.auth__google-note {
  margin-top: 10px;
  text-align: center;
}
.systems--empty {
  display: block;
}
.system-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--ink);
}
.system-card__more .icon {
  width: 16px;
  height: 16px;
}
.plan-change {
  margin-top: 20px;
}
.plan-change .message,
.failed .message,
.apply-card .message {
  margin-top: 14px;
}
.apply-card__remove {
  margin-top: 16px !important;
}
.publish__submit {
  margin-top: 24px;
}
.card__body > .message {
  margin-top: 20px;
}
.detail__by .by {
  font-size: 0.95rem;
}
.ready + .card,
.ready + .plan-change {
  margin-top: 20px;
}
.templates.is-loading {
  opacity: 0.55;
  transition: opacity 0.2s;
}
.templates > .empty {
  grid-column: 1 / -1;
}
@media (max-width: 599px) {
  .plan-option {
    flex-direction: column;
    align-items: stretch;
  }
  .page-actions .button {
    flex: 1 1 auto;
  }
  .mine__item {
    flex-direction: column;
    align-items: flex-start;
  }
}
